So I havenāt ordered a norns yet. Iād like to see the source code and make sure it āfitsā with my way of wanting to code. But I still canāt stop thinking through ideasā¦
Does anyone have any experience with declarative programming in Lua?
What Iām thinking is that Iām often going to want to write UI to edit a bunch of values, and have a set number of actions based on those edits (e.g. update the value in a SynthDef instance, run a Lua function, etc).
Rather than writing normal code for the UI, Iād much rather describe it, and either have that description be the code (e.g. a DSL), or have the description interpreted by something else. Ideally I could do this in such a way that the UI could adapt itself based on the hardware available (e.g. Arc, or a keyboard).
Iāve seen:
and
Iāve tried reading though the first, and it roughly makes sense (always returning functions so you can chain things together), a concrete understanding of it is beyond my reach with my current comprehension of Lua. The second link is completely out of my reach.
Iāve also wondered if just using vanilla Lua tables as the description medium would be more idiomatic and less āmagicalā.
So more experienced Lua programmers, any thoughts?
Iād love to get a decent handle on this, I think it has a lot of potential for writing grid user interfaces too.