background preloader

Python

Facebook Twitter

Real Python: Promotion Code. PyCon US 2014. Isso – a commenting server similar to Disqus. Peps: fb24c80e9afb. Overview — NetworkX 1.6 documentation. As Piël » Socket Benchmark of Asynchronous Servers in Python. There has already been written a lot on the C10K problem and it is known that the only viable option to handle LOTS of concurrent connections is to handle them asynchronously.

This also shows that for massively concurrent problems, such as lots of parallel comet connections, the GIL in Python is a non-issue as we handle the concurrent connections in a single thread. In this post i am going to look at a selection of asynchronous servers implemented in Python. Asynchronous Server Specs Since Python is really rich with (asynchronous) frameworks, I collected a few and looked at the following features: What License does the framework have?

Does it provide documentation? This gave me the following table. This is quite a list and i probably still missed a few. Orbited / Twisted (callbacks)Tornado (async)Dieselweb (generator)Eventlet (greenlet)Concurrence (stackless)Circuits (async)Gevent (greenlet)Cogen (generator) The Ping Pong Benchmark HTTP/1.0 200 OK Content-Length: 5Pong! Instead of just ‘Pong!’.

Tools

Gnome. Framework. Yaml. [j-mad] Django-countries ,l’app garantie sans cowboy ni rodéo. djangoApp de mai 1 sur 2. Il va falloir que je me surveille .. parce qu’encore une fois je publie ma django app du mois un peu en retard. Pas grand chose, juste 4 jours.. Mais ça commence comme ça et après on finit par ne plus tenir de rythme du tout. Du coup, pour marquer, le coup, je publierais deux django app du mois de mai, même si je les publie en juin. Et pour commencer, django-countries. C’est d’ailleurs assez rigolo parce que je parlais il y a peu de moyen de gérer les pays, avec une liste de choix existantes, etc.. et op, je tombe sur django-countries. Vous trouverez django-countries soit sur sa page pypi soit sur sa page bitbucket. Pour l’installation, vous avez les trois moyens désormais classique : un easy_install un pip install un bon vieux hg clone La doc elle se limite à : la page pypi le readme du repository Sachant que dans les deux cas, le contenu est le même.

L’app rajoute tout simplement un nouveau type de field, le CountryField. Et oui, comme dans les vrais sites et tout quoi. Coding styles comparison in the Open Source world. While looking for existing C coding standards I discovered that the GNU and Linux projects officially suggest very different styles. Inside the Linux kernel documentation, Linus Torvalds goes so far as to mock GNU coding standards: First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture. At this point I wanted to understand the difference between the coding styles of established open source projects. Many stylistic aspects can’t be compared directly because they are different languages, but it was interesting to map some of them, for example indentation and maximum line length: About indentation, the styles describe differently the indentation of function declarations from the indentation of branches (thanks to TaQ for the Ruby suggestions and to JoeT for the correction on the Java example): Like this: Like Loading...

Related Simplest bare metal program for ARM In "Embedded"