Show HN: Toy controlled English to Golang code
stated-lang.github.ioThere are actually lots of attempts at this
Here's two attempts that do it for math https://github.com/aarneranta/informath https://naproche.github.io/index.html
An old perl script that does it with C https://www.foo.be/docs/tpj/issues/vol5_3/tpj0503-0012.html
I actually think this is why LLMs are good at language + programming. Attention mechanism resolves language ambiguities.
Main measurement I am using is that the "words to describe" should be lesser than the actual code (and obviously not literal callout of code which codex did try to cheat out). There is a parser and a parallel code generator.
Looks slightly interesting. But why is there not a brief description of what it might be for, why it exists, whether its solves a problem, etc.?
What itch was being scratched?
> what it might be for
Its purely a toy experiment at this point. My thought was to get LLM to respond completely in controlled english which is consumed by a compiler emitting actual code, that would reduce drift of goal + emitting of unnecessary code which llm tends to generate. Also it might help in identifying duplication of code across the codebase (since the english description would have to be exactly same), and additionally the english source could serve as the "docs" itself.
The itch was to see what would be the smallest POC to reach a meaningful "complete" thing.
Currently its not usable in any meaningful form apart from the examples listed. You cant make a real program yet.
A more verbose COBOL. Nice!