You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transferring this issue from original repository rogerallen#9
Sam Aaron suggested:
Another interesting option would be to write a transpiler from Clojure to glsl code.
Karsten Schmidt followed up with:
Re: Sam's comment about a CLJ -> GLSL compiler: Zach Tellman's old
Penumbra project has a mention of something like that, though I can't
comment on if or how well it works:
From the forum
On Thu, Apr 4, 2013 at 1:40 AM, Stathis sideris@---.com wrote:
I may be a bit late to the party, but the "transpiler" bit for generating GLSL code from Clojure has already been implemented in Penumbra which is no longer in development, but maybe could be cannibalised? Here is an example of a shader written in "clojure" code that's translated to GLSL by this part of Penumbra.
Stathis
And finally, the original author also mentioned:
Speaking as the person who wrote the GLSL transpilation, I'd recommend against using the Penumbra code wholesale. The type inference is finicky, and the implementation is fairly opaque. However, if you have any questions about what's going on there, feel free to get in touch. I don't guarantee I remember enough to answer everything, but I can at least point you in the right direction.
Zach
So, when I get ready to do this, I'll follow up with Zach
The text was updated successfully, but these errors were encountered:
This isn't Clojure->GLSL, but I really don't know if that's worth the pain of implementation for what it will be used for. If anyone is aware of a Clojure->C compiler I could use, then please add a comment. Otherwise, I'm just going with this simple single-pass lisp->string converter for now.
I'm calling this "good enough" to close. We'll open further issues for things that come up.
Transferring this issue from original repository rogerallen#9
Sam Aaron suggested:
Another interesting option would be to write a transpiler from Clojure to glsl code.
Karsten Schmidt followed up with:
Re: Sam's comment about a CLJ -> GLSL compiler: Zach Tellman's old
Penumbra project has a mention of something like that, though I can't
comment on if or how well it works:
See here:
https://github.com/ztellman/penumbra/tree/master/src/penumbra/glsl
From the forum
On Thu, Apr 4, 2013 at 1:40 AM, Stathis sideris@---.com wrote:
I may be a bit late to the party, but the "transpiler" bit for generating GLSL code from Clojure has already been implemented in Penumbra which is no longer in development, but maybe could be cannibalised? Here is an example of a shader written in "clojure" code that's translated to GLSL by this part of Penumbra.
Stathis
And finally, the original author also mentioned:
Speaking as the person who wrote the GLSL transpilation, I'd recommend against using the Penumbra code wholesale. The type inference is finicky, and the implementation is fairly opaque. However, if you have any questions about what's going on there, feel free to get in touch. I don't guarantee I remember enough to answer everything, but I can at least point you in the right direction.
Zach
So, when I get ready to do this, I'll follow up with Zach
The text was updated successfully, but these errors were encountered: