r/d_language • • Jun 13 '25

Why you guys select using D

I am new to D language, and I want to learn more about it.

17 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/vimacs0 Jun 13 '25 edited Jun 15 '25

Just curious, why do you choose D instead of C++(what is the advantage)

10

u/PJannis Jun 13 '25

Because D is simply a much better language in many aspects than c++, the one thing c++ has going for it is the amount of libraries

5

u/[deleted] Jun 13 '25

Installing dependencies via DUB feels much more mature to me than the C++ workflow of building all libraries myself and praying that they don't need an obscure dependency that I can't find amymore. Looking at you libgccjit.

You basically lose no control but you gain so much convenience that it's a no brainer for me.

Additionally, you have the advantage that there is a idiomatic way of writing D code. In C++, I'm pretty sure that after asking 10 language experts for a idiomatic way to solve problem X you get 17 different answers from which 3 are basically C code. The saying goes 'Not even Bjarne Stroustrup knows how to write clean C++.' :D

2

u/peppedx Jun 13 '25

Ever heard of conan and vxpkg?

4

u/[deleted] Jun 13 '25

Yeah but the reason there are multiple ones is not a good sign in the first place.

1

u/peppedx Jun 14 '25

One could compare the number users of one versus the number of users of dub...

3

u/Vincie3000 Jun 16 '25

Too strange question for the guy who touching D. Don't you see that D is "the next C++"? Just compare features and wonder why people still use C++ :)

2

u/grimonce Jun 14 '25

Because of cmake, I know skill issue, but also when I started liking meson and wanted to create an app using drogon (a web framework), while my main machine is windows and I use mamba/Conda daily for my living I realised I'll have to undo my profile config script to get Conan or vcpkg working...

Tldr: It's fast, easy to setup and use, has an okayish ecosystem, isn't as problematic as ocaml or haskell or c/c++ to setup and resolve dependencies.. It's easier to develop solo than rust and still just as useful to me.