[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: PATCH: true C coroutines -- yield across C stack from anywhere
- From: Michael Roth <mroth@...>
- Date: Tue, 02 Nov 2004 19:52:11 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Edgar Toernig wrote:
> Are Lua-only coroutines really required? Small survey?
> - Who is using them at the moment?
I use it a lot.
> - Are the Lua-only couroutines good enough for you?
> - Would you switch to C-level coroutines if they were
The long answer:
Lua coroutines are _really_ nice. They are very fast, very usefull and
very light weight. I use coroutines in all sort of iterators.
However, sometimes they are a little bit limited, because they can't
yield across a C-boundary. But in the meantime I changed my software
layout to work around this limit. I played with C-level coroutines. But
they are simply to expensive.
So the lua way is to go with lua coroutines.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----