Skip to content

Comment on Show HN: Zedis – A Redis clone I'm writing in Zigparent

Comments

checked array bounds is memory safety.

Runtime bounds checking, but only in Debug/ReleaseSafe builds, besides there are many other types of memory safety issues left unaddressed.

Runtime bounds checking

Compile time slice bounds checking is generally not a thing, since the length is not known until runtime. Its still safe.

but only in Debug/ReleaseSafe builds

So, the default build modes?

Istg zig should just eliminate releasefast and releasesmall and force you to opt in on a function by function basis.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.