Hacker News new | ask | show | jobs
by Liftyee 57 days ago
Neat little example of what's possible even using a restricted and standardised language. One could imagine using this as an interface layer for humans to interact with robots or industrial systems today. Of course, it would still be slower than an old-fashioned control panel with tactile, individual controls - but there may be some niches in which this language-based contextual control method has advantages.
1 comments

For industrial systems, PLC controllers programmed visually [0] are an alternate to text-based programming. It's surprisingly capable! I think this sort of fits the situation better, since every state the program can be in is visible all at once (each horizontal line is a pattern match case for the current state of the machine), and your inputs and outputs are immediately clear. In text, you're going to have to somehow introspect what nouns are available and what verbs they can do. That starts to feel like Smalltalk or something, with an object browser, [1] in which case, why not just use something general?

Trying to handle a text-based programming language with an implicitly english subject/verb/object order also feels like it makes it a bit harder to grok for Average Person (worldwide). For english speakers this is natural, but for people used to different grammar, this is nearly the same difficultly of learning a general purpose programming language already.

[0] https://en.wikipedia.org/wiki/Ladder_logic

[1] https://en.wikipedia.org/wiki/Smalltalk#Browser