News for hackers. Stuff that matters.
Re:Automating programming: AI is transforming the coding of ... by js8 on Friday July 09, 2021 @02:13PM (#27786690)
In programming languages, it is much more common to define new words (symbols) than in natural language. The identifier (name) of the symbol (word) in such case is less informative about its nature than the actual definition, and I think this is the Achilles heel of the method.
Re:Automating programming: AI is transforming the coding of ... by lambdaba on Friday July 09, 2021 @04:42PM (#27788264)
Yes, programming languages are simple, programs are infinitely complex, they could express anything, and homoiconic languages can even define their own syntax.
Re:Automating programming: AI is transforming the coding of ... by js8 on Friday July 09, 2021 @07:19PM (#27789594)
Absolutely. These days, I am exploring a concatenative language, Factor. I feel like if there ever was a consistent syntactic pattern in this language, then it would make sense to define it as a new word, rather than have a system which would repeatedly suggest it based on partial match.

And that's what I am alluding to with my entropy comment. Factor's syntax has extremely high entropy (if we look at words as tokens), or rather, it is designed to allow extremely high entropy of code.

Ultimately, I think it comes down to preference, what the tools should be doing for us programmers? Should the program source code (language syntax) have low entropy, and the tools should exploit that when we write the code (as Copilot does), or should we strive for as high entropy of the source code as possible, and have the tools explain the context for us (for example, in Factor, it would be what the expected types on the stack are in the certain place in the code, etc.)? I am in favor of the 2nd approach, I think that is going to be more productive.

Re:Automating programming: AI is transforming the coding of ... by lambdaba on Friday July 09, 2021 @07:40PM (#27789700)
I agree, programs are and will always remain first for humans to read, which means they have to follow the shape of thought and not the other way around.