News for hackers. Stuff that matters.
Re:Justin.tv porting their site from Rails to Django? by masklinn on Friday January 13, 2012 @06:51AM (#3460179)
> I have never hosted/written a django app, do people typically run a request in a thread in django?

Depends on the handler, mod_wsgi allows for m:n (mixing threads and processes) for instance.

> I thought python had a GIL just like Ruby (1.9+).

That's correct, but any C IO (such as DB queries) will generally release the GIL, which allows other threads to run.

(technically, CPython has a GIL, Python-the-language does not mandate it and neither Jython nor IronPython use a GIL. Pypy also has a gil currently, but Armin has started exploring STM to see if it would be a good replacement)

Re:Justin.tv porting their site from Rails to Django? by lifo on Friday January 13, 2012 @12:57PM (#3461580)
> That's correct, but any C IO (such as DB queries) will generally release the GIL, which allows other threads to run.

Ditto with Ruby too.