4 ms·
Was looking at Zig for the same reason, manual memory management but less error prone due to "defer", and a design ethos that is very reminiscent of C. Can even
by MrBuddyCasino 6y ago
Was looking at Zig for the same reason, manual memory management but less error prone due to "defer", and a design ethos that is very reminiscent of C. Can even compile C directly! I really, really like the aesthetics of the language, but there is no xtensa backend yet.
Rust might just be a leap too big and can only work in blank-slate scenarios.
- elcritch 6y agoZig seems promising too! But it’s still LLVM based (?), which seems to be a limitation in the embedded world. Nim’s templates/macros are nice for fiddly stuff. Not sure how Zig handles places where compile time macros can make things nice. Yah I figure in ~5 years Rust might be better positioned in embedded work as a goto solution.
- MrBuddyCasino 6y agoIf you like macros, Zig might not be for you. Part of its mission statement: "There is no hidden control flow, no hidden memory allocations, no preprocessor, and no macros."