This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-20
Channels
- # adventofcode (29)
- # announcements (7)
- # aws (1)
- # babashka (3)
- # beginners (43)
- # biff (20)
- # clj-kondo (44)
- # cljs-dev (20)
- # clojure (74)
- # clojure-europe (24)
- # clojure-finland (2)
- # clojure-nl (13)
- # clojure-norway (3)
- # clojurescript (31)
- # code-reviews (1)
- # community-development (12)
- # cursive (3)
- # datomic (6)
- # emacs (1)
- # fulcro (25)
- # interop (7)
- # introduce-yourself (2)
- # leiningen (30)
- # nbb (3)
- # overtone (1)
- # podcasts-discuss (5)
- # polylith (24)
- # practicalli (1)
- # reclojure (1)
- # reitit (13)
- # rum (7)
- # shadow-cljs (12)
- # sql (23)
- # squint (51)
- # test-check (1)
- # testing (2)
- # tools-deps (2)
I’m trying to use clojure.core.match in nbb - is that possible? It looks like @borkdude added it to Babashka at some point but not sure if that means it gets into SCI or just impl’d at the Babashka level. I added it to my deps.edn and see that it’s downloaded but I get `Message: Could not find namespace: clojure.core.match Could not find namespace: clojure.core.match` when I try to require it
The clojure.core.match namespace for CLJS is exposed as cljs.core.match
but this dependency relies on macros being loaded in a JVM (`.clj` extentensions) so you can't run it from source in nbb right now
Published a new version of nbb with upgraded SCI which has interop improvements. Here we're comparing clojure.math/sin
called in SCI 1M times vs the interop version:
user=> (require '[clojure.math :as math])
nil
user=> (time (dotimes [i 1000000] (math/sin 1)))
"Elapsed time: 155.598000 msecs"
nil
user=> (time (dotimes [i 1000000] (Math/sin 1)))
"Elapsed time: 148.164333 msecs"
nil
Previous version:
user=> (time (dotimes [i 1000000] (Math/sin 1)))
"Elapsed time: 592.297750 msecs"
nil
user=> (time (dotimes [i 1000000] (math/sin 1)))
"Elapsed time: 150.626542 msecs"
nil