Extremely interested in the idea of supporting direct spawn of async
rust tasks (maybe in a diff thread) in our actor tree and even
further eventually having a rust-native nursery API both for
parallel threads and possibly (with less initial priotiy) async
IO tasks.
Ideally we get to a point where you easily convert some async python
function into a rust equivalent without a ton of effort and allow more
or less running rust based parallel tasks in-actor-tree B)
Extremely interested in the idea of supporting direct spawn of async
rust
tasks (maybe in a diff thread) in our actor tree and even further eventually having a rust-native nursery API both for parallel threads and possibly (with less initial priotiy) async IO tasks.Given python and rust seem to be best friends these days i'm thinking this would be a mega killer feature: https://github.com/PyO3/pyo3#examples
Ideally we get to a point where you easily convert some async python function into a rust equivalent without a ton of effort and allow more or less running
rust
based parallel tasks in-actor-tree B)Research launch pad:
there already exists py03 "native" support for
asyncio
which could be a place to start: https://github.com/awestlake87/pyo3-asyncio:infected_asyncio
mode and see how this binding layer works,asyncio
event loop integration https://docs.rs/pyo3-asyncio/latest/pyo3_asyncio/trio
's runtime, which IIRC, njsmith said wouldn't be that bad :surfer:rustpython
scoped threads APIs:
rayon
from abovenursery APIS: https://github.com/nikomatsakis/moro#are-there-other-async-nursery-projects-available-and-how-does-moro-compare
shared mem libs: