We're going to explore all the amazing ways computer code touches your life every day. Hehee, touches... Anyways. Here are some coding-meets-life questions I want to nibble at.
- Is AI already breeding humans? - How do videogame developers deceive you into thinking your game is more advanced than it really is? - Are programming languages really languages? - How do Star Wars droids hack and get hacked? - Why is there still a lack of female developers?
Josh from NativLang is doing all the fun animations. We're even working on a collaboration about the overlap between linguistics and programming languages - why passwords aren't words, how Cold War machines failed at translating Russian.... ooh, this is gonna be fun!
The line with the "// evil floating point bit level hacking" comment isn't actually the bit shifting bit of the equation, the part you mentioned not understanding is actually along the lines of what you just described with the Mantissa and Exponent values. The first bit takes a floating point number (whatever number we're trying to sqrt) and we''re assigning that to the Float named "y", we then give our Long named "i" the value of "i" multiplied by the value at "y" (y's value is treated as a Long rather than Float here)....THEN our "WTF" line assigns "i" the value of the Mantissa, which is located at the memory address 0x5f3759df, and SUBTRACTS the value of "i" AFTER it's been bitshifted/divided by 2 using bit shifting.... I think the main "wtf" moment for US is really thinking how the original programmer came up with that specific memory address, how our Mantissa gets stored there, and why it consistently happens at that memory address rather than being a bit more random... John Carmack wasss a big part of ID so it wouldn't surprise me if this was his doing in some way, it's definitely not impossible to understand hardware well enough to do things that SEEM strange like this, especially with a language like C where you kinda need to know how things like memory work since you're doing all the management yourself, as opposed to something more abstracted like C++ which allows for some auto-management of resources so the programmer doesn't HAVE to understand it inside and out wholeheartedly just to create something stable
I actually don't know why they even used that code, I tested just a standard version of that code and ran it on my old gateway machine. I got identical framerates between the two.
watching this in 2024, I am wondering if this is really the latest video uploaded by this channel, or are there more we don't see? RU-vid's code is not transparent
I think the 90's was the absolute peak of clever programming. They were constantly strapped for resources and pulling all manner of dirty tricks to squeeze every last drop of performance from those machines. Not saying the programmers now aren't brilliant, but they don't feel that same pressure. They can just pump the game up to 75gb and require 16gb of ram + 8gb of vram to run.
Very good video, just technical information straight forward with your opinion added. Wonder why this was your last video, especially looking at the matter at hand.
I found the context for this video of stallman. He was talking about computers which were shared in the lab. He was not talking about being against passwords in general life.
Wondering why the magical unnamed hexadecimal constant , 0x5f3759df, does what it does? The answer is scarily simple. 0x5f3759df is a hexidecimal representation of 1597463007 (in decimal notation). 1597463007 seconds is exactly how many seconds it takes for a beam of light to reflect off a metallic surface in a zero gravity inverse matter pressure environment.
I add my unsolicited vote to beg you to return making more videos. Your style is unique and very entertaining. I understand that having some videos with low views could be disheartening. But this not the real reason to make these videos in the first place… Right? Please come back! We really miss you!
Now draw a perfect circle on a pixel display with no gaps and no overlapping points, using only integer addition and subtraction. I was given the algorithm with no comments. It took me months to figure out how it worked.
He understood the creepy reality of a dystopian future with computer access being restricted and imposed on everyone. You are a good citizen if you submit to your chip and obey it.
I guess my country sticking to the paper ballot (filled up like a multiple choice exam with pentel pen) that is scanned with a reciept to check if your vote was counted properly is a good decision
i cringed through the whole way with these "puns" but i guess it was informative in some way... although there are slight discrepancies, because the lights were already precalculated, and the map was using the lookup table to render that. it's not so much a lie but a convenient emulation