by photon_garden · 1y ago · 0 comments
My language of choice is Rust, but I’d go with Gleam in a heartbeat if I:
- Were working on a team with junior engineers
- Building a web app
- On a passion project, or in a business context where the lack of ecosystem etc. wasn’t a concern
For my own projects or with other senior folks, Rust’s complexity is a price you pay once and you reap the rewards forever afterwards. But Gleam’s simplicity would really shine in an organization with a wider range of experience levels.
My biggest complaint besides the obvious ecosystem stuff is that the most popular frontend library leaves something to be desired. It’s SPA-first, which seems like a very strange decision to make in 2025.
It’s not! Lustre is very flexible and can be used in many different ways, including LiveView style server components. It’s not limited to SPA.
This resonated with me. Will use it in the future when I explain why I use Rust for almost everything.
It won’t be as elegant as Lustre, but I figure it may be helpful for adoption if React/Vue/Svelte can be used on the front end.
With the server-side routing, Inertia doesn’t feel quite so SPA-first.
Then one could write performance critical sections in rust and interface with it more easily.