joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
2021-02-07T09:16:12.002100Z

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

2021-02-07T09:24:08.003200Z

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

2021-02-07T09:58:51.004100Z

I have answered my own question: https://gist.github.com/bf63ac3a014517cafa371e96fdddfea0

đź‘Ť 1
jcburley 2021-02-08T23:00:21.006500Z

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.

borkdude 2021-02-07T14:11:49.004300Z

@pyr cool trick

2021-02-07T14:47:15.005300Z

My rainy sunday experiment with joker: https://gist.github.com/pyr/d5e17af9c572b681a57de52895437298 (small replacement for lein's default behavior backed by tools.deps)

đź‘Ť 1
jcburley 2021-02-07T18:44:25.005400Z

While I’m fairly certain that @roman.bataev won’t “promise” that the core API will be stable, it looks like a pretty neat hack to me!

jcburley 2021-02-07T18:45:10.005600Z

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.

Candid 2021-02-07T19:27:51.005900Z

yeah, this is certainly not intended or supported use of Joker, but it is cool that you can package it up like this.

đź‘Ť 2