lua-users home
lua-l archive

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


Yes that's why I was wondering if it is possible at all to do lazy evaluation
in LUA.  I know C++ does it using ugly template hacks.   Such things are
normally  in the purview of functional languages.  I am not complaining
though, I like LUA nice and simple.  I hardly ever use the more advanced
features anyway.

No doubt Matlab no longer copies the matrix for sub-expressions that are
just thrown away.  It has gotten a bit better.  It is stil very slow when it
comes to loops however.  It is encouraging to hear that Louis is seeing some
performance gains on his benchmarks.  I should try figuring out how to link
it to acml BLAS and see if that improves things.

By the way changing x and I to local in my code had no effect on the overall
time (at least within a second).  I wonder if it would be faster if run in
luajit?
--
View this message in context: http://www.nabble.com/numerical-Lua--t1492383.html#a4272264
Sent from the Lua - General forum at Nabble.com.