←back to thread

228 points Retro_Dev | 4 comments | | HN request time: 0.714s | source
Show context
blippage ◴[] No.44462083[source]
I tried Zig some time ago to use with microcontrollers. It has a generator for the pins, which was nice. But subsequent versions broke as Zig changed syntax. So I started going down the rabbit-hole (it needed a newer version of llvm, for example) until I eventually decided that the game wasn't worth the candle.

The fact that another breaking change has been introduced confirms my suspicion that Zig is not ready for primetime.

My conclusion is to just use C. For low-level programming it's very hard to improve on C. There is not likely to be any killer feature that some other contender will allow you to write the same code in a fifth of the lines nor make the code any more understandable.

Yes, C may have its quirky behaviour that people gnash their teeth over. But ultimately, it's not that bad.

If you want to use a better C, use C++. C++ is perfectly fine for using with microcontrollers, for example. Now get back to work!

replies(10): >>44462098 #>>44462163 #>>44462194 #>>44462322 #>>44462409 #>>44462430 #>>44462780 #>>44463127 #>>44463517 #>>44464834 #
overflyer ◴[] No.44462163[source]
Dude Zig is clearly pre 1.0. It can introduce breaking changes with every commit and rightfully so. I mean d'oh it's Not ready for Prime Time.
replies(1): >>44462293 #
1. hencoappel ◴[] No.44462293[source]
Zig uses ZeroVer so don't expect it to ever hit 1.0.

https://0ver.org/

replies(2): >>44462331 #>>44462364 #
2. bigstrat2003 ◴[] No.44462331[source]
Is that versioning site supposed to be some kind of joke? I can't really figure out if they are joking or serious - the tone comes off as joking, but it could be read as serious too.
replies(1): >>44462365 #
3. ◴[] No.44462364[source]
4. dtech ◴[] No.44462365[source]
I guess you're being Poe's lawwed but it's definitely a joke