Peter Bengtsson writes about web development and Python, including server benchmarks, databases, JavaScript tooling and frontend optimization.
HN links it for practical benchmarks and tips, such as uWSGI versus Gunicorn and the datalist element, without much commentary on the blog itself.
> fine but this is entirely irrelevant. the problem is that no one was optimizing for the deliverable (JavaScript). the GWT folks could have easily written an excellent compiler so it didnt generate a bunch of slow trash.
Compilers can only optimize so much. GWT/Closure do a very good job of it, too. https://www.peterbe.com/plog/advanced-closure-compiler-vs-uglifyjs2
Much of the "slow trash" is already optimized to death - it just dies under the weight of insane complexity (e.g. features), browser support, and overly-generic (IMO) support libraries
> which requires a massive slow polyfill in all but latest Chrome and results in a shit experience for all others (if i recall a related thread correctly).
Tangential: I'm not sure which version of Polymer they're using - but 1.0+ removes the need for most of the polyfilling.
There are benchmarks around [1], though I consider them valuable only for the entertainment value.
The great thing about uWSGI/Nginx over Gunicorn/Nginx is that Nginx speaks the uwsi protocol natively[2], whereas with Gunicorn Nginx acts as a proxy.
Also, in my experience (2 years with gunicorn, 1 with uwsgi in prod), uwsgi is more stable, uses less memory, has better management and configuration tools and even lets you run multiple Python apps under the same intepreter (multitenancy) [3].
[1] http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi
[2] http://wiki.nginx.org/HttpUwsgiModule
[3] http://projects.unbit.it/uwsgi/wiki/TipsAndTricks
(Edit: formatting)
Here's one of those articles:
http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi
He actually proclaimed Gunicorn as the initial winner but after what probably was some real-life usage changed his mind to UWsgi.
the UWsgi module is also now included with NGinx by default (as of version .84 or something)
I've never used Upstart as in the original post but I believe Supervisor does the same thing and is maybe a little more commonly used (http://supervisord.org/)
not really 'small', but some of the Python related blogs I follow are:
- http://pycon.blogspot.in/
- http://lucumr.pocoo.org/
- http://inventwithpython.com/blog/
- http://www.blog.pythonlibrary.org/
- http://www.ianbicking.org/blog/
- http://www.binarytides.com/
- http://www.peterbe.com/
- http://viksalgorithms.blogspot.com/
- http://rz.scale-it.pl
- http://packetforger.wordpress.com/
- http://blog.pythonisito.com/
Not all people feel the need to consume as much as people in richer countries to feel the same amount of happiness.
There have been studies documenting this. Here is a short story from Tim Ferriss which sums this up where he realizes that a Mexican fisherman really has a very high quality of life.
http://www.peterbe.com/plog/the-4-hour-work-week-by-timothy-ferris
Likewise +1 to Nginx + uwsgi. In the various performance benchmarks* uwsgi beats gunicorn, and uwsgi comes bundled with Nginx now, so there's really no reason to bother with setting up gunicorn any more.
* http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi
http://nichol.as/benchmark-of-python-web-servers