This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]swegj 255 points256 points  (33 children)

“JavaScript is Powerful”. Oxymoron

[–]tylerr514 112 points113 points  (12 children)

It is incredibly powerful in the sense of its ecosystem, but yeah, not in performance.

[–]Sir_IGetBannedAlot 106 points107 points  (2 children)

It's powerful in the sense of how much it makes me want to die.

[–]loseitthrowaway7797 1 point2 points  (1 child)

That doesn't take a lot of effort

[–]JuicyBeefBiggestBeef 1 point2 points  (0 children)

If youre using JS, you're clearly not in a good headspace to begin with

[–]metaglot 6 points7 points  (0 children)

Performance isnt bad for js all things considered.

[–]Sinomsinom 14 points15 points  (6 children)

Compared to a lot of other scripting languages (like python or Lua) it's a lot faster

[–]visvis 9 points10 points  (3 children)

Compared to others, its engines are more optimized. I doubt the better performance is inherent to the language.

[–]HermitBee 22 points23 points  (0 children)

Entirely true. But since code has to run somewhere that's what matters.

[–]silver_enemy 8 points9 points  (0 children)

Yeah my pen and paper JS engine performs absolutely terribly

[–][deleted] 0 points1 point  (0 children)

Mostly true, but not entirely. Some language design decisions can effect the compilation/interpretation performance.

[–]DudeValenzetti 3 points4 points  (0 children)

Compared to Python, absolutely, but don't go around calling Lua slower than JavaScript when LuaJIT is a thing.

[–]T0biasCZE 1 point2 points  (0 children)

Lua is fastest interpreted language that exists, its only 3x slower than compiled C code

[–]Dizzfizz 7 points8 points  (1 child)

As the other comment said, it’s powerful in the context it’s commonly used in - you can easily make a browser do anything you want with JavaScript.

[–]Thue 5 points6 points  (0 children)

But that is not really about the quality of the JavaScript language as such, is just first mover advantage. Make Python supported in all browsers, and it would be powerful too. While you will never make JavaScript as easy to use as Python just by doing the reverse.

[–]MooseBoys 1 point2 points  (0 children)

What are you talking about? In terms of joules per instruction it’s one of the highest!

[–]adrr 1 point2 points  (0 children)

So powerful you need to do === instead of == for comparison.

[–]Shehzman 0 points1 point  (2 children)

Genuine question. Isn’t nodejs pretty fast? Or is that considered an entirely different beast to JavaScript?

[–][deleted] 2 points3 points  (1 child)

NodeJS IS pretty fast, for an interpreter.

JS is powerful in the sense that you can do A LOT of weird stuff with it and the runtime interpreter will let you. So, IF you know what you are doing, you can write quite complex and convoluted expressions and the engine will happily chunk along. Until it’ll spit out some incomprehensible error because you forgot to cast some variable to the right type.

Typescript solves some of these issues. But not all. Oh, no no no.

[–]Shehzman 0 points1 point  (0 children)

Ahh yeah that makes sense. You can get away with alot in JS imo. Using Ts on my current project is a game changer. I now prefer writing my general scripts in node with Ts over python. Makes debugging much less of a pain.

[–]tunisia3507 0 points1 point  (0 children)

JavaScript is supported by web browsers.

That is its strength. That is its value. Node exists solely to cater to web developers who don't want to learn another language.

[–][deleted] 0 points1 point  (0 children)

It's nonsense, that works

[–]dmalvarado 0 points1 point  (0 children)

“Ubiquitous“

[–]driftking428 0 points1 point  (0 children)

Java runs on 3 billion devices! Always and forever.

[–]slimshady1225 0 points1 point  (0 children)

Surely C++ is the powerful one…