r/PyScript • u/palmworks • May 04 '22
Will pyscript replace JavaScript?
Will pyscript replace JavaScript in the long run?
9
Upvotes
r/PyScript • u/palmworks • May 04 '22
Will pyscript replace JavaScript in the long run?
13
u/mcg1969 May 04 '22
I don't think so, no. JavaScript is an entrenched language, natively supported in the browser, with a wealth of frameworks and libraries. Heck, one of the reasons that PyScript is already so compelling to use is how easily it interacts with some of these JavaScript libraries. So it's not an either/or proposition: JavaScript, PyScript, and other WebAssembly-powered languages can coexist and interoperate, to everyone's benefit.
7
u/pwang99 May 04 '22
But none of these above scenarios lead to a situation where "PyScript replaces all existing Javascript". Just as Python itself didn't replace C, C++, or Java. But, it did take a LOT of market share for new use cases where those languages would otherwise have been used.
4
u/Rand_alThor_ May 04 '22
No. WebComponents and WebAssembly might eventually replace the various frameworks of js with a new one that writes towards those built ins, but no, pyscript won't do that. It's not even the same usecase.
2
u/[deleted] May 04 '22
No
1
u/bioinfornatics May 04 '22
Actually No. Mainly because python is too slow. As example here a benchmark which shows node.js needs around 5 seconds to compute while python require more than 190 seconds. You don't want to wait while the web page is rendered
0
u/wiggitywoogly May 04 '22
PyScript is literally just JavaScript, that has a web assembly compiled version of python it loads.