[metosin/jsonista "0.2.7"]
is out! Jsonista is a fast JSON decoder & encoder on top of Jackson Databind. This version adds:
β’ new prebuilt keyword-keys-object-mapper
for easy support of Keywords keys
β’ updateds to latest Jackson versions
β’ ships with new JMH-based perf tests claiming itβs faster than vanilla Jackson on encoding π€ͺ
https://github.com/metosin/jsonista
if someone can share whatβs wrong with the perf test setup, Iβm all ears.
seancorfield/depstar {:mvn/version "1.1.104"}
is available -- for building JAR/uberjar files using the Clojure CLI/`deps.edn` https://github.com/seancorfield/depstar
Enhancements:
* Fix #37 by adding -X
/ --exclude
to provide one or more regex used to exclude files from the JAR.
* Fix #35 by providing hf.depstar.jar/run
and hf.depstar.uberjar/run
as entry points that can be used by the (new) Clojure CLI -X
option (to execute a specific function and pass a map of arguments).
* Fix #34 by adding -P
/ --classpath
option to specify a classpath to use (based on PR #36 @borkdude).
* Fix #33 by allowing destination JAR filename to appear anywhere on the command-line as well as adding a -J
/ --jar
option for it.
Documentation:
* Address #31 by clarifying in the README that (:gen-class)
is required for AOT.
Follow-up in #tools-deps
The Clojure CLI -X
option is available in prerelease builds of clojure
(not the stable build) and is subject to change -- and the run
functions here may also change to track that feature, if necessary.
A fork of this library is going to appear in babashka 0.2.0. Thanks for the lib!
@borkdude Is there anything I can do to the core code that will make it easier to integrate into Babashka?
@seancorfield I basically just needed to get rid of references to AOT-compilation since that doesn't work with GraalVM
if you include a reference to clojure.core/compile
then it won't ... compile :)
Not entirely true. Now I remember. It did compile. It only bloated the binary with another 30MB. Stripping away that code solved the problem.