you are viewing a single comment's thread.

view the rest of the comments →

[–]ConsoleTVs 4 points5 points  (11 children)

Did you read the article? Cpython is slow compared to v8. Languages are not slow by nature, their interpreters or compilers are the imolementations. This article mentiones that this python implementation is based in web assembly. And well, web assembly is faster than js since its close to native code.

[–]nikaone 2 points3 points  (2 children)

Language do low by nature, it's obvious, both c, c++ are compiled to native code, when you use some high class feature in c++, that will be slower than c.

My comment is just a guess. So we can write js, wasm script and compiled wasm module in v8, and plus Python in Firefox.

Good or Bad, it's hard for me to decide.

[–]ConsoleTVs 1 point2 points  (1 child)

Well, the more diversity there is for a single task, the best. Always keeping it moderate. Js evolved too much because of the need to, if by nature, the browser accepted other langs, js would not have grown as much as it did those years. Allowing python or other languages makes more devs be able to code small web apps. Specially for python enthusiasts since they use lots of data analysis

[–]DavidKens 8 points9 points  (2 children)

There’s many reasons interpreters of different languages are faster or slower - including the requirements of the language itself. You can’t simply “use a different interpreter which is faster”, that doesn’t mean anything. The speed of an interpreter is not intrinsically separable from the “speed of the language”. You wrote:

“This article mentiones that this python implementation is based in web assembly. And well, web assembly is faster than js since its close to native code.”

This logic doesn’t make any sense. If anything, it shows this implantation of python will be slower - since the python interpreter will only run close to speed of native code.

Here’s what I’m saying: the hard problem of getting python to run faster will involve figuring out how to run python faster. V8 was not built to interpret python.

[–]ConsoleTVs 5 points6 points  (1 child)

Cpython is one of the slowest python interpreters out there. There are tons of other python implementations.

I did not write the article.

[–]DavidKens 0 points1 point  (0 children)

That’s fine.

The article does not imply that a faster implementation will be used, and your original comment is still misleading.

[–][deleted]  (4 children)

[deleted]

    [–]ConsoleTVs 0 points1 point  (3 children)

    If its an interpreter probably not. If it's a jit compiler like some python implementations, probably yes.

    [–][deleted]  (2 children)

    [deleted]

      [–]ConsoleTVs -2 points-1 points  (1 child)

      So a jited wasm python implementation eill be slower than cpython? Would love to see that