This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-22
Channels
- # announcements (1)
- # aws (11)
- # babashka (10)
- # beginners (49)
- # calva (32)
- # cljsrn (3)
- # clojure (123)
- # clojure-australia (1)
- # clojure-dev (2)
- # clojure-europe (27)
- # clojure-spec (1)
- # clojurescript (22)
- # clojutre (1)
- # code-reviews (1)
- # conjure (3)
- # editors (32)
- # emacs (3)
- # graalvm (12)
- # kaocha (1)
- # lsp (1)
- # malli (2)
- # off-topic (1)
- # schema (2)
- # shadow-cljs (32)
- # spacemacs (6)
- # tools-deps (4)
Is there a bb.edn file which lets me say "bb make-natives foo.clj" where foo.clj has "(defn main [] (println 88))" and generates native binaries for all the platforms?
@bherrmann with graalvm?
This tutorial comes pretty close: https://github.com/borkdude/jayfu GraalVM doesn't allow cross compilation though
Perhaps native binary is not what I need. I have something like 10 command line programs that I would like to deliver to my colleges who are on linux/osx/windows. For OSX and Linux, I can just deliver #!/usr/bin/env bb - assuming my windows devs are not using wsl, is there something similar for windows? or would they need to invoke
c:\> bb c:\scripts\ arg1
vs
$ stats arg1 # on Linux or OSX
The babashka book has a recipe for a .bat shebang. I can find the link for you when I’m back at a computer
You will need to create separate .bat scripts for those, but you can of course script that
Oh it's not in the book yet: https://github.com/babashka/book/issues/26
cool, I did know http://command.com could do that - great.
Babashka SQL pods 0.0.8 - Now also available on Windows! - The Oracle and MySQL drivers are now available from the pod registry https://github.com/babashka/babashka-sql-pods https://github.com/babashka/pod-registry Babashka SQL pods let you access databases from babashka scripts via the next.jdbc API.