Hi group,
I'm playing with some FORTH primitives like INTERPRET and EVALUATE, which, in a nutshell, allow you to execute the contents of a string. With this functionality, you could write code which in essence writes itself. An example of this would be to generate a string that caused random movements of servos, and then meter the effectiveness of the move. By iterating intelligently or even unintelligently through the commands, and modifying and metering in turn, you could, in effect, make a device that learns. Once satisfied, the compiler could then turn that string into a FORTH word, thus incorporating it into the language. This is different from building a case statement, state machine, or other flow control, because you are feeding into the core of the machine directly, and you can define words that can be extrapolated upon. In effect, the OS/Compiler would be different than when you "set it free"
I have only limited exposure to the vast number of languages out there, and was wondering if any of you out there knew of a high level language that incorporated this functionality.
TIA
Mike