This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-16
Channels
- # announcements (33)
- # asami (37)
- # autochrome-github (1)
- # aws (5)
- # babashka (26)
- # babashka-sci-dev (18)
- # beginners (63)
- # biff (1)
- # calva (66)
- # cider (15)
- # clj-kondo (24)
- # cljs-dev (2)
- # cljsrn (14)
- # clojure (62)
- # clojure-doc (1)
- # clojure-europe (15)
- # clojure-nl (11)
- # clojure-spec (12)
- # clojure-uk (4)
- # clojurescript (45)
- # community-development (2)
- # cursive (34)
- # datahike (7)
- # datomic (7)
- # events (1)
- # figwheel-main (5)
- # fulcro (19)
- # gratitude (7)
- # holy-lambda (85)
- # hyperfiddle (4)
- # jobs (7)
- # jobs-discuss (25)
- # kaocha (4)
- # lsp (11)
- # off-topic (1)
- # polylith (20)
- # portal (14)
- # practicalli (6)
- # proletarian (5)
- # rdf (52)
- # re-frame (13)
- # reagent (48)
- # releases (1)
- # remote-jobs (3)
- # shadow-cljs (7)
- # tools-deps (17)
Babashka 0.7.5 with significant performance improvements. More of those to come in 2022! https://github.com/babashka/babashka/blob/master/CHANGELOG.md#075-2022-02-16
I’m getting an error No dispatch macro for: "
when trying to use the following in a task:
(string/replace s #"xx" "'xxx'")
Am I missing something here? :thinking_face:@martinklepsch tasks are defined in an .edn file and regex literals aren't supported in EDN. you have the following options:
1. Add :paths
and :requires
and move the code to a file on the classpath (in one of the :paths).
2. Use (re-pattern ...)
Ahhh, ofc! Thank you
So easy to forget when your task is growing beyond a line or two
yeah I think we should encourage people to put most of their code in a file, which makes it also more REPL-friendly
@martinklepsch Thanks for your Github star :)
that was long overdue lol
I don’t use stars much really so mostly doing it to signal “this is awesome” hahah
Gentle reminder that I'm still running the Babashka 2022 Q1 Survey! https://docs.google.com/forms/d/e/1FAIpQLScQ13ZKsXzN594uvzxOTV8juaoETIHDk-T1XBizwe-fVh8Gyw/viewform Results will be published in an article at the end of the quarter.
Do you expect Babashka only answers or can I mix some Sci in?
@U0FT7SRLP You can mix some SCI in, especially at the end there is some room for that
perfect
@U0FT7SRLP Thanks again to Adgoji for sponsoring, it's helping me tremendously develop babashka, SCI, clj-kondo, etc.
Happy to hear that! We like all the things you are producing 🙂
Not enough time to try out all the things you are making :rolling_on_the_floor_laughing:
is there a way either immediately finish a task or wait for another task to finish? Use case is having task a) depend on some data and the data can come either from user input or by querying stuff say task b). I always want to run task b) immediately sometimes a) needs to wait for it and sometimes it doesn't. I have an idea where I define some global promise of task b) output. Then a) can decide to deref that
@benjamin.schwerdtner That sounds like something you might want to do in user space, using promises or core.async
E.g.:
(def result (promise))
(future (Thread/sleep 10000) (deliver result :from-future))
(future (Thread/sleep 1000) (deliver result :from-input))
@result ;;=> :from-input
do you have an idea for a date picker "ui" using bb? I'm about to make in args or "args file" but maybe there is some shlick way
you could use dialog
https://makandracards.com/makandra/44334-open-dialogs-from-shell-scripts#section-example-date-picker
or if you want really fancy you can use nbb and reagent components