lua-users home
lua-l archive

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


Mike Pall mentioned that some algorithms used in Lua JIT 2 exploit
_absence_ of goto in Lua.

So I assume that LJ2 would not perform well for arbitrary irreducible
cfgs. But I am not sure, it is for Mike to clarify.

--
e.v.e



On Tue, Nov 3, 2009 at 2:23 PM, Bulat Ziganshin
<bulat.ziganshin@gmail.com> wrote:
> Hello Vyacheslav,
>
> Tuesday, November 3, 2009, 7:22:38 AM, you wrote:
>
>> The only option is to provide a source code backend for metalua. But
>> as far as I remember metalua can produce irreducable control flow
>> graphs (AST contains `Goto constructs). So translation into source is
>> not a straightforward task.
>
> heh. appearance of LuaJIT 2 raises question of adding goto statements
> to Lua in order to use it as intermediate language. i personally
> interested in fast protected VM for C/C++ code and JIT2 is an
> interesting option
>
> well, at least JIT fornt-end may support it as Lua extension
> targeted exclusively for automatic code generators
>
> --
> Best regards,
>  Bulat                            mailto:Bulat.Ziganshin@gmail.com
>
>