[MUD-Dev] Scripting languages
nop at mitre.org
Sat Jun 28 23:21:52 New Zealand Standard Time 2003
On Fri, 2003-06-27 at 13:49, Ling Lo wrote:
> Mark 'Kamikaze' Hughes wrote:
>> While it's working the other way around, using a scripting
>> language for the entire MUD, the very badly-named POO (Pythonic
>> MOO) is a nice engine, and fairly small--an earlier version I
>> have somewhere around here is even smaller, and still provided
>> all the necessary MUD services.
> Python supplies an awful lot of handy default libraries which tend
> to make the code fairly small.
...most of which can't be used without a security audit, if you
don't have full trust in people writing code. The mutability of
basic Python data types is just the beginning.
Lua 5.0 is getting close to having most of the parts needed to
reimplement something close to the MOO language and security
model. IIRC the missing parts are stack serialization (to persist
suspended threads to disk) and some way of sticking a default
metatable on constructed tables (to enforce permissions by default).
I think you can probably use environments to track programmer
permissions. Real exceptions would be nice to have of course.
Mind you, this is using Lua as a language construction set rather
than a language itself. But that's the Lua way.
Jay Carlson <nop at mitre.org>
MUD-Dev mailing list
MUD-Dev at kanga.nu
More information about the MUD-Dev