Re:A REPL Story
by lispm on Wednesday December 02, 2015 @03:56PM
(#10665746)
Can it run Lisp code?
[ Parent
| on HN ]
Which lisp?
The one that was painfully standardized to avoid this kind of question?
"The Lisp family of languages" vs "Lisp" is an old discussion: see http://lisp-univ-etc.blogspot.fr/2013/01/common-lisp-is-just... for a summary.
Ah so scheme then. Fair enough, scheme is probably the most worthy of the title. It's both true to McCarthys mathmatical spirit, and he himself stated that Steele is probably the closest thing to a benevolent dictator in the lisp world.
Steele hasn't edited the Scheme standard since two or three decades.
Ever wondered why Scheme is called Scheme and not LexicalLisp?
It's a new language, with it's own dialects, standards, libraries, implementations, communities, ...
Lately Steele worked on languages like Java and Fortress. Nothing with Lisp...
Yeah why would he. We don't revise lambda calculus every year.
Yet, Scheme has seen many standard revisions. Without Steele editing it.
The Scheme standard has been edited by others, not Steele. Since three decades. From R2RS in 1985 up to R7RS in 2013.
McCarthy's Lisp.
http://www.softwarepreservation.org/projects/LISP/lisp15_fam...
Its core lives in every Lisp.
Fair enough, but then no lisp in use today is lisp.
Its core lives in Lisp dialects like Emacs Lisp just fine.
Try GNU Emacs and the REPL:
M-x ielm
*** Welcome to IELM *** Type (describe-mode) for help.
ELISP> (append '(this is a Lisp) '(REPL))
(this is a Lisp REPL)
ELISP> (cons 'This (append '(is a) (list 'Lisp 'REPL)))
(This is a Lisp REPL)
This code is from McCarthy's Lisp 1.5 Programmer's manual, from 1962, running in Common Lisp: CL-USER 6 > (defun my-length (l)
(prog (u v)
(setq v 0)
(setq u l)
a
(cond ((null u) (return v)))
(setq u (cdr u))
(setq v (+ v 1))
(go a)))
MY-LENGTH
CL-USER 7 > (my-length '(1 2 3 4 5))
5
That's why it's called a 'Lisp' -> it runs Lisp code.