On Aug 12, 6:41 pm, daly <d...@axiom-developer.org> wrote: > In AI this is often modeled as a self-modifying program. > The easiest way to see this would be a program that handles > a rubics cube problem. Initially it only knows some general > rules for manipulation, some measure of progress, and a goal > to achieve.
The rubic cube is actually a not-so-simple problem, because the function that measures progress is very difficult to write, if you don’t know the algorithm of how to solve a cube. But if you want to have the program find that out, then there would be no point in having a fitness function that already contains the solution. > Hmmm. > Clojure has immutable data structures. > Programs are data structures. > Therefore, programs are immutable. CL Programs are also immutable. At some point you will need to call eval or compile. > So is it possible to create a Clojure program that modifies itself? Yes, in the same sense as it is possible with CL. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en