babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
grazfather 2021-03-28T04:53:37.225500Z

cool. But yours obviously doesn’t topologically sort the tasks and does them whether or not they need to be done. I wonder if there could be a simple way to do that in BB

grazfather 2021-03-28T04:54:52.226300Z

Basically, yeah if your Makefile is just a bunch of tasks, bb tasks might be a lot nicer. If your makefile is used to articulate dependencies, then bb has some work to do to catch up 😉

borkdude 2021-03-28T07:05:41.227400Z

@grazfather Correct. This Makefile didn’t really leverage that

👍 1
borkdude 2021-03-28T07:06:12.228100Z

Ostensibly it did, but if you look closer, it doesn’t

mbjarland 2021-03-28T09:28:09.231700Z

A quick question and apologies if this has been answered somewhere already. What is the best ad-hoc script development environment for babashka? vscode? atom? cursive? I currently use cursive for my clojure needs. I’m hoping for a flow where I can just fire up an editor/ide with an ad hoc bb script file, start a repl against bb without too much ceremony and ideally get things like completion. I realize this is opinion based. Also, I’m probably not going to teach myself emacs for this task : )

borkdude 2021-03-28T09:28:59.232400Z

@mbjarland babashka has an nREPL server, you can start it with bb --nrepl-server and then connect to it from e.g. Calva

borkdude 2021-03-28T09:29:25.232900Z

There are more improvements coming to make the experience in Calva even better with the nrepl server

mbjarland 2021-03-28T09:30:22.233700Z

I’m not that familiar with calva, can calva start that repl process or do I need to go to the terminal and start it separately?

borkdude 2021-03-28T09:30:38.234200Z

For babashka you need to start it separately like the way I described

mbjarland 2021-03-28T09:31:25.235400Z

ok thank you @borkdude much appreciated. I will take a look at calva - makes you wonder if you are perhaps a bot, you are always present : )

✅ 1
borkdude 2021-03-28T09:32:24.235900Z

;)

borkdude 2021-03-28T09:40:31.236100Z

5
pez 2021-03-28T11:36:49.238200Z

I've considered creating a jack-in to babashka in Calva. Might still happen, but it is already super easy to just start the server and connect.

👍 2
1
borkdude 2021-03-28T21:43:30.239900Z

@mbjarland There has been an improvement to nrepl support: when hovering var names, you will now see arglists/docstrings, etc. Thanks to @brdloush Binaries for testing are available in #babashka-circleci-builds

djblue 2021-03-28T22:18:01.240Z

I think you might also be able to connect to the babashka nrepl server from cursive, it's at least worth a shot