Chez Phase 2: clojure.set + clojure.math + pprint (jolt-j5vg, jolt-22vo)
Close the remaining Phase-2 stdlib parity gaps. clojure.set: pure Clojure over core, so just added to the prelude stdlib tier (driver.janet stdlib-ns-files + jolt-chez fingerprint), same as clojure.edn. clojure.math: not a .clj on the seed (native math/ bindings via jolt-h79), so Chez gets its own host/chez/math.ss def-var!ing each fn over Chez native flonum math. The analyzer already knows the ns (api.janet install-clojure-math!), so refs lower to var-deref. Also adds the missing 'long' coercion to converters.ss (int's sibling; several math cases wrap in long). clojure.pprint: dropped the 2-arity's (binding [*out* writer] ...). *out* isn't a bindable var in jolt — printing routes through the host (dyn :out) seam, so the binding never redirected anything; it only made the defn uncompilable, which the seed tolerated via interpreter fallback. Chez has no fallback, so the whole pprint defn died. Dropping it is behavior-preserving (writer was always ignored) and lets pprint compile cleanly. Both corpus cases pass. Corpus parity 2259 -> 2280, crashes 191 -> 170, 0 new divergences. Floor raised. New unit test test/chez/_stdlib.janet (27/27). Full Janet gate green (147 files).
This commit is contained in:
parent
6df60229b0
commit
109bfcd09d
8 changed files with 175 additions and 7 deletions
|
|
@ -275,8 +275,14 @@
|
|||
# prelude. Lights up read / read+string / with-in-str (read) / read-string and
|
||||
# clojure.edn/read-string. (eval / load-string / runtime defmacro stay Phase-3 —
|
||||
# they need the compiler at runtime.) 2259.
|
||||
# Phase-2 stdlib closeout (jolt-j5vg / jolt-22vo / clojure.pprint): clojure.set +
|
||||
# clojure.pprint added to the prelude stdlib tier (driver.janet stdlib-ns-files),
|
||||
# clojure.math shimmed over Chez native flonum math (host/chez/math.ss), and the
|
||||
# missing `long` coercion def-var!'d (converters.ss). pprint's 2-arity dropped its
|
||||
# (binding [*out* writer] ...) (uncompilable on the no-fallback Chez back end —
|
||||
# *out* isn't a bindable var). 2280, crashes 191->170, 0 new divergences.
|
||||
# Strided runs scale down.
|
||||
(def base-floor (scan-number (or (os/getenv "JOLT_CHEZ_PRELUDE_FLOOR") "2259")))
|
||||
(def base-floor (scan-number (or (os/getenv "JOLT_CHEZ_PRELUDE_FLOOR") "2280")))
|
||||
(def floor (if (os/getenv "JOLT_CORPUS_LIMIT") 0 base-floor))
|
||||
(when (or (> (length diverged) 0) (< pass floor))
|
||||
(printf "REGRESSION: pass %d < floor %d or %d new divergence(s)" pass floor (length diverged)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue