altre destinazioni

ultimi post

ultimi commenti

tag principali



powered by

  • WPFrontman + WP



  • © 2004-2011
    Ludovico Magnocavallo
    tutti i diritti riservati

Libevent-based HTTP/1.1 client

28 dicembre 2006

6 commenti

A snapshot of my toy HTTP/1.1 client built on pyevent. It’s very much incomplete, and probably full of bugs, but it’s a start and it’s damn fast. On my clunky old PIII 1.2 laptop it is able to complete 1k requests of favicon.ico served by lighttpd in less than half a second. The source (updated from time to time as work progresses) is here.

Backpack, Google Accelerator, HTTP

6 maggio 2005

As often happens, Sam Ruby saved me from wasting too much time idly browsing the web (no energy to work on more important stuff on Friday night) with his latest post: This Stuff Matters. Sam links to a post by Robert Sayre on the Google Accelerator / Backpack mess (If you’re going to do RPC, have the courtesy to tunnel it through POST), which in turn links to Ajax Considered Harmful, which links to the “Just” use HTTP presentation Sam gave at ETCON 2005.

If you do web development (or any kind of development since you can’t escape HTTP nowadays) and have not seen it, take a half hour to do so. It’s full of great advice and interesting facts, a few of which you may be familiar with, while others will be a surprise. The four-sentence summary is:

  • Comparing characters and uris is surprisingly more difficult and important than you might otherwise imagine (think: security holes)
  • Layering is the problem, not the solution
  • You won’t find reality in any specification
  • Spec authors are responsible for the confusion that they create

There’s always a subtle and evil sense of satisfaction in watching the successful ones take a beating for programming or architectural errors you would not make. Of course, working harder and being in their place would be much more rewarding. :)