r/Clojure • • 18m ago

Clojure 1.13.0-alpha12

https://clojure.org/news/2026/12/04/clojure-1-13-alpha12

New functions / arities / support:

  • CLJ-2992 assoc-some - assoc only if val is not nil
  • CLJ-2333 clojure.java.io - add support for java.nio.file.Path
  • CLJ-2936 subs - could be more generic and accept CharSequence, not just String
  • CLJ-1720 regex? - add predicate for portability
  • CLJ-2996 vector-of - throws when used with reduce-kv

Performance:

  • CLJ-2817 Return type hint is ignored for functions with primitive arities
  • CLJ-3000 Compile closure fields as final when possible
  • CLJ-2999 class - inline to Util/classOf
  • CLJ-2986 Remove volatiles for transient vector fields

Fixes + tests:

  • CLJ-3002 function meta - Functions not "born" with meta use slow invoke path if added later
  • CLJ-2994 vector-of - reduce on dropped vector-of with 65505 or more elements never terminates
  • CLJ-2959 Closures with multiple captures emit nondeterministic bytecode
  • CLJ-2997 Reflective FI adapters differ in using truthy return logic
  • CLJ-3001 defrecord - add extmap tests
  • CLJ-2988 macro invocation type hints - add tests

Error messages:

  • CLJ-2884 recur - arg mismatch message prints file name, not file path
  • CLJ-1548 protocols - methods with primitive type hints cause ClassCastException at callsites

Docstrings:

  • CLJ-2476 future, send, send-of, pmap - note binding conveyance in docstring
  • CLJ-2329 partition-all - docstring should mention it returns vectors in transducer case
  • CLJ-2544 get - make docstring more like get-in
  • CLJ-2595 extend, etc - update docstring to mention Object
  • CLJ-2879 dedupe - docstring does not state that it returns a stateful transducer
  • CLJ-2890 read, read-string - update docstring link to edn-format.org

Security (changes from 1.12.7 + 1.12.8):

  • CLJ-2998 Add code deserialization control
  • CLJ-2993 Make AFunction throw on [de]serialization unless clojure.serializable.fns=true
3 Upvotes

1 comment sorted by

1

u/v4ss42 0m ago

`assoc-some` and `regex?` in particular are long overdue additions.