ra’s avatarra’s Twitter Archive—№ 33,691

  1. progress on mirroring GLSL semantics on the CLR! MAGE made generating the vector types reasonable! resulting assembly is useable from C#!
    oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @ra
      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…
      1. …in reply to @ra
        …interactively on the CPU and then compile those same Clojure functions into GLSL in a live coding environment. a single language for CPU…
        1. …in reply to @ra
          …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…
          1. …in reply to @ra
            …and bits and pieces of 2 are already in place *exhales*
            1. …in reply to @ra
              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.
              1. …in reply to @ra
                Clojure's function semantics are pretty lacking in terms of generics, and GLSL's functions and operators are *very* generic.
                1. …in reply to @ra
                  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!