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

sheepishly
link
fedilink
379M

Real fast inverse square root algorithm hours

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.

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.

sheepishly
link
fedilink
69M

The most important skill in game development is cheating.

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

sheepishly
link
fedilink
89M

I was more thinking of the comments which are pretty much exactly what you said (“incomprehensible bit hacks” followed by “what the FUCK?”)

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 54 users / day
  • 172 users / week
  • 445 users / month
  • 2.42K users / 6 months
  • 1 subscriber
  • 1.61K Posts
  • 35.6K Comments
  • Modlog