News for hackers. Stuff that matters.
Re:Faster Command Line Tools in D by chickenfries on Wednesday May 24, 2017 @04:11PM (#14413056)
This is sort of what I'm wondering. Are the compile times as good as Go? Is the GC as good as Go, or do you end up having to do manual management to get similar performance to Go? What is the build tool ecosystem like (I found Go's to be the one part of Go that was not easy to pick up quickly)?
Re:Faster Command Line Tools in D by qznc on Wednesday May 24, 2017 @04:43PM (#14413294)
D can be arbitrarily slow due to its meta programming features. The comparable feature for Go would be some code generation integrated into the build process. This difference makes it hard to compare.

For simple (non-meta-programming) code. Dmd and Go are in the same league with respect to compilation speed.

Btw compilation speed is the main reason for me to put off Rust and C++ and Scala. I cannot stand slow compilers anymore after using D for a while.

Re:Faster Command Line Tools in D by mhh__ on Wednesday May 24, 2017 @04:33PM (#14413217)
D compile times are great for the reference compiler and ok for the other two. The GC is a bit of a mess, but still works well enough for most things thrown at it. D allows "manual management" C or C++ style (#include <memory>).

D's goto build system is called dub, it also handles packages hosted on dlang.org: I know no defects or problems with it, it's pretty good.

Re:Faster Command Line Tools in D by Mister_Snuggles on Wednesday May 24, 2017 @04:29PM (#14413194)
I've dabbled in D occasionally and the compile times are really fast. They're fast enough that they even have a version (rdmd) that basically acts like a scripting language.

See https://dlang.org/rdmd.html

Re:Faster Command Line Tools in D by chickenfries on Wednesday May 24, 2017 @04:36PM (#14413245)
This is awesome, thanks for the link. This is where I'll start when I have a good project to try out D.