Repository navigation
Experiments
This is a journal of experiments each with it's status.
Status — Prototype verified; adoption under evaluation.
The experimental draft editor uses the existing Rust Markdown boundary tracker to decide where XMD highlighting applies. The TypeScript highlighter still recognizes tags and incomplete attributes. The experiment started at 464b18685. Experiment branch · Measured revision
Mounted terminal tests observed identical tags rendered as XMD outside a passive fence and as literal text inside it. An unfinished attribute retained its styling. Shortening the opening fence from three tildes to two recolored the downstream tag.
At 200 columns by 52 rows on Deno 2.9.7, each workload used a 1,000-line draft, 10 warmups and 40 timed edits per revision. Timing began at input dispatch and ended when a completed frame showed the edited text.
| Edit | Base median / p95 | Prototype median / p95 |
|---|---|---|
| Local attribute | 10.686 / 11.777 ms | 10.452 / 11.500 ms |
| Fence opener | 10.938 / 12.091 ms | 11.025 / 12.220 ms |
The mounted tests demonstrate a correctness gain. The latency differences were small in this sequential, shared-host run. A separate assertion verified downstream color, so the timing of the first correctly recolored frame remains open.
The prototype rescans the full draft on every frame and imports an internal Core helper. Reuse classification when text is unchanged, settle the Core interface, and repeat the measurement on larger drafts with alternating revision order and emulator-write timestamps for the correctly styled frame.