Skip to content

Commit f9460e1

Browse files
committed
release: cljw 1.3.0 — mainline-parity deep-dive (rt ns merged into clojure.core, CIDER completion parity, Character complete, portable hash values)
Smell-audited: 1: version bump + CHANGELOG + the %h pin refresh to the portable hash hex + the D-548 recurrence record. Pre-tag verification on this tree: full gate green (the first run failed only at the D-548(a)-recorded future/promise SIGABRT — standalone 3/3 green, recorded in the row — and a stale %h pin, fixed; the re-run was fully green), conformance 0 DRIFT, verify_projects 19/19, CI green on every arc commit. Tag criterion: user-directed landing point 2026-07-15 (completion parity → AD inventory → release).
1 parent 221dd82 commit f9460e1

5 files changed

Lines changed: 81 additions & 14 deletions

File tree

‎.dev/debt.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,11 @@ active:
11441144
+ (b) e2e_phase14_parallel_seq pmap wall-clock assert — both still ncpu>=4-gated
11451145
pending the delay-realise / future-spawn trace. A nested-cross-agent-send variant
11461146
found while fixing D-418 is D-559.
1147+
RECURRENCE 2026-07-16 (v1.3.0 pre-tag full gate, same protocol as the
1148+
1.2.1 record): e2e_phase14_future_promise_delay SIGABRT (exit 134) in the
1149+
parallel full gate; standalone 3/3 green immediately after on the same
1150+
tree; CI (the release platform) green on every arc commit. The (a)
1151+
signature unchanged — load-sensitive, not a release regression.
11471152
category: "runtime"
11481153
barrier: |-
11491154
needs a low-core repro environment (3-vCPU VM or cpuset-limited linux host) +

‎CHANGELOG.md‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,67 @@ All notable changes to ClojureWasm are documented here. The format follows
55
[SemVer](https://semver.org/). SemVer compatibility guarantees start at the
66
first stable `1.0.0` tag; pre-1.0 `alpha` / `rc` tags may still change surfaces.
77

8+
## [1.3.0] - 2026-07-16
9+
10+
Minor release: mainline-parity deep-dive — the `rt` namespace is gone
11+
(`(resolve '+)` is `#'clojure.core/+`), CIDER completion reaches the
12+
built-in nREPL completion's fidelity (classes and `Class/` static members
13+
complete without `require`), `java.lang.Character` is complete, and
14+
`(hash x)` values are now portable Clojure hash values.
15+
16+
### Added
17+
18+
- **`java.lang.Character` complete** — the full static surface (47 methods
19+
+ 70 static fields incl. the category/directionality constants), with
20+
classification (`isLetter`, `isDigit`, `getType`, …) evaluated over
21+
generated UCD 16.0.0 tables — full Unicode, matching the JVM (previously
22+
ASCII-only). Includes the JDK 21 `isEmoji*` family, `getDirectionality`,
23+
the char/int overload pairs (`(Character/toUpperCase 97)` → `65`), and
24+
`.charValue` / `.compareTo` instance methods. The one member out:
25+
`getName` (explicit unsupported — the Unicode name table's size/value
26+
trade is tracked).
27+
- **CIDER completion parity** — nREPL `completions` now serves every
28+
source the built-in serves: special forms + literals, vars with
29+
dash-fuzzy matching (`ma-i` → `map-indexed`), namespaces/aliases,
30+
classes, `Class/` static members with camelCase matching
31+
(`Character/isD` → `isDigit`), and interned keywords — by-name sorted,
32+
with `(clojure.core)`-correct namespace annotations. Java-interop
33+
completion works without `require`, from the closed class registry
34+
(no JVM-internal classpath leak).
35+
- **`defmacro` resolves as a Var** (`#'clojure.core/defmacro`) and
36+
**`definline`** is available (defn-equivalent surface).
37+
- nREPL `describe` advertises `versions.clojurewasm` (the babashka-style
38+
key a CIDER REPL banner can render).
39+
40+
### Changed
41+
42+
- **The internal `rt` namespace is GONE** — Zig builtins and bootstrap
43+
macros intern directly into `clojure.core`, so `(resolve '+)`,
44+
`(meta #'when)`, `(ns-publics 'clojure.core)`, doc/eldoc/completion
45+
namespaces, and printed values all match mainline. Kernel helpers live
46+
in the documented `cljw.internal` namespace. Compiled `.cljwc` archives
47+
from earlier versions need a rebuild (format v6).
48+
- **Portable hash values** — `(hash x)` now returns real Clojure's value
49+
for strings, keywords, symbols, doubles, booleans, chars, UUIDs, ratios,
50+
BigDecimals, and every collection built from them (`(hash "abc")` →
51+
`74834163` everywhere). Records and identity objects remain
52+
cljw-specific.
53+
- **`compare` returns mainline's magnitudes** for strings / chars /
54+
keywords / symbols (`(compare "a" "c")` → `-2`; Java `String.compareTo`
55+
semantics).
56+
- **`(locking 5 …)` works** (immediates share one monitor; `(locking nil
57+
…)` errors, matching mainline's NPE).
58+
- **`Double/parseDouble` matches the exact Java grammar** — accepts
59+
`1.5d`/`1.5F` suffixes and `0x1.8p1` hex floats; rejects lowercase
60+
`infinity`/`nan` and exponent-less hex.
61+
62+
### Fixed
63+
64+
- `(read-string "@x")` prints as `(clojure.core/deref x)` (was the
65+
internal `rt/deref`); `clojure.spec.alpha/form` shows
66+
`clojure.core/int?` (was `rt/int?`); syntax-quote and macroexpansion
67+
namespaces match mainline throughout.
68+
869
## [1.2.1] - 2026-07-14
970

1071
Patch release: the `*cider-error*` buffer works — CIDER renders numbered

‎build.zig.zon‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = .cljw,
3-
.version = "1.2.1",
3+
.version = "1.3.0",
44
.fingerprint = 0x1869d207073beffa,
55
.minimum_zig_version = "0.16.0",
66
.dependencies = .{

‎docs/clojure_vs_clojurewasm.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ render identically (matching clj).
5656

5757
### Numeric tower (F-005: a single Zig-native double + one arbitrary-precision integer)
5858

59-
| Behaviour | Clojure (JVM) | ClojureWasm | AD |
60-
|-----------------------------------|----------------------------------------------------------------------|-------------------------------------------|--------|
61-
| `Long` overflow past i64 | `+` / `*` **throw** `ArithmeticException` (only `+'` / `*'` promote) | auto-promotes to BigInt | AD-008 |
62-
| `(float x)` | yields an f32 | yields an f64 (no f32 representation) | AD-004 |
63-
| Subnormal double shortest-render | `4.9E-324` | `5.0E-324` (same f64 bit pattern) | AD-005 |
64-
| `(biginteger 5)` | `5` of class `java.math.BigInteger` | `5N` of class `BigInt` (one big-int type) | AD-016 |
59+
| Behaviour | Clojure (JVM) | ClojureWasm | AD |
60+
|----------------------------------|----------------------------------------------------------------------|-------------------------------------------|--------|
61+
| `Long` overflow past i64 | `+` / `*` **throw** `ArithmeticException` (only `+'` / `*'` promote) | auto-promotes to BigInt | AD-008 |
62+
| `(float x)` | yields an f32 | yields an f64 (no f32 representation) | AD-004 |
63+
| Subnormal double shortest-render | `4.9E-324` | `5.0E-324` (same f64 bit pattern) | AD-005 |
64+
| `(biginteger 5)` | `5` of class `java.math.BigInteger` | `5N` of class `BigInt` (one big-int type) | AD-016 |
6565

6666
`(* Long/MAX_VALUE 2)` => `18446744073709551614N` (cljw) vs a throw (clj) is
6767
the one accept/reject difference; the rest are cosmetic or rare-edge. cljw
@@ -108,10 +108,10 @@ primitive-slot machinery has nothing to constrain.
108108

109109
### Concurrency & vars
110110

111-
| Behaviour | Clojure (JVM) | ClojureWasm | AD |
112-
|------------------------------------------------|------------------------------------------|-----------------------------------------------------|--------|
113-
| STM conflict resolution | `barge` (older txn preempts a younger) | retry-only; identical committed result | AD-013 |
114-
| An ESCAPED `with-local-vars` var, deref'd late | `#object[clojure.lang.Var$Unbound 0x…]` | `nil` (no Unbound sentinel; memory-safe) | AD-015 |
111+
| Behaviour | Clojure (JVM) | ClojureWasm | AD |
112+
|------------------------------------------------|------------------------------------------|------------------------------------------|--------|
113+
| STM conflict resolution | `barge` (older txn preempts a younger) | retry-only; identical committed result | AD-013 |
114+
| An ESCAPED `with-local-vars` var, deref'd late | `#object[clojure.lang.Var$Unbound 0x…]` | `nil` (no Unbound sentinel; memory-safe) | AD-015 |
115115

116116
STM's committed state is identical (4 threads × 100 `(dosync (alter c inc))`
117117
=> 400 in both); only contention scheduling — unobservable in the result —

‎test/e2e/phase14_format.sh‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ assert_eq 's_nil' "$("$BIN" -e '(format "%s" nil)')" '"null"'
8181
assert_eq 'S_upper' "$("$BIN" -e '(format "%S" "hi")')" '"HI"'
8282
assert_eq 's_prec' "$("$BIN" -e '(format "%.3s" "hello")')" '"hel"'
8383
assert_eq 's_prec_w' "$("$BIN" -e '(format "%8.3s|" "hello")')" '" hel|"'
84-
# %h/%H: valid hex hashcode; value is cljw-native (AD-009), intra-cljw stable
85-
assert_eq 'h_hex' "$("$BIN" -e '(format "%h" "abc")')" '"b3dd93fa"'
86-
assert_eq 'H_hex' "$("$BIN" -e '(format "%H" "abc")')" '"B3DD93FA"'
84+
# %h/%H: hex of the single-system hasheq (AD-009): hex((hash "abc")) =
85+
# hex(74834163) — clj's %h renders Java String.hashCode ("17862") instead.
86+
assert_eq 'h_hex' "$("$BIN" -e '(format "%h" "abc")')" '"475e0f3"'
87+
assert_eq 'H_hex' "$("$BIN" -e '(format "%H" "abc")')" '"475E0F3"'
8788
assert_eq 'h_nil' "$("$BIN" -e '(format "%h" nil)')" '"null"'
8889

8990
# %t date/time family (D-470). AD-052 pins: UTC + English names + "+0000"

0 commit comments

Comments
 (0)