This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-02
Channels
- # announcements (1)
- # babashka (19)
- # beginners (85)
- # calva (1)
- # cider (23)
- # clara (19)
- # clj-kondo (28)
- # clojars (4)
- # clojure (60)
- # clojure-australia (8)
- # clojure-dev (14)
- # clojure-europe (117)
- # clojure-nl (3)
- # clojure-uk (11)
- # clojurescript (68)
- # conjure (2)
- # core-async (39)
- # cryogen (11)
- # cursive (7)
- # data-science (1)
- # datomic (9)
- # emacs (10)
- # etaoin (1)
- # events (1)
- # fulcro (1)
- # helix (10)
- # jobs (4)
- # kaocha (2)
- # keechma (3)
- # leiningen (1)
- # malli (6)
- # pathom (15)
- # pedestal (10)
- # re-frame (5)
- # reitit (1)
- # remote-jobs (1)
- # rum (3)
- # shadow-cljs (18)
- # tools-deps (30)
- # vim (6)
Wrote down some notes on http client and server here: https://github.com/borkdude/babashka/issues/628
> http-kit keeps the whole response in memory
this kind of surprising to me. is this an artifact of the how it's implemented/added into bb? you should be able to use {:as :stream}
to get a bytestream on any request
see: https://github.com/http-kit/http-kit/blob/master/src/java/org/httpkit/client/RespListener.java#L136 and http://http-kit.github.io/client.html (search for "output coercion")
yeah i was just looking at that code
that's kinda surprising, honestly. good find
But you can use babashka.curl for big streams. I hope it will get fixed eventually in http-kit but it's been like this for years apparently
This project works with bb: https://github.com/ordnungswidrig/sha-words It translates SHAs or UUIDs in human-readable words
so, there is now a Raspberry Pi with 8GB of memory. Should be sufficient to get babashka compiling on such a machine https://www.raspberrypi.org/products/raspberry-pi-4-model-b/?resellerType=home
@mathpunk I saw a question about babashka.process, and I was going to give an example, but I saw you removed it. Posting it anyway.
user=> (def cat-proc (babashka.process/process ["cat"]))
#'user/cat-proc
user=> (def writer (io/writer (:in cat-proc)))
#'user/writer
user=> (binding [*out* writer] (println "hello"))
nil
user=> (binding [*in* (io/reader (:out cat-proc))] (read-line))
"hello"
oh thank you! i had a moment where i felt self-conscious and like i should go answer it via documentation
the last line shows how you can read lines from a process and wait for certain output
