babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
whacked 2020-09-19T03:52:12.009900Z

just started to use babashka. so much happiness. thank you borkdude

đź‘Ť 1
borkdude 2020-09-19T13:26:26.010700Z

If anyone wants something to do this weekend: https://github.com/borkdude/babashka.curl/issues/26 I'll make a new bb release probably on Wednesday - if you want to get it in before then :)

borkdude 2020-09-19T13:29:43.011200Z

Also, this now also works for compatibility with httpkit:

$ bb '(ns foo (:require [org.httpkit.client :as cl] [org.httpkit.sni-client :as sni])) (alter-var-root (var cl/*default-client*) (constantly sni/default-client)) (:status @(cl/get "<https://www.google.com>"))'
200

borkdude 2020-09-19T13:29:57.011500Z

although it will already default to the new sni-client

2020-09-19T22:52:06.016Z

I’ve created an experimental babashka compatible fork of integrant here: https://github.com/RickMoynihan/integrant and also the dependency library that integrant uses: https://github.com/rickmoynihan/dependency I’ve not tried using it yet beyond a very simple test that works, so YMMV using it. The required changes to both libraries are quite small, so it may be possible to merge them upstream. @borkdude: Whilst doing this I noticed that <http://java.io|java.io>.FileNotFoundException which I had to work around as integrant catches it, and it’s not included in bb; is that worth adding?

2020-09-19T23:12:56.016600Z

âś… ig/load-namespaces seems to work too

2020-09-19T23:16:01.017600Z

âś… pre-init-spec also seems to work with spartan

2020-09-19T23:17:13.018500Z

Looks like the main things probably work, though it would be nice to run the test suites for dependency and integrant under the bb environment

2020-09-19T23:23:28.022100Z

So far really enjoying working with bb… most things seem to just work as expected (or at least as documented). Having never really used bb before, much beyond entering (+ 1 2 3) at a repl it really seems pretty solid. Going from essentially zero to porting integrant took little over an hour :thumbsup: :thumbsup: Thanks @borkdude it’s a really neat project!

2020-09-19T23:24:05.022700Z

Time for bed though…