On 2026-12-03 (US time), ESLint creator Nicholas C. Zakas posted "Why not rewrite ESLint in Rust?" to GitHub Discussions, and Hacker News split over it (200+ points, 200+ comments). This piece skips the "Rust vs JS" holy war and instead explains the performance engineering actually happening underneath it — cutting allocations and erasing the cost of crossing the native boundary — using ESLint's SourceCode#walk() proposal and Oxlint's JS plugin implementation as the material.

Why now

The practical question at the end of 2026 isn't "all Rust" vs "all JS" but where to cut allocations and where to cross the boundary.

The problem

Simplified to the extreme, a linter does three things:

  1. Parse source into an AST
  2. Walk the AST depth-first, firing an event each time it enters or exits a node
  3. Let each rule subscribe to those events and report problems

This is a very hot loop, running files × nodes × rules times. If it creates a few short-lived objects per node, V8's young-generation GC (scavenges) runs constantly and eats CPU time.

ESLint's current traverse() returns its walk as an "array of step objects." According to issue #21556, each step creates two objects — the step itself plus its args array — so with enter and exit, four objects per node exist purely for traversal. Generating steps lazily with an iterator (generator) was an option, but the iterator protocol itself is slow, so in practice an array is returned.

Rust linters (Oxlint, Biome) keep the AST in an arena and walk it without creating any GC-managed objects. But the moment you run an existing JS plugin, the Rust AST must be turned into JS objects, and that serialization/deserialization plus GC can eat most of the speed advantage.

So both camps face the same enemies:

How it works