4 ms·
Zig is amazing. What started as a one-man project is becoming a mature software ecosystem capable of standing on its own as a peer with the major languages.
by lambdaone 2y ago
Zig is amazing. What started as a one-man project is becoming a mature software ecosystem capable of standing on its own as a peer with the major languages.
- squarefoot 2y agoIt appears to me it could become the low level language of choice for small embedded systems in contexts where Lua or MicroPython couldn't fit the bill performance-wise and one wants something higher level than C. Ditto for Nim and Crystal.
- Drygord 2y agoIt’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.
- throwawaymaths 2y ago1/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.
- Drygord 2y ago[dead]
- geon 2y agoOn embedded systems you probably shouldn’t allocate at all.
- akkad33 2y agoWhy is zig amazing? Could you elaborate a bit
- samatman 2y agoI'm all-in on Zig, I think it's the bee's knees. I needed a regex library for another project, and dashed off an acceptable one in a week flat https://github.com/mnemnion/mvzr https://github.com/mnemnion/mvzr The fun part about this is that it can compile, and match, during both comptime and runtime. Will it replace PCRE? No. But nor is it intended to.
- ozgrakkurt 2y agoReally want to get into it when reading these posts. Feels like rust killed my casual programming taste in last years.
- drannex 2y agoBattling the compiler for casual programming is dark souls level dedication, killed my interest to until I started working more in Zig and D.