News for hackers. Stuff that matters.
Re:D Programming Language by ceteia on Thursday February 12, 2026 @07:51AM (#46988183)
Do you know of any popular real-time (for some definition of real-time) applications written in D? Like, streaming music or video? C has FFmpeg [0]:

> FFmpeg is proudly written in the C programming language for the highest performance. Other fashionable languages like C++, C#, Rust, Go etc do not meet the needs of FFmpeg.

How does D perform in benchmarks against other programming languages?

[0] https://www.linkedin.com/posts/ffmpeg_ffmpeg-is-proudly-writ...

Re:D Programming Language by arcadia_leak on Thursday February 12, 2026 @08:07AM (#46988363)
D by definition meets the FFmpeg's criteria because it's also a C compiler. Because of that I never wondered how D performs in the benchmarks, as I know for sure that it can give me the performance of C where I need it.
Re:D Programming Language by ceteia on Thursday February 12, 2026 @09:38AM (#46989380)
But then, to use D for performance, would I then have to master both D, C and their interaction? That doesn't seem great. It's like having to learn 2 languages and also how they interact.
Re:D Programming Language by atilaneves on Thursday February 12, 2026 @12:32PM (#46991908)
No, you can just write D. It'll have the same performance as C, if you write C-like code. It might have better performance than C if you use templates (just like in C++).
Re:D Programming Language by ceteia on Thursday February 12, 2026 @12:38PM (#46992051)
But why then did arcadia_leak imply as far as I understood him that C is needed for performance in D?

But D is not included in the benchmarks game at debian.net, which isn't fair to D either as far as I can tell.

Re:D Programming Language by igouy on Thursday February 12, 2026 @03:12PM (#46994438)
Re:D Programming Language by petre on Thursday February 12, 2026 @01:10PM (#46992613)
Not necessarily, you can just call the functions in the C library from D as you'd call them from C or C++ with the added benefit of being able to leverage the D GC, RAII, macros etc.

https://dlang.org/spec/interfaceToC.html

Dunno about the Debian benchmarks game or their build environment. I did my own benchmarks and it was quite easy to write working D code compared to C, C++ or Rust. I used LDC, the LLVM D compliler as opposed to DMD. Dub is not that seamless compared to Cargo but given that you have to set things up manually, it doesn't encourage dependency hell.

If you're writing networking code, Go is probably a better choice than vibe.d.

Re:D Programming Language by nicwilson on Thursday February 12, 2026 @08:19AM (#46988504)
Sociomantic (bought by Dunhumby, now defunct IIRC) had a realtime advertisement business built in D.

Weka have a realtime distributed filesystem written in D, used for ML/HPC workloads.

Re:D Programming Language by ceteia on Thursday February 12, 2026 @09:44AM (#46989462)
> Weka have a realtime distributed filesystem written in D, used for ML/HPC workloads.

This https://github.com/weka ?

Most of the D repositories appear to have very little activity. The Go repositories seem to have more activity.

Re:D Programming Language by schveiguy on Thursday February 12, 2026 @02:56PM (#46994200)
That's the public stuff.

An example of Weka talking about how they use D (there are more examples at this and other dconf presentations): https://www.youtube.com/live/Ou4KUBjr_78?si=bPOs-19gPemQe_ap...

Re:D Programming Language by gavinray on Thursday February 12, 2026 @10:21AM (#46989900)
dplug is a framework for building audio plugins that do realtime signal processing, and its creator has produced several well-sold plugins under the "Auburn Sounds" studio name.

https://github.com/AuburnSounds/Dplug

Re:D Programming Language by ceteia on Thursday February 12, 2026 @11:44AM (#46991041)
Interesting. That might fit the bill, though I am not completely sure.

Do you happen to know why D has not been accepted into the benchmarks games at debian.net? I heard that D developers contributed D code, but that D was never accepted.

Re:D Programming Language by igouy on Thursday February 12, 2026 @01:23PM (#46992826)