babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
borkdude 2021-06-30T08:24:10.257600Z

babashka + org-mode literate programming: https://github.com/babashka/babashka/discussions/907

👏 2
2021-06-30T10:01:27.261700Z

Not sure if I'm solving a different problem here, but this is my config for literate programming clojure in .org files:

#+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages
  'org-babel-load-languages
    '((emacs-lisp . t)
      (shell . t)
      (clojure . t)))
#+END_SRC

Don't ask before evaluating code blocks.

#+BEGIN_SRC emacs-lisp
(setq org-confirm-babel-evaluate nil)
#+END_SRC

#+BEGIN_SRC emacs-lisp
(message "%s" "Start loading ob-clojure")
(use-package ob-clojure
  :init
  (setq org-babel-clojure-backend 'cider))
#+END_SRC
First start a bb --nrepl-server on the cmdline, then connect with cider-connect and now you can evaluate the #+BEGIN_SRC clojure clojure blocks in your .org file. The nrepl-server will retain state over different code blocks.

👍 1
borkdude 2021-06-30T10:03:40.262200Z

That's also possible. Then CIDER will just abstract away the Clojure implementation for you I guess.

2021-06-30T10:03:50.262400Z

exactly

2021-06-30T10:05:04.263500Z

didn't run into differences (yet) 😅

borkdude 2021-06-30T10:05:48.263800Z

Perhaps post this as feedback to the show and tell discussion

✅ 1
borkdude 2021-06-30T10:05:55.264Z

it might be useful for future reference

2021-06-30T13:12:50.265400Z

Just when you think Babashka has it all, it gets even better!

Cora (she/her) 2021-06-30T18:29:24.267300Z

me, searching twitter for clojure news to include in our newsletter, finding endless love and updates for babashka: I can't just make it all about babashka... can I? 😂

❤️ 1
borkdude 2021-06-30T18:30:00.267500Z

That's up to you :)

1