Loco wants to be the RoR of the Rust web dev world, and they see to be doing a great job of that!
one thing they don’t have yet though is a Ruby-like language that enables rapid-iteration development.
I’m trying to wrap my head around this Platforms feature. Am I right in thinking that Roc could function very well as Loco’s (functional) alternative to Ruby?
We already have github.com/roc-lang/basic-webserver which is built on top of rust with hyper. Theoretically something similar could be built on top of loco (maybe modeling the loco api better).
The only warning I would give to someone trying to invest into developing a platform on top of Loco for a webserver is that Loco is big on scaffolding out Rust code via code gen. If you want to get its benefits, that big benefit of getting Rust code generated quickly is no longer helpful, unless you update their codegen to generate platform bindings as well.
If you're suggesting that we do something similar to Loco, which is scaffold/generate Roc code from a custom CLI to facilitate faster development, I think that could be a good idea.
Last updated: Jul 06 2025 at 12:14 UTC