Pyramid does 22, but how do you do zero lines of python?

There is an article talking about how in a certain configuration the Pyramid python framework uses 22 lines of python for a hello world app.

How would your python web app run zero lines of code for a hello world? By pre-generating the html at startup - or at deploy time, and serving the generated data.

Beat that Pyramid! ;) 6 minute Abs.

This is a silly blog post - but also slightly serious. Uploading static data to serve is a very valid approach for a web framework. It's performance, security, and complexity benefits are quite big.


wavy davy said…
22 lines of profile output != 22 lines of python

22 lines of profile output == 22 python function calls > 22 lines of python

Popular posts from this blog

Is PostgreSQL good enough?

Experiments with new low latency PyPy garbage collector in a thread.

🐱‍🏍 — the first pygame 2 community game. Starting now! Are you in?