News for hackers. Stuff that matters.
Re:Jai Language Primer (2017) by lhorie on Wednesday January 20, 2021 @04:58PM (#25852540)
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?

Re:Jai Language Primer (2017) by cassepipe on Wednesday January 20, 2021 @06:32PM (#25853327)
Well 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...)
Re:Jai Language Primer (2017) by mhh__ on Thursday January 21, 2021 @07:12AM (#25858074)
The 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).

Re:Jai Language Primer (2017) by failrate on Wednesday January 20, 2021 @05:04PM (#25852599)
The one thing I remember surprising me was that the build scripts were also jai.
Re:Jai Language Primer (2017) by mhh__ on Thursday January 21, 2021 @07:15AM (#25858100)
The 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

Re:Jai Language Primer (2017) by cassepipe on Wednesday January 20, 2021 @06:30PM (#25853305)
I think that is also the case for Zig. The build system is a zig file.