babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
borkdude 2020-10-30T17:20:05.126Z

I'm considering running a babashka questionnaire in December to learn what people are using babashka for, what they find lacking or redundant. If you would like to feature a question in the questionnaire, please respond in thread.

holmdunc 2020-10-31T13:35:37.131200Z

Whether implicit printing of the last evaluation in the script to stdout should be enabled by default

✔️ 1
borkdude 2020-10-31T13:37:51.131500Z

Thanks. If you don't want this, you can end the script with nil.

holmdunc 2020-10-31T13:50:41.131700Z

Is the intention that it's a kind of safety net, i.e. "you forgot to do something with this value"?

borkdude 2020-10-31T13:51:45.131900Z

It's more historical consistency with -e "(+ 1 2 3)"

holmdunc 2020-10-31T13:54:51.132100Z

In a #! interpreter for a general-purpose language, I don't think there's much precedent for doing it. But then again, many of them aren't functional/expression-based.

borkdude 2020-10-31T13:57:59.132300Z

I'll include the question

👍 1
borkdude 2020-10-30T19:14:58.127600Z

I'm slightly worried that with org.httpkit.client some people will run into the issues that it consumes the entire request / response into memory. I hadn't seen those issues before I added it and people were mostly positive about httpkit. Maybe people don't do huge requests mostly? cc @alekcz360

rwstauner 2020-10-30T21:58:25.129Z

yeah, for small use cases it's super handy and IMO if you build something big enough that it needs to be optimized you could probably stand to make a clojure project out of it

rwstauner 2020-10-30T21:59:18.130100Z

your image_viewer example is absurdly handy

lukasz 2020-10-30T21:59:30.130400Z

+1, I'm using it to get JSON payloads from servers, I wouldn't use it to process files etc - we have "big" Clojure for that

borkdude 2020-10-30T22:03:19.131100Z

makes sense. also big files you can do with babashka.curl as well which won't hold it in memory at once when streaming