lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

Mostly.

> - Would you switch to C-level coroutines if they were
>   available?

Maybe sometimes.

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.


Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBh9daSIrOxc3jOmoRAl9/AJ9E+DiGVV7liAlUkz1bz/C0zasXFgCdHUJu
A0YDkut9KuP21wB1T/9yqDw=
=wkRZ
-----END PGP SIGNATURE-----