Settings

Theme

Show HN: Toy controlled English to Golang code

stated-lang.github.io

13 points by artpar · 6 comments

Reader

4 threads
xyzzy_apps

There 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.

artparOP

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.

ninalanyon

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?

  • artparOP

    > 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.

seri4l

A more verbose COBOL. Nice!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection