Praxis – A live coding environment based on Lua, Lisp and Forth
1–10 of 22 posts
Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#2Well, I guess it does fit the requirements of live coding.
Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#3Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#4Is a language environment really live if it does not support interaction or encapsulated state (inside rather than outside of the render loop)? Is it really live if you have to manually refresh your code? Well, I guess it does fit the requirements of live coding.
I don't know what you mean. Could you give an example of this? What would you like to be able to do?
Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#5Is a language environment really live if it does not support interaction or encapsulated state (inside rather than outside of the render loop)? Is it really live if you have to manually refresh your code? Well, I guess it does fit the requirements of live coding.
> supporting interaction or encapsulated state I don't know what you mean. Could you give an example of this? What would you like to be able to do?
while true:
renderP()
Now, renderP will get executed afresh each time. Assuming no static data, if you want any state at all it must be global to the loop; e.g. var state = initValue
while true:
renderP(ref state)
Immediate-mode UIs suffer from the same constraint, and really, the author is getting most of their liveness by being immediate.Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#6Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#7Earlier quoted context omitted.
> supporting interaction or encapsulated state I don't know what you mean. Could you give an example of this? What would you like to be able to do?
Your render loop looks like: while true: renderP() Now, renderP will get executed afresh each time. Assuming no static data, if you want any state at all it must be global to the loop; e.g. var state = initValue while true: renderP(ref state) Immediate-mode UIs suffer from the same constraint, and really, the author is getting most of their liveness by being immediate.
do
var state = init
fn renderP()
...
end
end
Depending on what you wanted the state for, I think it satisfies most of the properties you'd be missing with a persistent, not-in loop state. It wipes itself on refresh, it has a distinct owner, it can be individually refreshed just by re-evaluating everything inside the do-block, etc.Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#8Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#9So far all of the live coding demos were about graphics. I wonder if it's possible to do something similar with something of a much less interactive nature - say, number crunching, compilers, linkers, etc.
Re: Praxis – A live coding environment based on Lua, Lisp and Forth
#10Earlier quoted context omitted.
Your render loop looks like: while true: renderP() Now, renderP will get executed afresh each time. Assuming no static data, if you want any state at all it must be global to the loop; e.g. var state = initValue while true: renderP(ref state) Immediate-mode UIs suffer from the same constraint, and really, the author is getting most of their liveness by being immediate.
What about the old let-over-lambda? do var state = init fn renderP() ... end end Depending on what you wanted the state for, I think it satisfies most of the properties you'd be missing with a persistent, not-in loop state. It wipes itself on refresh, it has a distinct owner, it can be individually refreshed just by re-evaluating everything inside the do-block, etc.