Fork me on GitHub
#babashka
<
2023-11-09
>
leifericf15:11:47

I'm planning to distribute a Babashka script to semi-technical businesspeople. Is it possible to “compile” a Babashka script to a fully self-contained and self-executing program, similar to how a C# console app can be compiled to a .dll or .exe on different platforms that can be run with ./myscript via the terminal? Without requiring the user to manually install Babashka on their system first.

borkdude15:11:33

Yes, see previous message

leifericf15:11:39

Wow, I can't believe I missed that. Out walking the dog in the rain and typing on my phone with frozen fingers 😅

😆 1
borkdude15:11:54

no problem, I was just happy it was easy to answer your question :-D

vlad_poh16:11:19

@U04V15CAJ this question comes up quite often. Any plans to create something like linqpad or autoit where users install a bb ui and can share scripts?

borkdude16:11:23

I don't see the relation to linqpad with self-contained executables?

isak18:11:52

Linqpad queries are self-contained, but not self-contained executables. I love the idea though, I use Linqpad every day.

❤️ 1
borkdude18:11:47

bb has an http server making a UI element with clojure-syntax support is easy (view source of https://squint-cljs.github.io/squint/) so it should be relatively easy to whip something like linqpad together for bb scripts

👍 1
😮 1
🆒 1
borkdude18:11:58

you could even do the gist thing like is done here: https://babashka.org/sci.configs/?gist=e83da19df3d2739861334171779f79d5

👍 1
isak18:11:33

I wonder if The Right Thing would be a cross-platform gui app created with GraalVM

isak18:11:24

(that links with babashka, and/or just starts new processes with it for execution)

isak18:11:14

I'm not sure if that is even possible yet

borkdude18:11:30

well, good luck making a GUI with clojure syntax support

borkdude18:11:50

Probably taking a look at how portal launches a dedicated webview would be the easy way

isak18:11:32

Easier for sure

borkdude18:11:21

but hey you might as well use Calva or something...?

👍 1
isak18:11:33

For the people who like Linqpad I'm not sure it is a good alternative because the purpose and focus is different. But I'm not sure if there are enough Clojure Linqpad enjoyers to warrant a serious effort.

vlad_poh18:11:52

@U08JKUHA9 my sentiments exactly! djblue portal and rebl seemed like options but they don’t have the same focus. i would use a clj-pad or bb-pad

👍 1
borkdude18:11:40

my point was that you can launch a webview like portal does, not that portal does a similar thing to linqpad

borkdude19:11:22

but it seems to require chrome

isak19:11:38

Oh, I was responding to this: > but hey you might as well use Calva or something...?

isak19:11:47

But yea using a webview for the output is probably a good idea. Maybe an Electron app would be feasible without too much time investment.

borkdude19:11:00

I was responding to vlad_poh's last comment :)

👍 1