top | item 43117656

(no title)

ff317 | 1 year ago

https://ziglang.org/ is a solid future C-replacement, IMHO. There's pretty much no downsides and all upsides from a C hacker's perspective. It just hasn't reached 1.0 yet!

discuss

order

flohofwoe|1 year ago

Zig is a nice language, but from a 10000 ft view it's not fundamentally different from C (thankfully) - at least from the CPU's point of view. Any hardware that's a good match for C is also a good match for Zig.

baranul|1 year ago

Not everyone thinks of Zig as a "no downsides and all upsides" C-replacement. First, a lot of people will take issue with it still being in beta and it being unknown how many more years will it take to reach 1.0. There are a bunch of C-replacements, or at least viable alternative languages out there. Both old and new. With more "C-killers" likely to pop-up in the not so distant future.

There are also a lot of people, after doing their Zig language reviews, that don't like it. Muratori (Handmade Hero) won't touch it and there was a recent article that's been covered on here and other sites, where the person explained why they stopped using it (linked below).

https://strongly-typed-thoughts.net/blog/zig-2025 (Zig; what I think after months of using it)

hitekker|1 year ago

IIRC, the blog you linked was written by someone who loves Rust and other languages which have, to say the least, a different philosophy from C and Zig.

I'm not familiar with Muratori's opinion on Zig; do you have a link?