News for hackers. Stuff that matters.
Re:Using Rust in Non-Rust Servers to Improve Performance by aaronblohowiak on Monday October 28, 2024 @11:13AM (#41971853)
Which framework? Do you write sync or async? I’ve AoC’d rust and really liked it but async seems a bit much.
Re:Using Rust in Non-Rust Servers to Improve Performance by dsff3f3f3f on Monday October 28, 2024 @12:14PM (#41972786)
Not the other poster but I moved from Go to Rust and the main packages I use for web services are axum, askama, serde and sqlx. Tokio and the futures crate are fleshed out enough now that I rarely run into async issues.
Re:Using Rust in Non-Rust Servers to Improve Performance by wtetzner on Monday October 28, 2024 @11:32AM (#41972128)
I have to agree, despite using it a lot, async is the worst part of Rust.

If I had to do some of my projects over again, I'd probably just stick with synchronous Rust and thread pools.

The concept of async isn't that bad, but it's implementation in Rust feels rushed and incomplete.

For a language that puts so much emphasis on compile time checks to avoid runtime footguns, it's way too easy to clog the async runtime with blocking calls and not realize it.

Re:Using Rust in Non-Rust Servers to Improve Performance by tayo42 on Monday October 28, 2024 @11:32AM (#41972127)
If he was OK with python performance limitations the rust without async is more then enough