Lab
Notebook
Shorter than an essay and written closer to the moment. Some worked, some didn't.
SEP 27 2026
failure
mprotect said yes, then the process died
Getting executable memory for Weft's native code on Apple silicon: the first probe reported success on a page that killed the process on its first instruction.
SEP 17 2026
benchmark
7 ms on a GPU that never went quiet
- Machine RTX 5090 (rented)
- Frame time, baseline → candidate 89.43 → 82.16 ms, −7.27 ms (−8.1%), candidate ahead 3 of 3 rounds
- Encode time, baseline → candidate 53.57 → 48.22 ms, −5.35 ms (−10.0%), 3 of 3 rounds
- Output records bit-identical 80 of 80
- im2col, per encode, in the per-kernel GPU trace 2.32 → 1.87 ms
Vectorising the float16 conversions in a CUDA port of SAM 3 took 7.27 ms (8.1%) off a frame, bit-identical, on a rented GPU that failed its idle check on every single run.
AUG 21 2026
benchmark
1.024×, and I'm not rounding it up
- Machine arm64, `RELEASE_ARM64_T6050`, Darwin 25.6.0
- Commit not noted
- EnableIntraInPFallback=False 2,290,059 ns (2.290 ms), stddev 28,141 ns
- EnableIntraInPFallback=True 2,235,369 ns (2.235 ms), stddev 23,746 ns
- Ratio 1.024×
- Difference 54.7 µs
Turning on the intra-in-P fallback moved the whole encode from 2.290 ms to 2.235 ms. That's 1.024×, and the gap is smaller than the noise, so it's a reading, not a result.
experiment
Four accumulators didn't help
- Machine Apple M5 Max, 128-bit NEON
- 1 accumulator chain 356.3 ns
- 2 accumulator chains 356.2 ns
- 4 accumulator chains 356.6 ns
Splitting the accumulator in Weft's SAD kernel into two and four chains, the textbook fix for a dependency chain, gave 356.3, 356.2 and 356.6 ns. Completely flat.
failure
Every session flagged itself RAN HOT
A check for noisy neighbours that couldn't find its own process, so every benchmark session reported itself as the noisy neighbour.
failure
The speedup that wasn't
- Machine not noted
- Same work on both sides, C++ port vs Meta's PyTorch reference (bf16) 111.16 vs 89.64 ms per frame, 1.24× slower
- Proposals per row in the withdrawn comparison, port vs Meta 80 vs 16
I claimed my C++ port of SAM 3 ran 1.29× faster than Meta's PyTorch reference. The two sides weren't doing the same work. Matched, the port was 1.24× slower.
failure
The search that decided nothing and printed ok
An early run of Weft's composition engine spent four seconds searching, decided nothing, rendered the same plan on both arms, and reported a ratio of 0.9999 as ok.
failure
An exact tie went to Apple's sgemm
- Qwen decode, M4, int8 NEON kernel 8.77 ms/token
- After the tie went to sgemm 9.04 ms/token
A native twin priced exactly the same as the managed kernel, the tie was broken the wrong way, and 144 kernels on the M4 quietly moved to Apple's sgemm. The decode got slower.
failure
The screenshot looks fine. The panel is blank.
On a Raspberry Pi, raspboard's --screenshot flag writes a perfect PNG of a display that isn't showing anything.
benchmark
5% packet loss, with and without retransmission
- Client headless Chrome 151 (I didn't note the server machine)
- Frames decoded, with / without retransmission 433 / 51
- Rate, with / without 29 / 15 fps
- Freezes, with / without 0 / 5
- Five-minute soak at 5% loss, 30 fps 31,815 packets, 0 holes, managed heap 0.9% below start
Fifteen seconds of video from Keryx to a real headless Chrome over a link that drops 5% of packets, same seed both times. Retransmission on: 433 frames and no freezes. Off: 51 frames and five freezes.
failure
The harness was measuring itself
- Machine Apple M5 Max, 128-bit NEON
- Reported, 256 elements, before the fix 15.16 ns (invalid)
- Corrected, 256 elements 4.24 ns
- Allocated per call inside the timed region 24 bytes
A benchmark of Weft's SAD kernel reported 15.16 ns at the smallest input. The real figure was 4.24 ns. The difference was 24 bytes the harness allocated per call, inside the timed region.