this post was submitted on 12 Mar 2024
1096 points (95.7% liked)

Programmer Humor

32060 readers
853 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Please dont take this seriously guys its just a dumb meme I haven't written a single line of code in half of these languages

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 37 points 6 months ago (4 children)

Real fast inverse square root algorithm hours

[–] [email protected] 18 points 6 months ago (3 children)

That one is not that complicated if you don't think about the math. It's basically just if we interpret the float as int and add a magic number we have a good estimation.

From what I remember at least, it's been a little while since I implemented it.

[–] [email protected] 11 points 6 months ago (1 children)

IIRC also relying on how floating-point is basically scientific notation and the most-significant bits are the exponent.

And most importantly, relying on how a sloppy answer works just fine. The most important skill in game development is cheating.

[–] [email protected] 6 points 6 months ago

The most important skill in game development is cheating.

Makes me feel better about my own game dev attempts lmao.

load more comments (1 replies)
load more comments (1 replies)