<br><br>
<div><span class="gmail_quote">On 10/10/08, <b class="gmail_sendername">Arnar Birgisson</b> <<a href="mailto:arnarbi@gmail.com">arnarbi@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Larry,<br><br>On Fri, Oct 10, 2008 at 18:48, Larry Dickson <<a href="mailto:ldickson@cuttedge.com">ldickson@cuttedge.com</a>> wrote:<br>
> These address the same problem, but shift to module variants what is<br>> actually a virtual machine issue. What happens if different tasklets use<br>> different modules in the same run?<br><br>Depends on the modules. If each module has its own dispatching tasklet<br>
it shouldn't be a problem - but these are not all compatible<br>(different platforms, threading etc.)<br><br>> My point is that there doesn't need to be a wheel at all. No change in<br>> source code.<br><br>
Hmm, don't see what you mean. What source code doesn't need to change?</blockquote>
<div> </div>
<div>Sorry, I was unclear. I meant Stackless source code for tasklets, not source code for the virtual machine.</div>
<div> </div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> Can two tasklets use the libevent code and have their sleep periods overlap?<br><br>Yes<br><br><br>> Where is the C source for the virtual machine?<br>
<br><a href="http://zope.stackless.com/svn/sdocument_view">http://zope.stackless.com/svn/sdocument_view</a><br><br>> What is preferred, do you think: a call and explicit check on the lines of<br>> select, or a syntax thing that would act like (or maybe even be) a case<br>
> statement?<br><br>Surely not a syntax thing, Stackless currently does not add any new<br>syntax to Python. I imagine something like<br><br>val = stackless.receive_first([chan1, chan2, ....])<br><br>Look in the archives for discussion of the syntax.</blockquote>
<div> </div>
<div>Thanks. I will look at the C source and the archives this weekend.</div>
<div> </div>
<div>Larry</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">cheers,<br>Arnar<br></blockquote></div><br>