This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-31
Channels
- # announcements (7)
- # asami (2)
- # babashka (47)
- # beginners (8)
- # calva (42)
- # clj-kondo (58)
- # cljdoc (1)
- # clojure (88)
- # clojure-europe (11)
- # clojurescript (6)
- # conjure (7)
- # data-science (5)
- # emacs (9)
- # events (1)
- # holy-lambda (3)
- # introduce-yourself (5)
- # meander (3)
- # missionary (4)
- # nbb (18)
- # obb (5)
- # off-topic (1)
- # other-languages (10)
- # pathom (2)
- # reagent (6)
- # releases (3)
- # ring (3)
- # scittle (1)
- # shadow-cljs (1)
- # spacemacs (2)
- # xtdb (6)
Is my observation correct that java.util.concurrent.ConcurrentHashMap
is not available in bb?
Porting over this fn: https://github.com/clj-commons/manifold/blob/37658e91f836047a630586a909a2e22debfbbfc6/src/manifold/utils.clj#L77
As according to my measurements, satisfies? also suffers from relatively poor performance in bb not only clj
This implementation won't work in bb as protocols are implemented entirely differently
Is there a shortcut to invoke babashka from babashka (start another babashka process), like invoking (clojure ...
?
what's the recommend approach to using a library that depends on clojure.spec.alpha
?
I am trying to use one of my libraries. calling a function in it just hangs the REPL in bb
are there docs for adding reader conditionals for libs? e.g. do I need to make sure that the :bb
branch appears before :clj
?
May I refer you to our bb bible? :) https://book.babashka.org/#_reader_conditionals
on investigation, I'm finding that there are some clojure.lang.
classes and interfaces I'm using in some internal implementation details for performance that don't exist in bb. would you appreciate issues created for those?
I already opened one for clojure.lang.MapEntry/create
. I just found an interface, clojure.lang.IKVReduce/reducekv
that doesn't seem to exist
In bb it's usually not worth it using those internal clojure.lang stuff - just using the core functions is likely faster
if I'm going to add a bunch of reader conds to my lib for bb, is there an easy way to run my tests in CI using bb?
The cognitect test runner is compatible with bb if you add the bb fork of tools.namespace to your project: https://github.com/babashka/tools.namespace
But you can also just make a runner namespace: https://github.com/metosin/malli/blob/master/test/bb_test_runner.clj
For comparison:
$ bb -e '(time (dotimes [i 10000000] (first {:a 1})))'
"Elapsed time: 998.372221 msecs"
$ bb -e '(time (dotimes [i 10000000] (clojure.lang.MapEntry. :a 1)))'
"Elapsed time: 4668.442018 msecs"