9 ms·
Brendan Eich wanted the language be some dialect of Lisp language but his superiors insisted on a language similar to Java. So he wrote that prototype in Commo
by nabla9 9mo ago
Brendan Eich wanted the language be some dialect of Lisp language but his superiors insisted on a language similar to Java. So he wrote that prototype in Common Lisp. It's basically Java like syntax over Common Lisp structs and vectors.
- wk_end 9mo agoThe original implementation of JS was in C, not CL. I think Eich was more partial to Scheme than CL, as a model for JS. Though I wouldn’t say it’s Java syntax over either - the scoping rules are very distinct, it’s missing tons of features core to either CL or Scheme, there’s the whole Self-inspired prototype-based OOP layer…
- LeFantome 9mo agoI also always thought that he set out or implement a Scheme-like language but got told to make it look like Java. Scheme is a LISP of course, just not Common Lisp. I have no idea what language the original implementation was in but it makes sense it would be the same as the rest of the browser.
- convolvatron 9mo agoI went to a talk by Eich in the late 90s. He explicitly mentioned scheme
- nabla9 9mo agoYes. But that prototype was in CL.
- BrendanEich 9mo agoNo. I wrote Mocha in C. Where did you hear this CL fish story?
- nabla9 9mo agoOh. It was not you, and not the original. It was Waldemar Horwat and js2 https://web.archive.org/web/20111217124744/https://mxr.mozilla.org/mozilla/source/js2/semantics/ https://web.archive.org/web/20111217124744/https://mxr.mozil...