This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-19
Channels
- # announcements (52)
- # asami (83)
- # atom-editor (1)
- # babashka (143)
- # beginners (123)
- # calva (18)
- # chlorine-clover (21)
- # cider (7)
- # clj-kondo (57)
- # cljs-dev (4)
- # clojure (209)
- # clojure-boston (1)
- # clojure-europe (27)
- # clojure-germany (12)
- # clojure-italy (17)
- # clojure-nl (3)
- # clojure-serbia (6)
- # clojure-spec (1)
- # clojure-uk (59)
- # clojurescript (82)
- # conjure (9)
- # core-async (6)
- # cursive (20)
- # data-science (1)
- # datahike (1)
- # datascript (1)
- # datomic (86)
- # duct (5)
- # emacs (6)
- # events (6)
- # figwheel-main (4)
- # fulcro (27)
- # graalvm (19)
- # leiningen (14)
- # lsp (30)
- # malli (48)
- # meander (3)
- # off-topic (6)
- # pedestal (2)
- # practicalli (1)
- # rewrite-clj (21)
- # shadow-cljs (18)
- # sql (15)
- # tools-deps (9)
- # vim (3)
- # wasm (3)
- # xtdb (18)
FYI, we just used rewrite-clj
to create a script.
It massages legacy re-com
codebases to include a newly introduced re-com
feature:
https://github.com/day8/re-com/tree/master/scripts/add-at-macro
Worked a treat. Thanks!

Awesome! Thanks for sharing @mikethompson !
rewrite-clj
is dang cool. I wish I’d looked for it before. I’m definitely going to try to use it more in the future.
@reefersleep I'm considering of writing a bb-like tool with rewrite-clj in it. Do you think this would be useful? Transform code in a blink of an eye
Certainly!
Also considering of adding it to bb itself, but not sure how much extra weight this would bring in and if it's generally scripting-focused enough to add
To my shame, I haven’t really used bb
yet, though. I keep thinking it’s really cool, but I tend to do things from inside a repl in Cursive, making ad hoc projects for things like scripting things with rewrite-clj.
Another binary could have have another focus. E.g. also add instaparse to it and other parser-related tools
Good point.
idk how those things would compose.
I need to look through your repositories to get an overview of your projects, and to try to use bb
more. I feel like I’m missing out 🙂
I would say, anytime you need to write a bash script longer than 5 lines for your clojure build, it's worth taking a look at bb
funny, this was something that I was hammocking lately. In a production-oriented build I'd use clj
, because many prod builds take something like 10m or more, so a difference measured in seconds barely matters.
I would still keep the .clj script bb-compatible (shebang and all) so that devs can iterate on the scripts comfortably
@U45T93RA6 true, in CI it usually doesn't matter a lot, but for local development it's nicer to have it all fast at your fingertips I find
and it's indeed one of bb's goals to offer a sane migration path to clj when you need to, no "vendor lock-in", all libs in bb also run with the JVM
yes, I definitely appreciate that bb is not its own island otherwise creating an arbitrary fast-starting lisp would be too easy :)
I wrote a bash script for the first time in ages the other day. It wasn’t horrible but it wasn’t bb.