9 comments

[ 1.1 ms ] story [ 30.1 ms ] thread
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.

Wow, 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.
Pretty sure I’ve done similar, combined a Rust multi-threaded emulator with single threaded SystemC simulation
Seems like objc2 crate uses same approach (MainThreadMarker).
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.