[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: how to exploit multicore cpu w/ Lua?
- From: William Ahern <william@...>
- Date: Fri, 30 Mar 2012 13:34:06 -0700
On Fri, Mar 30, 2012 at 09:45:23AM +0200, Valerio Schiavoni wrote:
> Hello,
> what is the suggested way to exploit a multicore cpu when using Lua?
> Is Lua-Lanes the suggested way to do so ?
> The problem with that is: our codebase doesn't rely on it, and this doesn't
> seem to be a swap-in replacement.
>
> The ideal scenario I had in mind was the ability to have a modified LuaVM
> that bundles LuaLanes behind the scenes, making it invisible
> to the developers. Legacy code would not need any modification (calls to
> coroutines stay unmodified): the VM transparently
> wraps those calls and redirect them to the appropriate LuaLanes calls. Is
> this reasonable ? Does this "LuaLanesVM" exists already ?
>
I wonder if time would be better spent hacking the Lua GC to allow moving
objects between different states. Random idea: a metatable tag which
specifies locking.