|
|
|
|
|
by nine_k
1990 days ago
|
|
With all the CVEs we see every month due to what can be only called design flaws in C, I have a hard time saying that C did fine for last 30 years. For C+=1, I'd look at Zig; it unfortunately lacks the excellent corporate support that Go enjoys. To me, Go looks much like early Java, only with a much better concurrency and saner "OOP". If anything, generics made Java better in many ways, without sacrificing performance or usability. It took 7 years for Java; it's going to take closer to 10 years for Go, bur better late than never. |
|
We can argue endlessly about which metrics of success are most important.
Zig looks cool. I've seen it mentioned a few times over the years. Looks like manual memory management is the default, yeah? That's important IMO if you're really trying to replace C. Rust is great but I just can't iterate fast enough (yet). Does Zig offer an optional GC?
EDIT: Also I never said Go is a good C replacement. But I'm finding it useful for some of those tasks and suspect it will be less useful for them down the road.