It seems to be a “better C”.
Isn’t that what D / Zig try to do? What’s the advantage?
It seems to be a “better C”.
Isn’t that what D / Zig try to do? What’s the advantage?
D is closer to C++ than C, in my opinion.
I suspect that Jai was an inspiration for Zig and Odin.
Many developers in gamedev circles are still using C or orthodox C++ (C++ without most of the bullshit) but are frustrated by many features and gaps.
Short compilation time is one of the big goals, as it is crucial for fast iteration.
The goal is simply to have a powerful low-level/system language that is enjoyable to use. Or at least more enjoyable than C++. (the de-facto standard)
I’m curious if the gaming industry will switch languages, it feels like with the current game engines that it’s heavily entrenched in C and C++. Feels like something like Carbon has the best chance to break in.
But I think there is an opportunity at this point in time.
I work on CorsixTH as a hobby which is also c++ and lua.
Also since Burst got mature, many C++ modules are slowly being rewritten in C#/Burst subset.
In terms of what the language allows you to do, yes. However, if you're a C programmer, you can pretty much just keep writing the same code you've always written (minus the preprocessor, thankfully). You can even compile C code with the D compiler and call those functions from your D code without doing anything further. That's definitely not the case with C++.
D is D.
You only need to compare how C++ and D treat a class type, and you know straight away they are miles apart (I prefer C++ in this regard).
D has a subset, and that subset is more like C - pretty much cause that subset is C. That can be interesting to use, since it's like C with modules.
But don't be fooled. D is not like C++.
I wish people would stop saying as such, cause it's not at all true.
As for classes, just pretend you are using structs in C++, and use structs in D.
I suppose if the development of Jai was made more in the open/public, Odin would probably not have existed.
That said, I'm glad Odin exists.
I'd put C++ as being between C and D, as D leaves a lot of things behind like the preprocessor.
Nor does D have a concept of C++ friend.
So even when it comes to classes, C++ and D are miles apart.
It has worked well from the beginning, it is not a mistake.
https://www.twitch.tv/j_blow/videos?filter=archives&sort=tim... : this is jai's author livestreaming language development, most up-to-date
https://www.youtube.com/playlist?list=PLmV5I2fxaiCKfxMBrNsU1... : a cureated subset of twitch videos, possibly outdated info
https://github.com/BSVino/JaiPrimer/blob/master/JaiPrimer.md : a summary of jai based on the above curated videos, possibly outdated