This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-07
Channels
- # announcements (1)
- # babashka (79)
- # beginners (177)
- # cider (27)
- # cljdoc (24)
- # cljs-dev (4)
- # clojure (43)
- # clojure-norway (7)
- # clojure-uk (3)
- # clojurescript (52)
- # conjure (12)
- # crux (17)
- # cryogen (1)
- # cursive (5)
- # data-science (7)
- # datahike (1)
- # datomic (1)
- # dirac (2)
- # helix (14)
- # jobs-discuss (130)
- # juxt (4)
- # liberator (4)
- # malli (2)
- # mxnet (2)
- # news-and-articles (1)
- # nrepl (19)
- # off-topic (27)
- # pathom (3)
- # practicalli (1)
- # re-frame (4)
- # reagent (2)
- # ring (7)
- # shadow-cljs (21)
- # spacemacs (11)
- # vim (38)
- # xml (2)
anyone having problems with clj-http lite?
I couldn't require the client ns
using babashka
Invoke vim in the middle of a script, discovered by @marques.goncalves.fel :
#!/usr/bin/env bb
(require '[ :as io])
(defn vim [file]
(->
(ProcessBuilder. ["vim" file])
(.inheritIO)
(.start)
(.waitFor)))
(def readme
(let [f (io/file "README.md")]
(when (not (.exists f))
(vim (.getPath f)))
(slurp f)))
(println readme)
I am publishing my very first Babashka pod that uses multigrep
library.
https://github.com/agilecreativity/pod-b12n-mgrep
Just my two 2 cents for improvement for babashka. This is only a personal feedback, so I hope you do not take it personally, it is probably only me. One of my biggest issue is about adding library to Babashka. I know there is documentation, but somehow, it does not feel easy (as you have to export the classpath as a string and everything, and it might be harder to make transportable). For example, I wanted to use clj-http-lite and I find it convoluted. Is there a way babashka could leverage on deps.edn for building the cp
?
@neo2551 using https://github.com/borkdude/deps.clj this is possible
@neo2551 Btw, any reason you're using clj-http-lite and not the built-in babashka.curl? Maybe besides the point of using libs as a general question
I tried it at work, and I just wanted to make a post request with some arguments and somehow with a similar code clj-http-lite managed to return me the correct response while babashka.curl could not.
It was about content length from the header request
I think
I was a bit in a rush, so I did not took the time to perfectly found the cause, sorry.
please report any issues with babashka.curl at https://github.com/borkdude/babashka.curl
I would need to find the exact cause, otherwise I don't want to waste your time!
I will try that 🙂 Thanks a lot
Does deps start faster than clojure?
similar. there are two flavors: one that runs as a babashka script and natively compiled binaries for linux, mac and windows.
the bb script runs a few ms slower than the bash equivalent, the binary might be slightly faster
Thanks!