[Stackless] New Stackless Tutorial

Bill Baxter wbaxter at gmail.com
Tue Jun 27 03:11:22 CEST 2006

That's very neat.  You do realize, though, that concurrency with stackless
isn't really concurrent, right?  Your intro talks about how concurrency is
necessary to take advantage of more processors, but stackless doesn't help
with that.   You never really have two things running at once under
stackless -- they just take turns under the direction of the scheduler.
Now it may be possible in the future to write a VM that automatically
parallelizes stackless code so that it does take advantage of multiple
processors, and that would probably be much easier to do than it would be
with standard sequential code, but for the time being the benefit of
stackless is just the programming paradigm it enables.  You can program as
if you had an unlimited number of threads/processors, but in fact you are
using only one (or maybe two if the garbage collector is in a separate

Otherwise, great looking tutorial.

--Bill  -- just lurking

On 6/27/06, Grant Olson <olsongt at verizon.net> wrote:
> I've been goofing around with stackless for a few months now.  I thought
> it
> was a shame that all of the tutorials out there were for older outdated
> uthread versions of the stackless code.  I decided to take some notes, and
> try to write a more up-to-date tutorial.
> Well maybe not, but it has been much more time consuming than I had
> expected.  I'm finally to the point where I have a rough draft that should
> be suitable for consumption by other software developers.
> The rough draft is available here:
> http://members.verizon.net/olsongt/stackless/
> Questions, comments, and suggestions are appreciated,
> Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20060627/a1a9068e/attachment.htm>
-------------- next part --------------
Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list