Fork me on GitHub
#babashka
<
2020-09-19
>
directedglaph03:09:12

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

borkdude13:09:26

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 :)

borkdude13:09:43

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 ""))'
200

borkdude13:09:57

although it will already default to the new sni-client

rickmoynihan22:09:06

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 .FileNotFoundException which I had to work around as integrant catches it, and it’s not included in bb; is that worth adding?

rickmoynihan23:09:56

ig/load-namespaces seems to work too

rickmoynihan23:09:01

pre-init-spec also seems to work with spartan

rickmoynihan23:09:13

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

rickmoynihan23:09:28

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 👍 👍 Thanks @borkdude it’s a really neat project!

rickmoynihan23:09:05

Time for bed though…