top | item 17302604

(no title)

thelarkinn | 7 years ago

Technically JavaScript is only ~7% slower then C++ to execute. But snipe away at that stats with real data.

discuss

order

TeMPOraL|7 years ago

Technically, maybe. In practice, each language has its culture, its ecosystem. Its set of tools to pick from. Is it reasonable to expect the JavaScript Office will really just bind directly to all the native APIs it was using before, thus incurring only 7% penalty (+/- FFI)? Or is it more likely that it'll have web rendering shoved in everywhere, and then layers upon layers of off-the-shelf JS libraries, thus incuring more like 700% penalty in resource use?

0xcafecafe|7 years ago

Doesn't it depend on the benchmark? Yes, for some numeric problem as described here (https://www.linkedin.com/pulse/algorithmic-performance-compa...), the 7% figure seems reasonable. But for a real world app with object creation/deletion, the C++ memory model at a lower level would provide a much better performance over a garbage collected higher level one.

And even if (hypotheically) the performance difference a constant 7%, that is still a tangible cost.

xeeeeeeeeeeenu|7 years ago

The real problem is DOM, not the language or its implementations.