5 ms·
The page says "Jai could be described as a modern replacement for C" Rust and Zig are other languages that more or less try to be replacements for C. Without h
by lhorie 6y ago
The page says "Jai could be described as a modern replacement for C"
Rust and Zig are other languages that more or less try to be replacements for C. Without having looked too deeply, it feels like Jai could more or less be described as similar to D (with the -betterC flag, perhaps). Does that seem like a reasonable characterization? Is there something specific that Jai brings to the table that those other languages don't?
- failrate 6y agoThe one thing I remember surprising me was that the build scripts were also jai.
- cassepipe 6y agoI think that is also the case for Zig. The build system is a zig file.
- mhh__ 6y agoThe D compiler has a build script called (imaginatively) build.d (rdmd let's you run a single D file in one step), and although it's not super sophisticated, I'm already convinced that makefiles should be considered harmful if the alternative is something in a real language. Not only can you actually read the code, you can also express things in a platform agnostic way rather than the inevitable "which make are you actually" bug report
- cassepipe 6y agoWell D and Rust are more contenders for C++ in terms on how wide their agenda is. D is (unless you opt out ?) GCed, Rust is not but they both pack a lot. Zig on the other truly aims to be a C replacement I believe, trying to avoid it considers its pitfalls (preprocessor, build system, error handling...)
- mhh__ 6y agoThe D GC is written in D so you can opt out as you wish, but the standard library is designed around the GC. That being said if you are in a situation where you cannot use the GC you probably wouldn't need the stdlib all that much anyway (there's a bunch of alternatives available).