jolt/host/chez
Yogthos bd33d605ef Chunk range/map/filter to match JVM Clojure
range, map, and filter were fully element-by-element lazy, so
(map f (range 1 50)) realized one element per first/nth where JVM
Clojure realizes a whole 32-element chunk. range is a chunked
LongRange on the JVM and map/filter are chunk-preserving, so the
observable side-effect timing differed.

Following clojure.lang.LongRange, ChunkedCons, ChunkBuffer and
core.clj, this adds a crest field to the cseq record and a
cseq-chunked constructor modeling ChunkedCons (a standalone chunk
pvec, an offset, and the after-chunk seq). The chunk accessors move
to seq.ss next to the representation they read. map/filter/remove
take a chunked branch when the source is chunked, realizing the whole
chunk and chunk-cons'ing it onto a lazy rest, so their output is
itself chunked and chained transforms each batch by 32. Bounded range
is now an eager chunked seq, and the reduce fast path flows through a
ChunkedCons rest. The chunk-buffer/chunk/chunk-cons builder API in
natives-array.ss now produces a real ChunkedCons.

Single-arg (range), multi-coll map, and plain lazy seqs stay
element-by-element, like the JVM.

Adds a lazy / chunking suite to the corpus that observes realization
timing via an atom counter: first over a chunked map realizes 32,
crossing a chunk boundary realizes 49, chained maps batch [32 32],
filter applies the predicate to the whole first block, and a plain
lazy seq still realizes one element at a time. Two cases that
documented the old over-laziness now assert the JVM value of 32 and
were dropped from the allowlist. certify against JVM Clojure 1.12.3
reports 0 new and 0 stale divergences.
2026-06-29 22:02:06 -04:00
..
java Chunk range/map/filter to match JVM Clojure 2026-06-29 22:02:06 -04:00
seed backend: cache resolved var cells per reference site (run-path ~5x) 2026-06-28 12:36:35 -04:00
stub Self-contained build foundation: embedded-bytes helpers, launcher stub, in-process app link 2026-06-29 20:48:44 -04:00
atoms.ss Clean up codebase: rename stdlib layer, strip porting residue, fix tooling 2026-06-22 22:18:00 -04:00
bootstrap.ss Clean up codebase: rename stdlib layer, strip porting residue, fix tooling 2026-06-22 22:18:00 -04:00
build-joltc.ss Build joltc as a self-contained binary (make joltc-release / joltc-debug) 2026-06-29 21:04:23 -04:00
build-smoke.sh Source locations: reader positions, error locations, native stack traces (#218) 2026-06-26 02:14:34 +00:00
build.ss Build joltc as a self-contained binary (make joltc-release / joltc-debug) 2026-06-29 21:04:23 -04:00
cli.ss Source locations: reader positions, error locations, native stack traces (#218) 2026-06-26 02:14:34 +00:00
collections.ss Small maps preserve insertion order 2026-06-27 05:48:17 -04:00
compile-eval.ss backend: cache resolved var cells per reference site (run-path ~5x) 2026-06-28 12:36:35 -04:00
converters.ss spec.alpha: (symbol var), Compiler/demunge, MultiFn .dispatchFn/.getMethod, fn .applyTo 2026-06-27 20:46:33 -04:00
dce.ss refactor: extract host/chez/dce.ss; tag the runtime manifest (tier 1) 2026-06-23 22:20:48 -04:00
dyn-binding.ss backend: cache resolved var cells per reference site (run-path ~5x) 2026-06-28 12:36:35 -04:00
dynamic-var-defaults.ss Honor *print-length* / *print-level* / *default-data-reader-fn* 2026-06-26 19:04:42 -04:00
emit-image.ss backend: cache resolved var cells per reference site (run-path ~5x) 2026-06-28 12:36:35 -04:00
host-contract.ss seq fns are lazy by default, like Clojure (LazySeq, not eager-headed) 2026-06-28 00:16:47 -04:00
host-table.ss Fix general gaps the hiccup suite shook out 2026-06-26 20:15:39 -04:00
joltc-selfbuild-smoke.sh Build joltc as a self-contained binary (make joltc-release / joltc-debug) 2026-06-29 21:04:23 -04:00
lazy-bridge.ss Fix conj on a lazy-seq, add lazy-seq interop regression rows 2026-06-26 21:25:10 -04:00
loader.ss Self-contained build foundation: embedded-bytes helpers, launcher stub, in-process app link 2026-06-29 20:48:44 -04:00
multimethods.ss defmethod on a referred multifn resolves to its home ns 2026-06-24 09:13:28 -04:00
natives-coll.ss Small maps preserve insertion order 2026-06-27 05:48:17 -04:00
natives-format.ss read-string constructs sets; format %x lowercase; extend/extends? on nil 2026-06-24 14:03:47 -04:00
natives-meta.ss Chunk range/map/filter to match JVM Clojure 2026-06-29 22:02:06 -04:00
natives-misc.ss Tagged literals are value-equal 2026-06-24 11:03:33 -04:00
natives-num.ss ^long is a 64-bit long: fast-path-with-fallback ops + logical unsigned shift 2026-06-27 16:04:19 -04:00
natives-reader.ss Close portable clojure.core gaps: re-groups, letfn, REPL + dynamic vars 2026-06-26 17:48:21 -04:00
natives-seq.ss seq fns are lazy by default, like Clojure (LazySeq, not eager-headed) 2026-06-28 00:16:47 -04:00
natives-transduce.ss Collection fns: JVM-faithful return types + laziness (#219) 2026-06-26 03:01:36 +00:00
ns.ss core.async: higher-level API over native channels + two general fixes 2026-06-27 13:05:19 -04:00
png.ss Clean up codebase: rename stdlib layer, strip porting residue, fix tooling 2026-06-22 22:18:00 -04:00
post-prelude.ss Fix general gaps the hiccup suite shook out 2026-06-26 20:15:39 -04:00
predicates.ss seq fns are lazy by default, like Clojure (LazySeq, not eager-headed) 2026-06-28 00:16:47 -04:00
printing.ss Honor *print-length* / *print-level* / *default-data-reader-fn* 2026-06-26 19:04:42 -04:00
reader.ss reader: #:ns{...} namespaced map literals 2026-06-27 21:12:27 -04:00
records.ss seq fns are lazy by default, like Clojure (LazySeq, not eager-headed) 2026-06-28 00:16:47 -04:00
regex.ss General fixes shaken out by clojure/tools.reader 2026-06-27 14:11:02 -04:00
remint.sh Pure-Chez test gates (no Janet) 2026-06-21 11:22:32 -04:00
rt.ss A fn def'd into a var reports a JVM-style class name (clojure.core$odd_QMARK_) 2026-06-27 21:03:12 -04:00
run-corpus.ss Clean up codebase: rename stdlib layer, strip porting residue, fix tooling 2026-06-22 22:18:00 -04:00
run-devirt.ss Devirt: cache the resolved impl in a per-site cell (inline cache) (#237) 2026-06-26 18:34:13 +00:00
run-fieldnum.ss Make ^Record param hints work (resolve the record tag) (#232) 2026-06-26 16:03:57 +00:00
run-fieldread.ss Bare-index field reads for statically-known records (#228) 2026-06-26 11:29:14 +00:00
run-infer.ss infer gate: cover the run-inference / take-diags! checker path 2026-06-23 09:38:13 -04:00
run-narrow.ss Nilable record types + flow-sensitive nil narrowing (#235) 2026-06-26 17:16:16 +00:00
run-numwp.ss Hintless whole-program double inference (#230) 2026-06-26 14:18:10 +00:00
run-protoret.ss Infer monomorphic protocol-method return types (#234) 2026-06-26 16:59:35 +00:00
run-sci.ss Run core.memoize's test suite on jolt 2026-06-25 13:23:05 -04:00
run-unit.ss Real Thread/yield + Thread/interrupted (jolt-l2gc) 2026-06-23 00:06:04 -04:00
run-wp.ss WP: don't let a recursive pass-through poison a param to :any (#233) 2026-06-26 16:29:46 +00:00
selfcheck.sh Pure-Chez test gates (no Janet) 2026-06-21 11:22:32 -04:00
seq.ss Chunk range/map/filter to match JVM Clojure 2026-06-29 22:02:06 -04:00
smoke.sh cli: rename nrepl command to --nrepl-server flag 2026-06-28 17:26:03 -04:00
source-registry.ss Source locations: reader positions, error locations, native stack traces (#218) 2026-06-26 02:14:34 +00:00
syntax-quote.ss Small maps preserve insertion order 2026-06-27 05:48:17 -04:00
transients.ss core.logic constraint layer: fixes for the CLP/unifier failures 2026-06-27 10:37:32 -04:00
tree-shake-smoke.sh Tree-shake: count #'x references; multi-app soundness smoke 2026-06-23 20:27:21 -04:00
values.ss core.logic constraint layer: fixes for the CLP/unifier failures 2026-06-27 10:37:32 -04:00
vars.ss refactor: consolidate transducers, dissolve natives-parity.ss (jolt-jcs7) 2026-06-23 23:50:42 -04:00