3 ms·
Rust is a pretty complex language. It's more of a C++ replacement. Zig is a C replacement: a dead simple language for low-level development, partly disregardin
by audunw 9y ago
Rust is a pretty complex language. It's more of a C++ replacement.
Zig is a C replacement: a dead simple language for low-level development, partly disregarding memory safety (there seems to be some improvements, but only where it doesn't make the language more complex).
Could you ever imagine writing something like Tiny C-Compiler for Rust? C is like fancy assembly. Zig seems to fit into that niche quite well, but doing it in a more disciplined and modern way.
- catnaroek 9y agoEvery non-memory-safe language ought to come with a formal semantics. If the type checker can't semi-decide whether the program has a well-defined meaning, at least you ought to have the tools to do it on your own. (This isn't a Zig-specific complaint. I've made exactly the same remark about unsafe Rust in the past.) I'm afraid that the illusion of simplicity would be lost in the formalization process.