Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ngrilly
16 days ago
|
parent
|
context
|
favorite
| on:
Zig Guide
Unlike C, Zig offers spatial memory safety, but it does not offer temporal memory safety.
do_not_redeem
16 days ago
[–]
Zig only has spatial memory safety in limited situations. For example: If you use many-pointers anywhere in your codebase, those places have no spatial memory safety. If you compile in ReleaseFast, you have no spatial memory safety at all.
throwawaymaths
15 days ago
|
parent
[–]
in practice though you should be compiling ReleaseSafe and activating ReleaseFast only in functions where you need it (and that
is
the default)
lukaslalinsky
15 days ago
|
root
|
parent
[–]
Even the Zig compiler is built with ReleaseFast for the published binaries.
throwawaymaths
15 days ago
|
root
|
parent
[–]
not sure what you think the safety parameters for compilation should be.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: