This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-14
Channels
- # adventofcode (42)
- # babashka (37)
- # beginners (62)
- # cider (13)
- # clj-kondo (12)
- # cljdoc (1)
- # clojure (80)
- # clojure-australia (2)
- # clojure-dev (43)
- # clojure-europe (69)
- # clojure-italy (8)
- # clojure-nl (10)
- # clojure-switzerland (130)
- # clojure-uk (12)
- # clojurescript (23)
- # code-reviews (8)
- # cryogen (5)
- # cursive (6)
- # datomic (3)
- # duct (4)
- # emacs (12)
- # fulcro (60)
- # kaocha (7)
- # lambdaisland (4)
- # malli (4)
- # meander (1)
- # nrepl (31)
- # off-topic (2)
- # re-frame (16)
- # rewrite-clj (5)
- # shadow-cljs (11)
- # spacemacs (7)
- # xtdb (1)
Certainly matches my experience of implementing an nREPL client. I did appreciate how easy it was. (Wonder why they're moving away from Clojure for Alda v2, though.)
graalvm + clojure was definitely on my radar at the time when i was making the decision (~2 years ago or so), but it's not something i spent a whole lot of time looking into the most important factor for me was that whatever i chose, it had to be able to create 100% static, cross-platform executables for linux, macos and windows. of the things i tried, go seemed to be the best at doing that
i wouldn't be surprised if it can! i think a couple years ago, i was maybe feeling nervous about investing in graalvm. i wasn't sure about windows support and whatnot
Well, @U04V15CAJ would know best. 🙂 I believe it's come a long way in a couple of years.
I've distributed several cross platform native binary over the years with GraalVM: clj-kondo and babashka being the most well known ones.
as i suspected. maybe at some point i'll get tired of go and rewrite it again in clojure + graalvm 😄
I'd certainly find a blog post on the topic of "Writing Go & Kotlin after Clojure" very interesting. 🙂
that's good to hear! i've actually been thinking about jotting down some notes about that at some point. i'm just not quite sure how to frame it
maybe an interesting way of putting it is that "go is more similar to clojure than you think" 🙂
> maybe an interesting way of putting it is that "go is more similar to clojure than you think" That sounds like an interesting approach. At least to someone like me, who's never written a line of Go.
On the border of Clojure and Go: babashka supports a protocol similar to nREPL which allows you to talk to other binary programs using JSON (or EDN). Someone made a Go binary which can be used from babashka: https://github.com/tzzh/pod-tzzh-aws But the Go code is generated using Clojure (bb) itself :)
@U0AHJUHJN I think Alda could also become a babashka pod, so you can control it from a bb script
oh, that's cool
i wonder how that would compare to the approach i've taken in https://github.com/daveyarwood/alda-clj ? the approach i've been taking is to use clojure.java.shell/sh
to create a subprocess where i run alda
with programmatically generated command line args
@U0AHJUHJN it is a similar approach to shelling out, but babashka has instant startup and a pod is also intended to have instant startup, so you pay only the added startup times which is still nearly instant