News for hackers. Stuff that matters.
Re:Zig is becoming more production-worthy by slimsag on Tuesday July 05, 2022 @01:38AM (#31984702)
Check out[0] and the Zig Embedded Group[1] - it's not well publicized right now, but there's actually quite a lot of work going on here & Zig seems quite suitable for embedded compared to some other languages.

> The standard library can be used unmodified on freestanding targets thanks to explicit allocation, comptime is extremely useful for things like precalculated lookup tables, and the unfinished C backend (part of the stage 2 compiler) means we’ll be able to target exotic architectures that LLVM can’t.

[0] https://allyourcodebase.com/embedded/

[1] https://github.com/ZigEmbeddedGroup

Re:Zig is becoming more production-worthy by dleslie on Tuesday July 05, 2022 @02:21AM (#31984968)
Still no m68k, sh2, etc?
Re:Zig is becoming more production-worthy by Toaster-King on Tuesday July 05, 2022 @06:19AM (#31986432)
Both these arch's are contingent on LLVM support, as there is no self-hosted backend (yet). m68k support was merged in LLVM 13, but I haven't seen anyone use it with Zig.