3 ms·
Platforms I guess. Plain C code is much more portable than JIT and PyPy is reinventing JIT implementation as opposed to using something like LLVM, so they're mu
by d33 10y ago
Platforms I guess. Plain C code is much more portable than JIT and PyPy is reinventing JIT implementation as opposed to using something like LLVM, so they're much more limited in terms of supported target platforms.
- wyldfire 10y agoOh, my mistake -- I had assumed that it did use LLVM. Good point about portability, CPython has tons of supported targets and PyPy just a handful. Also CPython is really easy to build IMO.
- loeg 10y agoLLVM isn't as widely portable as generic C, either. ARM and x86 are well supported in LLVM, but CPython runs fine on MIPS, Sparc, PPC, etc (via GCC or other C compilers).
- DanWaterworth 10y agoYou can compile PyPy without its JIT.
- loeg 10y agoYes, although without JIT it's slower than CPython. So, what's the point?
- DanWaterworth 10y agoIf you are happy using CPython, you can't be terribly concerned with performance. The point is, pypy will run on more platforms than its JIT targets.
- loeg 10y agoSure. But if you're already using CPython (as most users are), and you know Pypy will be 3x slower on your platform, why switch?
- DanWaterworth 10y agoYou have no reason to. We're talking about a hypothetical future where PyPy has become the reference implementation.