babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
hugo 2020-11-22T02:23:53.450300Z

Is this expected?

user=> (.indexOf ["foo" "bar"] "bar")
Method indexOf on class clojure.lang.PersistentVector not allowed! [at <repl>:1:11]

borkdude 2020-11-22T08:26:51.450800Z

@hybas3 Interop with clojure.lang.PersistentVector isn't available in bb, this is the reason for this messge. To save space we haven't added all of the implementation details of Clojure to bb.

👍 1
borkdude 2020-11-22T09:58:03.451300Z

The babashka survey is running until December 1st. https://nl.surveymonkey.com/r/H2HK3RC After that I will analyze and publish the results. Get your feedback in while you still can!

2020-11-22T17:50:40.452600Z

Anyone know how to get the program name from within a Babashka program? E.g. like argv[0]. *command-line-args* is just the actual arguments. Thanks in advance!

borkdude 2020-11-22T18:15:30.452800Z

@eigenhombre *file* ?

👍 1
1
2020-11-22T18:21:26.453100Z

I looked for *args* in the README, should have searched for *path* or *file*! Thanks.

borkdude 2020-11-22T18:39:36.453300Z

Like in clojure *file* is the file currently being evaluated. If you have multiple files, you can also use (System/getProperty "babashka.file") which contains the file argument passed to babashka.