Daniel Hooper

@danielchooper.bsky.social

Graphics/low-level/game programmer. Made www.principle.app. Former Apple Engineer. https://danielchasehooper.com I post more frequently to my x.com/danielchooper account, if you'd rather follow me there.

Ok, here's the new way I recommend to do type safe generics in C. It's cleaner compared to my old function-pointer-cast approach, avoids the undefined behavior everyone is so paranoid about, and doesn't require typeof()

Bild

As a precursor to public key cryptography, William Jevons said in 1874 "What two numbers multiplied together produce 8616460799? I think it unlikely that anyone but I will ever know" Modern computers find the answer in 0.004s: primes 89681 and 96079 Cool for the time, just needed bigger numbers!

Today I bought an old TV for visual reference. Played Balatro to see how the game's CRT emulation compared to a real Cathode Ray Tube. Sadly details aren't legible on a 13" TV, and the emulation's scanline/phosphor pattern isn't realistic, but it nails the chromatic aberration.

BildBild