All Versions
Latest Version
Avg Release Cycle
124 days
Latest Release

Changelog History
Page 2

  • v3.1 Changes

    โž• Added a new clojure.math namespace which provides wrappers for the functions available in java.lang.Math. ๐Ÿ‘ These functions are narrowed to only long and double overloads and provide primitive support without reflection.

    In addition, the following functions were added to clojure.core:

    • โšก๏ธ abs - absolute value in optimized form for all Clojure numeric types (long, double, ratio, bigint, bigdecimal)
    • NaN? - predicate for doubles to check whether "not a number"
    • infinite? - predicate for doubles to check whether positive or negative infinity

    • CLJ-2668 Add NaN? and infinite? predicates

    • CLJ-2664 Add namespace, wrappers for java.lang.Math

    • โšก๏ธ CLJ-2673 Add abs, and update min and max to use Math impls when possible

    • ๐Ÿ“„ CLJ-2677 clojure.math - fix method reflection in bodies and inlines, fix docstrings, renamed

    • โœ… CLJ-2689 Fix clojure.math tests to be more tolerant of floating point comparisons

  • v2.34 Changes

    Clojure APIs that pass work off to other threads (e.g. send, send-off, pmap, future) now convey the dynamic bindings of the calling thread:

    (def ^:dynamic *num* 1)
    (binding [*num* 2] (future (println *num*)))
    ;; prints "2", not "1"
  • v2.33 Changes

    You can hint different arities separately:

    (defn hinted
      (^String [])
      (^Integer [a])
      (^java.util.List [a & args]))

    ๐Ÿš€ This is preferred over hinting the function name. Hinting the function name is still allowed for backward compatibility, but will likely be deprecated in a future release.

  • v2.32 Changes

    (= (comp) identity)
    => true
  • v2.31 Changes

    ๐Ÿ“„ A def can now have a docstring between name and value.

    (def foo "a foo" :foo)
  • v2.30 Changes

    It's a best practice to name the threads in an executor thread pool with a custom ThreadFactory so that the purpose of these threads is clear in thread dumps and other runtime operational tools.

    Patch causes thread names like:

    clojure-agent-send-pool-%d     (should be fixed # of threads)
    clojure-agent-send-off-pool-%d (will be added and removed over time)
  • v2.29 Changes

    This patch allows clojure.main to accept an argument pointing to a namespace to look for a -main function in. This allows users to write -main functions that will work the same whether the code is AOT-compiled for use in an executable jar or just run from source.

  • v2.28 Changes

    Promoting this library eliminates the need for a dependency on old contrib.

  • v2.27 Changes

    This adds InputStream, Reader, File, byte[] to the list of inputs for

  • v2.26 Changes

    โž• Adds special form docs to the REPL