Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Using D to glue together C++ and Rust (kdab.com)
7 points by WalterBright on Dec 8, 2023 | hide | past | favorite | 2 comments


> 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.


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").




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: