r/Compilers • u/apoetixart • May 23 '26
English as a programming language
Would you guys agree that, making a compiler that understands raw English like humans isn't "impossible" but rather astronomically time consuming if not difficult?
I had always wondered if they could create something as hard as a programming language why not just use english lol
0
Upvotes
6
u/high_throughput May 23 '26
Isn't this basically what AI is?
6
u/imihnevich May 23 '26
English is ambiguous
4
u/BeamMeUpBiscotti May 23 '26
can’t you do that already with a hypothetical compiler where the LLM is the “frontend” and the regular programming language is the “IR”?
the problem with “understands like humans” is that there isn’t a single unambiguous meaning for everything, and the same sentence can be understood differently by two different people
3
u/lamesthejames May 23 '26
In some sense you could argue LLMs are already doing this.
But, if what you mean by "compiler" is specifically an executable that takes in any valid statement/command in English and executes it, then I think the problem you run into is really what counts as "valid English", which changes day to day, person to person.
2
u/Izex_ May 28 '26
Making a compiler that understands raw English isn't impossible, but I don't think the main downside is simply that it's time-consuming or difficult. It definitely would be, but the bigger issue is that English is extremely ambiguous.
I saw people saying that AI is already doing so, but I don't think that argument fully applies. LLMs don't truly "compile" English into precise meaning the same way a programming language compiler does. They generate tokens by probability, which is fine for many many tasks, but not for a deterministic execution