Imagine a webservice for programmers, let's call it "Codr", where programmers would translate each others verbal commands into code for, let's say, Python.
A typical example:
- Jane logs into Codr and adds a verbal command she'd like to see translated, such as "print out the square root of a number".
- John likes to translate verbal commands into code, sees the verbal command on the "new commands to translate" page and translates it into his favorite programming language, Python. The translation reads print math.sqrt(number). Codr is able to deduce required modules and input variables from the given statement, so it can put the statement into other contexts. John also marks "a number" from the command to be replaceable by any int or float datatype.
- Now Joe logs into Codr and adds a meta-translation for "print the distance between two points", which goes like "for each dimension of a point, subtract the destination number from the starting number, multiply each result with itself, add up all results, then print the square root of the result." Some of these statements still need translation, but the last statement could already be replaced by its translation.
The longer the site runs, the more problems can be solved, maybe even for different frameworks and languages. Also, library coders could write translations for how their library would solve the problem, for example.

1 comments:
This would be very helpful for people like this:
http://dontclickthis.whatingods.name/asp-rnd.png
Post a Comment