matsadler / magnus

Ruby bindings for Rust. Write Ruby extension gems in Rust, or call Ruby from Rust.
https://docs.rs/magnus/latest/magnus/
MIT License
682 stars 35 forks source link

Integration with Rust futures? #112

Open sxlijin opened 4 months ago

sxlijin commented 4 months ago

There's not a lot online about this, so I'm guessing discussion about this has primarily happened in-person, over email, Slack/Discord, or other non-discoverable channels, and I'd like to gather information about this here.

Approaches I'm aware of:

@antstorm has implemented this for temporal.io, using a callback loop and a callback that enqueues events

@ianks with rb-sys has implemented "most of a working fiber scheduler with tokio" but there were performance problems with it and he suspects that mio may be necessary