lua-users home
lua-l archive

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


Hi!

Hines, Johnicholas schrieb:

I think this misrepresents lua. Lua has many fine features (tables,
dynamic typing, local functions, and so on). However, the crucial
selling point is embedding and extending. Something like LGMP's
probab_prime (implemented by wrapping the GNU Multiple Precision
library) would be more essentially lua-ish, and more performant as
well.

Using some existant C code could be more performant, of course. But this is about showing some »fine features«, not about showing the extensibility...

Currently, this could be an example showing sparse tables (?!), local functions, upvalues (closures) and some memoize technique.

Lua may be not the best utility for number theory, but this is just some kind of playground thing (like it would being asked on a PostScript list...).

Regards,
Matthias