|
For instance, a "memoryview" module can be put together quite
easily using LuaJIT (just to avoid a C interface) and Roberto's struct:
-- load an image using ImageMagick libraryimg = Image()img:open("lena.jpg")-- allocate an arraya = ndarray(img.height,img.width)-- efficiently copy the pixels of img into a>>> put some FFI _expression_ here <<<