[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT2 performance for number crunching
- From: Alex Bradbury <asb@...>
- Date: Wed, 16 Feb 2011 13:15:33 +0000
On 16 February 2011 11:15, steve donovan <steve.j.donovan@gmail.com> wrote:
> But the situation that Francesco is dealing with is template
> specialization, as a C++ programmer would understand it. That
> requires re-compiling different cases.
>
> What is probably needed is a more sophisticated template expander
> that's less hard on the eyes...
You said you were playing with templating Francesco's code. Do share
if you find any particularly helpful tricks. I've just been using the
$() and # syntax in
http://snippets.luacode.org/snippets/Lua_Preprocessor_118, though
providing a preprocess function that takes an environment argument. A
simple helper for generating code in the form `local a = a; local b =
b; ... return function(...) ... end` has also cleaned things up a bit.
Alex
- References:
- LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Mike Pall
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Mike Pall
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Florian Weimer
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Leo Razoumov
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Leo Razoumov
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, T T
- Re: LuaJIT2 performance for number crunching, steve donovan