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
View all comments
Show parent comment
2
u/Sodaplayer Jun 17 '24
The answer to this dives a bit into formal language/computation theory which you'll learn if you choose to go for a Computer Science degree, but the overly simplified gist is that there's a hierarchy of languages. The more complex languages are capable of doing everything the simpler languages can do.
The aptly-named "Context Free" program uses a context-free language which is the second simplest type of language. C++, Python, and Java would be the highest tier of languages and can do things that "Context Free" can't do.
In terms of drawbacks, that'll be up to you to decide. If you look through Context Free's gallery, you can see very simple programs which make complex fractal images. But if there's something specific that Context Free can't do with its built-in language, then you'll have to look for another programming language.