Live data from Hacker News

Port React Compiler to Rust

github.com

81–90 of 128 posts

Re: Port React Compiler to Rust

#81
post #30

Earlier quoted context omitted.

> you focus on all the other programming logic Does that actually happen?

For a model, yeah absolutely. You'll spend virtually 0 tokens on memory safety, which means your token budget gets allocated elsewhere. If you wrote a C codebase you'd need to allocate some portion of your budget towards memory safety.

They're not talking about the model, and they're not talking about token budgets.

Re: Port React Compiler to Rust

#82

Earlier quoted context omitted.

For a model, yeah absolutely. You'll spend virtually 0 tokens on memory safety, which means your token budget gets allocated elsewhere. If you wrote a C codebase you'd need to allocate some portion of your budget towards memory safety.

They're not talking about the model, and they're not talking about token budgets.

[deleted]

Re: Port React Compiler to Rust

#83
post #33

After bun [1] this is another high-profile project that was ported to Rust by extensively using LLMs. Very curious to see how these rewrites play out. Is the LLM foundation solid enough to build upon and iterate on? Or does this cause projects to become unmaintainable because no person understands the implementation anymore? [1]: https://news.ycombinator.com/item?id=48132488

I'd love to see Asciidoctor vibe-ported to Rust! Have either of these people detailed their methodology & costs?

I think there's a few Rust ones knocking around, some LLM-assisted. I've recently had Claude re-implement the inline parser (https://github.com/oxidecomputer/react-asciidoc) using our large corpus (600+) of AsciiDoc documents

Had it convert it in this and the stock version, compare the output, fix and repeat.

Re: Port React Compiler to Rust

#84

Earlier quoted context omitted.

For a model, yeah absolutely. You'll spend virtually 0 tokens on memory safety, which means your token budget gets allocated elsewhere. If you wrote a C codebase you'd need to allocate some portion of your budget towards memory safety.

They're not talking about the model, and they're not talking about token budgets.

This entire topic is about models, the grandparent post is about models augmenting human work, and my post is about models. I think it's fine.

Re: Port React Compiler to Rust

#85

Interesting how LLMs are possibly putting an end to the era where we were increasingly trading off machine performance for developer productivity.

This is a great point, previously the tradeoff was build in python in 2 weeks versus 2 months and even if your app performance is worse you built it faster and maintain it more easily. Now I am wondering, for all the devs who do not have experience in Rust, can they still maintain the code when the usage limits get hit? Since there is an automated test suite and easily verifiable results, this is a good area where you can be assured the compiler is working properly; however, if new features need to be added, I'm not sure how easy it will be for them.

Re: Port React Compiler to Rust

#86
post #46

I love it starts with the usual hand waving, > This is an experimental, work-in-progress port of React Compiler to Rust. ... And then gets merged. So after the craziness to use node on the backend, we are back to using compiled languages to compile Javascript assets and Web resources, just like Java and .NET were doing in the 2000's, however since it is Go and Rust it is cool, not the boring languages grandpas were u…

> I love it starts with the usual hand waving,

> And then gets merged.

The initial commit attached to that message was the start of the experiment. Are you reading the first message as if it was the last?

It was merged after 3 months and a huge number of incremental commits. The code that was merged was completely different than the code used to open the experimental WIP PR

Why is it a criticism that they started as a work in progress experiment? That’s how experiments work. It’s normal to push code as a work in progress PR and then add to it over time.

Re: Port React Compiler to Rust

#88
post #51

Earlier quoted context omitted.

Java has had native code compilers at very least since Excelsior JET exists, and there is a whole story of commercial offerings, before GraalVM and OpenJ9 come to be, so a moot point in 2026. Likewise, .NET has had NGEN since day one even if with limitations, and after several detours in AOT approaches, NativeAOT is in the package and cross platform, thus also a moot point in 2026. But again, they aren't cool for the…

The point isn't "AOT", the point is an efficient, compiled binary. Acting like Java's AOT story is comparable to a native Rust binary is delusional. And yes, both languages are considered "not cool" since they lean heavily into code structuring that the industry has largely moved past.

If you mean OOP, it is pretty much present in the industry, including the very cool AI darling, the Python language, to its very bones.

Re: Port React Compiler to Rust

#89

It's quite frightening to see how an enormous 120KLOC pull request gets merged at once with very little public discussion or coverage by the devs after just 3 months (which IMO is very little time in relation to the amount of code). There used to be extensive RFCs and series of conference talks long preceding changes this big, e.g. React Fiber. I support wholeheartedly the move to AOT-compiled languages but it looks…

The public contract previously discussed in RFCs and conference talks hasn't changed. Coding language is just an implementation detail.

While this is true, the fact that it is Rust provides a much greater level of confidence than if it was Python or something.

Re: Port React Compiler to Rust

#90
post #89

Earlier quoted context omitted.

The public contract previously discussed in RFCs and conference talks hasn't changed. Coding language is just an implementation detail.

While this is true, the fact that it is Rust provides a much greater level of confidence than if it was Python or something.

Confidence about what? That it works properly? Hopefully? Why don’t you read the 120k lines of code and tell us all how it works.
Post reply on HN