←back to thread

488 points levkk | 1 comments | | HN request time: 0.247s | source

Hi everyone,

I've been "funemployed" for a few months and with all that free time and idle hands I wrote a full web framework (think Rails, not Flask) for Rust.

It's boring old MVC, has its own ORM, templates, background jobs, auth, websockets, migrations and more. If you're keen but don't feel like rewriting your app in a different language, Rwf has a WSGI server to run Django (or Flask) inside Rust [1], letting you migrate to Rust at your own pace without disrupting your website.

I think Rust makes a great prototyping and deploy straight to production language. Now it has yet another framework for y'all to play with.

Cheers!

[1] https://levkk.github.io/rwf/migrating-from-python/

Show context
DeathArrow ◴[] No.41923666[source]
I've tried to learn Rust but gave up early. Coming from C#, C/C++, Java, Python, Rust seems weird to me.

And it's not the weirdness that discouraged me, is the slowness of accomplishing one task comparing with languages like C#, Java or Python.

And since I mostly do web development these days, ease of use and productivity is paramount for me. True, with Rust there might be a bit more throughput and speed, but judging from latest web frameworks benchmarks both C# and Java tend to do very well in this regard.

Please, don't read this as a critique of Rust, or me trying to take away such a great accomplishment such as writing a MVC framework from scratch, but more of a "proper tool for the proper job" type of post.

replies(1): >>41925179 #
1. xwowsersx ◴[] No.41925179[source]
Yep, totally get where you're coming from. Many people, myself included, have had a similar experience starting out. To push through the learning curve, you need a strong motivation--whether it's because you have to use the language, you're drawn to the benefits of the type system and safety features, or something else specific to you. If you don't have that kind of motivation, it's totally fine. I didn't at first either, which is why my early attempts to learn the language didn't go far. Like many others, I found that it does take longer to get things done in Rust compared to languages like Java or Python. There's just more upfront thinking required. That's valuable in certain situations, but if you're not clear on why you'd make that tradeoff, there's no strong reason to keep going.