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

  • Swedneck@discuss.tchncs.de
    link
    fedilink
    arrow-up
    107
    arrow-down
    2
    ·
    8 months ago

    missing the stage of C where it’s all incomprehensible bitfucking with comments like “this works, i do not know why it works, do not touch this”

      • PlexSheep@feddit.de
        link
        fedilink
        arrow-up
        18
        ·
        8 months ago

        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.

        • mindbleach@sh.itjust.works
          link
          fedilink
          arrow-up
          11
          ·
          8 months ago

          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@kbin.social
            link
            fedilink
            arrow-up
            6
            ·
            8 months ago

            The most important skill in game development is cheating.

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

        • sheepishly@kbin.social
          link
          fedilink
          arrow-up
          8
          ·
          8 months ago

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