Interesting article! I would have loved to see some examples of clojure vs chez, especially:
> On the other hand, lack of generic data structures and functions encourages you to make records for cases where you use maps, and create domain-specific functions. In Clojure you treat your program as a data processing pipeline whereas in Chez you talk more in terms of domain entities.
And contrasting let-syntax with clojure.
manoDev 1 days ago [-]
I’ve used Clojure professionally for almost a decade, but lately I’ve been working with Racket for personal projects - super fast, can build binaries, has GUI library, C FFI (and AI helps a ton here writing all the boilerplate).
I managed to build an entire app in Racket that integrates seamlessly with C and ObjC (Apple’s APIs), including Metal.
How did racket wind up with boilerplate? Don’t they tout language oriented programming on top of lisp macros?
Happy it’s working. But their boilerplate always felt a bit artificial for a lisp shop.
bmitc 16 hours ago [-]
You can just avoid the OOP side of things. It's a multiparadigm language.
charan345 1 days ago [-]
[dead]
1 days ago [-]
gwerbin 1 days ago [-]
Chez is a rather stripped-down Scheme, and it's also an R6RS which can be kind of clunky.
If you're a Clojure user you might want to try Gauche or (my favorite) Guile for a more Python-like standard library experience.
Or you can try one of the JVM-based Schemes like Kawa.
gwerbin 16 hours ago [-]
Can't edit my post anymore. I meant to say my favorite was Gauche, not Guile. I like Guile, but I like Gauche more.
hajile 1 days ago [-]
All of this reads like they should have used Common Lisp or Coalton instead.
PaulHoule 1 days ago [-]
God, I was looking at Graham's book On Lisp and went through various phases of grief including "if he was using Clojure he wouldn't be fighting with nconc" and "you could work all the examples in Python except for the one where he implements async-await"
drannex 1 days ago [-]
Love Chez, but there seriously needs to be an organization willing to put together resources, events, tutorials, and better documentation than there currently is. Just dropping a PDF of spec is a slog to get through to really learn how incredible this language is.
Can I ask you why you choose Chez, over other schemes? Why not Racket, GNU Guile or CHICKEN scheme?
Interesting reading anyway, kudos!
pushpankar 1 days ago [-]
Because
1. it has great performance which I wanted for a text editor.
2. if I ever needed to get to low level, it has great c ffi. I ran some benchmark and c ffi cost was among the best.
sjamaan 1 days ago [-]
FWIW, CHICKEN's FFI is pretty good too, and it allows redefining modules and even evaluating code inside modules, so might fit your interactivity needs better. The string copying overhead in the FFI is gone in CHICKEN 6 now.
DonaldPShimoda 1 days ago [-]
FWIW, Racket is not actually a Scheme. It's a derivative that shares a lot in common, but it does not strictly follow the Scheme standard. (It does provide Scheme implementations in the standard library, though.)
Zambyte 1 days ago [-]
> It's a derivative that shares a lot in common, but it does not strictly follow the Scheme standard.
I've used a decent amount of Schemes and even contributed to some. It's kind of my understanding that this is the case for all Schemes, really. Most Schemes support multiple versions of the standards (r5rs, r6rs, r7rs) as well as their own non-standard extensions, which are essentially required to be useful.
Saying that Racket supports X language doesn't say much, being a language oriented language - any language can be included as a library. But, as you mentioned, Scheme standards are available through the Racket standard library, which is about as much Scheme as anything you would call a Scheme implementation.
Maybe it's a bit reductionist to call Racket a Scheme implementation, but in general Lisps are always much more than the standards they implement.
DonaldPShimoda 1 days ago [-]
Maybe a more critical note is that the Racket maintainers explicitly chose to move away from labeling Racket as "a Scheme". My understanding is that most Scheme implementations are merely extensions on top of a Scheme standard, whereas Racket makes some changes that are not backwards compatible. Racket is also not morally a Scheme because of differing guiding philosophies in the implementation.
sjamaan 1 days ago [-]
You nailed it. They don't really want to be seen as a Scheme implementation anymore. That's also why they renamed from PLT Scheme to Racket: https://racket-lang.org/new-name.html
mncharity 23 hours ago [-]
Fwiw, the default implementation of Racket uses Chez Scheme as its core compiler and runtime system (since 2021 or so, though a patched version for some years).
dapperdrake 4 days ago [-]
Clojure really seems like a good way to learn lisp. Broke homoiconicity just enough.
pushpankar 4 days ago [-]
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.
pjmlp 1 days ago [-]
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.
lenkite 1 days ago [-]
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.
zelphirkalt 1 days ago [-]
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.
brudgers 2 days ago [-]
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.
OskarS 1 days ago [-]
> 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.
brudgers 1 days ago [-]
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).
cloja pleeease... we stopped using dynamic binding in Elisp like ten years ago. Lexical binding arrived in Emacs 24, released in June 2012.
pushpankar 1 days ago [-]
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.
sjamaan 13 hours ago [-]
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.
pushpankar 1 days ago [-]
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.
rscho 1 days ago [-]
Emacs lisp is closer to common lisp. It inherits some stuff from older lisp systems, the most prominent being dynamic scope by default.
dasyatidprime 1 days ago [-]
Some clarifications:
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.
brudgers 1 days ago [-]
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.
bmitc 16 hours ago [-]
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.
brudgers 3 hours ago [-]
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.
iLemming 4 hours ago [-]
> F# sits
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".
cassepipe 1 days ago [-]
Aren't there other implementations on other runtimes by now ?
lgas 1 days ago [-]
How does Clojure break homoiconicity?
dapperdrake 1 days ago [-]
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.
regularfry 1 days ago [-]
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.
dapperdrake 1 days ago [-]
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.
pjmlp 1 days ago [-]
> Scheme uses lists for almost everything
Not really, Scheme has first class support for arrays and hash tables.
pushpankar 1 days ago [-]
I didn't mean list data structure for everything. I meant list for representing all code whereas clojure uses vector, map literal, and other syntax
PuercoPop 1 days ago [-]
That is also wrong. Scheme uses syntax objects for syntax. If you meant the brackets they use in certain places, in Chez Scheme and other schemes you can replace parens with square brackets where as you see fit. e.j.
(let [[a 1]
[b 3]]
(+ a b))
is valid scheme code
arunix 1 days ago [-]
Are you comparing Clojure to Scheme in general? Would the same thinking apply to Chicken or any other standard Scheme?
pushpankar 1 days ago [-]
I am only familiar with Chez scheme and in the article I comparing that only. My apologies if it wasn't clear from the title of the blog.
> any other standard Scheme?
Every scheme has different featureset that they add on top of R5rs/R6rs.
arunix 1 days ago [-]
It's also not clear from the body of the blog which features of Chez (beyond standard Scheme) you are referring to.
rscho 1 days ago [-]
Scheme also has literals for vectors.
antonvs 1 days ago [-]
Scheme has a standard vector type with corresponding syntax (since 1985), and as of the R6RS version, a standard bytevector type. Some Scheme dialects like Racket and Gauche have map literal syntax as well.
throwaway27448 1 days ago [-]
> You can implement a namespace-like thing on top of it and together with continuations it can surpass the interactivity of Clojure.
I'm curious what you're thinking of here. Can you expound?
pushpankar 1 days ago [-]
Environments are top level things that can store functions and other defintions. These can be mutable. The other side of this is continuation. A continuation is invocable multiple times in scheme.
Lets say you want to debug a function.
```
(define (f1 arg1 arg2)
;; body calls f2 and others
)
```
Now you can capture the continuation just before the body of the f1. Then, you can use chez's eval-in-continuation to evaluate the updated body of the function. Once you are satisfied, you can continue the continuation with output. If there is problem in f2, you can update f2 and retry from f1 again. You can walk up/down the continuation stack to go back to different point and try from there.
Similarly, you can declare a function, implement its body, eval-in-continuation, update the body until you are satisfied, and then move on to next thing.
Almost all features are there. It just needs a good editor support and some ux design.
nathell 1 days ago [-]
These days we also have Jolt, a vibecoded Clojure implementation on top of Chez!
This looks very cool , how does it compare with the similar language, Jank?
0_gravitas 1 days ago [-]
Jank uses C++/LLVM as it's "host" language, like Clojure uses the JVM as it's host, or ClojureCLR uses .NET as it's host
You can see a compiled list of dialects and what host/space they target here if you're interested: https://clojure.cc/dialects/
zelphirkalt 1 days ago [-]
Interesting. Though already the intro text reeks of LLM vibing, which is a little not so much faith-inspiring.
iLemming 5 hours ago [-]
You're judging the book by the cover. I highly suggest you type "Dmitri Sotnikov Clojure" into a search box and read about the guy. We're witnessing interesting sociotechological experiment unraveling in front of our eyes - two very promising Clojure dialects with similar goals - one famously rejecting any vibe-coding - Jeaye regularly holds live coding sessions where he's building Jank by hand¹; and Jolt, where every other week Dmitri announces some huge, colossal improvements to the language and tooling². I'm personally rooting for Jank (for becoming a go-to choice for the native), and not because I despise LLMs, but because he's my friend, yet even my close friendship can't stop me from acknowledging the pace of Jolt's progress.
> On the other hand, lack of generic data structures and functions encourages you to make records for cases where you use maps, and create domain-specific functions. In Clojure you treat your program as a data processing pipeline whereas in Chez you talk more in terms of domain entities.
And contrasting let-syntax with clojure.
I managed to build an entire app in Racket that integrates seamlessly with C and ObjC (Apple’s APIs), including Metal.
https://revelar.riq.net.br
Happy it’s working. But their boilerplate always felt a bit artificial for a lisp shop.
If you're a Clojure user you might want to try Gauche or (my favorite) Guile for a more Python-like standard library experience.
Or you can try one of the JVM-based Schemes like Kawa.
You are not supposed to learn it from the user guide.
What about Jank (https://jank-lang.org/)?
Anyone wants to try Chez for a laugh or pleasure
Interesting reading anyway, kudos!
1. it has great performance which I wanted for a text editor.
2. if I ever needed to get to low level, it has great c ffi. I ran some benchmark and c ffi cost was among the best.
I've used a decent amount of Schemes and even contributed to some. It's kind of my understanding that this is the case for all Schemes, really. Most Schemes support multiple versions of the standards (r5rs, r6rs, r7rs) as well as their own non-standard extensions, which are essentially required to be useful.
Saying that Racket supports X language doesn't say much, being a language oriented language - any language can be included as a library. But, as you mentioned, Scheme standards are available through the Racket standard library, which is about as much Scheme as anything you would call a Scheme implementation.
Maybe it's a bit reductionist to call Racket a Scheme implementation, but in general Lisps are always much more than the standards they implement.
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.
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.
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.
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).
And you can do this: https://www.youtube.com/watch?v=dljNabciEGg
cloja pleeease... we stopped using dynamic binding in Elisp like ten years ago. Lexical binding arrived in Emacs 24, released in June 2012.
In that regard, chez scheme was much better. Haven't tried Emacs lisp, so can't say about that.
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.
- 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!
Here's the node about this in the current online version of the official manual: https://www.gnu.org/software/emacs/manual/html_node/elisp/Se...
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.
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.
.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".
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.
Not really, Scheme has first class support for arrays and hash tables.
> any other standard Scheme?
Every scheme has different featureset that they add on top of R5rs/R6rs.
I'm curious what you're thinking of here. Can you expound?
Lets say you want to debug a function.
```
(define (f1 arg1 arg2)
)```
Now you can capture the continuation just before the body of the f1. Then, you can use chez's eval-in-continuation to evaluate the updated body of the function. Once you are satisfied, you can continue the continuation with output. If there is problem in f2, you can update f2 and retry from f1 again. You can walk up/down the continuation stack to go back to different point and try from there.
Similarly, you can declare a function, implement its body, eval-in-continuation, update the body until you are satisfied, and then move on to next thing.
Almost all features are there. It just needs a good editor support and some ux design.
https://jolt-lang.net/
You can see a compiled list of dialects and what host/space they target here if you're interested: https://clojure.cc/dialects/
---
¹ https://www.twitch.tv/jeayewilkerson
² https://github.com/jolt-lang/jolt/blob/main/CHANGELOG.md