This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-18
Channels
- # atom-editor (5)
- # babashka (15)
- # beginners (80)
- # calva (11)
- # cestmeetup (6)
- # chlorine-clover (15)
- # cider (22)
- # circleci (3)
- # clojure (57)
- # clojure-europe (19)
- # clojure-italy (1)
- # clojure-nl (4)
- # clojure-spec (1)
- # clojure-switzerland (1)
- # clojure-uk (88)
- # clojurescript (92)
- # code-reviews (1)
- # cursive (6)
- # data-science (5)
- # datascript (6)
- # datomic (12)
- # events (7)
- # figwheel-main (2)
- # fulcro (55)
- # graalvm (2)
- # helix (6)
- # juxt (6)
- # kaocha (11)
- # luminus (2)
- # off-topic (82)
- # pathom (27)
- # portal (1)
- # re-frame (3)
- # reitit (25)
- # remote-jobs (8)
- # sci (11)
- # shadow-cljs (29)
- # slack-help (2)
- # spacemacs (9)
- # specter (4)
- # sql (9)
- # tree-sitter (1)
- # uncomplicate (1)
- # xtdb (26)
Building a bb uberjar in milliseconds :)
borkdude@MBP2019 /tmp/proj2 $ time bb -cp src -m my.main-main --uberjar /tmp/foo.jar --verbose
Building uberjar: /tmp/foo.jar
src
src/my/impl.clj
src/my/main_main.clj
src/my/impl2.clj
Generating META-INF/MANIFEST.MF:
Manifest-Version: 1.0
Built-By: depstar
Build-Jdk: 11.0.7
Main-Class: my.main_main
bb -cp src -m my.main-main --uberjar /tmp/foo.jar --verbose 0.01s user 0.01s system 86% cpu 0.030 total
borkdude@MBP2019 /tmp/proj2 $ time bb /tmp/foo.jar 1 2 3
("1" "2" "3")
bb /tmp/foo.jar 1 2 3 0.02s user 0.01s system 93% cpu 0.035 total
borkdude@MBP2019 /tmp/proj2 $ ls -lah /tmp/foo.jar
-rw-r--r-- 1 borkdude staff 1.1K Aug 18 16:55 /tmp/foo.jar
💯 15
🎉 18
I have tried compiling the tools.jar that is used both by clojure
and deps.exe
with GraalVM but that didn't work, so for now the answer is no.
https://github.com/borkdude/tools-deps-native-experiment
I have it compiling wit graalvm, but am getting a runtime error creating a maven system, so I guess I’m getting options wrong somewhere
Due to classpath caching it's only slow the first time, but it'd still be cool to not need a JVM for this