r/functionalprogramming • • Jun 17 '24

Question Generative art and functional programming languages

What were your experience with generative art domain in your favorite functional programming languages. I wonder if functional languages can simplify and make the process much more elegant

7 Upvotes

33 comments sorted by

View all comments

Show parent comment

3

u/inazuma_zero Jun 18 '24

That's actually a really good idea. I'm rooting for your project. Btw did you hear about the bend language. Maybe it's also doing something similar with the GPU processing. I'm throwing these at you in case you could take advantage of some features of my suggestion maybe. Anyways, I absolutely love your idea of hot reloading for a creativity oriented language. Looking forward to your project completion

2

u/gplgang Jun 25 '24

Thank you I appreciate the encouragement :)

I have seen Bend and have been having a little trouble understanding the interaction nets theory behind it, but I'm hoping I can grok it next time I dive into the research. It's definitely some exciting stuff!

Another cool language based on different ideas (more traditional pure FP / working with arrays in parallel) is Futhark if you haven't seen that. I've been reading a lot of their write-ups and believe a lot of their findings are good general lessons for FP, and I'm hoping to find a subset within my language that will compile into efficient WebGPU compute shaders. From what I can tell you can get pretty good performance even with higher order functions and such which is really exciting!