logoalt Hacker News

We interfaced single-threaded C++ with multi-threaded Rust

98 pointsby lukastyrychtrlast Saturday at 1:45 PM8 commentsview on HN

Comments

wsx-antithesistoday at 3:19 PM

Hi, 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), if that interests you.

pjmlptoday at 8:25 AM

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

show 2 replies
mchlgibstoday at 3:38 PM

I'm the author.

Thanks for the interest; I've never had a post on Hacker News before.

I'm happy to answer any questions.

chris_money202today at 10:58 AM

Pretty sure I’ve done similar, combined a Rust multi-threaded emulator with single threaded SystemC simulation

show 1 reply
yuryktoday at 12:49 PM

Seems like objc2 crate uses same approach (MainThreadMarker).