Skip to content

Comment on Go vs. Rust: Writing a CLI Toolparent

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.