News for hackers. Stuff that matters.
Re:Show HN: Bato – A Filipino Programming Language by dx034 on Friday January 12, 2018 @09:43AM (#16133119)
Maybe using single characters (e.g. chinese characters) instead of words for keywords is more efficient to type and read for programmers. Not sure how typing compares but it could give code more structure.

Does anyone know how governments in China, Japan or Korea handle this? Do they try to use non-english programming languages?

Re:Show HN: Bato – A Filipino Programming Language by blackguardx on Friday January 12, 2018 @09:58AM (#16133292)
Single chinese characters are inputted with more than one key press on the keyboard, so it won't be much different.

You can test this by changing your input method to Japanese or Chinese. At least in Japanese, the sound of the character is typed out using english letters (romanji) and various options are presented for autocompletion.

You are right that reading characters is probably faster, though.

Re:Show HN: Bato – A Filipino Programming Language by drdaeman on Friday January 12, 2018 @10:56AM (#16133796)
> At least in Japanese, the sound of the character is typed out using english letters

Technically speaking, Japanese have kana-based keyboard layout, where a single mora is a single keypress rather than two. However, there is still an extra (second) keystroke for dakuten/handakuten (か -> が), which is not required with romaji input (where it's just "ka" vs "ga"), so it's not a 100% speed increase. So, typing is somewhat more efficient than with romaji, but I think I've heard no one uses that, except for, possibly, professional typists.

Re:Show HN: Bato – A Filipino Programming Language by level3 on Friday January 12, 2018 @11:19AM (#16133981)
Just as an anecdote, I know of at least one person in my company who uses it, without being anywhere near a professional typist. I suspect older generations may be much more likely to use it.

In any case, even though mostly everyone prefers the IME on their computers, I haven’t seen any Japanese people who prefer romaji input on their smartphones.

Re:Show HN: Bato – A Filipino Programming Language by seanmcdirmid on Friday January 12, 2018 @10:32AM (#16133609)
Pinyin input for Chinese is similarly phonetic. Supposedly there is a method popular in Taiwan based on strokes.

Reading characters is a bit faster, but only because you had to memorize 10,000 of them already. People reading English will similarly chunk many of the words they are familiar with so that they are not so much read as they are recognized.

Re:Show HN: Bato – A Filipino Programming Language by hangonhn on Friday January 12, 2018 @12:53PM (#16134778)
This is also a stroke system (Wubi) that's more popular and faster in China too. Maybe it's a related system to the one in Taiwan. Pinyin makes sense only if you're already familiar with the Latin alphabet and how they sound. Those are literally foreign concepts to the Chinese.
Re:Show HN: Bato – A Filipino Programming Language by seanmcdirmid on Friday January 12, 2018 @01:31PM (#16135098)
Pinyin IMEs are still much more popular than Wubi IMEs because of the latter's steep learning curve. Pinyin was designed by Chinese for Chinese learners, and is only incidentally used by westerners. It is based on the latin alphabet yes, but its how all the school kids in China learn standard pronunciation of mandarin words (indeed, this is pinyin's main purpose). So pinyin isn't really a foreign concept to any Chinese who has went to school since the 60s.
Re:Show HN: Bato – A Filipino Programming Language by amyjess on Friday January 12, 2018 @11:44AM (#16134195)
There's also a Taiwanese system called bopomofo or zhuyin, which is basically a Chinese version of kana.
Re:Show HN: Bato – A Filipino Programming Language by slavik81 on Friday January 12, 2018 @04:05PM (#16136281)
The result seems like it would be very concise code. Identifiers could be very descriptive and still only be a few characters.

Though, I wonder if the varying size of English words makes it easier to distinguish patterns just from the shape of the code.