[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT FFI callbacks for functions using only built-in operators and locals
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 15 Dec 2011 17:05:10 -0200
> Just asking whether it would be technically possible, to generate code for simple functions without all marshaling (VM barriers) that happens on caller code and Lua callback code?
Yes. It's one thing I'd like to try. The scheme I envision would have a
table of names of "internal functions" and the parser would generate a
special instruction for calling them. Such a scheme was already mentioned
in our 1994 SEMISH paper http://www.lua.org/semish94.html .