Remix.run Logo
The Rust React Compiler is now native in Vite(blog.master.dev)
68 points by acusti 3 hours ago | 12 comments
adzm 2 hours ago | parent | next [-]

No more babel in my compilation pipeline, yay!

syspec 2 hours ago | parent | prev | next [-]

Does this work with reacts fancy new compiler that is meant to optimize away various hooks?

ownagefool 2 hours ago | parent [-]

If it wasn't obvious from the article, this is an implementation in the same thing in rust, ergo significantly faster. This was enabled, I presume, by the upstream react introducing code a rust version in source ( but they don't produce a standard binary last I checked )

glouwbug 2 hours ago | parent | prev [-]

They should rewrite it in rust

VertanaNinjai an hour ago | parent [-]

As funny as this is I sometimes wonder about that crowd. Assuming the ecosystem at large flips and most software is now written in Rust what will the “rewrite it in Rust” crowd move to? Will they be satisfied for the most part or does it morph into “now rewrite in $latest_rust”?

ablob 44 minutes ago | parent | next [-]

I think the crowd will split into those who just cared about it being rust and those who wanted some kind of leverage to tempt others into doing something. The former crowd will cease being, while the latter looks for something new to push.

I believe that one does not need to be overly concerned here. As with most things you will never satisfy zealots so it is sufficient to reconsider every once in a while when the status quo changed enough to warrant the effort (i.e. the actual arguments change).

It is always a choice to participate in these "culture wars" or whatever you want to call this. If you can stick to a decision you can limit the impact quite a bit, I've come to realize.

anp 38 minutes ago | parent [-]

I've never been someone to tell others to rewrite in Rust but I am a huge fan of the language and have in fact rewritten a lot of things in Rust. I'd be happy for another programming language to excite me as much as Rust has for the last 10 years, and then maybe I'd join that evangelism club instead :). Not sure how PL evolution is going to go in an era of coding agents though, very curious how that'll play out.

steveklabnik 31 minutes ago | parent | prev | next [-]

Because it became a meme virtually everyone who says this are actually joking and not serious.

They'll move on to whatever the next meme is.

chmod775 an hour ago | parent | prev | next [-]

You will always have someone say "you should rewrite it in x", but it's rare that something carves out so much ground on the Pareto front you'll get a crowd.

dhbradshaw an hour ago | parent | prev | next [-]

I'd argue for moonbit -- faster compile times, almost as fast, smaller wasm artifacts and like lean can have proof of correctness built in.

wldcordeiro an hour ago | parent | prev | next [-]

I think once you have it in Rust the next ask is using no "unsafe" code from that crowd.

MBCook 44 minutes ago | parent | prev [-]

Maybe they’ll go back to “year of the Linux desktop”