A new Rusty web framework by asyncio contributor Nikolay Kim @fafhrd91https://twitter.com/newsycombinator/status/1001931719719751683 …
-
-
-
Replying to @fafhrd91
When we start using Rust in EdgeDB. Do you have any plans to integrate actix with pyo3/tokio?
1 reply 0 retweets 0 likes -
Replying to @1st1
I use pyo3 and actix in production. We run actix in separate thread and send work from python via pyo3. I don’t think tokio event loop is good approach
1 reply 0 retweets 0 likes -
Replying to @fafhrd91
It would be interesting to have tokio event loop in one thread, and actix-web in another. If you can have efficient communication between the two implemented in Rust you'd have the best of both worlds: fast Rust endpoints and not-so-slow Python endpoints.
1 reply 0 retweets 0 likes -
Replying to @1st1
I do t think it is possible to make tokio event loop as fast as uvloop. Thread to thread communication is easy
1 reply 0 retweets 0 likes -
Replying to @fafhrd91
Yeah, I don't think there's anything too special about uvloop, it's just a matter of spending time to profile and micro-optimize things.
1 reply 0 retweets 0 likes -
Threads dispatch in Rust should be easy and fast, but as soon as it touches Python it becomes slower. Maybe the solution is to use a Rust<->Python queue and a self-pipe trick to wake-up Python event loop efficiently (bypassing call_soon_threadsafe and Futures overhead).
1 reply 0 retweets 0 likes
Yes, I thought about similar approach. But I am still on py2.7 :(
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
