ClojureScript de Jong Attractor
github.com
ClojureScript de Jong Attractor
1–10 of 11 posts
Re: ClojureScript de Jong Attractor
#2Re: ClojureScript de Jong Attractor
#3Re: ClojureScript de Jong Attractor
#4Re: ClojureScript de Jong Attractor
#5Re: ClojureScript de Jong Attractor
#6Author here! I experimented a bunch with different ways to calculate the plotted points. WebGL shaders outperformed everything by a mile, though it was weird dropping down into what's essentially a low level C-like language. Check it out https://github.com/cjlarose/de-jong/blob/master/src/de_jong/...
Re: ClojureScript de Jong Attractor
#7Author here! I experimented a bunch with different ways to calculate the plotted points. WebGL shaders outperformed everything by a mile, though it was weird dropping down into what's essentially a low level C-like language. Check it out https://github.com/cjlarose/de-jong/blob/master/src/de_jong/...
I've often wondered, though, how hard it would be to write a lisp compiler that outputted ARB, rather than use GLSL for coding shaders. Is this possible?
I may be completely wrong, but my gut feeling is that shader coding seems like it would be a natural fit for functional languages.
Re: ClojureScript de Jong Attractor
#8Author here! I experimented a bunch with different ways to calculate the plotted points. WebGL shaders outperformed everything by a mile, though it was weird dropping down into what's essentially a low level C-like language. Check it out https://github.com/cjlarose/de-jong/blob/master/src/de_jong/...
Obviously I'm showing my lack of knowledge here. I really only know enough about Open GL to look stupid on the internet ;-) I've often wondered, though, how hard it would be to write a lisp compiler that outputted ARB, rather than use GLSL for coding shaders. Is this possible? I may be completely wrong, but my gut feeling is that shader coding seems like it would be a natural fit for functional languages.
Re: ClojureScript de Jong Attractor
#9Author here! I experimented a bunch with different ways to calculate the plotted points. WebGL shaders outperformed everything by a mile, though it was weird dropping down into what's essentially a low level C-like language. Check it out https://github.com/cjlarose/de-jong/blob/master/src/de_jong/...
Oh weird! Is it common in ClojureScript to pass strings of code around like this?
Re: ClojureScript de Jong Attractor
#10Earlier quoted context omitted.
Obviously I'm showing my lack of knowledge here. I really only know enough about Open GL to look stupid on the internet ;-) I've often wondered, though, how hard it would be to write a lisp compiler that outputted ARB, rather than use GLSL for coding shaders. Is this possible? I may be completely wrong, but my gut feeling is that shader coding seems like it would be a natural fit for functional languages.
I think there have been a few efforts to do such a thing. A quick search of github and I found https://github.com/kovasb/gamma/blob/master/README.md