4 ms·
We interfaced single-threaded C++ with multi-threaded Rust
- pjmlp 8mo agoIt would be more interesting if it was on how to combine C++20 co-routines with Rust async-await models. Combining single-threaded C++ with multi-threaded languages has been a thing for quite some time.
- rockwotj 8mo agoI have done this integrating wasmtime into a a C++ seastar.io application. I’ll have to write a post about it
- foota 8mo agoWow, I wouldn't have thought that it would be possible to do this (at least, not ergonomically, although now that you mention it I guess I don't see why not). That would be amazing to see.
- chris_money202 8mo agoPretty sure I’ve done similar, combined a Rust multi-threaded emulator with single threaded SystemC simulation
- iamoutoftouch 8mo agodo tell!
- yuryk 8mo agoSeems like objc2 crate uses same approach (MainThreadMarker).
- mchlgibs 8mo agoI'm the author. Thanks for the interest; I've never had a post on Hacker News before. I'm happy to answer any questions.
- wsx-antithesis 8mo agoHi, I (Shuxian) worked with Michael on this project. Happy to answer any questions! We'll also post a followup next week on formally verifying our unsafe primitives in the style of RustBelt (https://plv.mpi-sws.org/rustbelt https://plv.mpi-sws.org/rustbelt), if that interests you.
- wsx-antithesis 7mo agoThe sequel is now up at https://antithesis.com/blog/2026/rust_formal_methods/ https://antithesis.com/blog/2026/rust_formal_methods/