News for hackers. Stuff that matters.
Re:How to Write a (Lisp) Interpreter (In Python) (2010) by djtriptych on Monday March 11, 2024 @10:14AM (#39668492)
At some point I translated this demo into es6 if anyone's interested [0].

The focus was really on writing the cleanest idiomatic es6 I could (at the time :)). Check out the tests to see how far I got [1]

Pretty fun exercise =)

[0]: https://github.com/djtriptych/es6-lisp

[1]: https://github.com/djtriptych/es6-lisp/blob/master/test/lisp...

Re:How to Write a (Lisp) Interpreter (In Python) (2010) by actionfromafar on Monday March 11, 2024 @10:27AM (#39668678)
It's a fun thing to try, since Javascript almost was to be a Lisp at inception!
Re:How to Write a (Lisp) Interpreter (In Python) (2010) by djtriptych on Monday March 11, 2024 @10:46AM (#39668883)
Someone once said Javascript is a "Scheme-like language with C-like syntax".

Always loved that and ashamed I can't remember the original author of the quote.

Not Crockford... Maybe Michael Fogus?

Re:How to Write a (Lisp) Interpreter (In Python) (2010) by actionfromafar on Monday March 11, 2024 @10:54AM (#39668992)
Not sure, but Brendan Eich originally wanted to just put Scheme in the Netscape browser but his bosses wanted something with a Java like syntax.

(I looked at Wikipedia for reference and it matches my memory of older sources.)

Re:How to Write a (Lisp) Interpreter (In Python) (2010) by patrickmay on Monday March 11, 2024 @03:16PM (#39672216)
Every time I'm reminded of that I get annoyed thinking of how much better the web could have been.
Re:How to Write a (Lisp) Interpreter (In Python) (2010) by throwaway87651 on Tuesday March 12, 2024 @04:39AM (#39677375)
Re:How to Write a (Lisp) Interpreter (In Python) (2010) by BrendanEich on Tuesday March 12, 2024 @01:58AM (#39676594)
The Java deal killed any Scheme in the browser I might have done in ten days in May 1995. Almost 29 years ago!