Live data from Hacker News

Show HN: Bato – A Filipino Programming Language

github.com

111–120 of 127 posts

Re: Show HN: Bato – A Filipino Programming Language

#111
post #32
post #25

A few months ago, I was daydreaming about creating a new programming language and started thinking about language internationalization. I found this page, with some interesting comments: https://blogs.msdn.microsoft.com/alfredth/2011/07/21/why-are... As an aside, this one stuck out to me: "One of the difficulties in allowing the keyword to be switched on the fly to a different language is that keywords have to be 're…

It is always good to not have possible ambiguity in a language though. A classic example is a C++ line such as: a ** b Before you know if a and b are variable names or type names, you do not know whether this line is a variable declaration or a multiplication or a syntax error. My point is that some keywords could be used as identifiers in some situations, but this might not always be the case. One option would be to…

Programming languages already use contextual parsers. C# and Swift both allow you to re-use some keywords as identifiers, function names, etc and use context to disambiguate.

Both inherited the restricted list from C so for legacy reasons they prohibit those keywords from being used as identifiers, but newly introduced keywords are always contextual due to compatibility concerns.

Re: Show HN: Bato – A Filipino Programming Language

#112

Awesome stuff - i think this kind of languages are more important than most people (esp with strong english school background assume). I could see this as educational language for kids. Related to this: In the 80/90s i saw a German BASIC variant floating around. Unfortunately i couldnt find it online But… if you are into alternative-language programming languages i highly recommend you reading up on Plankalkül[1] - w…

Perhaps it should have been "BIER" instead of "BEER".

Re: Show HN: Bato – A Filipino Programming Language

#114

Awesome stuff - i think this kind of languages are more important than most people (esp with strong english school background assume). I could see this as educational language for kids. Related to this: In the 80/90s i saw a German BASIC variant floating around. Unfortunately i couldnt find it online But… if you are into alternative-language programming languages i highly recommend you reading up on Plankalkül[1] - w…

> written by Zuse (after whom SuseLinux is named)

I was under the impression that SuSE (now SUSE) stood for "Software und System Entwicklung" (Software and System Development, translated from German), are we referring to the same Linux distribution?

Re: Show HN: Bato – A Filipino Programming Language

#115
post #37

Earlier quoted context omitted.

At my Korean company, all code is written in English and comments are in Korean/English. On osx, capslock is used to quickly switch between languages.

Capslock with custom bindings? The default way to switch is control + space.

Yes but it's not comfortable for writing in multiple languages. I use Capslock both on Windows (Punto Switcher) and Mac (Seil / Karabiner Elements).

Re: Show HN: Bato – A Filipino Programming Language

#116

Earlier quoted context omitted.

I agree that the would already should have had a lingua franca, but I must say that it English is far from the best candidate. The language is huge, and the grammar is full of irregularities. Pronunciation must be learnt case by case (why are "women" pronounced "wee-men"?). (also recall this cute poem: http://www.ling.upenn.edu/~beatrice/humor/english-lesson.htm... )

English is THE candidate. Lingua franca is not decided by merits, but by adoption rate, which makes English is only choice on the table. It is the British empire+US hegemony, since WWII/Cold War that makes English lingua franca as it is today.

> It is the British empire+US hegemony, since WWII/Cold War that makes English lingua franca as it is today.

To be fair, it's also centuries of important contributions from English-speaking countries in science, technology, industry, aviation, literature, etc, etc, as well as, since WWII at least, music, TV, film and other forms of popular entertainment.

Re: Show HN: Bato – A Filipino Programming Language

#118
post #13

One thing I'm completely ignorant of is how to people from countries where non-latin alphabets are write code? Eg if you're Chinese, Arabic even Russian do you have to do everything in English and English characters? I'd hope there is a Unicode mapping into other characters - is there any language that supports this? Even for libraries would be nice.

I'm the only English person working in a German team at the moment, and their codebase takes letters like "ö" and makes it "oe". I think there are a few like that. Personally I prefer it when they use English obviously (I don't speak German), but it also means you don't get ridiculously long identifiers.

don't you as a programmer feel familiar with longidentifiers. Would you prefer in dent a-gogo ers? Yes, my latin is lacking.

Re: Show HN: Bato – A Filipino Programming Language

#119
post #37

Earlier quoted context omitted.

At my Korean company, all code is written in English and comments are in Korean/English. On osx, capslock is used to quickly switch between languages.

Capslock with custom bindings? The default way to switch is control + space.

It's not a custom binding. It's a default option offered by osx https://i.imgur.com/uJo5XUj.png

Re: Show HN: Bato – A Filipino Programming Language

#120
post #37

Earlier quoted context omitted.

At my Korean company, all code is written in English and comments are in Korean/English. On osx, capslock is used to quickly switch between languages.

I'd like to know how you do that with capslock, too :D

It's a default option offered by osx https://i.imgur.com/uJo5XUj.png
Post reply on HN