red-swift

Stopgap Red interpreter for 64-bit Mac

View on GitHub

Progress ledger

Plan: docs/design.md. One line per finished step; rulings record where the build departs from the plan and why.

M0 — lexer, values, mold, AppKit spike

Rulings

M1 — evaluator, natives, errors, REPL v0

Rulings

M2 — parse, objects, environment

Rulings

M3 — View on the test backend

Rulings

M4 — AppKit backend

Rulings

M5 — Draw and Othello

Rulings

REPL (brought forward from M7)

M6 — general GUI apps

Rulings

M7 — general CLI apps

Rulings

M8 — full Draw, images, rich-text, vector, money

Rulings

M9 — hardening, do/trace, profiling

Rulings

Final review (whole branch, fresh reviewer)

A reviewer with no part in the work read the branch, tried about a thousand hostile inputs and reproduced every finding below. All Critical and Important findings were fixed in one pass; each has a test in Tests/RedCoreTests/ReviewTests.swift that failed before the fix (12 tests, 40 failing checks) and passes now. Suite after the pass: swift test → 41 passed.

Rulings

Rulings (REPL step)

Appearance (dark mode), 2026-12-03

Asked for after the milestones: windows stayed light on a Mac in dark mode.

Console syntax highlighting, 2026-12-03

Asked for after publication: colour the console’s input the way Red’s VS Code extension colours a file.