3 ms·
I got it to write a Python module that would intercept calls to missing functions, create the missing function based on the name and calling parameters, write t
by brookst 4y ago
I got it to write a Python module that would intercept calls to missing functions, create the missing function based on the name and calling parameters, write the function to a new .py file, modify the file that called the missing function to import the new file, then execute the new function and return without error.
It was very unhappy about doing so; I had to stress that it was just for research in the prompt to avoid it flat out refusing to write self-modifying code. But it worked!
- vidarh 4y agoThat makes me wonder where you can go if combining GPT with Koza et.al's genetic programming research, to instead of doing "blind" mutation and crossover, let GPT do targeted changes at high temperature, driven by knowing the goal, and pit different runs against each other.