jolt/jolt-core
Yogthos b438835cf6 compiler: lower syntax-quote to construction code so backtick compiles
Following the canonical read->macroexpand->compile model (Clojure LispReader /
tools.reader): a syntax-quote is lowered to plain construction code instead of
being interpreted. Adds form builders (__sqcat -> array, __sqvec -> tuple,
__sqmap, __sq1) and syntax-quote-lower (mirrors the interpreter's syntax-quote*/
sq-symbol exactly: foo# auto-gensym, core/special unqualified, else qualify;
~ -> expr, ~@ -> splice). The analyzer now handles syntax-quote as a special:
lower then analyze the result. The interpreter keeps the self-contained
syntax-quote* (no core dependency, works in a bare ctx); the two are cross-checked
by conformance interpret-vs-compile.

Effect: a backtick body compiles (1.96s -> 1.19s/200k) instead of falling back to
the interpreter. Next: compile defmacro expanders for the full macro speedup.

conformance 228/228 x3, full suite green.
2026-06-07 09:32:52 -04:00
..
clojure/core migration doc: phase 3 status + the hot-macro expansion-speed finding 2026-06-07 08:47:04 -04:00
jolt compiler: lower syntax-quote to construction code so backtick compiles 2026-06-07 09:32:52 -04:00