[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can this be done? (loading extensions from dlls / so's at runti me)
- From: "Sebastian Rasmussen" <sebras@...>
- Date: Wed, 29 May 2002 20:33:15 +0200
I've made a package with some libraries and a Makefile
that modifies the distributed Lua interpreter to add the capability
of loading dynamic libraries. I've only tested it on Linux, but I
think it runs on any Unix...
I've been thinking in similar patterns when I first started coding in Lua.
It's of course possible to recompile the Lua engine and add the desired
library support, but this is not what I desire.
I've been using it for exactly what you want: scripts
that need some C libraries loaded dynamically. The package includes
LuaSQL, LuaSocket, MD5 and Poslib. I can send you a copy if you ask
me.
Is this the same tarball as
ftp://ftp.tecgraf.puc-rio.br/pub/lhf/loadlib.tar.gz?
Otherwise I would appreciate a copy of your code.
On the other hand I don't know exactly if the method I've
implemented will be compatible with the method adopted in the new
version 5.0. So, maybe you would prefer to wait for it.
Is it worth it to wait? How far away is Lua 5.0? Days? Weeks? Months? I
haven't seen any approximative schedule, so I though I'd ask (although I
expect an answer of the form "It's ready when it's ready." :-) )
/ Sebastian Rasmussen
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx