digitalmars.D - D in the KDAB blog: using D as a glue language between C++ and Rust
- Chris J (6/6) Dec 07 2023 Today, I stumbled on a blog post where someone used D as a glue
- Walter Bright (2/8) Dec 07 2023 Lots of fun!
- Walter Bright (2/8) Dec 07 2023 https://x.com/WalterBright/status/1732933729096786020
- Walter Bright (2/8) Dec 07 2023 https://news.ycombinator.com/newest
- zjh (3/6) Dec 07 2023 [chinese
- Dukc (6/12) Dec 08 2023 Wow, doesn't Rust have a name mangling override pragma to do this
- Sergey (6/12) Dec 08 2023 Nice finding! Thanks for sharing.
- Paulo Pinto (3/16) Dec 08 2023 Done,
Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkage functionality to call C++ code and the ability to manually override the name mangling using `pragma(mangle, "…")` to call Rust code. https://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/
Dec 07 2023
On 12/7/2023 11:10 AM, Chris J wrote:Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkage functionality to call C++ code and the ability to manually override the name mangling using `pragma(mangle, "…")` to call Rust code. https://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/Lots of fun!
Dec 07 2023
On 12/7/2023 11:10 AM, Chris J wrote:Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkage functionality to call C++ code and the ability to manually override the name mangling using `pragma(mangle, "…")` to call Rust code. https://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/https://x.com/WalterBright/status/1732933729096786020
Dec 07 2023
On 12/7/2023 11:10 AM, Chris J wrote:Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkage functionality to call C++ code and the ability to manually override the name mangling using `pragma(mangle, "…")` to call Rust code. https://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/https://news.ycombinator.com/newest
Dec 07 2023
On Thursday, 7 December 2023 at 19:10:32 UTC, Chris J wrote:Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkagehttps://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/[chinese version](https://fqbqrr.blog.csdn.net/article/details/134871850)
Dec 07 2023
On Thursday, 7 December 2023 at 19:10:32 UTC, Chris J wrote:Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkage functionality to call C++ code and the ability to manually override the name mangling using `pragma(mangle, "…")` to call Rust code. https://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/Wow, doesn't Rust have a name mangling override pragma to do this in itself? Honestly I think any language would do well to ad that. Of course, even if it'd have it D would still be superior in this regard thanks to `extern(C++)` and ability to use CTFE for the mangled names.
Dec 08 2023
On Thursday, 7 December 2023 at 19:10:32 UTC, Chris J wrote:Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkage functionality to call C++ code and the ability to manually override the name mangling using `pragma(mangle, "…")` to call Rust code. https://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/Nice finding! Thanks for sharing. Someone with Reddit account - can you please post it here: https://www.reddit.com/r/ThePrimeagenReact/ ? It is interesting article and it deserves some more attention. If it will be chosen could be good for D as well
Dec 08 2023
On Friday, 8 December 2023 at 10:18:20 UTC, Sergey wrote:On Thursday, 7 December 2023 at 19:10:32 UTC, Chris J wrote:Done, https://www.reddit.com/r/ThePrimeagenReact/comments/18dk19s/mixing_c_d_and_rust_for_fun_and_profit_part_1/?Today, I stumbled on a blog post where someone used D as a glue language between C++ and Rust, by using the C++ linkage functionality to call C++ code and the ability to manually override the name mangling using `pragma(mangle, "…")` to call Rust code. https://www.kdab.com/mixing-c-and-rust-for-fun-and-profit-part-1/Nice finding! Thanks for sharing. Someone with Reddit account - can you please post it here: https://www.reddit.com/r/ThePrimeagenReact/ ? It is interesting article and it deserves some more attention. If it will be chosen could be good for D as well
Dec 08 2023