I wonder, if you wrote a program, that generates all valid javascript programs, given enough time, do you automatically have copyright on all these programs? Or do you need to actually run the program and save the results somewhere?
nah, it's clear that work still needs to be done to identify the useful programs. if you can identify useful programs from any sludge of valid programs, well you have AI.
If we only checked that produced program has valid syntax, instead of running it, we won't have problems with loops. Many gibberish programs would be produced, but some usefull also, eventually. We just wouldn't know which ones are the useful ones, but it shouldn't matter for copyright?
So it seems documenting is the real work, and programming is something that can be automated :)
The verify phase was just defining an inline function but not running it. However, I just noticed that a program with carefully placed braces could jump out of the function box and actually run. I replaced the checker with just Function(src) which shouldn't have that problem and is much faster.
I want to see fractal made from the numbers that are valid. I'll try to do this, but I don't know how to best cast 1d numbers onto 2d plane. Only way I can think of, that doesn't depend on arbitrary constraints like how many pixels in a row, is to make spiral starting from the middle of the screen. Anybody has better idea?
I would do the spiral from the middle, like Ulam's Rose. If you put the valid programs on top of the primes, you'll probably get a picture of a horse or something.