[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: SV: [ANN] Lua 5.2.0 (beta-rc2) now available
- From: David Given <dg@...>
- Date: Thu, 23 Jun 2011 15:35:56 +0100
Alex Queiroz wrote:
[...]
> One state machine per top-level function? Really, this is still
> no reason for complaining about a few locals shared *per state
> machine*. How many top-level functions do you have to analyse at the
> same time?
Each top-level function is a C function. Each such function turns into a
state machine which represents the flattened basic block graph which is
the contents of the function. C functions call each other reentrantly,
which means my state machines need to be able to call each other
reentrantly. Trust me, I'm creating new state machines *very frequently*.
Using goto, the overhead of a state machine is nil, as the state is
encoded in the Lua program counter and locals are directly accessible
without needing heap cells. Each C function turns into precisely on Lua
function.
--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- [ANN] Lua 5.2.0 (beta-rc2) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.2.0 (beta-rc2) now available, dcharno
- Re: [ANN] Lua 5.2.0 (beta-rc2) now available, Josh Simmons
- Re: [ANN] Lua 5.2.0 (beta-rc2) now available, David Manura
- Re: [ANN] Lua 5.2.0 (beta-rc2) now available, Lorenzo Donati
- Re: [ANN] Lua 5.2.0 (beta-rc2) now available, David Kastrup
- Re: [ANN] Lua 5.2.0 (beta-rc2) now available, Lorenzo Donati
- Re: [ANN] Lua 5.2.0 (beta-rc2) now available, Roberto Ierusalimschy
- SV: [ANN] Lua 5.2.0 (beta-rc2) now available, Fredrik Widlund
- Re: SV: [ANN] Lua 5.2.0 (beta-rc2) now available, Philippe Lhoste
- Re: SV: [ANN] Lua 5.2.0 (beta-rc2) now available, Alex Queiroz
- Re: SV: [ANN] Lua 5.2.0 (beta-rc2) now available, David Given
- Re: SV: [ANN] Lua 5.2.0 (beta-rc2) now available, Alex Queiroz
- Re: SV: [ANN] Lua 5.2.0 (beta-rc2) now available, David Given
- Re: SV: [ANN] Lua 5.2.0 (beta-rc2) now available, Alex Queiroz