News for hackers. Stuff that matters.
Re:Features of D That I Love by Zardoz84 on Thursday July 03, 2025 @04:18AM (#44452829)
Part of the problem it's trying to do too many things in too many fronts. They try to implement a borrow-checker a la Rust. But feels very poorly compared against the Rust version. It haves a "optional" GC, but it's a subpar GC. And lacks a way to use alternative GCs.

And funny, C++ has been copying many features that DLang have for many time ago. Beginning with the type inference (ie using "auto" to declare vars). And now, contractual programing and static reflection.

I really loved the language, but it's very sad that never manages to take off and become more popular and well maintained.

Re:Features of D That I Love by pjmlp on Thursday July 03, 2025 @08:19AM (#44454248)
That has been the main problem from my point of view, too much pivoting looking for the right crowd, without finalizing what was done before.

And while some features in other languages might have seen an implementation first in D, claiming first to the finish line as it usually comes up, even on this thread, hardly does anything for language adoption.

On the contrary, it is one reason less leave those languages, as eventually they get the features, and already have the ecosystem.

Re:Features of D That I Love by WalterBright on Friday July 04, 2025 @11:40AM (#44465480)
If you don't mind waiting 10 years, sure!
Re:Features of D That I Love by pjmlp on Friday July 04, 2025 @03:16PM (#44467120)
I have been waiting for a good story how to sell D for adoption, since Andrei published his book.

Most of the stuff that interested me back in 2007, is now available across in C#, F#, JVM languages, Swift, OCaml, Haskell, with a better ecosystem and IDE tooling.

And then there is C++26 and Rust 2024.

You achieved a lot as language designer, but it is still not clear how the community would keep the language going forward in lets say 10 years from now.

Re:Features of D That I Love by gpderetta on Thursday July 03, 2025 @12:18PM (#44456604)
> Beginning with the type inference (ie using "auto" to declare vars).

GCC (and possibly other compilers) had typeof in the '90s well before D was first released. Macros in the form:

   #define    TYPEOF(name, expr) typeof(expr) name = expr
Were widely in use since then.

I'm sure that C++ borrowed concepts from D, but type deduction (not inference BTW) is not one of them.

Re:Features of D That I Love by WalterBright on Friday July 04, 2025 @11:41AM (#44465493)
Extensions are not part of the language, which means that programmers tend to avoid using them.
Re:Features of D That I Love by WalterBright on Friday July 04, 2025 @11:39AM (#44465478)
> But feels very poorly compared against the Rust version.

It's a prototype to gauge the interest in having a borrow checker in the language. I did not continue with it because the interest is not there.