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]
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]
