[Push] Code.Rand with all features disabled
Lee Spector
lspector at hampshire.edu
Thu Jul 1 21:58:42 EDT 2010
I believe that in all of the Lispy implementations what happens if you try to generate code from an empty set of ingredients is that it breaks.
-Lee
On Jun 22, 2010, at 1:18 PM, PerPlex Ed wrote:
> Another pathological case consist in the situation when Code.Rand is called and there are no active instructions and no activeinstantiable types.
>
> I'm defining Code.Rand so that it will push the empty Sequence in this case. More exacly I'm defining my GenerateAtomicInstruction function to return the empty Sequence. GenerateAtomicInstruction is the function that is called in GenerateRandomCodeWithSize (equivalent to your random-code-with-size) when points is less than 2. You can imagine what kind of programs will be generated.
>
> I'm doing other things so I'm not going to check what the lisp implementation does in this case right away.
> If anybody know it, please drop a line.
>
> Thanks,
>
> PerPlexEd
>
>
>
>
> _______________________________________________
> Push mailing list
> Push at lists.hampshire.edu
> https://lists.hampshire.edu/mailman/listinfo/push
--
Lee Spector, Professor of Computer Science
School of Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspector at hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438
Check out Genetic Programming and Evolvable Machines:
http://www.springer.com/10710 - http://gpemjournal.blogspot.com/
More information about the Push
mailing list