Chez Phase 3 inc9b: pure-Chez runtime CLI (bin/joltc, no Janet)

The runtime counterpart to bootstrap.ss. host/chez/cli.ss loads the checked-in
seed + the zero-Janet spine and compiles+evals a -e expression entirely on Chez;
bin/joltc execs it. With the seed checked in, a clone runs jolt with only Chez
installed — no Janet at build or run time. Multi-form -e wraps in (do ...) to
match Clojure. test/chez/cli-test.janet 9/9.
This commit is contained in:
Yogthos 2026-06-20 06:53:05 -04:00
parent 2c74476aed
commit d0fce540ed
3 changed files with 100 additions and 0 deletions

14
bin/joltc Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# joltc (jolt-9phg, inc9b) — the pure-Chez jolt runtime. NO Janet.
#
# Runs a Clojure expression through the zero-Janet spine on Chez, using the
# checked-in bootstrap seed (host/chez/seed/). With only Chez installed and no
# Janet anywhere, this compiles and evaluates jolt code end to end.
#
# bin/joltc -e "(+ 1 2)"
#
# (bin/jolt-chez is the older Janet-hosted -e path still used as the corpus oracle;
# joltc is the fully self-hosted runtime.)
root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
cd "$root" || exit 1
exec chez --script host/chez/cli.ss "$@"