4 ms·
It's been few days since this post, don't know if you're still checking the thread. I'm really a beginner at lisp, so perhaps my questions won't make much sens
by veli_joza 8y ago
It's been few days since this post, don't know if you're still checking the thread.
I'm really a beginner at lisp, so perhaps my questions won't make much sense? I'd like to have Lua host application (in Love2d) with lisp-like runtime. The lisp-like code is expected to be changed often during the runtime by modifications of structure and constants in AST, so compile-time macros are not useful to me.
On the other hand, the lisp-like code would not be written from scratch in text form. It would be built by executing code-transformation functions that would always construct a syntactically valid AST. For example, let's say there is a function for drawing an arc of single color. Now user wants to draw a rainbow. I would offer a function that could be executed to wrap existing operation in a loop. In rainbow example the loop iteration would also modify a vertical displacement and color hue shift.
My two questions - is lisp (and Lumen specifically) a good choice for self-modifying live coding runtime? And is generated Lua source in Lumen project suitable for embedding Lumen into Lua host application?