News for hackers. Stuff that matters.
Re:Metaprogramming is less fun in D by jackmott on Friday April 21, 2017 @12:03PM (#14166740)
D is GC optional, so that makes it pretty different than Java and C# and Go.

It also compiles to native exes as the normal procedure. You can do that with Java / C# in special cases though.

D is much easier to pick up than Rust. Rust seems to take the runtime overhead of Java/C# and put it into your brain overhead during typing time.

D has very fast compile times, Rust has very slow compile times.

Re:Metaprogramming is less fun in D by ruleabidinguser on Friday April 21, 2017 @01:22PM (#14167451)
I would like to use D if I could dump the GC, but it appears they don't make that easy, even though as you say it is possible. For me smart pointers make memory management seem not so daunting.
Re:Metaprogramming is less fun in D by bachmeier on Friday April 21, 2017 @02:12PM (#14167871)
It's actually pretty easy. Just mark your code as @nogc, and it won't compile if there's anything that could potentially trigger a garbage collection. You obviously lose some functionality this way, but there's nothing difficult about avoiding the GC.
Re:Metaprogramming is less fun in D by mhh__ on Friday April 21, 2017 @03:30PM (#14168623)
There are smart pointer libaries, and also implementing ref counting is much more straightforward than in C++ because the type system knows whether data is being shared or not.

I should add that the GC actually works perfectly fine for normal work, it justs not up to the competition (Partly because of having to work with traditional dynamic memory).