Fork me on GitHub
Cora (she/her)00:12:56

is there a way to start a repl after executing some code? mainly I want to require something and switch to that namespace

Cora (she/her)12:12:27

that's just what I wanted, thanks!!


Is there a babashka-compatible equivalent to


I currently have a CLI tool that uses interactive lists as its interface. I wondered if I could port that to Clojure.

Cora (she/her)02:12:35

you could use inquirer.js itself with clojurescript

Cora (she/her)02:12:51

I'm pretty sure

Cora (she/her)02:12:10

I mean I'd love something like that available in babashka, though


I mean, I’m fine with sticking with JS as a host platform, but thought it would be cool to play with Babashka


This would be distributed, so I’m considering the pros and cons of keeping it on JS


I have always wondered how to paint interactive UI in the terminal. Albeit a selectable list

Cora (she/her)03:12:37

you could build it using graalvm

Cora (she/her)03:12:48

like babashka is

Cora (she/her)04:12:05

oooooh that's cool

Cora (she/her)04:12:12

so, you can use something like shadow-cljs and compile your app for node and then use the npm packaged called "pkg" to bundle your js file with a node vm as an executable binary


yes, though i think i've seen the exe binary part being done in more than one way


would it be useful to have .ServerSocket and .Socket in bb? e.g. this now runs:

(require '[babashka.wait :as wait])

(defn socket-loop [^.ServerSocket server]
  (with-open [listener server]
    (loop []
      (with-open [socket (.accept listener)]
        (let [input-stream (.getInputStream socket)]
          (print (slurp input-stream))

(defn start-server! [port]
  (let [server (.ServerSocket. port)]
    (future (socket-loop server))

(defn stop-server! [^.ServerSocket server]
  (.close server))

(let [server (start-server! 1777)]
  (prn (wait/wait-for-port "" 1777))
  (stop-server! server))


with the change on master

Cora (she/her)13:12:11

that's really nice, I like it


Re: CLI tool Does GraalVM with JS reduce runtime like for Java?


Best to ask #graalvm specific questions in #graalvm, don't know the answer to that


No worries