This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-16
Channels
- # announcements (1)
- # babashka (23)
- # beginners (157)
- # boot (3)
- # calva (2)
- # chlorine-clover (12)
- # cider (14)
- # clara (5)
- # clj-kondo (6)
- # cljs-dev (61)
- # cljsrn (30)
- # clojure (65)
- # clojure-argentina (8)
- # clojure-berlin (2)
- # clojure-europe (13)
- # clojure-france (9)
- # clojure-germany (2)
- # clojure-italy (4)
- # clojure-nl (6)
- # clojure-portugal (2)
- # clojure-romania (2)
- # clojure-uk (76)
- # clojurescript (56)
- # conjure (52)
- # core-async (37)
- # datomic (209)
- # duct (17)
- # emacs (17)
- # exercism (1)
- # fulcro (26)
- # graalvm (5)
- # instaparse (2)
- # jackdaw (9)
- # jobs-discuss (27)
- # joker (2)
- # juxt (23)
- # leiningen (4)
- # malli (11)
- # midje (3)
- # pedestal (2)
- # quil (2)
- # re-frame (78)
- # reagent (8)
- # reitit (18)
- # remote-jobs (1)
- # ring (2)
- # ring-swagger (1)
- # shadow-cljs (29)
- # sql (11)
- # test-check (12)
- # tools-deps (5)
- # xtdb (16)
- # yada (4)
Thanks @borkdude. I downloaded basbashka into my working environment and I am so happy to use Clojure at bash level :)
I will be one of your first client for your babashka book :)
This is also quite good for teaching and demonstration: just download the bb.exe and then you are good to use Clojure (at least a big chunk of it).
@neo2551 There is also a 4clojure port to a bb script: https://github.com/porkostomus/4bb
Thanks :). You know what would be really meta? Having the leiningen script file run under babashka
But I guess it is a bit too complicated haha
@neo2551 In fact I've ported the clojure
bash script to babashka here: https://github.com/borkdude/deps.clj
Yep I need to check how I can use it! Thanks
I don't expect the lein bash script to be more complicated than this -- it's probably very similar
The nice thing about porting it to bb (or clojure + graalvm for that matter) is that it becomes (more) portable across OSes
Agree, I think it could be a nice idea, I am not sure I am fit to the task so I don’t want to push it too much haha.
By the way, I can’t use deps.exe because of company firewall for the Clojure-tools jar unfortunately.
@neo2551 There is an easy workaround: download the .jar file yourself and put it in ~/.deps.clj/ClojureTools
It's part of this zip file: https://download.clojure.org/install/clojure-tools-1.10.1.507.zip
or maybe the script can print a message when the download fails because of a connect error
I think my issue is company proxy bug :/
Yep your tricks work :)
On master: clojure.repl/source
(only works with code loaded from source, not with pre-compiled code)
$ export BABASHKA_CLASSPATH=$(clojure -Sdeps '{:deps {mvxcvi/arrangement {:mvn/version "1.2.0"}}}' -Spath)
$ rlwrap bb
user=> (require '[arrangement.core :as order])
nil
user=> (source order/rank)
(defn rank
"Comparator function that provides a total ordering of EDN values. Values of
...