lua-users home
lua-l archive

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


Is there a status update for binary loadable modules in Lua 5?  I 
just reread the thread on Thatcher's changes but that is for 4.01 
only.

I'm trying to write a simple utility that requires access to a high 
quality PRNG (Mersenne Twister), but which would otherwise run fine 
within the Lua interpreted environment.  

99.9% of the utility works great in Lua, but short of porting the 
PRNG to Lua natively (which would be somewhat tedious since it relies 
heavily on bit twiddling), I'll have to call into a native function, 
which makes this package less portable than I'd like.

I'd like to be able to make this an easy distribution to get, and 
requiring downloading Lua + "insert appropriate binary loadable 
module for your system" is more work than "download Lua + these 
scripts".

I'm fearful that it would be easier to just distribute everything as 
a built EXE and using my own CLI that passes things to dostring().

Brian