Mind your language

emineminem

Member
Joined
Sep 15, 2010
Messages
21
Reaction score
0
So... russia.. May I ask.... what programming language do you use? The reason I'm asking this is simple. On my local news Russia forever gets the blame for hacking governments, stealing people's info via hacked websites and my personal favourite, Russia got the blame for putting Donald Trump in the white house. Actually before I say as to why I'm asking let me explain how I got to that question.
Being someone who is relatively interested in pragmatic algorithms and its surrounds I delve into examinging code more than most.
Recently I had what I thought was is a good idea, but as it always turns out, I wasn't the first to think of it. But I soon realised that the idea was a double edged sword depending on who carried the knowledge. So, I did what I thought was in the entire planets best interest and to perhaps prevent prevent more people with superb hairstyles ending up in the white house. I kept the "idea" to myself as besides the actual things it will fix, the period leading up to that time that it is done if anyone who can add math in anything else but binary will theoretically be able to cause lots of havoc if they so choose if they know what I do.

All this pondering and testing of subsequent further idea's and theories led me down a path I never thought I would ever, ever as long as I would use a computer end up.. linguistics and trying to create my own font. Within a minute of starting to create my own font I realised, its more diffult a task to do properly than any programming task. As mentioned, I look at many lines of code a day, but nothing is more dauting than trying to create your own font for a language that doesn't exist. It made me realise that whilst there are what I'm going to with a huge amount of caution say there are popular programmers who are followed by the thousands on github, evangelists who have folk who worship their blogs and poster boys who market and push their product as if it was land to a drowning man, well, it made me realise that no one ever bothers to put those creators of the squiggly writing on our screens on a pedastal. So, whilst I guessing that there arent many font creators out there, to the few of you, thanks for letting me be able to see the crap Im writing. With that out the way. Here's what I came into my silly mind:

Why are programming languages only in English, because I would like to write my code in my theoretical language, using my new theoretical font. Have a look at all the popular programming languages. In fact, go and examine the source code as I did.
Programming language design is taught at university and in fact anyone can learn it. I a few months ago decided to after many years dig into programming language design and things like compiling them again. Btw.. Ive been programming so many years that a junior felt entitled to tell me he deserves to be called an architect after a few years of working and I felt entitled to give him a smack. But humor aside. We have a problem. Russia has an alibi. And there is a junior running to go cry by HR.

Language. Im not talking about translation. Not that poorly worded error messages that is shown when an expection occurs, I talking about the reason why people who aren't english speakers or who doesnt speak it as a first language, why should they be kept all the years from doing programming because they didn't know english? Lets examine some facts (which I got off internet so forgive if my dates are out).:

The initial high level programming languages first appeared in 1950's. We generally accept that pc's were pioneered in the US who are primarily english speakers. Yes, computing hardware and innovation may have been bit slow to start of with and due to resource constraints and I hope what was oversight by all those who were around in the beginning, they chose to go with the option of mapping the english alphabet characters and a bit extra to 1 byte. Well.. 70 years later we have more than 1 byte per "character" (I put that in quotes deliberately) and can accomodate languages such as Thai, Arabic, Klingon .. even my theoretical one. But no one has bothered to allow progrmming languages be written in any other language besides english.
Loop back to my first paragraph where I mention Russia then jump back here. You see where I'm coming from? FYI.. I'm simply pointing out the darn obvious in case there are thoughts of whose side Im on. I have no offiliations with anyone because I really too far away.

Now moving on. The problem we facing is as follows:
We need all the major programming languages updated to support other languages. When i say all I mean:
c, c++, c#, java, vb.net, python, fortran, ruby, php, javascript, pascal are merely the tip of the iceberg.
Please understand the difference in that its not a case of supporting the language character set, its a case of it needs to support the language itself. For those of you who are old like me, look the programming language source code. It will typically be under a folder named parser or lexer. In which you will more than likely find a file named Token or a grammar file. Now.. all those nice reserved words like 'if,else, then,do,while,class,struct, dynamic,volatile etc etc. needs to be translated. It wont be that many.. maybe 30-40 at the most. But transating those words will be a start in opening up and giving more people the opportunity for a career in programming. Have you noticed there is forever a shortage of programmers? Yes, there is a shortage, those currently in jobs are grossly overpaid and no one wants to hire me. Probably because I'm a smidge over 40. Or it could be because of my entitled smacking of a theoretical junior.
But lets continue. Those smart enough will immediately think.. but if I change that.. what about the other code.. I will have to rename 'class' to 'klas' everywhere. Well, you dont. Here's a simple partial solution which solves for new projects compiled against EXISING BINARIES only. Its written in c#


//French lookup
string Dictionary<string,string> frenchToEnglishReservedWordMapping = new Dictionary<string,string>{
{"int", "int"},
{"vide","void"},
{"car","char"}
//etc etc
}

DEF(TOK_INT, "int")
DEF(TOK_VOID, "vide")
DEF(TOK_CHAR, "car")

//German lookup
string Dictionary<string,string> germanToEnglishReservedWordMapping = new Dictionary<string,string>{
{"int", "int"},
{"leere","void"},
{"verkohlen","char"}
//etc etc
}

DEF(TOK_INT, "int")
DEF(TOK_VOID, "leere")
DEF(TOK_CHAR, "verkohlen")


//Map the "foreign language" word onto the fallback (English) at the
private string TranslateReservedWord(string lang, string reservedWord)
{
switch(lang)
{
case "fr" : frenchToEnglishReservedWordMapping[reservedWord];
case "de": germanToEnglishReservedWordMapping[reservedWord];
}
}

[Please note Im continuing this post as comment below due to limitation in number of characters]
 
The presumption is because when using against compiled binaries the reserved words have been stripped already from the file.
For those having huge code bases.. well, you have a lot of changes to make now dont you?

But in all seriousness. Its important that this issue is resolved sooner. And when i say sooner I really mean put all the machine learning, nodejs packages, self glorification of how rusty your crates are and CONVERT the actual language that you support to another world language because it will not only be truly making the world a better place (as brogrammers talk) but it will also be the right thing to have done in 1995 already. Whilst english speakers enjoys the benefits of having all programming languages in our first language, lets share what we've been given by those Godly people who creates fonts for us to be able to send smiley faces with the rest of the NON ENGLISH SPEAKING WORLD. Now .. with that said i do have one personal gripe.

Can everyone stop inventing a new language every second day. What pisses me off even more is that its not only the parser and scanner and lexer, but after the first day they already have all the surrounds like the IDE, 2000 test cases, and busy allowing it to be compiled via LLVM backend. By end of day 2 the language is transpilable to Javascript and the project will have 4000 forks on github. What they then do is spread FUD. (for those who arent old enough it was knows as Fear, Uncertainty and Doubt during the computing rocky times) Claims like its so fast that it will most likely be used as a future replacement for 'C'.

Grow up.

'C' is old enough to be your grand father. As long as you piggy backing off LLVM (which isnt too bad btw) and until the day you stop making at least 20 new additions to your language and until the day you decide to get your language standardised and until your millions of overnight 'core' packages are tested to the bone... you won't even come as close as C++.
'And if you by some miracle (and it will really have to be a miracle) beat C, there's the 1 language that is faster than C. If you ignorant enough to think its assembler, then I will gladly allow you to be victorious, but will breathe a sigh of relief. (yes there is a language faster than 'c' and Usain Bolt).

So. you got it by now? Russia dont code in english because they DONT HAVE a programming language that compatible with english. So stop accusing them of putting presidents in office. I you hope I understand where Im coming from with regards to the fact that programming languages are created to only be allowed to be written in English. (thing about Russiand and white house is simply humor) The jab about the competition with c is because of things being pushed into peoples face. I'm happy for Rust and for how their community works together. Just dont push your agenda too much because its VERY misleading for those who arent experienced enough and could lead down a long dead end path with regards to the area of system progamming.
 
OP is unemployed. Makes a long post that clarifies why he is unemployable.
You know, sometimes it's very important to formulate an excuse correctly. Although this is inherent in people who do not like to leave their comfort zone and do something new.
 
Top
Sign up to the MyBroadband newsletter
X