This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-07
Channels
- # announcements (6)
- # babashka (17)
- # beginners (72)
- # calva (27)
- # cider (26)
- # circleci (6)
- # clj-kondo (35)
- # cljdoc (3)
- # clojure (22)
- # clojure-australia (2)
- # clojure-dev (45)
- # clojure-france (2)
- # clojure-italy (2)
- # clojurescript (60)
- # conjure (16)
- # cursive (8)
- # datahike (10)
- # datascript (1)
- # datomic (3)
- # emacs (5)
- # fulcro (16)
- # graalvm (4)
- # honeysql (1)
- # joker (10)
- # luminus (3)
- # malli (7)
- # off-topic (28)
- # pathom (4)
- # pedestal (2)
- # polylith (1)
- # re-frame (6)
- # reagent (9)
- # reveal (4)
- # shadow-cljs (48)
- # slack-help (1)
- # tools-deps (30)
- # vim (24)
Something I have been wondering is whether it is possible to bundle the joker source of a script and joker itself to share standalone executables
It doesn't seem so but if I read things correctly in main.go
all that would be required is to use joker as a library and to create a new ProcessReader
from a reader
I have answered my own question: https://gist.github.com/bf63ac3a014517cafa371e96fdddfea0
While I’m fairly certain that @U75LX44UA won’t “promise” that the core API will be stable, it looks like a pretty neat hack to me!
Also, I’m unsure as to whether/how that interacts with the startup-time accelerator that’s usually run as part of Joker’s default build script, run.sh
.
yeah, this is certainly not intended or supported use of Joker, but it is cool that you can package it up like this.
@U7W1AJ761 you need to run run.sh
in the joker source repo before being able to use it like that
Yeah, I was thinking that'd be the case! Before the gen_code
tool is run (by core/object.go
), via -tags gen_code
to pick up the *_slow_init.go
files (that aren't built into the final executable), the "static-initialization" code that Joker needs hasn't yet been generated.
My rainy sunday experiment with joker: https://gist.github.com/pyr/d5e17af9c572b681a57de52895437298 (small replacement for lein
's default behavior backed by tools.deps)