Arc Forumnew | comments | leaders | submitlogin
1 point by random7 5070 days ago | link | parent

Nice idea. Have you read through parenscript, which does something similar based on Common Lisp?

Also, what's the definition of "between"? It doesn't seem to be defined anywhere in arc3 or in js.arc.



1 point by evanrmurphy 5070 days ago | link

Thanks. I have looked at ParenScript, but not as extensively as I probably should. Have you used it, or is there any aspect of their approach you might particularly recommend?

I'm also interested in Scheme2Js and have read much of their paper. [http://www-sop.inria.fr/mimosa/scheme2js/]

'between is courtesy of Andrew Wilcox [http://awwx.ws/between]. Nice catch. :)

-----

2 points by random7 5069 days ago | link

Thanks, it works now. (And thanks for the link to Scheme2js!)

I installed ParenScript, but haven't used it for anything.

I recommend it for having a community that actually uses it for production, and for being around long enough to have tried a variety of different approaches to hosting a lisp on top of JavaScript. It's probably worth reading through their mailing list archives to see how they've evolved.

I also recommend coffee-script, which is sort of a python/ruby syntax for Javascript. Probably the most inspiring idea from coffee-script is that the language is self-hosted (it was initially cross-compiled from ruby, but is now written in itself.)

-----

1 point by garply 5069 days ago | link

I have looked at parenscript and even started an arcscript which is totally non-functional - I was just translating it to Arc as I went as a way to understand the original codebase. I never finished it, but I'll post what I have on github and maybe we can collaborate.

Edit: pushed to github.

-----