Live data from Hacker News

SICP translated to JavaScript

comp.nus.edu.sg

1–10 of 116 posts

Re: SICP translated to JavaScript

#4
post #2

why, God, why?

Perhaps due to the increasing popularity of JavaScript and the decreasing accessibility or usage of Scheme.

SICP uses Scheme, not Common Lisp.

Edit: Here's a list of available Scheme implementations. SICP uses MIT/GNU Scheme, which uses an Emacs-like editor.

http://groups.csail.mit.edu/mac/projects/scheme/

Re: SICP translated to JavaScript

#5

Earlier quoted context omitted.

Perhaps due to the increasing popularity of JavaScript and the decreasing accessibility or usage of Scheme.

SICP uses Scheme, not Common Lisp. Edit: Here's a list of available Scheme implementations. SICP uses MIT/GNU Scheme, which uses an Emacs-like editor. http://groups.csail.mit.edu/mac/projects/scheme/

Thanks, you're correct.

Re: SICP translated to JavaScript

#7
post #2

why, God, why?

Perhaps due to the increasing popularity of JavaScript and the decreasing accessibility or usage of Scheme.

SICP uses Scheme, not Common Lisp.

Scheme is a deliberately minimalist language, which is fairly accessible and easy to write your own implementation of. In fact, in SICP, you do that, a couple of times, writing first a Scheme interpreter, then extending it in various ways like adding logic programming capabilities, then you write a virtual machine and a compiler that compiles down to that virtual machine.

JavaScript is, well, a weird and warty language. You wouldn't want to try implementing JavaScript in an introductory CS class, and it's much less amenable to language extension like the logic programming variant of Scheme you implement in SICP.

But I notice that this translation of SICP into JavaScript doesn't got that far; it only goes up through Chapter 2 of SICP.

Post reply on HN