News for hackers. Stuff that matters.
Re:The Programmer's Brain by adamgordonbell on Monday June 17, 2024 @12:52PM (#40707888)
My understanding is they can do AST based translation and then use natural language translation to change variables.

So they can switch the language, but its limited to the quality of natural language translation of variable names.

The RTL langs and the different numbering system, from our interview, seemed like the hardest parts she had to tackle.

Re:The Programmer's Brain by foobarchu on Tuesday June 18, 2024 @07:22PM (#40723123)
I wonder how such a translation system would handle variables like i/j counters. If the target language is anything with a non-latin writing system then I can't imagine what you would substitute. I'm sure there's converse examples too, of single-character variables that have no translation to English.

Similarly, I wonder how one handles non-obvious shorthand like "rsp"