Comment

Comment by nickelcitymario

> Mozilla used Rust to build Stylo, the CSS engine in Firefox (replacing approximately 160,000 lines of C++ with 85,000 lines of Rust).

I would have loved to see two competing teams rewrite it, one in C++ and the other in Rust.

Saying that the rewrite is better does nothing to say WHY it's better. Refactored code is almost always radically better, even when it's in the same language, for reasons that might be insulting to explain on HN.

Point is, this is not an apples-to-apples comparison.

(I'm not arguing Rust isn't better. Nor that cutting your code base nearly in half isn't impressive. Simply that this single metric on their part seems like weak sauce.)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton