Why does atan2 crash the zig compiler? (SPIR-V only of course) @sphaerophoria
Why does atan2 crash the zig compiler? (SPIR-V only of course)  @sphaerophoria
Uploaded July 2026 | Updated September 2026, 1 week ago
To clarify, this type of behavior is expected on an incomplete implementation of a niche target. Don't be weird.

Please consider supporting. This content WILL end some day, but every dollar I make pushes that day further out

Join on youtube for happy hour vods youtube.com/channel/UCXzL31BCxf8En1KT34gSK6g/join
Or on patreon patreon.com/sphaerophoria
Or on twitch twitch.tv/sphaerophoria
Or sponsor me on github (no benefits) github.com/sponsors/sphaerophoria

00:00 Intro
05:10 Compiler crash
49:32 Find and ban invalid codegen
01:39:05 But how do we fix it?
Why does atan2 crash the zig compiler? (SPIR-V only of course)Programmer of 15 years struggles to add lists of numbers (on GPU, using GPU L1 cache)Unit testing RNG output with chi squared testingI dont believe in motivationHacking myself so I dont forget to fclose()Making my own tensorboard from scratch with OpenGLI have no choice but to re-implement steam inputWere back on the window manager :DUsing wikipedia as a movie databaseFinally trying io_uringI taught my computer to play wheres waldo with barcodes - Neural networks from scratchUsing my AI from zig
sphaerophoria |

Why does atan2 crash the zig compiler? (SPIR-V only of course)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER