3 ms·
What would be really cool is a language where I just write the tests and the compiler writes the actual code. That would be awesome. Something like what Critti
by Swizec 14y ago
What would be really cool is a language where I just write the tests and the compiler writes the actual code. That would be awesome.
Something like what Critticall attempted ten years ago: http://www.critticall.com/ http://www.critticall.com/ The idea there was that an evolutionary algorithm wrote the core code, you just had to give it an environment and some way of knowing the results were still okay.
- DeepDuh 14y agoAs someone who has tried Genetic Programming I can tell you that we're quite far from this becoming a reality. However, maybe there is something to that concept: I can imagine that it's possible to generate a good part of the usual boilerplate (interfaces, function parameters, data initialization, library initializations) knowing the tests. The programmer would still have to choose the names of inner functions and variables and then do the actual implementation. You do not want to leave the implementation itself to an AI, at least not any AI we know right now. Although, maybe a Watson-like AI fed with knowledge from stack overflow and official code examples might change that in the future ;).