Genetic brainfuck programming
github.com
Genetic brainfuck programming
1–10 of 31 posts
Re: Genetic brainfuck programming
#2[[]++,]
This entire loop must always be skipped, because if entered, the inner [] loop will also enter, and run indefinitely.
It would be cool to run it through more iterations, to get to the local minimum of length, rather than just a correct program.
Re: Genetic brainfuck programming
#3It's been a decade since I have written a BF program, but if I'm not mistaken, the winning strand in the gif example has quite a bit of dead code, for example here: [[]+ +,] This entire loop must always be skipped, because if entered, the inner [] loop will also enter, and run indefinitely. It would be cool to run it through more iterations, to get to the local minimum of length, rather than just a correct program.
Re: Genetic brainfuck programming
#4It's been a decade since I have written a BF program, but if I'm not mistaken, the winning strand in the gif example has quite a bit of dead code, for example here: [[]+ +,] This entire loop must always be skipped, because if entered, the inner [] loop will also enter, and run indefinitely. It would be cool to run it through more iterations, to get to the local minimum of length, rather than just a correct program.
With genetic code you’ll also get junk code, exactly as it happens for DNA :)
Re: Genetic brainfuck programming
#5It's been a decade since I have written a BF program, but if I'm not mistaken, the winning strand in the gif example has quite a bit of dead code, for example here: [[]+ +,] This entire loop must always be skipped, because if entered, the inner [] loop will also enter, and run indefinitely. It would be cool to run it through more iterations, to get to the local minimum of length, rather than just a correct program.
corvus -h 500 | corvus -h 300| corvus -h 200
So on and so forth as you get closer to [,.]
The dead code part was a organic artifact, and I actually don't think that I want to change that part. It sorta makes you wonder about how much dead code is in real DNA.
Re: Genetic brainfuck programming
#6It's been a decade since I have written a BF program, but if I'm not mistaken, the winning strand in the gif example has quite a bit of dead code, for example here: [[]+ +,] This entire loop must always be skipped, because if entered, the inner [] loop will also enter, and run indefinitely. It would be cool to run it through more iterations, to get to the local minimum of length, rather than just a correct program.
Yeah, the next thing planned for it is user-settable hunger. Then, making more and more efficient code is simply a matter of following the unix philosophy corvus -h 500 | corvus -h 300| corvus -h 200 So on and so forth as you get closer to [,.] The dead code part was a organic artifact, and I actually don't think that I want to change that part. It sorta makes you wonder about how much dead code is in real DNA.
Re: Genetic brainfuck programming
#7Re: Genetic brainfuck programming
#8To summarize, the design of biological systems is random. It was a hard pill for me to swallow, and an utterly dissatisfying one at that.
Re: Genetic brainfuck programming
#9As someone with a background in computer programming, I found biology quite frustrating. I wanted to see some underlying structure or meaning in the genetic code. It took me a long time to realize that it wasn't there. Biological systems and their genetic codes are the result of random trial and error filtered through Natural selection. Biological systems clearly have a design because you see the same "form" reappear…
There are so many things about our universe that are very non-random, such as the physical laws, and more specifically the spherical shapes of planets/stars, the flatness of their surfaces, the flow of energy from stars to planets, etc.
An analogy could be that life forms randomly evolving with these constraints are like water particles randomly floating through a river. There are plenty of variations in where the particles can go, but they flow in a general direction.
Re: Genetic brainfuck programming
#10As someone with a background in computer programming, I found biology quite frustrating. I wanted to see some underlying structure or meaning in the genetic code. It took me a long time to realize that it wasn't there. Biological systems and their genetic codes are the result of random trial and error filtered through Natural selection. Biological systems clearly have a design because you see the same "form" reappear…
> To summarize, the design of biological systems is random. It was a hard pill for me to swallow. There are so many things about our universe that are very non-random, such as the physical laws, and more specifically the spherical shapes of planets/stars, the flatness of their surfaces, the flow of energy from stars to planets, etc. An analogy could be that life forms randomly evolving with these constraints are like…
Man made machines have a rational design. Biological systems have an "irrational" design. The most striking characteristic of a randomly designed system is that you cannot restart it. Once you shut it off it dies permanently.