Yeah, clojure is well thought out language from developer experience perspective. It makes things which will bite you down the line not default like mutation but uses mutation for things like vars when cost outweighs benefit(in this case, aids in interactive development). I had read somewhere that clojure's namespace are great but didn't fully comprehend it. But now I do. It treats namespace as values which comes handy in testing, mocking, and introspection, all of which is big deal in maintaining project over the long run.
Clojure does the right thing most of the time but chooses to do something dirty for practicality. Top one being macros. I think using fully qualified namespaces during macro expansion gives you most of the benefit of hygiene while being easy to comprehend.
The only problem it has is its slow startup for desktop apps.
For me, having learnt Lisp in the old days, Clojure's advantage is how it embraces its host instead of having an antagonist attitude like other guest languages happen to be like.
Its kind of amazing. Can write bespoke Clojure code for game mods, neovim text editor, dotnet/java services, etc thanks to embracing its host. Sure, without type-safety, there is an upper complexity limit to the code-base size you can comfortably grok. However its immutability, cohesive core and stable+mature libraries puts that grokkability bar far higher compared to other dynamic ecosystems.
I think immutability comes with an implicit requirement: Having a good number of immutable data structures in the standard library. Clojure seems to have that.
I haven't played with Clojure for a long time, so take that as a caveat.
My experience was that Clojure errors were often described in terms of the underlying Java Code and because I did not know much Java error messages were often inscrutable.
Which is not a criticism of Clojure because Clojure was designed to improve JVM programming experience and was implemented as a Java library (and pitched to managers as "it's just a Java library").
Again all that may be irrelevant today. But for what it's worth, Emacs lisp might be the best way to learn lisp because Emacs is more or less a virtual lisp machine if you squint hard enough.
> But for what it's worth, Emacs lisp might be the best way to learn lisp because Emacs is more or less a virtual lisp machine if you squint hard enough.
This is really true. Emacs Lisp is a much worse Lisp than Scheme (dynamic binding instead of lexical binding by default is the most obvious thing, though of course you can opt in to it), but the thing Emacs Lisp does is that it really nails the "interactive coding" experience. Like, you just edit and run code from inside the thing that is running the code, it's really cool. It makes the "Lisp machine" thing click better than anything else I've used.
I used gone from vim -> emacs -> neovim (sometimes embedded in vscode) as my editor of choice, and the interactive environment thing is one of the things I miss most from emacs.
To be clear, I am not arguing for or against Emacs as an editor. Just in favor using Emacs Lisp as a way of learning Lisp.
the thing Emacs Lisp does is that it really nails the "interactive coding" experience. Like, you just edit and run code from inside the thing that is running the code, it's really cool. It makes the "Lisp machine" thing click better than anything else I've used.
Basically, that's a traditional difference between a Lisp and Scheme (but if you call both "lisps" I know what you mean).
Well, it's in the same way "opt-in" as the .el extension. One can literally name a file some-crap.bla, put some elisp in it and Emacs would happily load and execute it. Nobody does that. eval commands been on lexical binding by default since Emacs 27 (we're currently on 32). Like I said, "dynamic binding" not a problem, or at least not something that even warrants a discussion, and that's how it's been for a decade or so.
My problem with clojure's error is that it doesn't show up where you made the mistake. Because of nil punning, you will see error happen few steps down the line and usually it isn't clear from error message what went wrong.
In that regard, chez scheme was much better. Haven't tried Emacs lisp, so can't say about that.
And with lots of functions being lazy by default, you might get errors in a completely place when the code finally runs because a value is needed.
Not having more explicit separation between lazy and eager is a bit of a mistake, IMO. But I think this all boils down to the design decision to have completely interchangeable/polymorphic sequence types, which you say you like. I'm not sure you can really have it both ways.
Personally, I like knowing exactly what type a value has, so you can reason better about the behaviour and performance of a piece of code without having to reason about the potential call sites. And having eager evaluation by default with explicit delay/force where laziness is desired.
Somehow, I always had the feeling that emacs lisp is tied closely to emacs only.
- How is the performance of emacs lisp?
- In terms of feature set, is it close scheme or common lisp?
- Any feature/concept that would be new to programmer who know scheme, clojure, and python
If i am ever going to try a new language, it would need a good ide. I know people say they don't need ide, since AI make changes, but I still need one to review code. I can't simply look at diff and understand. I need to see actual code. I guess emacs lisp will have good ide support, otherwise it would be ironical.
Common Lisp uses lexical binding for locals by default. (I think you meant this, but the wording seems ambiguous to me on whether “older Lisp systems” means “older than Common Lisp” or “older in general, including Common Lisp which is itself old”, so I wanted to say it more explicitly.)
Emacs Lisp is currently expecting to switch in the future from dynamic binding by default to lexical binding by default, which is why lots of Emacs users are getting the current transitional flood of annoying warnings about elisp files that don't have the expected “lexical-binding: ‹boolean›” metadata at the top. And yes, that cookie is a reuse of the “set some local state for buffers visiting this file” mechanism, more commonly used for things like major mode and fill column (expected line length), for programming language dialect switching!
I don't know why this crap still keeps circulating in 2026 (almost 2027). I personally never had a single problem with that point - been using Emacs and publishing packages for a decade.
Lexical binding arrived in Emacs 24, released in June 2012.
Emacs Lisp is closely tied to Emacs. But because Emacs is from the good old days, when you are in Emacs you can have a shell into your OS.
If you know Scheme and Clojure, you kind of already know lisp.
The best Lisp IDE's are probably commercial products at good old days prices inconsistent with the expectations of most of today's learners...those prices don't compete with free.
It kind of should be a criticism of Clojure. For example, F# sits much more naturally on top of .NET and doesn't require you to know any C# whatsoever.
Can't agree with that. Having used both, using F# feels like a second class citizen language. Clojure has always felt natural.
I suspect that's because the dynamic, data oriented approach means a lot of the scaffolding on Java libraries is not prone to breaking as the libraries change, whereas with F#, you are reconciling two slightly different type systems. That has led to me trying to use certain F# libraries and finding out they basically don't work because it's been too hard for the maintainer to keep up with C#
The first release of thee JVM was in 1994 and Sun was a hardware startup.
.Net was released in 2002 and Microsoft was a blue chip software company.
The differences in engineering resources behind the projects and the need of one to rush to market show. .Net was built as a platform for multiple languages, the JVM was not.
Also F# had more engineering resources behind it than Clojure…including an IDE team.
Exactly. Sits on its butt, idly, without showing much progress. While Clojure is spreading like wildfire. There are so many Clojure-inspired languages now, it's crazy. It's almost like you can pick just about any runtime and most likely find some kind of Clojure-like Lisp that can be hosted on it.
It's honestly very sad - F# is such a promising, beautiful language. Yet even within the dotnet community it failed to find any love. That's one of the reasons why I left dotnet years ago and never looked back. The majority of community members embrace conservatism, rejecting innovative ideas and calling it "pragmatism". Meaningful "revolutionary" change often comes too late and feels too little to make a difference. WPF - while it was radical and awesome, it felt like it came a decade late - nobody's interested in building desktop apps anymore. Dotnet Core - the same. Mono showed cross-platform dotnet was possible in 2004. Microsoft waited until 2016, after Java, Node, Go and Python had taken the Linux server and container world.
Contrast all that with the Clojure community, or the Lisp community in general. They just eagerly devour any practical ideas in order to solve real-world problems. It's almost as if they have a different definition of "pragmatism": in dotnet it means "avoid the unfamiliar"; in Clojure, it means "reuse what makes sense".
I don't argue against that F# is sitting idly because it is, and Microsoft has actually been _active_ in letting it do so. I think they'd be happy if it went away. It's a bizarre position because it seriously could have been the VS Code of the language world, perhaps even displacing Python.
> It's honestly very sad - F# is such a promising, beautiful language.
I fully agree.
> While Clojure is spreading like wildfire.
Is it really? I've had my thumb on functional languages for a while, and Clojure jobs were just as hard to find as F# jobs (spoiler: I never landed a job in either language). Clojure felt like a dying ecosystem.
Clojure, Clojurescript, ClojureCLR, ClojureDart, Basilisp, Clojerl, Glojure, let-go, Joker, Ferret, Squint, Cherry, Electric Clojure, Phel, Arcadia, Pixie, clojure-py, ClojureRS, Rouge, Jaunt, Jolt, Jank, Fennel, Janet, Hy, Carp, Lux, Calcit, Wisp, Ki, mal (Make a Lisp). These are just the ones that are more or less projects with some public presence. Many hobby implementations on GitHub (Clojure in Zig, Swift, Kotlin) are left out.
> Clojure jobs were just as hard to find
I have the opposite, albeit nice-to-have problem. I got into Clojure in 2016 and since then every job was around it - I got hired only because I already had some experience. I honestly would love to get out and do more Rust, Zig, Elixir or even OCaml for a change. Although to be fair, these days I'm dealing with Python, Java, Go, C#, Javascript, Typescript more than Clojure - our Clojure projects are very stable and require very little attention.
> Clojure felt like a dying ecosystem.
Log into Clojurians Slack, see what people are building and discussing. It is alive like never before. Sure, it's not rapidly growing, yet it's far from dying. It has become "a boring stack". It's an enormously pragmatic choice for a vast majority of different tasks.
NIL and the empty list are distinct. The empty list and the empty map and the empty set and the empty vector are distinct.
Square brackets from vectors and dropping one level of nesting in let bindings really helped me read them. But when I started implementing destructuring on conses by hand in SBCL I learned why CL does let binding lists the way it does.
Turning an flet binding into a defun requires fewer keystrokes manually and fewer steps in a macro when going with CL versus Clojure.
Clojure taught me what to watch out for in the first place.
I don't think it does. When I've seen similar comments before it's boiled down to the syntax being more than just atoms, lists, and quoting, but using vectors and maps in the syntax doesn't mean macros can't work with them.
Lists and trees really are the natural data structures for parsing programming languages. Like vectors are natural in Fortran for number crunching. Maps don’t really fit for either of these, because hash maps hide layout geometry on purpose.
I don't think that's incompatible with homoiconocity though? The syntactic structures of the language are still the data structures of the implementation.
Clojure does the right thing most of the time but chooses to do something dirty for practicality. Top one being macros. I think using fully qualified namespaces during macro expansion gives you most of the benefit of hygiene while being easy to comprehend.
The only problem it has is its slow startup for desktop apps.