Fork me on GitHub
#babashka
<
2020-04-25
>
kah0ona08:04:20

What is a sane way to develop babashka scripts in a REPL driven way, using Emacs/CIDER? My idea was to make the script(s) as much Clojure compatible as i can (for obvious reasons) and just use normal clojure REPL. I know nREPL is now supported, but would that give the same developer ergonomics?

dpsutton09:04:58

inf-clojure was just revamped and works very well with babashka

kah0ona09:04:07

thanks both!

kah0ona09:04:21

anyone tried to run bb on a raspberry pi?

kah0ona09:04:49

would be fun to try and build some home automation scripts to control my philips hue lights etc.

kah0ona09:04:34

ah well, only one way to find out 😉

borkdude09:04:34

There might be a link to a binary in there that might work. Not sure

sogaiu09:04:29

if you have a 64 bit kernel it may work

kah0ona12:04:17

thx for the info

kah0ona12:04:04

so with (ie.) the Ubuntu in the last link on the page above could work on my pi4 that arrives tomorrow? Will try

sogaiu12:04:18

yes, i think there's a chance it will work

borkdude11:04:32

I have collected some thoughts of the above thread in https://github.com/borkdude/babashka/issues/382

borkdude16:04:50

This would be the kind of thing that's possible with an embedded hsqldb in bb: https://github.com/borkdude/babashka/blob/hsqldb/examples/hsqldb_unused_vars.clj Pretty powerful, no need to shell out to sqlite anymore.

nate16:04:33

I do really like an embedded persistence solution. Yet another ability that opens up possibilities.

borkdude16:04:41

Yeah... I do like the idea as well. Although sqlite seems to be more popular, I can't get it to work with graalvm

borkdude16:04:14

sqlite is written in C, while hsqldb is pure Java

nate16:04:06

10mb of Java

Darin Douglass16:04:57

Seems like with Postgres we have support for the most used DB. And with hsqldb we have support for a slim in memory/local db. There are obviously more use cases for dbs, but I feel like those cover a good chunk of them

👍 1