This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-04
Channels
- # admin-announcements (1)
- # adventofcode (98)
- # announcements (5)
- # asami (3)
- # babashka (24)
- # beginners (51)
- # bitcoin (3)
- # calva (24)
- # clj-kondo (73)
- # cljdoc (5)
- # cljs-dev (2)
- # clojure (15)
- # clojure-czech (3)
- # clojure-dev (27)
- # clojure-europe (7)
- # clojure-gamedev (1)
- # clojure-italy (2)
- # clojure-uk (1)
- # conjure (4)
- # cursive (18)
- # datahike (4)
- # datomic (3)
- # deps-new (7)
- # emacs (1)
- # events (10)
- # fulcro (5)
- # honeysql (4)
- # jackdaw (2)
- # java (13)
- # lsp (85)
- # meander (9)
- # membrane (1)
- # minecraft (1)
- # off-topic (45)
- # re-frame (16)
- # sql (17)
- # tools-deps (10)
- # vscode (9)
- # xtdb (8)
I didn't expect my Advent of Code solution to actually run faster with babashka. https://twitter.com/borkdude/status/1467114395159478277
This is great news. Perhaps it's due to Graal VM? it would be great to run on different machines and collect more datapoints
hello, is there a way to tell babashka to use a specific bb.edn
file that's not at the same working directory?
@wilkerlucio The question has come up before, but one difficulty here would be that bb.edn can contain relative :paths
- would these paths still be relative to the working directory or to the bb.edn itself?
gotcha, thanks man! I've been using the later tecnique, it just feels very tempting to be able to point to the bb.edn file
about the relative paths, I would assume they are relative to the bb.edn
file, maybe bb could have a flag -pwd
, which sounds more explicit in the sense the relative paths will be at the bb.edn
Here is also a technique you can use, if this applies to your situation: https://github.com/babashka/babashka/discussions/1044#discussioncomment-1544956
cool one 👍
There is also a discussion here about this topic: https://github.com/babashka/babashka/discussions/869 Feel free to chime in there.
What Node.js would do:
if you would invoke bb subdir/foo.clj
it would take the subdir/bb.edn
deps into account (but also those upwards to the root)
yeah, I can feel some odd situations that could come from that
I'm about to release a blog post on Babashka + Alfred (https://www.alfredapp.com/), my initial motivation was to use there, altough I found something that's even better for the Alfred case, which is just put a bb.edn
in the workflow configuration dir, and then a script running inside will pick it correctly
yeah, great place to add some inputs and invoke the script, in my daily work I need to generate those cpf/cnpj very often for testing, Im really happy with this setup 🙂
btw, if the bb.edn location hadn't worked out, there are other ways to set the classpath: • BABASHKA_CLASSPATH= • --classpath ... • (babashka.deps/add-deps ...) • (babashka.classpath/add-classpath ...)