Re:Feather: Feather: A web framework that skips Rust's async...
by serial_dev on Sunday May 04, 2025 @02:10PM
(#43888330)
Not a Rust expert by any means, but what does it bring that there is no async in the framework? Wouldn’t most of the libraries use async anyway, connecting to queues, databases, external services via HTTP? It’s hard to imagine a backend that still won’t need async, so I wonder if it is even worth trying… (please do let me know if it is)
[ Parent
| on HN ]
Re:Feather: Feather: A web framework that skips Rust's async...
by dochtman on Sunday May 04, 2025 @02:18PM
(#43888394)
Async is a language feature to enable scalability, but an alternative approach is just to spawn a bunch of threads and block threads when waiting for I/O to happen. That is the approach used by this framework.
Re:Feather: Feather: A web framework that skips Rust's async...
by wint3rmute on Sunday May 04, 2025 @02:36PM
(#43888507)
This is especially true for newcomers, but async Rust has significant mental overhead. You quickly run into things like the Pin marker, Tokio runtime, complex compiler errors related to ownership, basically each "normal" component of the language get some additional complexity due to async.
If you're new to Rust and you want to "just make a web app", the view at the async Rust landscape could be a turnoff for novices. I speak from experience, having started a couple Rust projects in Python/C++ teams. After writing in Rust for 3+ years I can navigate async contepts without troubles, but for someone coming from the usual popular languages (Python/C#/Java/C++), there are simply too many new things to learn when jumping straight into an async Rust codebase.
IMO this framework is going in a good direction, assuming that it will only be used for small/educational projects.
For the async Rust landscape, things are improving every year, IMO we're around 5-10 years until we get tooling which will feel intuitive to complete newcomers.
Re:Feather: Feather: A web framework that skips Rust's async...
by sodality2 on Sunday May 04, 2025 @02:31PM
(#43888470)
A large application, maybe, but sometimes you have a very small scope application that won't otherwise use async, so you value binary size, compile time, etc over theoretical XXX ops/sec
Re:Feather: Feather: A web framework that skips Rust's async...
by roude404 on Sunday May 04, 2025 @02:18PM
(#43888390)
It seems it goes more in the direction easy to use and quick setup of small endpoints and if you need some more you could integrate the tokio runtime (or any other async runtime) on top of it.
Re:Feather: Feather: A web framework that skips Rust's async...
by watermelon0 on Sunday May 04, 2025 @02:26PM
(#43888438)
In most cases, you have both an async and blocking/sync approach, sometimes even in the same library.