Re:Jisp - Lisp implementation in JavaScript
by ieure on Monday May 24, 2010 @11:42AM
(#1374869)
Clever shortcut to use JS literals, which means that parsing it can be read with eval(), but the syntax sure is awful. No symbols to speak of, no keywords, and commas everywhere.
Re:Jisp - Lisp implementation in JavaScript
by cturner on Monday May 24, 2010 @02:46AM
(#1373972)
Agree.
Ometa is available for javascript, so it should be reasonably straightforward to write a parser to bring traditional lisp syntax on top of javascript. http://www.tinlizzie.org/ometa/ There's a few schemes on javascript, thought I don't think any that aim to become a target platform in their own right.
Re:Jisp - Lisp implementation in JavaScript
by mdaniel on Sunday May 23, 2010 @10:30PM
(#1373616)
Agreed, and it may be pedantic of me, but I fail to see the Lisp-ness of this; merely using a defun function and a list data structure does not qualify.
Re:Jisp - Lisp implementation in JavaScript
by extension on Sunday May 23, 2010 @11:44PM
(#1373713)
Well, he did say it was a work in progress. I think this needs a JIT compiler, i.e. s-exps to JS. That would make it snappy and I'm pretty sure you could do proper lexical scoping and closures that way too.
Jss: JavaScriptScheme: a multithreaded Scheme to JavaScript compiler
http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Dumpin...
Ometa is available for javascript, so it should be reasonably straightforward to write a parser to bring traditional lisp syntax on top of javascript. http://www.tinlizzie.org/ometa/ There's a few schemes on javascript, thought I don't think any that aim to become a target platform in their own right.