free MP3s recorded of codesimian: fractalSound1.mp3 b.mp3 c.mp3 d.mp3 but its more fun to create your own...

Start CodeSimian NOW (applet)

limited by internet security,
not all parts of CodeSimian work here.
Requires Java 1.5 and 2 ghz CPU

Download CodeSimian NOW (JAR file)

WORKS BEST. click OPEN,
or click SAVE then double-click CodeSimian.jar
Requires Java 1.5 and 2 ghz CPU

Designed For Software (Instead Of Humans) To Use

fractal simplicity

Intro/Tutorial | SourceCode | FAQ? | ListOfCommands | ~~Sounds/Audio (generated by equations)~~ | PlayElectricGuitarWithTheMouse | FREE MP3s (play and modify them with CodeSimian) | Pictures | Javadoc/TechnicalDocuments | CompareToJava | Plans (what to build) | RootClass | 1 Type | SystemReq | Humans | DNA | Bugs/Flaws | Wiki | Def | my resumE (give me a programming job) | Contact


All software I know of is designed to be used by Humans. If software uses other software, it needs Humans to connect it. CodeSimian is my attempt at teaching the computer to use the computer without our help.

Theoretically it will use the keyboard, screen, and maybe the mouse (depending on what your computer lets Java do) like Humans do to use other programs, assuming the java.awt.Robot class continues to be a part of Java. In Windows, CodeSimian can make your computer think its pressing buttons on the keyboard, so theoretically by using combinations of alt, tab, and enter, any running program can be brought to the front of the screen, tabbed through, and something selected in it with enter. CodeSimian can control other programs by using the keyboard, but currently its not smart enough to intentionally use an other program for a specific purpose. It can randomly push buttons. But it will learn...
         




CodeSimian's goals are CS objects, anonymous functions that can specify anything. Goals are optional and redefinable. Those functions take one PARAM: the CS object to measure and return a score for. Goals are like a fitness function in a genetic-algorithm, but they can be used with ANY of CodeSimian's objects including artificial-intelligence objects. Goals are part of the root class: CS. CS.pType(int) returns the goal object for a specific PARAM index. CS.setPType(int,CS) sets a goal. This will be used to put high-scoring objects into the PARAM positions they scored high in and keep them away from PARAM positions they score low in. Since goals are simply CS objects, they can also evolve in a turing-complete environment. Theoretically not just the groups of code evolve. The rules of evolution will also evolve.

But it can only evolve what you program it to evolve, right? Currently true, but theoretically false. Code can evolve to do anything that any CS object can do. Some CS objects are designed to connect to the object-oriented parts of Java code, and can sometimes be used to control other Java programs, which is more than enough space in the evolution environment.

Example, this CodeSimian code turns the Java-Virtual-Machine off, with exit code 5:
method#java.lang.System.exit(a b 5)

"java.lang.System.exit" is the name of the CS object, and in the case of method CSs, its also the name of the Java Method/function it wraps. That CS stores the parameter Java objects and primitives wrapped in CS objects.

"a" is replaced by the return-value of System.exit(int) when that function is executed.
"b" is normally used for the instance object the function is called from, but in this case its static so "b" is not used.
"5" is the 1 int parameter, but it could be used as any Object, array, or primitive type, assuming no ClassCastException occurs.
Interpret "5" as an array and you get an array size 0 since it contains no other CSs.
Interpret as Object and it depends if it understands how to convert itself to the specific Object type.

This example code uses "5" as a java.awt.Component:
window(5) pops up a JFrame window containing a JTree containing 1 node displayed as "5".

This can be done for any public function in any Java object or class.


It would be bad if evolved code was allowed to turn the whole program off, but I dont think its necessary to restrict which Java functions and variables it can use. Threads and try/catch/Exceptions can be used to prevent or fix most errors. If one Thread turns itself off, the other Threads would continue evolving. If some evolved code cant figure out why it keeps getting IOExceptions, let it be confused, delete it, and evolve better code to use IO. The IOExceptions wont crash the program. They'll just make parts of it not work, and those parts will be replaced.

Software that creates and modifies software.
        
Life is made of fractals.







































Fractals repeat at large and small scales.








Privacy Policy