2 comments

[ 2.4 ms ] story [ 43.7 ms ] thread
D is a programming language that has been around since 2001. Although it is not source compatible with C++, it is similar to C++. I personally like D for its intuitive syntax and great features, but for gluing Rust and C++ together, D stands out for two reasons: extern(C++) and pragma(mangle, "foo").
> For that reason, I created a proof-of-concept tool called polyglot that can scan C++ code and generate wrappers for use from Rust and D.

That's just as interesting, IMO. I had been expecting some sort of bespoke Makefile that hacked together a bunch of programs together.