Arc Forumnew | comments | leaders | submitlogin
3 points by malisper 3919 days ago | link | parent

I was going through some of the old arc posts and found an arc to javascript compiler that you might want to look into for ideas for jasper.

Post: http://www.arclanguage.org/item?id=14795

GitHub: https://github.com/arclanguage/arcnu/blob/c9642f4be0aad88398...



4 points by rocketnia 3918 days ago | link

I think your second link's missing a hyphen: https://github.com/arclanguage/arc-nu/blob/c9642f4be0aad8839...

I think that's a very old version of Arc2js. There was at least one more version Pauan made after that, from scratch. Nowadays, Pauan's lisp-that-runs-on-JavaScript efforts seem to be focused on Nulan[1], which... seems to use the escodegen library[2] for JS generation.

And here I spent the weekend optimizing my own lisp-to-JS compiler, when I could've used escodegen. :-p Ah well, it'll probably be worth it because I'm very picky about stack overflows and such.

Well, that old version of Arc2js seems to be trapped in an orphaned set of commits that GitHub might garbage-collect at any time. I tried making a local mirror of the whole repo, but those commits don't come with it. Pauan probably wouldn't consider it to be code that's worth rescuing, but now's the time to figure out how to rescue it. :)

[1] https://github.com/Pauan/nulan

[2] https://github.com/Constellation/escodegen

-----

2 points by akkartik 3918 days ago | link

Crap. It's a real problem that branches aren't version controlled.

-----

2 points by akkartik 3918 days ago | link

I'm curious how you found that link, malisper.

-----

3 points by malisper 3918 days ago | link

I was just looking at some of the older posts here and came across the discussion of arc2js[0]. When that link didn't work I used Google and came across another post[1] where he mentioned an updated page and that one had a link that worked. I must have accidentally copied the broken link instead of the one to the actual page.

[0] http://arclanguage.org/item?id=14795

[1] http://arclanguage.org/item?id=15086

-----

2 points by ema 3918 days ago | link

I think escodegen is interesting when one wants to have source maps.

-----