4 ms·
I am quite curious about Swift as a "more ergonomic Rust". How would you say it fares for typical backend stuff?
by graboid 2y ago
I am quite curious about Swift as a "more ergonomic Rust". How would you say it fares for typical backend stuff?
- dagmx 2y agoCurrently the state of server side dev is a bit here and there. Vapor is the preferred framework and in general will seem familiar to anyone using any of the Rust server frameworks like actix web etc… A tutorial for reference https://swift.org/getting-started/vapor-web-server/ https://swift.org/getting-started/vapor-web-server/ From an ergonomics perspective, I write less code with Vapor than the equivalent Rust frameworks. It is slower today though but plenty for my needs, with some speed ups coming with Vapor refactors down the pipe. I find that I need to spend less time managing shared resources with concurrency , and my code is clearer while being less verbose in general. Features like the trailing closure syntax are much easier to read for me. I find it closer to how I’d write my Flask servers in the amount of code I need to do myself.
- graboid 2y agoThanks for sharing.