3 ms·
> Maybe Python's C escape hatch is so good that it’s not worth the trouble. Even if it wasn't good, the presence of it reduces the necessity of optimizing the
by everforward 4y ago
> Maybe Python's C escape hatch is so good that it’s not worth the trouble.
Even if it wasn't good, the presence of it reduces the necessity of optimizing the runtime. You couldn't call C code in the browser at all until WASM; the only way to make JS faster was to improve the runtime.
> JavaScript has proven that any language can be made fast given enough money and brains, no matter how dynamic.
JavaScript also lacks parallelism. Python has to contend with how dynamic the language is, as well as that dynamism happening in another thread.
There are some Python variants that have a JIT, though they aren't 100% compatible. Pypy has a JIT, and iirc, IronPython and JPython use the JIT from their runtimes (.Net and Java, respectively).