4 ms·
For me I am working on a side project in Rust and had very few issues, Rust felt quite straight forward up until the point where I had to mess around with async
by myaccountonhn 3y ago
For me I am working on a side project in Rust and had very few issues, Rust felt quite straight forward up until the point where I had to mess around with async. For my domain I need to use a framework that expects you to set up a shared mutable state for the connection pooling in an opinionated way. Suddenly I encountered arc and mutex and very cryptic trait error messages for code doing way too much magic. All I wanted was to share a SQLite connection in an ugly way to get my mvp out but I was dealing with absolutely incomprehensible trait issues.
In general I’ve noticed that there are a lot of code generation modules that can generate very cryptic error messages if you stay clear of their happy paths.
- tayo42 3y agoYou would run into the same issues if you tried to do it with threads and rust too. Any kind of shared resource is a tedious experience, that's basically it's selling point. It is frustrating becasue if you go look for help, people are always condescending about global shared resources like that but there really isn't a better way.