giles
ceb2adfe50
Compiler: cond, case, thread-first, defcomp, quasiquote, letrec
Added compilation for all remaining special forms:
- cond: nested JUMP_IF_FALSE chains
- case: desugar to DUP + equality checks
- ->: desugar to nested function calls
- defcomp/defisland/defmacro: delegate to runtime primitives
- quasiquote: delegate to runtime qq-expand
- letrec: compiled as let (same scope)
- All def* forms: compiled as no-op (handled by page loader)
Also: concat, slice, make-symbol primitives for compiler support.
All test patterns compile:
(cond ...) → 52 bytes, (case ...) → 8 bytes,
(-> ...) → 28 bytes, nested let+cond → 37 bytes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 19:34:36 +00:00
..
2026-03-16 08:37:50 +00:00
2026-03-19 18:43:30 +00:00
2026-03-15 01:42:19 +00:00
2026-03-19 19:34:36 +00:00
2026-03-16 08:37:50 +00:00
2026-03-18 20:46:33 +00:00
2026-03-16 08:37:50 +00:00
2026-03-15 01:42:19 +00:00
2026-03-16 08:55:57 +00:00
2026-03-16 10:43:08 +00:00
2026-03-15 01:42:19 +00:00
2026-03-17 17:11:09 +00:00
2026-03-16 08:37:50 +00:00