|
I guess maybe try doing a 3D rasterizer without using matrices at all and then it'll become a little bit more clear why they're useful. In programming terms they're an abstraction that takes a bunch of seemingly-different tasks and turns them into different instances of the same task, allowing you to use the same code and techniques for all of them.
|
# ? Jul 22, 2016 04:22 |
|
|
# ? May 24, 2024 17:55 |
|
if you don't find that confusing enough you can always just use two cameras to locate your points in space
|
# ? Jul 22, 2016 04:24 |
|
affine transformation matrices aren't that confusing. you staple a translation vector next to a rotation matrix then add some filler content to keep the square matrix properties happy and multiply it by your original vector that's had a row stapled on to it too so it matches your new matrix and bam you've got rotation and translation all rolled into one
|
# ? Jul 22, 2016 04:46 |
|
|
# ? Jul 22, 2016 04:53 |
|
inside my brain right now. i am at that sort of foggy half-getting-it point that i got to with the dynamic programming chunk of my algorithms course. i never really got further than that (although this may be because the instructor was an accomplished theorist and mathematician and taught everything proof-first(-and-only)).
|
# ? Jul 22, 2016 04:59 |
|
oh hey, his doctoral thesis was so good they actually published it and you can buy it on amazon: https://www.amazon.com/Randomness-C...&s=books&sr=1-1 i really liked him on a personal level, but he had no ability at all to relate concepts outside of abstract mathematical frameworks. he introduced each algorithm with a proof by induction, and then basically left it at "the implementation follows from this". edit: reading the preview pages, he's actually way more concise and relatable in this than he was in his lectures. he said his exclusive research domain in the last decade+ has been into np-complete problems, finding new special cases of them that are computable, and also in trying to find ways to solve the np-complete versions without brute force (which he admitted might be naive but he only finds the proofs that np-complete problems are uncomputable to be 98% convincing, which is a really serious and solemn statement from him if you've met him). soooo, maybe spending all his time on an insanely theoretical and mathy domain kinda hosed up his ability to relate to normies. The MUMPSorceress fucked around with this message at 05:12 on Jul 22, 2016 |
# ? Jul 22, 2016 05:03 |
|
uncurable mlady posted:go dependency management is awful yeah, but pretty much everything else is great isnt go that language pram was in love with rip pram.. any way I can get in touch with that glorious mothercucker
|
# ? Jul 22, 2016 07:23 |
|
|
# ? Jul 22, 2016 07:38 |
|
Bloody posted:why do my unit tests occasionally just halt with no given reason that means the tests are failing so badly it's crashing the runner process and it can't even report what the error is debug the tests with break-on-exceptions on
|
# ? Jul 22, 2016 11:02 |
|
echinopsis posted:isnt go that language pram was in love with yeah. it's good but it sounds bad. mlyp
|
# ? Jul 22, 2016 14:09 |
|
Gul Banana posted:that means the tests are failing so badly it's crashing the runner process and it can't even report what the error is I didn't even know I could turn that off
|
# ? Jul 22, 2016 14:30 |
|
that feel when you gently caress up so badly that you not only crash your process but you take Valgrind with it
|
# ? Jul 22, 2016 14:32 |
|
nothing compared to taking a kernel level driver with you
|
# ? Jul 22, 2016 14:38 |
|
if your computer doesnt catch on fire and sink into the center of the earth i dont even
|
# ? Jul 22, 2016 14:53 |
|
fritz posted:if your computer doesnt catch on fire and sink into the center of the earth i dont even just use JavaScript If you want to get that close to the metal
|
# ? Jul 22, 2016 14:56 |
|
question: does ruby properly compile machine code? or do you need like a ruby runtime? or does it cross-compile to java or some other nonsense?
|
# ? Jul 22, 2016 15:15 |
|
there is an interpreter which runs .rb files i don't think it JITs them or anything, it's pretty slow
|
# ? Jul 22, 2016 15:25 |
|
it looks like maybe sometimes i have zombie threads and that makes the test runner upset, although different upset: Warning: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.
|
# ? Jul 22, 2016 15:33 |
|
HoboMan posted:question: does ruby properly compile machine code? or do you need like a ruby runtime? or does it cross-compile to java or some other nonsense? yes. there are quite a few ruby implementations * mri reads ruby code directly and then executes it on its runtime * rubinius compiles ruby code to its rubyvm opcodes, which it then executes on its runtime. * jruby converts ruby into jvm opcodes, and can produce jars * topaz was going to be a jotted version on top of the pypy toolchain but it's dead * I think there's an ironruby on .net
|
# ? Jul 22, 2016 15:39 |
|
jruby has a truffle/graal version now upside: it no longer takes 30 seconds to start up downside: who the hell has a truffle/graal enabled jvm
|
# ? Jul 22, 2016 16:06 |
|
Notorious b.s.d. posted:truffle/graal who the gently caress comes up with these names
|
# ? Jul 22, 2016 16:14 |
|
oh goody today I get to troubleshoot and debug business logic in javascript kill me
|
# ? Jul 22, 2016 16:18 |
|
that's me every day lol fixed a js bug already today e: chome's debugger is quite good, but ie's is integrated into vs so i have to constantly switch-off HoboMan fucked around with this message at 16:25 on Jul 22, 2016 |
# ? Jul 22, 2016 16:20 |
|
Notorious b.s.d. posted:jruby has a truffle/graal version now truffle ruby looks impressive. unfortunately speed is not even the main problem with ruby
|
# ? Jul 22, 2016 16:24 |
|
MALE SHOEGAZE posted:truffle ruby looks impressive. unfortunately speed is not even the main problem with ruby ruby's about page is really funny. no variable declarations! this is good i swear! no it's not confusing you see because the scope will be obvious from context! also this image being used to brag how popular ruby is:
|
# ? Jul 22, 2016 16:31 |
|
this really says it all
|
# ? Jul 22, 2016 16:34 |
|
MALE SHOEGAZE posted:unfortunately speed is not even the main problem with ruby enough nils being passed around to give you nightmares? OR "what we need here is another dsl"?
|
# ? Jul 22, 2016 16:47 |
|
today i get to orchestrate scheduling of long-running real-time events between a PC and an FPGA and the amount of state that fully describes the system of events is too large to fit on the FPGA so i have to send state updates from a PC to the FPGA and not miss real-time constraints lmao kill me
|
# ? Jul 22, 2016 16:47 |
|
luckily the state transitions are every 10 milliseconds and the state description is, like, a kilobit. i'd still kill for a microcontroller on the other end tho the other end, in this case, actually being either end of the connection
|
# ? Jul 22, 2016 16:49 |
|
ruby: so bad that even javascript is better ruby: at least we're not php!
|
# ? Jul 22, 2016 16:50 |
|
.net has 4 timer types and im not seeing huge differences between them
|
# ? Jul 22, 2016 17:08 |
|
Bloody posted:.net has 4 timer types and im not seeing huge differences between them this looks like the best explanation: https://web.archive.org/web/20150329101415/https://msdn.microsoft.com/en-us/magazine/cc164015.aspx its even more MS than I remembered. (bonus: needing to use archive.org to find a useful article in an old msdn magazine)
|
# ? Jul 22, 2016 17:13 |
|
after the peak it's a pretty clean exponential decay there allowing me to calculate the half-life of the ruby ecosystem to be about 3 years or to put in another way: about 1/5th of ruby devs are eliminated every year or to put it yet another way: nowhere near fast enough e: fixed for bad math HoboMan fucked around with this message at 17:43 on Jul 22, 2016 |
# ? Jul 22, 2016 17:27 |
|
after years of using python i finally learned how 2 yield. thanks c#
|
# ? Jul 22, 2016 17:37 |
|
oh god oh no some actual ms programmer saw my post in teh grey thread and wrote like 2 pages in response to it. i'm afraid to read it. augh
|
# ? Jul 22, 2016 17:44 |
|
fritz posted:if your computer doesnt catch on fire and sink into the center of the earth i dont even in september we'll be interfacing with an industrial bakery's systems, including the thing that preheats the ingredients if I play my cards just right I'll finally be able to brag that "my mixin is fire yo"
|
# ? Jul 22, 2016 17:53 |
|
GameCube posted:oh god oh no some actual ms programmer saw my post in teh grey thread and wrote like 2 pages in response to it. i'm afraid to read it. augh lol which post
|
# ? Jul 22, 2016 17:55 |
|
FamDav posted:lol which post I think GameCube means this response: http://forums.somethingawful.com/showthread.php?threadid=3644791&userid=0&perpage=40&pagenumber=140#post462365831
|
# ? Jul 22, 2016 17:58 |
|
GameCube posted:oh god oh no some actual ms programmer saw my post in teh grey thread and wrote like 2 pages in response to it. i'm afraid to read it. augh ljw1004 is a Good Dude, read the post imo.
|
# ? Jul 22, 2016 18:01 |
|
|
# ? May 24, 2024 17:55 |
|
i have a discrete math problem! i have the following system: (Ax * Ay) + (Bx * By) = Cx * Cy Ay + By = Cy * K Ax, Bx, Cx in (1:1024) Ay, By, Cy in (1:0.5:100) K in 1:0.5:5 given Cx, Cy, and K, i want to solve for Ax, Ay, Bx, and By, under the constraints that: Ideally, Bx * By = 0 if thats impossible, min(Ax - Bx) (not all valid inputs have valid outputs and thats OK) how do i solve this short of brute force is there a way to solve this short of brute force
|
# ? Jul 22, 2016 18:25 |