Railway signalling: ERTMS/ETCS
Embedded development, safety engineering, formal requirements, interfaces and verification.
Write-up in preparation.
Software engineering from first principles: embedded and safety-critical systems, storage engines, numerical and graphics code.
This page is its own exhibit. One Rust program, compiled to a no_std WebAssembly module with no imports, no allocator and a fixed memory, renders it and runs the experiments below in your browser.
Static render: the live module has not started.
Three bodies of work. Each write-up follows one path: problem, constraints, architecture, implementation, verification, measured results, and keeps what is implemented apart from what is experimental or planned.
Embedded development, safety engineering, formal requirements, interfaces and verification.
Write-up in preparation.
Memory layout, storage, operating-system interfaces, concurrency and data structures.
Write-up in preparation.
Numerical methods, geometry, optimisation, SIMD and GPU architecture.
Write-up in preparation.
The oak is grown, not drawn. Attractor points scattered in a crown envelope pull the nearest branch tips towards them, and a tip that reaches its attractor consumes it (space colonisation, Runions et al. 2007). Branch thickness follows the pipe model: rᵞ of a branch is the sum over its children. Every crown tip then sends one strand down through the trunk into the roots, so the trunk is the bundle of its branches.
All of it lives in fixed buffers, 4 096 nodes and 2 048 attractors, without allocation. Growth is a state machine advanced one iteration per frame while the oak is on screen. Change a parameter and it regrows from the trunk.
A character-level transformer after Karpathy's microgpt: 1 layer, 4 heads, 16-dimensional embeddings, an MLP of width 64, a context of 16 and 4 192 parameters, trained on 32 033 names.
Gradients come from a scalar reverse-mode tape of at most 131 072 nodes in one fixed array. Training is a resumable state machine: forward pass, backward pass and the Adam update are split into units of work and advanced within each frame's budget, and training in chunks is bit-identical to an uninterrupted run of 1 000 steps.
856e4610c1ed8389. Training in this tab must end at the same hash. Names it samples at temperature 0.5: amis, krian, meria, aalia, lelin, jeelin, terian, lan, alari, donan, kadi, taylan.Not started. Training runs here, in this tab: 1 000 steps of Adam over 32 033 names.
| embedding | 0 · 0.0 % |
|---|---|
| rmsnorm | 0 · 0.0 % |
| q k v | 0 · 0.0 % |
| attention | 0 · 0.0 % |
| projection | 0 · 0.0 % |
| rmsnorm | 0 · 0.0 % |
| mlp | 0 · 0.0 % |
| lm head | 0 · 0.0 % |
| loss | 0 · 0.0 % |