Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are many compiled languages that produce more performant code than V8. As you noted yourself yourself, V8 has time constraints - it must be able to compile and run the code "fast enough" for a web page to load. This limits the extent of optimizations that it can perform.


And for the handful of routines where all-out performance is the bottleneck for your business those languages are the right tool for the job.

For everything else, there’s JavaScript.


If there was a reason to prefer JS, sure. But it's not really any better in other respects. The only thing it has going for it is that it's forced on you on the frontend.


IMO, that’s the only reason to use JavaScript: you can have a single language application.

With anything else you need a two language application.

Going from one to two is a MASSSIVE increase in developer overhead.

Not sure that outweighs the downsides of JavaScript, but that’s how I’d dispute your “no reason” claim.


There are many areas in which JavaScript "performs" poorer than other options. Productivity, stability, maintainability, to name a few. Other languages and ecosystems are much better at that, than JavaScript.

Luckily projects like typescript solve those issues, or try to.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: