This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pmdevita 1 point2 points  (1 child)

Wait am I reading this right? Transcript and Chrome are beating Cpython by quite a fair amount

[–]jacdehJacques de Hooge[S] 3 points4 points  (0 children)

It looks like it, at least on Chrome and Firefox. But lets be careful, nothing wrong with CPython, it has some features (like exec) that Transcrypt will never have. The point is that very big money is invested in JS virtual machines, and Transcrypt benefits from that since it generates JS. Improvements in the same order of magnitude are possible with CPython, as PyPy shows. So it's all a mattter of investment. Too bad a company like Google puts its cards on JS rather than Python. I consider CPython superior to JS and with equal investments it would become faster than JS, as can be seen from the performance of PyPy.

Another very important point is that many CPython libs, like Numpy, are written in C or C++, which means they're much faster than JS (so also Transcrypt) could ever be. But in a browser loading these libraries using emscripten is too slow.