Remix.run Logo
awestroke 7 hours ago

I recently rewrote one of my rails apps in rust. Used Claude 4.5 Opus heavily and it was very fast.

One thing that's struck me with the new code is that's its so easy to follow compared to rails. It's like two different extremes on the implicit-explicit spectrum. Yet it's not like I have tons more boilerplate code now, I think I have maybe 10 or 20% more SLOC than before.

I'll probably do this with my other rails apps as well.

azuanrb 6 hours ago | parent | next [-]

You're comparing a language with a framework. Better comparison would be Rust (with your choices of libraries) vs Ruby (with your choices of libraries).

If you want to compare with Rails, you need to compare with battery included Rust frameworks with equivalent batteries and convention.

awestroke 6 hours ago | parent [-]

I literally rewrote the whole app, so I think I have a pretty great basis for comparison

losteric 7 hours ago | parent | prev | next [-]

Was your app converted to use some Rust framework, or just Rust?

awestroke 7 hours ago | parent [-]

I use Axum+SQLx and for html templates I use Maud. The plan is to move to Dioxus as a step 2

hu3 6 hours ago | parent | prev [-]

Any language with a half decent typing system would have improved the easiness to follow code around. C#, Go, PHP, TypeScript, etc.

Ruby/Rails is awesome but it's a bit too magical sometimes and, lacking types by default, doesn't help either.