lua-users home
lua-l archive

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


2014-03-20 20:51 GMT+08:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:

> Are you really sharing the Proto object or only the bytecode (and maybe
> some other fields)? If you are sharing the Proto object, how to you
> handle its constants (field 'k')? They include strings, and short strings
> cannot be shared (at least directly), due to internalization.
>
> -- Roberto
>

I wish lua can support share strings and prototypes directly in future
version , so that we can run many lua states on many-core , and
passing the constants between lua states can be very cheap (like
Erlang does).

-- 
http://blog.codingnow.com