Running the whole rewrite-clj test suite (159 tests) surfaced seven more bugs; with these it passes 3377/0/0. Each is a general jolt/JVM divergence: - *out* was pinned to the startup stdout port, so (.write *out* …) escaped a with-out-str capture (z/print writes via *out*). It now resolves the live current-output-port, like print/__write, so a redirect is seen. - nth / assoc past the end of a vector or seq threw a bare Chez error (class :object). Throw IndexOutOfBoundsException, matching the JVM. - A number's .toString(radix) ignored the base. Render in the base, lowercase (rewrite-clj rebuilds 0xff / 0377 / 2r1001 through it). - A required namespace's own :as aliases leaked into its requirer: the loaded ns form compiles while (chez-current-ns) is still the requirer, so ce-scan-requires! registered the loaded ns's aliases under the wrong ns and clobbered a same-named alias there. Register an (ns NAME …) form's aliases under NAME. - A quoted collection dropped its metadata; now it keeps USER metadata (drops the reader's :line/:column/:file), like a Clojure quoted constant. - enumeration-seq only did (seq e); it now drives a java.util.Enumeration through hasMoreElements/nextElement, and StringTokenizer implements them. Regressions: corpus rows (with-out-str/*out*, nth/assoc bounds, toString radix, quote metadata, enumeration-seq) certified against JVM; a smoke fixture for the alias leak (a required ns's alias must not leak). tools.reader + rewrite-clj added to docs/libraries.md. make test green.
5.3 KiB
5.3 KiB
Clojure libraries known to work with Jolt
Libraries confirmed to load and pass their conformance checks on Jolt. A library listed here works. See the examples, e.g. the ring-app example.
- aero — EDN configuration with tag literals
(
#ref/#env/#or/#profile/#long/…) - config — environment configuration
- Selmer — Django-style templates
- medley — collection utilities
- cuerdas — string manipulation
- ring-core — via
:deps/root "ring-core", on the ring-app example - ring-codec — URL/form encoding
- ring-defaults — the standard middleware stack (params, static resources + content-type, session, security headers); its session/CSRF crypto comes from jolt-lang/jolt-crypto (OpenSSL)
- reitit-core — data-driven routing; the
reitit.TrieJava class is mirrored by jolt-lang/router. - integrant — data-driven system
configuration (
#ig/ref), with its dependency and meta-merge deps - honeysql — SQL formatter and helpers
- clojure.jdbc — as
jolt-lang/db's
jdbc.core, over the built-in SQLite access (libsqlite3 via Chez's FFI) - next.jdbc — a compatibility layer in
jolt-lang/db over
jdbc.core - tools.logging — runs verbatim over a
native
clojure.tools.logging.implstderr backend - migratus — database migrations over the next.jdbc layer
- malli — data schema validation, on the malli-app example.
- markdown-clj — Markdown → HTML, on the markdown-app example
- hiccup — HTML from Clojure data, on the hiccup-app example
- clojure.data.json — JSON reading and writing
- clojure.spec.alpha — data specs
- core.match — pattern matching.
- core.cache — caching (Basic/FIFO/LRU/ LU/TTL/Soft + the wrapped atom API), over data.priority-map.
- core.memoize — function memoization over core.cache.
- core.async — CSP channels and
goblocks (<!/>!/alts!,pipeline,mult/mix/pub/sub) on real OS threads. - core.logic — relational logic programming
(unification,
run/fresh/conde, finite domains). - math.combinatorics — permutations, combinations, subsets, selections, cartesian products, partitions.
- core.contracts — programming by
contract (
contract/with-constraints/provide), over core.unify. - data.zip — zipper navigation, including
clojure.data.zip.xml; XML parsing via jolt-lang/xml (which now shipsclojure.xml/parse). - data.csv — reading and writing CSV.
- data.codec — base64 encode/decode over byte arrays.
- data.priority-map — priority
maps (incl. keyfn / custom comparator), with
subseq/rsubseq. - tools.macro — local macros
(
macrolet/symbol-macrolet),mexpand/mexpand-all. - algo.monads — monad macros and monads (maybe/seq/state/writer/reader/…), over tools.macro.
- test.check — property-based testing
(generators,
quick-check, shrinking). - tools.reader — a Clojure reader in Clojure (edn + full reader, indexing/pushback reader types).
- rewrite-clj — parse/rewrite Clojure source while preserving whitespace and comments (nodes + zipper), over tools.reader.
- tick — date/time over Jolt's
java.time;#time/…literals viatime-literals. - transit-jolt — Transit (JSON) read/write