Show HN: Write code using natural language
21–30 of 118 posts
Re: Show HN: Write code using natural language
#22I'm usually skeptical about programming language abstractions but from the demo it looks like this is more of a "helpful addition" then something you need to fully commit to which is interesting. I don't do a lot of Swift but will keep this in mind if I do. Best of luck!
Re: Show HN: Write code using natural language
#23Re: Show HN: Write code using natural language
#24Re: Show HN: Write code using natural language
#25Re: Show HN: Write code using natural language
#26Re: Show HN: Write code using natural language
#27If you want to understand why this is bad just look at AppleScript, probably the closest thing I've ever seen to natural language, the only problem is that it's impossible to just figure something out if there isn't a tutorial, because there's no real convention you can make guesses based on.
Re: Show HN: Write code using natural language
#28Natural language is ambiguous. Grammars for computer languages are designed to remove ambiguity. A natural language that is used to program a computer, too, will have to remove ambiguity, thus only using a severely constricted subset of a natural language. Is it worth it beyond curiosity? If a person can't grok a computer language are they going to grok such a terse natural language?
Re: Show HN: Write code using natural language
#29Natural language is ambiguous. Grammars for computer languages are designed to remove ambiguity. A natural language that is used to program a computer, too, will have to remove ambiguity, thus only using a severely constricted subset of a natural language. Is it worth it beyond curiosity? If a person can't grok a computer language are they going to grok such a terse natural language?
"Cookies set? Oh, that must be the plural of Cooky" -> actually happened in live coding demonstration before.
Re: Show HN: Write code using natural language
#30Natural language is ambiguous. Grammars for computer languages are designed to remove ambiguity. A natural language that is used to program a computer, too, will have to remove ambiguity, thus only using a severely constricted subset of a natural language. Is it worth it beyond curiosity? If a person can't grok a computer language are they going to grok such a terse natural language?
Only a Subset of features of natural langage introduce ambiguities, equivocations, etc. It is perfectly doable to force one and only one meaning per keyword (just like do programming keywords already (if, while, etc), removing the ability to use coreferences, etc I would love to see a great constrained English, formal without the readability and expressivity loss of formal symbolic grammars / formal maths
I wish! People won't even use "literally" consistently, despite it existing to prevent you having to guess which sense a speaker means.
Edit: Toned down.