I’m looking for the most suitable programing language that would fit the most those requirements (by order of importance):
Able to communicate with another “master” program running on the same machine (this one could be developed in python for instance, but it’s not defined yet).
Permissive: the program should be able to have syntax issue, but it should not be a problem until this part of the code actually has to run. Not clear enough? Check this out (in js):
function OK() { return; } Function notOK() { “~ù*^ SOME MESS HERE THAT HAS NO SENSE $”ér+ } OK(); // perfectly run NotOK(); // crash only when it reaches this instruction
Minimalist: the less instruction characters, the better (brainfuck is an extreme example of such a programming language as it only requires 8 instructions ;) ). Of course, weak typing is preferred.
For this moment, I think of using JS and node.js, but maybe you will have a better suggestion...
Thank you for your helpful advice !
Cheers
More about this project :
In this project, we aim to reproduce bacteria comportment and evolution. Each script will represent a bacterium. Thus, it will be often copied, but some random “mutations” will be applied on the code (delete, add or modify a character in the code). If the new code generated is viable, then the script continues to exist. Else, it will be deleted.
That said,
- Communication has to be possible because a master program will regulate all the “bacteria”.
- Permissive would be better as it will allow silent mutation (code modification that has, yet, no impact on the process), which could lead to much more flexibility and more complex mutations.
- Minimalist is better as it will reduce the number of possible mutations to apply.
Sorry, I know this project might sound silly :D