139 points · by _zhqs · 11y ago · 18 comments
[1] http://www.youtube.com/playlist?list=PL2VAYZE_4wRKKr5pJzfYD1...
Also, here is his presentation on this subject at the last Conj (great talk): https://www.youtube.com/watch?v=0GzzFeS5cMc
Glad to the have my question answered. Thanks for the links!
Not to say it's not valuable, it's great. I wouldn't exactly say it's common though.
In the case of shader compilation, compiling and linking actually is exposed as library functions, so you have complete control over how to do that.
Most of the dynamic features a repl provides, like introspection and so on is also available with a good debugger, depending on the scope of the project you can also just use Lua as a scripting language to get the majority of the benefits that Lisp has.
Moreover nested parentheses sort of pale, if you can visualize most of your state in much more powerful ways on the screen.
Since you have complete control over memory, you can implement time travelling debugging pretty easily, you just need a good ordinary debugger, a way to record all input to the game (easily done if you have clean separation between game and platform code) and a way to snapshot the game state at some point in time (also easy if you allocate all memory ahead of time and only let the game code use your memory allocators).
For example, let's say you are currently representing complex numbers in rectangular form. Is it possible to convert every existing instance to polar form, at runtime, without breaking any code?