Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's rather the degree to which Python is dynamic that makes it slow. PyPy could be considered an implicit JIT compiler for Python, yet it is still far slower than Julia. The level of magic you can apply to Python objects that the interpreter/compiler must support is just a different league than Julia. I'd be interested if someone could compare to JS.


Lisp, Smalltalk, Dylan and SELF allow for the same kind of magic.

The JIT developed for SELF is the genesis of Hotspot.

JRuby guys have a quite good implementation making use of Graal, and Ruby is not less magical than Python.

In the end it boils down to how much the community prefers to keep on using C, or improve PyPy.

EDIT: Fixed auto-correction induced typo.


s/Gradle/Graal/?

In the case of python it's clear that the heavy reliance on c extensions is a blessing and a curse: it's kept python relevant in communities like science even though it isn't very fast. However one of the lessons of Graal seems to be that such extensions can seriously prohibit improving performance, since they are opaque to JITs.

There's a few talks by Chris Seaton (e.g. https://www.youtube.com/watch?v=YLtjkP9bD_U) on the topic.


Yeah, typo due to auto-correction.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: