TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Cheat sheet for Lisp dialects (Common Lisp, Scheme, Clojure, Emacs Lisp)

74 pointsby alrex021about 15 years ago

6 comments

WildUtahabout 15 years ago
It's Common Lisp and EMACS centric. Doesn't include native constructs from other languages, e.g. vector? is a fundamental type predicate in Scheme and Clojure but it's left out because it has no analog in CL. The basis for comparison is always the set of functions available in CL.<p>And of course, there is the assumption that you're programming in EMACS right from the second row. EMACS is not actually obligatory for programming. Maybe I'm an old man with carpal tunnel and have to use vi to avoid aggravating it. Some readers could be tiny toddlers still suckling on Eclipse or something.<p>I like the Clojure comment "<i>cons</i> cannot make a cons cell." Of course, Clojure is revolutionary in being a Lisp without lists so there are no cons cells.<p>There are some mistakes. dotimes does exist in Clojure and works fairly similarly. Clojure's loop is recursive by nature like Scheme and CL's loop example shows none of its horrible ugly glory. Clojure has lazy stream evaluation just like Scheme's built in but is listed without it. Scheme is listed with an optional arguments idea that is not standard Scheme.<p>Don't get me wrong; it's mostly right but <i>I'm still finding more errors</i><p>Overall, I like it.<p>It needs to be a wiki, though, so non-CL'ers can fix the errors for their dialects.
评论 #1280814 未加载
评论 #1280828 未加载
vtailabout 15 years ago
Given the audience here, it would be super cool to add Arc in the fifth column for comparison.
评论 #1281303 未加载
cemaabout 15 years ago
Well, it is useful but not universal, and may be a bit confusing in a few places. For example, the "repl" entry for Common Lisp is M-x slime which of course is Emacs-specific (and M-x shell for Clojure is setup-specific on top of that).<p>There are a few items missing (eg regex substitution in Emacs Lisp). But in general, a nice resource, thanks!
Estragonabout 15 years ago
One minor point: you can use slime to get a clojure repl.
评论 #1280931 未加载
tlabout 15 years ago
One thing: The 2^28-1 size limit on integers in emacs lisp also impacts max file size. You can't load a file larger than 256MB on a 32-bit version of emacs. However, a 64-bit emacs will support larger integers and file sizes.
Robin_Messageabout 15 years ago
I think this table actually highlights the true core of Lisp — the only entry that is the same for all 4 Lisps is:<p><i>quote</i>