Live data from Hacker News

LispyScript

lispyscript.com

1–10 of 43 posts

Re: LispyScript

#2
Coincidentally, I've been fiddling with a rather similar project, just as a hobbyist thing. It looks like this one is much farther along, kudos! Unfortunately from the contributions graph perhaps interest in it is dying off -- the last 10% (aka the last 90%) is always the hardest part to slog through...

I'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

#3
Also check out LiveScript.

http://livescript.net/

and its awesome FP library inspired by haskell's prelude.hs

http://www.preludels.com/

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

#8
post #6

> 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.

Not that you're wrong -- you're correct -- but I want to bring up that this was likely true at the time this was written. LispyScript has been around for a while.

Re: LispyScript

#9

Neat! Now look at: https://github.com/clojure/clojurescript And try it: http://himera.herokuapp.com/index.html

Clojurescript has to be compiled by the google closure compiler on the server side. The closure compiler doesn't work out of the box with other libraries, you need some kind of bridge.

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.

Post reply on HN