3 ms·
The 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
by wk_end 10mo ago
The 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 10mo 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 10mo agoI went to a talk by Eich in the late 90s. He explicitly mentioned scheme
- nabla9 10mo agoYes. But that prototype was in CL.
- BrendanEich 10mo agoNo. I wrote Mocha in C. Where did you hear this CL fish story?
- nabla9 10mo 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...