I'm thinking of learning lua, i learned that it is a smaller language compared to python and has an efficient JIT compiler implementation in the form LuaJIT.
I would like to know is it possible to use lua the way i use python with Numpy+Scipy. further if Lua has numpy+scipy equivalent doe开发者_运维知识库s it have a matplotlib equivalent?
there is something else, i found something similar to Scipy+matplotlib for Lua,i'm not sure how active development is last release was in January 2011, it is GSL-shell it leverages the GSL library and has plotting capabilities , it is more like matlab than scipy+matplotlib.
There is numlua, but since it depends on BLAS/LAPACK, FFTW, and HDF5, LuaJIT will not buy you any performance gain with numlua per se.
I am authoring the Lunum project, which has no dependencies and can be used as a shared module or embedded in other C applications.
It's in active development, and used in serious physics research. It supports a good subset of the Numpy semantics. Array slicing will be ready in the next release.
https://github.com/jzrake/lunum
I would also have a look at SciLua:
A complete framework for numerical computing based on LuaJIT which combines the ease of use of scripting languages (MATLAB, R, ...) with the high performance of compiled languages (C/C++, Fortran, ...).
精彩评论