292 points · by marcingas · 6mo ago · 85 comments
I started this project in 2021 as an elaborate practical joke: I wanted to have an excuse for writing Clojure while pretending to write Go.
Jokes aside, it turned out to be pretty decent: it feels like real Clojure, it has an nREPL server (supported in Calva, CIDER, etc.), it's easily embeddable in your Go programs (funcs, structs and channels cross the boundary without fuss). It's good for writing CLIs, web servers, data processing scripts and even doing some systems programming - I used it to write a deamonless container runtime. Oh, and it runs on Plan9.
Under the hood there is a fairly simple compiler and a stack VM, both handcrafted specifically for running Clojure-like code. The compiler can work in AOT mode producing portable bytecode blobs and standalone binaries (runtime+bytecode).
This is not a drop-in replacement for Clojure in general - it does not load JARs, it does not have all Java APIs and it most probably won't run your exiting Clojure projects without modifications. At least not at the moment.
Take it for a spin, tell me what you think. Issues and PRs are welcome!
Gloat is a Glojure AOT automation tool. I worked with James Hamlin to get Glojure AOT going last summer and have been moving it forward since. I've also been working with marcingas (nooga) to get Gloat/Glojure/let-go all cooperating.
As far as JVM-free Clojure-like, Janet is really nice. I've been using it in production for a while: https://janet-lang.org/ There's also Fennel if you want the Lua vm and libraries.
Some email stuff I don't know how to summarize well
Some data processing/aggregation servers
Some accounting stuff
I'm trying to build a declarative DSL https://lobste.rs/s/ylq7sd/what_are_you_doing_this_weekend#c... which I could port production Common Lisp/Prolog stuff to, but I probably won't for performance reasons.
Thanks for your work will definitely check it out again once I get over renewed love for cpp (26)
Edit how did glojure go under my radar also a great project from the looks
So far Lisette (http://lisette.run) seems to be the best/most active version of a compile to Go language out there.
Theres no camelCase tho? Snake case and PascalCase fir Go modules interrop.
That’s Pascal case any way. Looks sort of camel case with the “io” being lower case.
I think it is brilliant and completely underappreciated :)
I'm trying to avoid adding too much though, I like that let-go fits in 10MB :)
It would be awesome if go was a first class language on 9front. I.e. ships with it.
I've been messing around with a social network for plan9:
https://youtube.com/watch?v=q6qVnlCjcAI&si=MBCeM0QdA0WsKAe7
It's all in rc and awk. There are places where go (or clojure!) would have been nice.
I'll head over to the releases.
(let [...] (go ...))
It lets you let in Go!
Clogo is a no-go for me. Maybe you have some other ideas? I'll consider good ones :)
I'm relieved that clogo is not an option for you. It has some strong, malodorous campground toilet connotations to my foreign-language-trained ears. Loogo? Pottygo? Go number 2? Yikes to all of those.
And now, as bonus content, for something completely different: https://youtu.be/M3-51DhOzHE?
Goclo, Gophoj,Gorjure ..ok my tongue is paining now verbally trying out combos.
Is it possible for now?
Excellent work, thank you for sharing it with us ^_^
You can also refer to the HN post itself - it says why I think it's cool.
i appreciate you taking my feedback with grace.
I genuinely don’t understand why people do this.