Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-18 Thread exarkun
On 04:32 pm, spa...@gresille.org wrote: > Hello, >On 17/05/2012 02:00, Jasper St. Pierre wrote: >>I don't understand why you can't make Django do asynchronous calls. >>Maybe a bit more context would help. > Once again, maybe I *cannot* make Django do asynchronous calls >simply >bec

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-18 Thread Louis
Hello, On 17/05/2012 02:00, Jasper St. Pierre wrote: > I don't understand why you can't make Django do asynchronous calls. > Maybe a bit more context would help. Once again, maybe I *cannot* make Django do asynchronous calls simply because I am not used to Twisted and asynchronous c

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-17 Thread gelin yan
ate: Thu, 17 May 2012 00:58:57 +0200 > From: Louis > Subject: [Twisted-Python] Synchronous calls using Twisted? > To: twisted-python@twistedmatrix.com > Message-ID: <4fb43131.2030...@gresille.org> > Content-Type: text/plain; charset=ISO-8859-1 > > > Hello, > &

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-17 Thread Mike Winter
half async/half sync is not as obscure as you may think: www.cs.wustl.edu/~schmidt/PDF/PLoP-95.pdf On May 17, 2012, at 12:06:04PM, Andrew Francis wrote: > Message: 1 > Date: Thu, 17 May 2012 00:58:57 +0200 > From: Louis > Subject: [Twisted-Python] Synchronous calls using Twisted? &

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-17 Thread Andrew Francis
Message: 1 Date: Thu, 17 May 2012 00:58:57 +0200 From: Louis Subject: [Twisted-Python] Synchronous calls using Twisted? To: twisted-python@twistedmatrix.com Message-ID: <4fb43131.2030...@gresille.org> Content-Type: text/plain; charset=ISO-8859-1 >  Hello, >  I am writing an applic

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-16 Thread Jasper St. Pierre
The point of blockingCallFromThread is as a last resort when interfacing with a synchronous API that can't be replaced, like the DBAPI. It fools Twisted into thinking an external synchronous API is asynchronous, by carefully punting it to a new thread. I don't understand why you can't make Django

[Twisted-Python] Synchronous calls using Twisted?

2012-05-16 Thread Louis
Hello, I am writing an application, which architecture is (I hope my beautiful drawing is not messed up): +-+ ++ +---+ | Core Server |---| Web Server |---| Web client| +-+ ++ +---+ That is, I have a core server (i