Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The only reliable approach to this I can think of is to 'write' the program purely as a declarative specification mapping every supported input pattern into a corresponding expected output pattern (for a familiar example, spec driven unit testing: http://jasmine.github.io/edge/introduction.html).

Then one needs to write whatever's going to generate the implementation (currently that 'whatever' is a human programmer). If done right, it doesn't matter what the underlying platform is (theoretically, this could even be used to train a neural network).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: