LispyScript
lispyscript.com
LispyScript
1–10 of 43 posts
Re: LispyScript
#2I've been meaning to write up the various approaches to sexpressions+macros in JS. Mine differs from the others (and perhaps is closer to LispyScript) mostly in that it's close to JS in its names and semantics (e.g. "function" defines a function and you're still required to use a "return" statement), but then it lets you write macros to e.g. define "fn" where the return is implicit.
Anyway, here's some sample code from mine (which is itself defining macros used elsewhere in the compiler): https://github.com/martine/pjs/blob/master/lib/macro.pjs
Re: LispyScript
#3and its awesome FP library inspired by haskell's prelude.hs
I have done all forms of projects using LiveScript - robotics, simple websites, blog, cryptography, computer vision.
Its actually becoming silently fairly mature.
It helps when it doesn't generate any hype like most languages.
The community around is also very helpful !
And LiveScript is awesome with React.js or any other virtual DOM based MVC framework.
Re: LispyScript
#4Now look at: https://github.com/clojure/clojurescript
And try it: http://himera.herokuapp.com/index.html
Re: LispyScript
#5TLDR: s-expression syntax for javascript, macros are written in common lisp.
Re: LispyScript
#6There are macro systems for Javascript, just not native ones.
Re: LispyScript
#7Re: LispyScript
#8> An inherent problem with Javascript is that it has no macro support, unlike other Lisp like languages. http://sweetjs.org/ There are macro systems for Javascript, just not native ones.
Re: LispyScript
#9Neat! Now look at: https://github.com/clojure/clojurescript And try it: http://himera.herokuapp.com/index.html
Lispyscript has the very nice advantage of being able to run directly in the browser. Since it's translated directly to javascript, I expect it won't have problems using other javascript libraries.