Hacker News new | ask | show | jobs
by 10000truths 16 days ago
Zig traps arithmetic overflow/underflow when compiling in ReleaseSafe.
1 comments

Zig fans like to bring up ReleaseSafe as if it’s a mode anyone runs anything in production in. I’m pretty sure the largest Zig projects (TigerBeetle and Ghostty) run ReleaseFast.
We’ve always run ReleaseSafe at TigerBeetle. It’s plenty fast. (And we run with 6K+ assertions also enabled in production.)
I can't speak for Zig fans, but what you mention has nothing to do with the programming language and everything to do with maintainer preference. Nothing stops you from cloning an open-source project and building from source with your own preferred optimization level.