Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Lisp rewrite #51

Open
gr0uch opened this issue Nov 14, 2016 · 2 comments
Open

Lisp rewrite #51

gr0uch opened this issue Nov 14, 2016 · 2 comments

Comments

@gr0uch
Copy link
Owner

gr0uch commented Nov 14, 2016

It would be interesting to see if the code could simplified by writing it in Common Lisp via Parenscript. I don't expect any savings in output size, but I think it would reduce the lines of source code by using macros.

It is currently ~700 lines of JS, which is not trivial but also not that big. It might make sense incrementally try to reproduce the same JS code via Parenscript.

The motivation is to see how viable Lisp is as a language for authoring web front-ends. Parenscript is particularly suitable for authoring libraries with, since it does not rely on an external runtime. I guess very few people understand Lisp code so there are very few people doing it, but it's worth experimenting and I think it's feasible.

@tomByrer
Copy link

I like the idea of 'macros' instead:
http://jlongster.com/Stop-Writing-JavaScript-Compilers--Make-Macros-Instead

@gr0uch
Copy link
Owner Author

gr0uch commented Dec 13, 2016

Macros originate from Lisp :)
There are other things from Lisp that I want to use as well.

@gr0uch gr0uch mentioned this issue Apr 7, 2017
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants