Hacker News new | ask | show | jobs
by vips7L 2148 days ago
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++.

2 comments

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...