(Disclaimer: I am a C# guy. I've just started learning Clojure.)
I understand that a Clojure program has the ability to manipulate itself or easily generate other programs. It has something to do with everything in Clojure being a data structure and that generating programs would be the same as creating any other type of data structure.
Does anybody have a good sample program (or a reference to one) that shows this?
If you generate a program, can you "serialize" that program out to disk for later execution?
Just for reference:
I'm trying to play with Genetic Programming. I want to generate a lot of little programs, evaluate them, and use the successful ones to generate more programs. See more here and here.
I think I'm misusing terms here. By program I actually mean a clojure list and by Code Generation I mean "List Generation". I just need the list to contain actual function calls and parameters. I would need to be able to control when this list gets "executed".