News for hackers. Stuff that matters.
Re:Try out Clojure libraries via rebel-readline by ngcc_hk on Thursday April 06, 2023 @01:54AM (#35464665)
How to start the thing if you are on macOS?
Re:Try out Clojure libraries via rebel-readline by eval on Thursday April 06, 2023 @05:45AM (#35466266)
Re:Try out Clojure libraries via rebel-readline by koito17 on Thursday April 06, 2023 @02:00AM (#35464702)
Can someone contrast this with the long existing lein-try or a setup like using Pomegranate with an injection in a Leiningen project so that you can add arbitrary dependencies to a live REPL?
Re:Try out Clojure libraries via rebel-readline by eval on Thursday April 06, 2023 @05:42AM (#35466242)
This is indeed the lein-try for tools-deps. Published libraries can be loaded but also github/gitlab/sourcehut-projects (as long as $project_root/deps.edn exists).

Rebel-readline (vendored and extended in this project) is essentially a tiny IDE as it provides syntax highlighting, formatting, code completion, docs, show source, show examples etc.

Re:Try out Clojure libraries via rebel-readline by BaculumMeumEst on Thursday April 06, 2023 @04:32AM (#35465793)
I'm on Mac. I installed bbin, and followed the repo instructions to install deps-try with bbin, but deps-try is not on my path.
Re:Try out Clojure libraries via rebel-readline by eval on Thursday April 06, 2023 @05:27AM (#35466144)
Is ~/.babashka/bbin/bin on PATH? Does installing any of the other libs from https://github.com/babashka/bbin#usage work?
Re:Try out Clojure libraries via rebel-readline by BaculumMeumEst on Thursday April 06, 2023 @06:05AM (#35466374)
Gah, I missed step 2 on bbin installation instructions: echo 'export PATH="$PATH:$HOME/.babashka/bbin/bin"' >> ~/.$(basename $SHELL)rc && exec $SHELL

Working now, thanks. I love these kinds of sandbox development tools so this is very much appreciated.

Re:Try out Clojure libraries via rebel-readline by geokon on Friday April 07, 2023 @02:45AM (#35478836)
The setup seems a bit convoluted. You can just launch a REPL with 'add-libs' (and whatever other dependency you want) and then add any libs/dependencies you wanna poke at at runtime

This isnt to be dismissive. It's still handy to have an alias that runs an 'add-libs' enabled REPL. And nice to have a shortcut to fetch the latest version of a lib from maven or GitHub