4 ms·
Loco. The one-person framework for Rust for side-projects and startups
- block_dagger 3y agoLooks cool!
- outside1234 3y agoNice work!
- lumost 3y agoPretty great! Quick q for you when you update the docs. How does front end rendering work? Much of rust is deep into wasm - are you following that approach? or aiming for pure ssr of templates?
- chubs 3y agoI love how open this is about following Rails' ideas, in that one simple statement it really helps explain how this will work.
- jondot 3y agoAuthor here. Thanks! I think Rails is still great these days. If someone can afford doing Ruby, they should definitely stick to Rails. However if you're into Rust, this is the best I could do that is as similar to Rails but can preserve some of Rust's strictness
- Zezima 3y agoAdditional comments about loco on the r/rust post here: https://www.reddit.com/r/rust/comments/18aokzc/locors_releasing_a_framework_inspired_by_rails_on/ https://www.reddit.com/r/rust/comments/18aokzc/locors_releas...
- aetherspawn 3y agoLooks good, couldn't find any examples of how to render pages in the docs though (SSR or otherwise).
- jmarchello 3y agoI love that the idea of the one-person framework is spreading to other languages and ecosystems. I personally love rails AND Ruby and will stick with them. But there’s always more room for great frameworks like it and they can all be better by learning from one another. Hotwire was heavily inspired by Phoenix, for example.
- beatthatflight 3y agoFor a python developer, what would this be the 'equivalent' of? Flask?
- tomca32 3y agoWell it wants to be like Rails so the Python equivalent is probably Django
- beatthatflight 3y agoCheers. Interesting. From the few python tools I've seen implemented in Rust, you get some serious performance improvements (see ruff), but haven't had to cut any code in it yet. Might be my chance to have a look.
- barelysapient 3y agoLooks cool; needs more examples
- xrd 3y agoHow do you use front end (JavaScript) code with this as a backend? Or, does this somehow build wasm components that can be used client side?
- perryizgr8 3y agoLooks cool, hope to use this or something else like this in the future. Is there anything like this but for web frontend?
- deleted 3y ago[deleted]
- CraftThatBlock 3y agoInteresting. Is the part to render HTML in the browser coming, or is this API-only?
- ofrzeta 3y agoI don't quite get what is a one-person framework.
- Gys 3y agohttps://world.hey.com/dhh/the-one-person-framework-711e6318 https://world.hey.com/dhh/the-one-person-framework-711e6318
- ofrzeta 3y agothanks for the pointer - "A toolkit so powerful that it allows a single individual to create modern applications upon which they might build a competitive business. The way it used to be." I guess it's a bit of a rhetorical device by DHH because I think a "single invididual" could build a competitive business with Laravel/Symfony/Django/... using the included frontend tech or replacing it with Vue/React.
- drekipus 3y agoI'd say Django is also a one person framework, as I use it to build a business. The others probably are too, judging by what's been said by them
- jkmcf 3y agoVery cool! I love how you've implemented models, particularly generating the entity from the database. I did something similar with PHP 20 years ago, but abandoned it when Rails came around.
- jondot 3y agoThanks! We much prefer to have had Rails' activerecord, but activerecord has hundreds of person-years (maybe thousands?). So what we found was the best for the current lifespan of Rust and its ORM ecosystem