This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-31
Channels
- # adventofcode (15)
- # announcements (8)
- # babashka (16)
- # beginners (48)
- # braveandtrue (5)
- # calva (54)
- # cider (7)
- # clara (8)
- # clj-kondo (3)
- # cljdoc (3)
- # clojure (37)
- # clojure-europe (1)
- # clojure-italy (15)
- # clojure-losangeles (2)
- # clojure-nl (15)
- # clojure-uk (6)
- # clojurescript (145)
- # community-development (53)
- # cursive (20)
- # data-science (8)
- # datomic (23)
- # duct (2)
- # emacs (22)
- # fulcro (16)
- # gorilla (7)
- # graalvm (7)
- # hoplon (1)
- # malli (7)
- # off-topic (8)
- # rewrite-clj (2)
- # ring (9)
- # spacemacs (2)
- # specter (1)
- # tools-deps (25)
- # vrac (1)
is there a way to start a repl after executing some code? mainly I want to require something and switch to that namespace
Yes, see these release notes: https://github.com/borkdude/babashka/releases/tag/v0.0.49
Is there a babashka-compatible equivalent to https://github.com/SBoudrias/Inquirer.js/
I currently have a CLI tool that uses interactive lists as its interface. I wondered if I could port that to Clojure.
I mean, I’m fine with sticking with JS as a host platform, but thought it would be cool to play with Babashka
I have always wondered how to paint interactive UI in the terminal. Albeit a selectable list
something like this? https://github.com/eccentric-j/cljs-tui-template
would it be useful to have
and
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))
(flush)))
(recur))))
(defn start-server! [port]
(let [server (.ServerSocket. port)]
(future (socket-loop server))
server))
(defn stop-server! [^.ServerSocket server]
(.close server))
(let [server (start-server! 1777)]
(prn (wait/wait-for-port "127.0.0.1" 1777))
(stop-server! server))