It is the perfect language, don't sleep on it!
It is the perfect language, don't sleep on it!
Zig aims to be a C replacement from the start, including being a much better toolchain for cross-compiling C code than any other C compiler.
For embedded development, which is what is relevant to me, I never found D a good option. If that has changed they need to work on the marketing.
As an object-oriented garbage collected language with various nice features, I don't see what sets it significantly apart from C# anymore. Well, you can compile proper binaries. But dotnet core interpreters seems to be spreading on our Linux boxes, so then being able to run the same .exe in Linux and Windows is actually a nice thing. Then again I'm not in the market for such a language, so I probably shouldn't comment.
D is a natural evolution of C, fixes its issues (bounds checking and use after free for example), and adds some niceties that makes it pragmatic and polyvalent on top of a solid alternative to MACROs and metaprogramming capabilities
You can do native system development, embedded development, high-level tasks thanks to the optional GC and it can also becomes a scripting language
Something you can't have with Zig, but that's not its goal anyways
Also D is one of the rare languages that maintains its own backend, its own compiler (with optimizations available!) and a community that grows organically without needing major corporations support, it is a true labor of love, and it still gets new features today (ImportC)
Why i stick with D? because of all of the above! it's an unmatched language, that compiles code SUPER FAST!
.. and the syntax remains similar to C/C++; no need to learn new syntax gymnastic
Where with D, it seems to just be sitting in a corner, waiting to be noticed as a C++ replacement. But, people are not checking for D and hearing little about it. There is a long list of interesting languages, but if people don't see an almost immediate ROI for learning them, they will just sit and collect dust. Even if a language gets a bit of publicity, it still takes luck, timing, or corporate interest to move up the ranks.
Imagine you have to wait for hours for your tests to compile and then to run, and then your micro services to compile to deploy a security update for a major CVS
Rust is poorly designed with poor syntax with a poor foundation that can't scale in today day and age
Imagine trying to rewrite GCC in Bourne shell, or trying to rewrite the Linux kernel as Java. The results are not going to "look better" they're going to be awful, these languages are a terrible fit for the problem.
What people keep finding with Rust is that it's a really nice language to write software you might otherwise write in C or C++. The defaults are correct, the tooling is great, the errors are superb, it's just a very nice experience.
Maybe in a couple of years.
No designer, no localization workflows, no integration with UI/UX tooling, assistive tech stuck in the days Sun sponsored the project, no component ecosystem.
That's the thrust of what's being discussed here, rewrites to another language, the__alchemist says they rewrote from C to Rust and it made their code "much cleaner and more explicit", Shadonototra insists this would happen for any language, and I opined (with some practical experience) that this just isn't so.
Distributed computing stuff in Akka and Orleans.
HPC example? Plenty of stuff converted from Fortran/C LEP days into C++ at CERN during LHC rampup.
My little part was in Atlas-TDAQ HLT.
Also what dependency hell? Rust allows multiple versions of the same crate in the same binary so not everybody has to upgrade at the same time. Eliminates 99% of the hell for me. Cargo is awesome.