lua-users home
lua-l archive

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


> MD5, CRC, just to keep in simple (?), widely used algorithms.
> Random number generators, hashes, storage of large number of booleans,
> etc.

On Mon, Sep 05, 2005 at 11:40:45PM +0100, Lisa Parratt wrote:
> The joy of a good prototyping language is that you can quickly throw  
> together the program, and then optimise the bits that turn out to be  
> too slow for production use *afterwards*.

These aren't things that need prototyping; they're algorithms that
have been implemented in C a thousand times--dropping them into a simple
Lua layer is a lot easier than reimplementing them in Lua.

(I'd avoid using lua_Number for bitmasks, at least, anyway; I use Lua
on systems without hardware doubles, where it's not going to be able
to hold a 32-bit mask.)

-- 
Glenn Maynard