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.
[ Parent
| on HN ]
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++).
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.
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.