3 ms·
JavaScript doesn't really have C extensions like Python has. PyPy did implement a JIT for Python, and it worked really well, until you tried to use C extension
by 323 4y ago
JavaScript doesn't really have C extensions like Python has.
PyPy did implement a JIT for Python, and it worked really well, until you tried to use C extensions.
- tambourine_man 4y agoThat’s what I meant, if JavaScript hadn’t been trapped in the browser and allowed to call C, maybe there wouldn’t have been so much investment in making it fast. But still, it’s kind of surprising that PHP has a JIT and Python doesn’t (official implementation I mean, not PyPy).
- int_19h 4y agoPython has a lot more third-party packages that are written in native code. PHP has few partly because it just isn't used much outside of web dev, and partly because the native bits that might be needed for web devs, like database libraries, are included in the core distro.
- pjmlp 4y agoBecause it has to, there is no other way to make it fast, as typical two language dilemma.