3 ms·
Interesting: "Instead of going all-in on Rust, we decided to keep the network handling in node.js for now. The node.js process creates a separate Rust child pr
by fulafel 9y ago
Interesting:
"Instead of going all-in on Rust, we decided to keep the network handling in node.js for now. The node.js process creates a separate Rust child process per document and communicates with it using a message-based protocol over stdin and stdout. All network traffic is passed between processes using these messages."
- tedmielczarek 9y agoThis is not entirely surprising, Rust's async I/O story isn't settled yet. tokio and futures exist, but there's some churn there that means it's a bit difficult to deal with at the moment. An RFC for async/await in Rust has been proposed and it's likely that that will be implemented this year, and then tokio should be reworked atop that, which should provide a good basis for things moving forward. It'll take some time for the crates ecosystem to settle around that, though.
- cakoose 9y agoYeah, waiting for Rust's async/await to mature is probably a good idea. But I'm not sure why they didn't just use threaded I/O instead.
- fulafel 9y agoSounds like they use processes for fault isolation.