←back to thread

Zig is hard but worth it

(ratfactor.com)
401 points signa11 | 2 comments | | HN request time: 0s | source
Show context
rayiner ◴[] No.36150933[source]
Alternative languages are cool, but I struggle to see the point of a systems programming language that doesn't offer static memory safety in 2023. Rust isn't necessarily the best and final answer--it seems like there is a broad design space to explore for memory-safe systems programming languages. But Zig seems to occupy the same local maximum as C--a relatively simple, non-safe systems language--and doesn't have a killer feature that justifies not just using C.
replies(3): >>36151428 #>>36152916 #>>36155063 #
krupan ◴[] No.36155063[source]
Honest question here (that I have every time I see someone talk about memory safety in 2023), are you aware of Ada/Spark?
replies(1): >>36160731 #
1. Gigachad ◴[] No.36160731[source]
If Ada and Spark solve problems as well or better than Rust and have been around for longer, why have I never seen any program written in them?

I don’t know anything about ada/spark but it seems clear that something has gone terribly wrong for them to not have taken off like Rust has.

replies(1): >>36183051 #
2. krupan ◴[] No.36183051[source]
That doesn't answer my question.

To attempt to answer your question, you might be surprised to learn just how much Ada/spark exists in the world if you go looking. Most of it is not open source. I'm not sure they haven't "taken off like Rust has" because Rust is still very niche, kinda like Ada is