-
why mirror GLSL semantics on the CLR, i hear you asking? well *deep breath* the idea is to be able to prototype functions in a Clojure REPL…
-
…interactively on the CPU and then compile those same Clojure functions into GLSL in a live coding environment. a single language for CPU…
-
…and GPU. to do that 1) the GLSL library needs to be replicated on the CPU and 2) we need a Clojure→GLSL compiler. made progress on 1 today…
-
…and bits and pieces of 2 are already in place *exhales*
-
to do this right, i have to make changes to Clojure that would make it technically a Clojure dialect. but this is fine for a prototype.
-
Clojure's function semantics are pretty lacking in terms of generics, and GLSL's functions and operators are *very* generic.
-
its been a minute since i've done bytecode shenanigans! i had to add circular types and properties to MAGE to make it work! i missed this!



