Comment

Comment by kristoff_it

> Should I take that to mean there is an unsafe release mode without the bounds check?

Yes, it's called ReleaseFast.

> It's 2023; I think we can afford a single branch to avoid UB, even in release mode.

Zig has 3 release modes: ReleaseSafe, ReleaseFast, ReleaseSmall. If you want the safety checks, just use the first.

It might even be $currentYear, but many of the latest AAA games still don't always run at more than 60fps on my fairly powerful machine and I sincerely hope they were built with all the optimizations enabled.

parent kristoff_it 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton