Hacker News new | ask | show | jobs
by devonnulled 4682 days ago
What about using alternative frameworks for HTTP servers for Python? Pointing at only Bottle and going "hey! Python is slower!" is like pointing at WeBRICK and going "Hey! Ruby is slower!" when you haven't even touched Passenger or Unicorn.

What about:

* Flask? http://flask.pocoo.org/

* Tornado? http://www.tornadoweb.org/en/stable/

* Django? https://www.djangoproject.com/

* CherryPy? http://www.cherrypy.org/

What about using PyPy ( http://pypy.org/ ), Jython ( http://www.jython.org/ ) or even IronPython ( http://ironpython.net/ ) instead of plain CPython?

1 comments

All good points, except the last...

Does anybody use PyPy, Jython or IronPython for a production web service? I'm seriously wondering. I've had the misfortune of having had to use Jython, but just to read Python pickles from a Java service (don't ask). Even that simple use case wasn't fun (the last stable release was also over a year ago).

PyPy looks great for small or new projects, but there is this disclaimer: "PyPy has alpha/beta-level support for the CPython C API, however, as of 2.1 release this feature is not yet complete. Many libraries will require a bit of effort to work..." - this has caused PyPy to be incompatible with every large Python project I've ever worked on.

And well, personal (dis)taste in .NET aside, IronPython hasn't had a release in over a year either...

Where are these projects being used in production?

Nope, not any more: http://www.quora.com/PyPy/Is-Quora-still-running-on-PyPy (The answer you linked is quite old)

I'm even more skeptical now that I see a company tried moving to PyPy, and actually hired a core PyPy developer (Alex Gaynor - http://pypy.org/people.html) to make the move, and it still didn't work out.

Yes, PyPy is used in production by many companies.
Such as?
disqus, i guess!
I can't find any current information about Disqus using PyPY. Do you have a link you can provide?

What I did find is current Disqus adventures in Go due to Python not being performant enough:

http://blog.disqus.com/post/51155103801/trying-out-this-go-t...