tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

92 lignes · 6959 octetsBrut · Historique

Louise v1 — Roadmap

Status: Proposed, 2026-10-09. It gathers everything v0 deferred, from the v0 plan, the v0 release notes, the ADRs and the follow-up issues. The definition of done and the milestone order are proposals for the project owner. Per Innoptech policy, each milestone's runtime, type-system and architecture decisions get an ADR and engineering review before they are built.

Tracked in issue #52 (the v1 epic); milestones #44–#51 (#50 deferred to v2), #61 (speed) and #62 (cleanliness).

Where v0 ended

v0 met its definition of done (issue #13): a supervised HTTP server with SSR HTML, argon2 over C FFI, effect handlers for logging and a mockable DB, and an LSP.

These v0 limitations have been addressed since the v0 release notes (M6, PRs #37–#42):

  • a scheduler thread per core;
  • move/share/copy sending;
  • the Send check;
  • Selector;
  • rest_for_one;
  • spawn_link and spawn_monitor as single operations.

Since then, the first v1 work has merged (PRs #54–#60):

  • the benchmark suite;
  • the runtime's own context switch;
  • per-thread run queues with work stealing;
  • Bytes and HTTP keep-alive;
  • the Perceus optimisations;
  • mimalloc and #line directives;
  • a real-time clock once a socket opens, so HTTP idle timeouts expire under load.

The milestone issues track what is left.

v1 definition of done (proposed)

The v0 demo, made production-shaped. It runs on all cores with work stealing, compiles and runs measurably fast on a benchmark suite, and speaks binary HTTP/1.1 with keep-alive. Its dependencies come from git with a lockfile. Its code meets Innoptech's quality bar.

Concretely:

  • Every accepted v1 ADR is implemented, and every proposed v0 ADR has been reviewed.
  • tests/bench exists. Each performance milestone states its target on it, and meets it.
  • The demo serves keep-alive HTTP with Bytes bodies, on several threads, under a load test, with the leak oracle at 0.
  • louise resolves git dependencies with a lockfile.
  • The cleanliness audit's high-priority findings are fixed, or recorded as decisions (#62).

Milestones

#MilestoneContents (deferred from)Issues
M0Review gateEngineering review of the still-proposed ADRs: 0010 (lexical handlers), 0003 Rev. 2 (unwinding in C), 0005 Rev. 1 (extern convention), 0002 Rev. 1 (regions, move/share/copy), 0004 Rev. 1 and its implementation notes (threads, Send check).#44
M1Runtime foundationsThe runtime's own context switch (x86_64, aarch64; macOS moved to v2, #63), replacing corosensei (done, #97; the Send argument stays, as it is about thread-locals). mimalloc behind tl_alloc. Scheduler step 2: per-thread queues with work stealing, lock-free mailboxes, an atomic actor state, loom models, per-thread timer wheels, ThreadSanitizer.#45 (#35, #43)
M2Fast code (closed; the rest moved to #61)A benchmark suite first. Perceus: borrow inference, reuse (FBIP), drop specialisation. Static dictionaries, then specialisation of known trait evidence. A decision (ADR) on monomorphisation versus uniform boxed values for numeric code. A "never unwinds" analysis that drops yield checks after leaf calls.#46 (#34)
M3Data and IOBytes with a builder, shared when large. std/net on Bytes, with UTF-8 validation for strings. HTTP keep-alive, chunked bodies and binary responses. Arrays (TL_SCAN_LARGE, reserved in the ABI). Bigint promotion on Int overflow (an ABI change).#47 (#36)
M4FFI and the C boundaryCallbacks from C into Louise. A binding generator for simple C signatures (bindgen-style). #line directives in generated C, which need spans in Core, so that C compiler and sanitizer errors point at .lse lines.#48 (#35)
M5LanguageMulti-shot resumptions (v0 resumptions are one-shot). Traits with several parameters, higher-kinded types, user-defined derives (ADR 0007). User-level finally (ADR 0003: unwinding runs drops only). The interpreter matching native on escaped continuations (a resume after its handler finished panics in both).#49
M7Packages and toolingGit dependencies with a lockfile. Incremental analysis on salsa if the LSP needs it (ADR 0006's criteria).#51
SpeedCompile time and runtimePer-phase compile timings and a compile-time benchmark, then the hotspots. The monomorphisation ADR, specialisation of known trait evidence, the never-unwinds analysis (from M2), and the runtime's hot paths.#61
CleanlinessSOLID, DRY, KISS, cohesion and couplingAn audit of every crate, the runtime and std (docs/code-health.md), then behaviour-preserving refactors after the feature work merges.#62
NameThe rename from tilcayoThe language, its tools, files and variables are named Louise, with .lse source files (ADR 0021). The last PR of the v1 chain.#65

Order (2026-10-09): M1, M3, M4, M5, M7 and Speed run in parallel, each with its ADR proposed and added to M0's review list. The cleanliness audit runs now, and its refactors run after the feature work merges.

ADR numbers reserved for the parallel work:

  • 0013: monomorphisation and specialisation.
  • 0014: arrays and bigint.
  • 0015: C callbacks and bindings.
  • 0016: finally and escaped continuations.
  • 0017: multi-shot resumptions.
  • 0018: multi-parameter traits and HKT.
  • 0019: user-defined derives.
  • 0020: git dependencies and the lockfile.

Timer wheels and ThreadSanitizer are ADR 0004 Revision 4.

Deferred to v2

Tracked in #63:

  • The client HTML target (formerly M6, #50): wasm or JS, ctl without fibers, typed on* attributes, a client runtime for Element<msg>. It will build on M5's multi-shot resumptions.
  • A package registry. v1 ships git dependencies with a lockfile.

Research, not committed to v1

  • Optional borrow annotations or explicit lifetimes, as a performance tool (ADR 0002). Combining them with effect handlers is research-level.
  • An LLVM backend with zero-overhead, table-driven unwinding, where landing pads and guaranteed tail calls coexist (ADR 0003 Rev. 2).
  • A sound Send trait (where Send<m>), if the concrete-type check (E0704) and the runtime check prove insufficient (ADR 0004 implementation notes).

Dropped

  • mask: lexically scoped handlers make it unnecessary (ADR 0010).
  • A cycle collector: Refs live in regions, which break cycles when they end (ADR 0002 Rev. 1).
  • Thread pinning of actors: replaced by migration (ADR 0004 Rev. 1).

Verification, as in v0

Every milestone keeps the v0 gates:

  • the differential interpreter/native tests (one thread exact, four threads by exit status and leaks);
  • ASan and UBSan;
  • the leak oracle at 0;
  • scripts/stress.sh;
  • the demo's end-to-end test;
  • scripts/ci.sh green.

Performance milestones add benchmark targets, and concurrency milestones add loom models.