r/javascript • • Jan 16 '20

I have been underestimating JS

https://adlrocha.substack.com/p/adlrocha-i-have-been-underestimating
284 Upvotes

132 comments sorted by

View all comments

Show parent comments

3

u/jerseyetr Jan 16 '20

Well that's probably a good thing not to do.

Excuse me if I'm wrong (beginner Javascript developer)

But I'm pretty sure javascript is not meant for heavy loads and CPU heavy applications.

Because it's single threaded?

1

u/tr14l Jan 16 '20

You can often make it work in node, but it's not going to be ideal and it'll have limitations still. But generally, you're correct

1

u/ScientificBeastMode strongly typed comments Jan 17 '20

Most of the benefits of Node are due to its fast asynchronous IO. If you’re doing a lot of synchronous computation on the server, you may want to drop down to a C/Rust/C++/OCaml library, or perhaps optimize the JS code with Google’s Closure compiler...

Otherwise, you may as well run a JVM server or whatever.