4 ms·
You make me think that a whole new syntax for spoken programming would be key. Would be interesting to get a bunch of people to read out loud various programs
by fouc 7y ago
You make me think that a whole new syntax for spoken programming would be key.
Would be interesting to get a bunch of people to read out loud various programs in various languages and in pseudocode and hammer down what might be the most natural way to do spoken programming.
- harperlee 7y agoTwo avenues that I think are interesting: 1. Try to mimic english grammar. For this, Attempto controlled english (http://attempto.ifi.uzh.ch/site/ http://attempto.ifi.uzh.ch/site/) is something to review. 2. Go simpler and reduce grammar as much as possible. Prolog would be a good fit, as a program is just a set of Horn clauses.
- shakna 7y agoI've actually found that Lua is one of the least painful languages to write with voice control, as it has so few symbols - they tend to be only operators so you can switch them out easily enough in your engine. (And a few extras for moving around in your text editor, like "com jump $n upwards"). But you still do need to replace all sorts of brackets, like any language. At the moment I've got: "bracket" == ( "brace" == { "index" == [ (And "end $x" for the other side of it.) Clearly not ideal, but works well enough for now, certainly a lot less painful than trying to maintain indentation in Python with voice only. (com select 20 lines upwards, reverse tab... Followed by swearing as it tabs instead of untabs.)
- Cogito 7y agoFor what it's worth, I've always known them as: ( parentheses (parens), alt. round bracket { brace, alt. curly bracket [ bracket, alt. square bracket The biggest confusion is between bracket and parentheses, in that people will use bracket to mean both. If I think there might be confusion I use the alternatives as they seem to remove all ambiguity.
- shakna 7y agoYeah, unfortunately "parenthesis" is a hard word for most of the Speech-To-Text engines I tried, at least with my accent. ("parent thesis") And it is somewhat of a long word to be using all the time.
- Cogito 7y agoAnd for that reason, if I was using speech-to-code, I would probably use the alternative forms of 'round bracket', 'square bracket', and 'curly bracket' when I need to specify the type.
- arccy 7y agoAssembly sounds perfect for spoken programming
- faissaloo 7y agoGod no, Assembly has all sorts of weird names for things like pcmpeqb
- lichenwarp 7y agopapa charlie mike papa echo quebec bravo