News for hackers. Stuff that matters.
Re:Is a trillion dollars’ worth of programming lying on the ... by contravariant on Wednesday June 03, 2020 @10:55AM (#23404023)
With a precise and clear enough description you could throw it at a python interpreter and run it.

Though things could get fun if AI can enable more flexible declarative programming.

Re:Is a trillion dollars’ worth of programming lying on the ... by matz1 on Wednesday June 03, 2020 @06:08PM (#23409456)
if you could throw it at a python interpreter and run it then that wouldn't be english.
Re:Is a trillion dollars’ worth of programming lying on the ... by PeterisP on Thursday June 04, 2020 @12:22AM (#23412379)
I'd argue that "precise and clear enough description" means using a subset of English that's more complicated and much, much more verbose than python.

Have you read laws? That is the style of language that tries to make a "precise and clear enough description" in English, but it does not go far enough, it's still not sufficiently precise to be applied directly, you would have to use something like 'super-legalese' for that.

So even if you had a system that could accept English, nobody would want to use that because it's difficult to express precise and clear enough descriptions in English, and easier to do so in Python or some other programming language; and in any case, the difficult part of programming is thinking up the precise and clear enough descriptions.

This comes up in writing specifications for outsourced programmers. Writing a specification in English that's clear and actually precise enough takes more work than just writing the code directly - since you have to do all the hard part anyway, and then have to express it in a language that's poorly suited to do so. And a reasonable specification is very much not precise enough to be executed, it relies on the programmer putting in a lot of the details based on their domain understanding and common sense, leading to very different implementations as that domain understanding and common sense varies.

Re:Is a trillion dollars’ worth of programming lying on the ... by matz1 on Thursday June 04, 2020 @11:02PM (#23424629)
>So even if you had a system that could accept English, nobody would want to use that because it's difficult to express precise and clear enough descriptions in English

Yes but in the future this can be solved by the smarter AI.

Essentially that what a lot of developer do, they turn other people idea or english description into working code.