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

Well now we have to wait for a v8 equivalent for python. I guess pypy doesn't really make python that much faster, can it be faster?


Python is, despite its simple appearance, a much more complex language than JavaScript. A V8 equivalent for Python is certainly possible, but would require even more work than went into creating V8 itself - who would be motivated to spend that much effort on Python?

Dropbox? They seem to be the company driving Python nowadays, but gave up trying to speed up Python in favour of writing "performance-sensitive code in other languages" [1].

PyPy uses a meta-tracing approach in an attempt to reduce the amount of work required. Its speed is impressive, but I'm sure meta-tracing leaves some performance on the table.

Another way to reduce the amount of work required would be to support only a subset of the language - for example, a V8 equivalent for MicroPython rather than for full Python. I'm sure this could be made very fast, but it would have very poor compatibility with existing Python code, so what would be the point?

[1] https://blog.pyston.org/


What makes python so complex? What are the features that if removed could really improve performance?

I love python's syntax, but I could do without its lazy interpretation, without duck typing if possible, and without its reference system.

In short I just like the syntax of python, I don't really care about its modules.


I have replied to your post on /r/Python [1].

[1] https://www.reddit.com/r/Python/comments/9n18ot/ive_read_abo...


You could look to TclQuadCode for inspiration as it can make Tcl code 66x faster in the best cases.


Have you looked at Cython?


You can also profile your code to find the hot spots and write C extensions just for those areas.




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

Search: