Update docs: performance results, new optimizations, test counts

- README: add performance section (beats gforth 2-10x), update test
  commands, note self-recursive direct calls and loop promotion
- CLAUDE.md: update test counts (427 unit + comparison tests)
- OPTIMIZATIONS.md: stack-to-local Phase 1→Phase 2 (loops + IF),
  DO/LOOP locals done, J as IR done, add section 14 (self-recursive
  direct call), add current performance table vs gforth
- WAFER.md: document self-recursive call optimization, CONSOLIDATE,
  update test commands and line counts
- FORTH.md: expanded space history, add FORTH-IN-SPACE.md reference
- FORTH-IN-SPACE.md: new document with verified spacecraft history
This commit is contained in:
2026-04-09 20:00:55 +02:00
parent 7344d3a8d7
commit 08b2eced2d
6 changed files with 176 additions and 50 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ As FORTH, Inc. puts it: Forth was designed for "a programmer who was intelligent
Forth is not mainstream. It never tried to be. But it persists in places where its particular nature -- tiny, deterministic, interactive, self-contained -- is exactly what the situation demands.
**Space.** The Philae lander, which touched down on comet 67P/Churyumov-Gerasimenko in 2014 as part of ESA's Rosetta mission, ran its central command and data management system in Forth-83 on radiation-hardened RTX2010 stack processors. When you are 500 million kilometers from the nearest debugger and your computer has kilobytes of memory, you want a language where you can see every instruction and test every word interactively before committing it to flight.
**Space.** Forth has flown on over 30 spacecraft and instruments, from MAGSAT's attitude controller in 1979 to ESA's Philae comet lander in 2014. The radiation-hardened RTX2010 -- a processor that executes Forth natively -- became the standard for instrument controllers at NASA and JHU/APL, powering missions including NEAR Shoemaker (first asteroid landing), Cassini (13 years at Saturn), Chandra X-ray Observatory, and Deep Impact (comet collision). When you are 500 million kilometers from the nearest debugger and your computer has kilobytes of memory, you want a language where you can see every instruction and test every word interactively before committing it to flight. See [Forth in Space](FORTH-IN-SPACE.md) for the full verified history.
**Firmware.** Open Firmware, the boot ROM standard used by Apple, Sun, IBM, and the OLPC XO-1, is a Forth environment. Before the operating system loads -- before there are drivers, before there is a filesystem -- there is a Forth interpreter probing hardware, initializing buses, and running platform-independent device drivers encoded as FCode (a compiled Forth bytecode format). Forth is the language you reach for when there is nothing else yet.