4 ms·
Higher dimensional things are trivial in other languages while they are nonobvious in Rust. For example, this week I was working on a mechanism for one request
by always_good 9y ago
Higher dimensional things are trivial in other languages while they are nonobvious in Rust.
For example, this week I was working on a mechanism for one request to start a future and then all further requests for that resource to await that same future.
I implemented it in less than 5 minutes in Node by just storing Promises in a map. But I'm still not sure of the ideal solution in Rust. It's definitely outside of my familiarity zone.
But what I'm finding over the months is that my routine Rust code is pretty fast now once I've run the gauntlet of experiencing the same compiler errors over and over. And when I reach for Rust instead of Node or Python, it takes longer but my executable is 3mb and it's much faster without much additional expense.
Also, it's tough to do async work in an ecosystem that isn't async-everything, something easy to take for granted in Node and Go.