Hacker News new | ask | show | jobs
by bachmeier 1663 days ago
You seem to have some familiarity with the language. Nonetheless, you're understating a bit the degree of integration with C. You can also: create a shared library in D and call it trivially from C or any language with a FFI, call C shared libraries with little effort from D, compile a C file and add the .o file to your D program compilation command directly, use dstep to write C bindings for you, and directly #include a C header file with dpp. C is more or less a subset of D at this point. C programmers can stick with what they know but use D for incremental elimination of pain points.

Edit: I added that first sentence because it's awkward to tell the creator of the language that his answer was incomplete.

6 comments

> You seem to have some familiarity with the language.

Well he should, he's the guy who created D.

I've seen that guys name around before, I assume he knows who Walter is and was making a joke.
The other WalterBright is the evil one.
Have you been time travelling recently?

(https://en.m.wikipedia.org/wiki/Primer_(film))

You assume wrong. It's the real guy.
No I mean I've seen bachmeier around the D community. possibly in IRC or the forums.
> You seem to have some familiarity with the language.

Remarkable understatement right there :-P

> You seem to have some familiarity with the language.

Just to note: Walter Bright, whom you replied to, is the creator of D.

> You can also: create a shared library in D and call it trivially from C

this is definitely a killer feature; i can think of very few languages that can do this. i think rust and zig are the only other two that have gotten any sort of popularity, though i would love to hear of any language i've missed.

The person you are replying to created D.
real r/dontyouknowwhoiam moment here
More like r/woosh
Actually, the truth is that Walter is a pretty poor D programmer who isn't that familiar with the language and knows next to nothing about the ecosystem outside dmd.

It wouldn't surprise me if he genuinely didn't know about how dstep and dpp are used.