- Joined
- Feb 5, 2016
- Messages
- 543
- Reaction score
- 327
- First Language
- Portuguese(BR)
- Primarily Uses
- RMMV
(I know it's not exactly talking about javascript only, but since the answer will tell how javascript runs in the system, i thought it MAYBE was the right place to post)
Since I started learning about MV, javascript, NwJs, NodeJS and stuff, I also started learning more about how programming languages work, their focus,etc. Few weeks ago i found the website "The Computer LanguageBenchmarks Game" and it's really interesting:It runs similar tasks using different languages in order to show their speed, then it compares one to another that's similar. To me it's something really useful, since this website is updated every few days/weeks, what can show the progress of some languages, at least when it comes to performance.
Getting to the point: randomly I entered the "C#" page and noticed that it's faster than java in most things, which makes it a LOT faster than javascript(which loses to java in performance on everything).
How can it be? I mean, all of them are interpreted programming languages(wikipedia), They have "Just in time compilers"(At least Java and javascript have[Chrome and Firefox], C# I don't know much),etc.
What makes C# That much faster than Javascript, which nowadays runs over an engine compiled in C++ and made by huge enterprises like Google, Mozilla,etc ? And what about Java, that's older than C#, a lot more used and which receives many more updates?
Since I started learning about MV, javascript, NwJs, NodeJS and stuff, I also started learning more about how programming languages work, their focus,etc. Few weeks ago i found the website "The Computer LanguageBenchmarks Game" and it's really interesting:It runs similar tasks using different languages in order to show their speed, then it compares one to another that's similar. To me it's something really useful, since this website is updated every few days/weeks, what can show the progress of some languages, at least when it comes to performance.
Getting to the point: randomly I entered the "C#" page and noticed that it's faster than java in most things, which makes it a LOT faster than javascript(which loses to java in performance on everything).
How can it be? I mean, all of them are interpreted programming languages(wikipedia), They have "Just in time compilers"(At least Java and javascript have[Chrome and Firefox], C# I don't know much),etc.
What makes C# That much faster than Javascript, which nowadays runs over an engine compiled in C++ and made by huge enterprises like Google, Mozilla,etc ? And what about Java, that's older than C#, a lot more used and which receives many more updates?