this post was submitted on 30 Jul 2023
62 points (91.9% liked)

Programming

17398 readers
94 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

I've never used D but this really makes me want to give it a shot. Did anyone try it, and would you recommend using it?

you are viewing a single comment's thread
view the rest of the comments
[–] ImpossibleRubiksCube@programming.dev 12 points 1 year ago (1 children)

D is an incredibly fun language with a reasonable syntax and considerable support for a wide variety of programming paradigms (procedural, object oriented, functional...), while maintaining binary interface compatibility with C and C++. That makes it extremely versatile.

It is the perfect pet language. The only reason it was never more widely adopted is the quizzical early decision by its makers (Mars) to keep the reference compiler closed source. There an open source compiler too, and it's good, but it's effectively black boxing. So, pet language is where the buck stopped, for better or worse.

[–] jim_stark@programming.dev 6 points 1 year ago (2 children)

reference compiler closed source

Is it still closed source? What is the reason?!

[–] cmeerw@programming.dev 6 points 1 year ago (1 children)

I think it is Open Source now, see https://github.com/dlang/dmd

AFAIK the backend is based on the Zortech C/C++ backend and Walter Bright had to get permission from Symantec to relicence as Open Source.

[–] jim_stark@programming.dev 1 points 1 year ago

I see, makes sense.

[–] ImpossibleRubiksCube@programming.dev 2 points 1 year ago (1 children)

No idea what the reason was, likely misunderstanding from upper management. I'm not sure going open would make much of a difference at this point

[–] jim_stark@programming.dev 3 points 1 year ago (1 children)

Yeah, C# and Rust, in their own ways, pretty much covered what D lang set out to do.

[–] ImpossibleRubiksCube@programming.dev 1 points 1 year ago* (last edited 1 year ago)

C# was the solution, we didn't yet know that we needed, to Java.