[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What's the difference between a "coroutine" and a "thread" in Lua?
- From: "Gregg Reynolds" <dev@...>
- Date: Mon, 13 Aug 2007 12:52:22 -0500
On 8/13/07, Tony Finch <dot@dotat.at> wrote:
>
> Microsoft calls coroutines "fibres".
>
In that case I withdraw the suggestion! ;)
Even though I'd like to see clearer language in the Lua docs, having
pondered it a bit more I would be very reluctant to adopt a neologism
like fiber. Terminology proliferation is a bit like feature creep,
plus you run the risk of incurring cuteness penalties; "fiber" looks a
tad too precious for my taste. I'm leaning strongly towards plain old
"non-preemptive thread" if we must. It's too late now, but if I could
redesign Lua's lexicon I would make "coroutine" the name of the
datatype that is currently named "thread". "function" is a type; why
not "coroutine"? The term "thread" could then be used in the informal
expository prose explaining what a coroutine is.
-gregg
- References:
- What's the difference between a "coroutine" and a "thread" in Lua?, John Klimek
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Asko Kauppi
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Ana Lucia Moura
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, David Given
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, David Given
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Gregg Reynolds
- Re: What's the difference between a "coroutine" and a "thread" in Lua?, Tony Finch