Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Makes me wonder, if there could be a transpiler of some sort that could take a non-English syntax and convert it to the English counterpart syntax.

This way there might not be a need to invent a new programming language per human language.



The big problem is more with APIs, variable names, documentation, and comments. Those can't be easily translated. Languages keywords can easily be memorized.

The lesser problem is with languages that don't read left to right, since the parsing of the language has to be reversed.

Many languages now support UTF-8 for variable names, so in theory you could code those in any left-to-right language by just choosing different variable and function names,


AppleScript in its original, 90’s classic macOS implementation, was said to support this. It compiled down to a symbolic representation, which was then restored based on which language was selected. IIRC only a French alternate language was ever developed (HyperCard had more, but those scripts were stored as text) but also a JavaScript “dialect”.

The compiled representation was mostly exposed to users when they didn’t have the app used in a script installed and just got FourCCs/OSTypes sprinkled throughout their script instead


Interesting, haven't heard of these!

I am sure many small projects attempted to innovate similar solutions but never really took off.

If such a thing got popular, would be interesting to see if it would affect international collaboration. Whether it would speed things up.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: