clj-easy / graal-docs

Scripts and tips to get Clojure latest working with GraalVM latest
Eclipse Public License 1.0
390 stars 20 forks source link

Notes on clojure.pprint #19

Closed borkdude closed 4 years ago

borkdude commented 4 years ago

Adding pprint to babashka yields the following:

$ lein do clean, uberjar && /Users/borkdude/Downloads/graalvm-ce-java8-19.3.0/Contents/Home/bin/java -agentlib:native-image-agent=config-output-dir=/tmp/configs -jar target/babashka-0.0.38-SNAPSHOT-standalone.jar '(clojure.pprint/pprint {:a 1})'
WARNING: Unsupported JNI function DefineClass used to load class org/graalvm/compiler/hotspot/management/libgraal/runtime/SVMHotSpotGraalRuntimeMBean
WARNING: Unsupported JNI function DefineClass used to load class org/graalvm/compiler/hotspot/management/libgraal/runtime/SVMHotSpotGraalRuntimeMBean$Factory
WARNING: Unsupported JNI function DefineClass used to load class org/graalvm/compiler/hotspot/management/libgraal/runtime/SVMHotSpotGraalRuntimeMBean$PushBackIterator
WARNING: Unsupported JNI function DefineClass used to load class org/graalvm/compiler/hotspot/management/libgraal/runtime/HotSpotToSVMCalls
WARNING: Unsupported JNI function DefineClass used to load class org/graalvm/compiler/hotspot/management/libgraal/runtime/SVMToHotSpotEntryPoints
{:a 1}

And when you compile, you get a warning about DefineClass as well I have pasted all the code from clojure.pprint in one file and tried to bisect it, but I could not get rid of this somehow.