Re:Performance Showdown: Rust vs Javascript (2020)
by watt on Friday February 12, 2021 @02:20PM
(#26117443)
I find it unsettling how one-sided the article is, if it's a "showdown" I expect the same effort to be put in JS side of things to maintain some pretense of fairness.
Re:Performance Showdown: Rust vs Javascript (2020)
by johannes1234321 on Friday February 12, 2021 @01:40PM
(#26116929)
> that makes a massive difference because you end up thrashing main memory when you could be spending those cycles getting work done.
That is true, however there is a huge domain of problems where that isn't much of a concern, while development time spent on it is a concern.
Then sacrificing a bit of performance over development speed can be quite worthwhile.
Of course not a high frequency trading platform and not an AAA+ Game, but a small Webservice just taking data from a ("slow") database, doing little transformation, and sending over network .... less of a problem
Carefully written javascript is still pretty slow because you can’t choose to put objects on the stack in JS, or allocate nested objects together in contiguous memory. And that makes a massive difference because you end up thrashing main memory when you could be spending those cycles getting work done.