Hacker News new | ask | show | jobs
by Drygord 691 days ago
It’s constraints on memory management basically will never allow that to happen.

It lures people in with “use any allocator you want”! Which only appears as freedom of choice when reality it’s locking the user into the same paradigm of memory management that has given C a bad name to begin with.

2 comments

1/3 of the problem with c memory management is null unsafely, not a problem in zig. 1/3 more is conflating arrays with single item pointers. Also not a problem with zig. The only memory management "issue" with zig is lack of temporal memory safety.
On embedded systems you probably shouldn’t allocate at all.