r/functionalprogramming • u/inazuma_zero • 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
5
u/andrewcooke Jun 17 '24
if we're talking about old fashioned generative art (not ai) then back in the day there was pan for haskell which took the idea of images as functions seriously.
3
u/gplgang Jun 17 '24
I think functional languages tend to do well at composing small bits of logic which helps with art. I think it depends on what you're trying to do because with a library like raylib any lang will work well, but if you're using Unity then F# doesn't give you a whole lot for the extra work you have to do.
I'm working on a language intended for this use case but it's not really ready yet, though when it is the first 'platform' I'm targeting will be WebGPU in the browser.
9
u/imbender Jun 17 '24
I really like Quil http://www.quil.info/ for Clojure.
3
u/Inconstant_Moo Jun 17 '24
It does seem like FP would be an extremely good fit for generative art. But I haven't tried, so ... someone suggest a language and a library?
-2
u/Select_Property3162 Jun 17 '24
What?
-4
u/[deleted] Jun 17 '24
[removed] — view removed comment