lua-users home
lua-l archive

Re: LuaJIT2 performance for number crunching

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


On Tue, Feb 15, 2011 at 11:11 AM, Michal Kottman <k0mpjut0r@gmail.com> wrote:
> Or maybe dedicate an entire chapter to it in the Cookbook :) as I
> proposed in http://lua-users.org/lists/lua-l/2011-02/msg00582.html
Totally, this is important stuff. I suggest we follow Mike wherever he
goes and collect all his pieces of concrete advice.
But the wiki is good for initial collaboration.
I've done a template-ized version of Francesco's code, and it's full
of beauties like:
$(AL 's.y') = $(VL 'v_')
which expands to
s.y[0],s.y[1] = v_0,y_1
(The search for the ultimate syntax continues...)
Initially my Lua ears were tingling and then I realized - of course,
these C arrays are zero-based!
steve d.

AltStyle によって変換されたページ (->オリジナル) /