2 ms·
Performance in general is non-deterministic in a multi-tasking os because you have multiple processes competing for cpu time. My point is that there is nothing
by bjourne 7y ago
Performance in general is non-deterministic in a multi-tasking os because you have multiple processes competing for cpu time. My point is that there is nothing inherent to Javascript VMs that makes them harder to control or analyze. Runtimes for other dynamic languages and database engines shows that proper tooling makes it much easier for developers to optimize for performance.
- pizlonator 7y agoOn some level of course that’s true but surely you’re not suggesting that the nondeterminism of JS is no worse than the nondeterminism of C. C at least runs with the same types every time.
- dragonwriter 7y agoC is weakly typed, so that it runs with the same static types means very little.
- pizlonator 7y agoC has strong types for the purpose of optimization. A C compiler never wonders whether + means int addition or string concatenation for example. In JS the optimizing compiler doesn’t get such type information except by profiling and profiling is nondeterministic.