Re:Brython, Python in the browser
by cousin_it on Tuesday January 29, 2013 @10:42AM
(#5134546)
> nothing about either language makes one inherently faster than the other
You can't make such a statement confidently unless you examine the specs of both languages.
For example, Python integers promote to bigints automatically while JS numbers don't. For one more, in Python you can overload attribute access, while in JS you can't. Both of these are language features rather than implementation details, and both potentially affect performance. There are probably others.
You can't make such a statement confidently unless you examine the specs of both languages.
For example, Python integers promote to bigints automatically while JS numbers don't. For one more, in Python you can overload attribute access, while in JS you can't. Both of these are language features rather than implementation details, and both potentially affect performance. There are probably others.