The D programming language is often advertised as a system programming language due to its static typing and metaprogramming capabilities.

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?

@glad_cat@lemmy.sdf.org
link
fedilink
English
32
edit-2
1Y

I like the idea of the D programming language but I think I’ll never use it:

  • There were issues with multiple compilers in the past and I don’t know if it’s solved.
  • I can do the same in Python.
  • No companies I know use it, which means it would not be useful for me. I’m mostly looking for C++20 or Rust jobs, I wouldn’t know where to find D jobs.
  • D was supposed to be an alternative to Java or C++, but those languages have moved fast in the past few years. C++ is easier than ever and still very powerful, Rust exists if I want safety and low-level simplicity, Kotlin is there and it’s fast too. I don’t know where D fits nowadays and which problem it’s trying to solve.

The language looks nice, but it feels like it’s in a weird position around all the other languages.

@gnus_migrate@programming.dev
link
fedilink
English
6
edit-2
1Y

DMD is the reference implementation as far as I know, so I don’t think they have the same issue that C and C++ have with regards to needing to have a standard that pleases everyone. I agree that it has an issue positioning itself relative to other languages, but to me D is the good kind of boring. It has most of what you need, there is very little that is surprising in it, if you find yourself needing to do something, probably D has an easy-ish way of doing it.

I don’t know where D fits nowadays and which problem it’s trying to solve.

My experience has been similar - it’s hard to categorize the language.

As a low-level system language like C, C++, Rust, Zig? The garbage collector makes it a hard sell to other people, even though one can opt out of it.

As a higher-level application language like Java and Go? D frequently gives me a “low-level language” feel, but I am not sure why.

As a scripting language? I feel like its type system works against the rapid-prototyping coding style commonly seen in scripts.

Create a post

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



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog