Repository navigation
Runtime portability is a normative requirement, not a preference #11
Description
Runtime portability is a hard requirement of this format, and the specification should say so normatively.
This surfaces repeatedly as a performance argument. It is not a performance argument, it is an architecture one.
The requirement
Real users run linting in the browser — in editors and web-based playgrounds, in in-house governance portals, in public-sector tooling that is deliberately client-side so documents never leave the user's machine, and in environments where installing a binary is not permitted. At least one national government programme is in exactly this position: their tooling is browser-based, and an engine that only ships as a compiled binary does not serve them at all.
That is not a preference to be traded against raw throughput. An engine that cannot run where the users are is not a candidate to be the only engine.
What this means for the specification, concretely
The specification is language-neutral and must stay that way — that is the entire point of writing it down. But language-neutral is not the same as runtime-blind, and there are places where a specification can quietly make an implementation impossible in a constrained runtime:
- No requirement that only a filesystem can satisfy. Ruleset resolution,
extends, and$refall have to be expressible over an abstract resolver so a browser implementation can supply fetch, an in-memory map, or a virtual filesystem. - No requirement that only a native process can satisfy — no shelling out, no assumption of process-level configuration or environment access.
- Deterministic behaviour independent of I/O ordering, so a runtime with different concurrency characteristics produces the same diagnostics.
- A conformance class that a constrained runtime can actually reach. If any part of the format is inherently unreachable in a browser, that part belongs in an optional feature set, declared and testable — not in the core.
On performance, since it always comes up together
The honest read is that the bottleneck in the incumbent engine is code quality, not language choice. It has grown organically for years and is nowhere near what it could do on the platform it runs on. A cleanup will not match a compiled binary and does not need to — it needs to be comfortably sufficient for ordinary documents.
And the case for enormous documents needing enormous speed is, at least partly, a case for smaller documents and better design — which is what a linter is for in the first place.
A fast compiled implementation is a genuinely good thing and this project actively wants those to exist. The requirement is only that the specification never make one of them the implementation by making the alternatives impossible.
Deliverables
- A normative statement of the portability requirement in the specification
- An abstract resolver interface in the specification text, replacing any filesystem-shaped language
- Conformance cases that a browser-only implementation can pass in full
- An explicit statement of what, if anything, is permitted to be unavailable in a constrained runtime, and how an implementation declares that
Activity
kinlane commentedon Aug 21, 2026
From office hours, 2026-08-21. One hard constraint for the record, and one dependency.
The constraint: the Dutch government has stated that the implementation needs to stay
JavaScript / Node.js, because their tooling runs in the browser. That is not a preference
from a bystander — it is a requirement from the one government that has publicly documented its
dependency on this format, published under comply-or-explain, and committed to contributing.
Two consequences worth being explicit about:
that assumes a filesystem at evaluation time — which reaches directly into how rulesets and
custom functions are resolved (Ruleset referencing: how default and custom rulesets are named, found and composed #30, Custom functions in the specification — the part that is tied to a language #29).
JavaScript" are compatible, but only if the normative wording is careful to specify
behavior and never mechanism.
The dependency: this constraint only means something if there is a canonical
implementation. That question is open and contested — see the comment on #9. These two issues
should be resolved together, not separately.
Filed from the office hours of 2026-08-21. Full notes: #34.