Ladybird is transitioning to partial use of Rust instead of C++. Developers have long sought a memory-safe alternative: Swift was not suitable due to its limited interoperability with C++ and restricted support outside of Apple. Rust proved to be a better choice: it has a mature ecosystem, many contributors are already familiar with the language, and it is already being used by Firefox and Chromium.
The first port was LibJS — a JavaScript engine (lexer, parser, AST, bytecode generator). The work was done by one person using Claude Code and Codex: approximately 25,000 lines of Rust in two weeks instead of several months manually. The result is complete output identity with the C++ version, with zero regressions in tests (52,898 test262 tests, 12,461 of our own tests).
The code is intentionally stylistically close to the C++ original — idiomaticity will come later. There are no plans for a full transition to Rust: C++ and Rust will coexist, and the porting process will be gradual and managed by the core team.
Source: linux.org.ru
