Hacker News new | ask | show | jobs
by elephant_talk 2148 days ago
Great comparison, but I’m sad that D lost out in the popularity wars. Talk about a versatile workhorse that is appropriate for 90% of (non-GUI) tasks.

D is a valid competitor of Rust, that just happens to smash Go in the process. All the ergonomics of a high level language like c#, decent (toggleable) garbage collector, the ability to write all your scripts in it... the list goes on.

It lacks options in the editor and tooling department (although VS Code support is great), but that comes with community size.

1 comments

D also has LLVM and GCC back ends so you can target every architecture.

Other things it has over go:

Generics, inline assembly, kernel threads, and great interopt with C/C++.

I've not looked into D yet, but not having a GCC or LLVM backend is imho not necessarily an advantage, and in many cases even a disadvantage. The simple toolchain is one of the reasons I quite like Go...
How is the compilation speed - instant (close to Go), seconds (like C# or Java), something longer (like C++, Rust)? Sorry, I have not used D extensively.
> instant (close to Go), seconds (like C# or Java),

golang compilation is about the same speed, if not slower than Java or C#. Especially for larger projects.

It depends on your backend. Dmd is fast but it doesn't optimize as much as LDC or GDC iirc.

Here's an old thread:

https://forum.dlang.org/thread/hpsps2$2lqp$1@digitalmars.com...