<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hello there.</p>
<p>During my vacation, I have been working on a tealet-driven stackless.</p>
<p>This basically rips out the stack switching code from stackless, and uses the tealet engine to do it.</p>
<p>The tealet library is a platform independent stack switching library. It is derived from greenlets, which again derivees from stackless. Since greenlets are still in very active developments, this should provide a more future-safe approach.</p>
<p>tealets inherit the same stack saving system as greenlets, which include dynamic stack saving. This removes the need to "climb the stack" as stackless has done. In addition, tealets have numerous enhancements that I have made, including the capacity to
create duplicable stubs. This makes stack slicing a reality with tealets.</p>
<p> </p>
<p>I created a branch, 2.7-slpt, which you can see here:</p>
<p><a href="http://bitbucket.org/krisvale/stackless-tealet">http://bitbucket.org/krisvale/stackless-tealet</a></p>
<p>The tealet project is here:</p>
<p><a href="http://bitbucket.org/krisvale/tealet">http://bitbucket.org/krisvale/tealet</a></p>
<p> </p>
<p>This change makes many things inside python much clearer and explicit. Stack spilling is now much more</p>
<p>straightforward, for example.</p>
<p>Also the relationship between the "main" tasklet and the "main" stack is now clarified. The "main" stack is always suspended and the main tasklet is run by a "worker tealet" always. Since tasklets can migrate between stacks (tealets) as they softswitch,
this makes exiting "main" explicit, since any one of the "worker" tealets just switches back to the main one.</p>
<p> </p>
<p>This currently runs the entire test suite. I have made it work for x86, I didn't adjust the project for x64 yet. Linux should work out of the box.</p>
<p> </p>
<p>One thing that needs redoing, probably, is Anselm's changes to windows SEH handling. I forget exacly how he fixed it, maybe he can remind me of the problem and the solution.</p>
<p> </p>
<p>Also, stackless contained a lot of platforms in its /platf folder, more than tealet currently does. Maybe we can incorporate those that work back into the tealet project, merging the platform support from stackless and greenlets into the one, super-duper,
universal switching solution from the tealet project.</p>
<p> </p>
<p>This is still experimental. The code is originally from Armin Rigo, I have heaviliy modified it, and I am unsure about its licensing status. But it is there for you to peruse and comment on.</p>
<p> </p>
<p>Cheers,</p>
<p> </p>
<p>K</p>
</div>
</body>
</html>