Remix.run Logo
▲ brudgers 17 hours 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 2 hours ago | parent | next [-]

> 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.

▲pushpankar 2 hours ago | parent | prev | next [-]

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.

▲pushpankar 2 hours ago | parent | prev | next [-]

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 an hour ago | parent [-]

Emacs lisp is closer to common lisp. It inherits some stuff from older lisp systems, the most prominent being dynamic scope by default.

▲dasyatidprime 25 minutes ago | parent [-]

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!

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...

▲cassepipe 2 hours ago | parent | prev [-]

Aren't there other implementations on other runtimes by now ?