Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stefncb
on July 3, 2023
|
parent
|
context
|
favorite
| on:
Problems of C, and how Zig addresses them
Zig has bounds checking built-in. You can decide to remove it if you compile for ReleaseSafe instead of ReleaseFast, but it's always in debug builds.
throwawaymaths
on July 3, 2023
|
next
[–]
Also note that you can compile your entire program in safety checked mode and compile functions with hot loops with release fast
stefncb
on July 4, 2023
|
prev
[–]
I just realized I swapped the two but it's too late. The bounds checks obviously stay in ReleaseSafe, not ReleaseFast.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: