Something went wrong. Try again.
Exploring the idea of generated web rendering engine.
Something went wrong. Try again.
Files
- Rust 80%
- Shell 13%
- JavaScript 4%
- Python 2%
- HTML <1%
- 2 more languages <1%
README.md
# Nev - a generated web engine
Generate a web rendering engine from specs and tests.
## Why
Building a web engine by hand costs hundreds of engineers and many years, so only a few
companies can have one, and only they decide how the web works. Nev generates the engine
instead: from the specifications, with the three shipping browsers (checked against each
other) and WPT as the tests. Once the pipeline exists, each extra engine costs very
little.
## Goals
- **Complete, or tree-shaken.** The default build is a complete engine. For uses
other than a web browser, a build can instead contain only the web features its
content uses: analyse a site or an app, and every feature it never touches is left out
of the binary, not just switched off (`docs/content-scoped-engine.md`).
- **Fast on any device.** A smaller engine does less work and needs less memory.
- **Easy to embed.** A small engine with a clear API, for apps and devices that today ship
all of Chromium or go without.
- **Fastest to update.** When a spec or test changes, the affected code is regenerated and
re-verified, not rewritten by hand.
## How it works
```mermaid
flowchart LR
spec["spec text"] --> model["model writes<br/>many candidates"]
model --> engine["candidate runs<br/>inside the engine"]
browsers["Chromium, Firefox,<br/>WebKit (cached)"] --> check{"same boxes,<br/>same places?"}
engine --> check
check -- no --> model
check -- yes --> code["committed as<br/>ordinary Rust"]
```
- [`docs/generation-loop.md`](docs/generation-loop.md) — how one rule goes from spec text
to committed code.
- [`docs/geometry-verification.md`](docs/geometry-verification.md) — how the engine's
layout is checked against three browsers.
- [`docs/generated-functions.md`](docs/generated-functions.md) — the layout rules generated so far and what each
batch showed.
- [`roadmap.md`](roadmap.md) — the plan, the decisions and the open questions.
## Status
<!-- dashboard-history:start -->
<img src="docs/dashboard-history.svg" width="644" height="72" …