Remix.run Logo
echelon 6 hours ago

A lot of infrastructure is going to be ported to Rust.

It's fantastic for websites and servers, and LLMs are very good at generating it.

The primary downside of Rust is the long compile times, especially with macros (serde, etc.) If that can be fixed, it will be sublime.

tonyedgecombe 6 hours ago | parent | next [-]

I like Rust a lot but I'm not sure it would come very high up my list for web applications.

insanitybit an hour ago | parent | next [-]

At work we're moving almost everything to Rust on our backend. Massively reduced memory usage and significant latency improvements relative to our Typescript codebase. Even for code that you'd expect to work well in TS, a near 1 to 1 port to Rust has considerably improved our best case and, in particular, our worst case latencies. And the memory we get back is huge, we may even drop our instance size down with the 800MB of RAM we're likely going to save.

echelon 5 hours ago | parent | prev [-]

Axum and Actix are phenomenal web frameworks.

The type system and error handling ergonomics make it easier to write defect-free code than, say, Go or Java.

Simple servers are request scoped and mostly feature linear request handling, so you're writing simple vanilla Rust without the complex pointer semantics that you would use for systems programming. The async pieces aren't difficult either.

Serde-annotated structs are the best serialization/deserialization story anywhere. It integrates super ergonomically into Axum and Actix to make writing request handlers a breeze. They're super easy to read, too.

germandiago 5 hours ago | parent | next [-]

> Axum and Actix are phenomenal web frameworks

Compared to what? I see ASP.NET Core and Quarkus very competitive. The virtual threads in Java are great, paired with structured concurrency IMHO.

If I have to go microservice or API, I would choose FastAPI for fastest delivery and if I have to rewrite, Go, unless it is massive scale and scaling horizontally becomes a headache I would not consider Rust/C++ for this.

All the backend, etc. for the company I have been working for is C++ for the fast parts but all tools around are Python (with NiceGUI and Flask mostly).

I think the combination is quite powerful, btw.

tomrod 3 hours ago | parent | prev [-]

Say more. I need me proper rust in the browser.

6 hours ago | parent | prev | next [-]
[deleted]
edukite 5 hours ago | parent | prev [-]

First compile. Every another will be significantly faster since compiler is incremental