This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-14
Channels
- # adventofcode (42)
- # babashka (37)
- # beginners (62)
- # cider (13)
- # clj-kondo (12)
- # cljdoc (1)
- # clojure (80)
- # clojure-australia (2)
- # clojure-dev (43)
- # clojure-europe (69)
- # clojure-italy (8)
- # clojure-nl (10)
- # clojure-switzerland (130)
- # clojure-uk (12)
- # clojurescript (23)
- # code-reviews (8)
- # cryogen (5)
- # cursive (6)
- # datomic (3)
- # duct (4)
- # emacs (12)
- # fulcro (60)
- # kaocha (7)
- # lambdaisland (4)
- # malli (4)
- # meander (1)
- # nrepl (31)
- # off-topic (2)
- # re-frame (16)
- # rewrite-clj (5)
- # shadow-cljs (11)
- # spacemacs (7)
- # xtdb (1)
@borkdude how much do you think would it cost you to build bigger binaries?
Well, I was curious how much it would cost you if you had to leave the free tier of CI.
I think somewhere between 150-300 dollars a month based on current usage on CircleCI. But maybe it would be possible to setup some AWS/other cloud stuff as well. Not sure.
(I am referring to your study on the survey).
Any tips on emacs integration with babashka?
Do you mean like interacting with a REPL? Or doing fun things from emacs with babashka?
Yeah, repl for one, also the linter i have doesn't like some of the implicitely included libs
@cgboal521 For the linter, read this: https://book.babashka.org/#style For running a REPL, read this: https://book.babashka.org/#repl
Ah okay nice one, so just include the stuff you want to use to shut up the linter
Tips on fixing this one?
(ns babashka-test
(:refer-clojure :exclude [list]))
(defn list [& args])
(defn void [& args])
(defmacro * [& args]
`(void (list ~@args)))
(prn (macroexpand '(* 1 2 3)))
;; =>
(babashka-test/void (clojure.core/list 1 2 3))
I know where to fix it, it's not hard. If you think it's fun to fix, I can point you to it, but else I'll fix it soon
@noprompt here it should be fixable: https://github.com/borkdude/sci/blob/master/src/sci/impl/parser.cljc#L23
Asked another way, can I solve this from the REPL and then run the tests in the shell?
Yes. you clone the sci project. and then:
$ clj
Clojure 1.10.1
user=> (require '[sci.core :as sci] :reload-all)
nil
user=> (sci/eval-string "(ns foo (:refer-clojure :exclude [inc])) (defn inc []) `inc")
clojure.core/inc
user=>
@noprompt if you stick this in fully-qualify:
_ (prn the-current-ns)
you will see:
user=> (sci/eval-string "(ns foo (:refer-clojure :exclude [inc])) (defn inc []) `inc")
{:obj #object[sci.impl.vars.SciNamespace 0x699e81db "foo"], :refer {clojure.core {:exclude #{inc}}}, inc #'foo/inc}
clojure.core/inc