85 points · by ojno · 9y ago · 35 comments
Uhh ... no?
If JS is super important, does that make C++ (the most common implementation language for JS runtimes) super-duper important?
Willing to bet $100 that there are more projects developing with Git than JS.
---
Actually wait...I GOT IT: the most important technology these days when it comes to software engineering is the microprocessor.
It didn't say it's the best, which it probably isn't.
* Web Development is obvious, sure
* Cross platform app development: React Native, NativeScript, Electron, nw.js, and others are extremely powerful, arguably among the best cross platform solutions, and all are gaining in popularity
* Server development. NodeJS is hard to ignore because it's fast, easy to develop in, and has the amazing (if sometimes frustrating) NPM ecosystem.
Software engineering is bigger than that trifecta, but you probably hit the 80% mark if you count all application, web, and server code development. JavaScript is making some inroads into embedded, but it's not as ideal for embedded work, except as a control language from the outside, so I'm not as bullish on JavaScript there.
Throw in TypeScript and a good linter and you have a really strong, flexible, dynamic-yet-statically-typed environment that you can use to hit the (estimated) 80% mark. It really does live at a sweet spot in productivity and software engineering, if you ignore the anti-JavaScript snobs. [1]
[1] Disclaimer: I was an anti-JavaScript snob as recently as about 5 years ago. My background is in games, drivers, C++, assembly language, several other scripting languages, and writing native apps. Things that changed include: 1) Me, in that I gave JavaScript, and later TypeScript a try, 2) I learned to love linters and transpilation, 3) The ecosystem exploded and the tools we have now, including VS Code and build tools like gulp, not to mention the built-in debuggers in every major browser, are now amazing, and 4) JavaScript and TypeScript themselves evolved and upgraded until they were actually both very good languages.
The good news is that the next version of Edge 15 has some really good DOM performance improvements.
https://developer.microsoft.com/en-us/microsoft-edge/platfor...
For the context, from the "about" page of the author, he:
"joined Google to work on the V8 JavaScript Engine in the Munich office, where" he's "currently working as tech lead for the JavaScript execution optimization team."
Unless you work in the embeded systems I don't expect people to have done or needed the % 2048 trick.
I know that V8 has some amazing performance characteristics and if they aren't from doing things that C compilers have been doing for years, then what are these speed boosts coming from?
JIT compiling a highly dynamic language is quite a different task than AOT compiling a statically typed language. Bit-twiddling tricks are unlikely to be the biggest concern. Try starting with the obvious like https://en.wikipedia.org/wiki/Just-in-time_compilation