simulacra icon indicating copy to clipboard operation
simulacra copied to clipboard

Lisp rewrite

Open gr0uch opened this issue 7 years ago • 2 comments

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.

gr0uch avatar Nov 14 '16 13:11 gr0uch

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

tomByrer avatar Dec 13 '16 06:12 tomByrer

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

gr0uch avatar Dec 13 '16 19:12 gr0uch