Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

LambdaMOO with multiple inheritance, HTTP, JSON <-> MOO parsing/generation, better crypto, a map datatype and a RESTful interface.

This branch is 0 commits ahead and 0 commits behind stunt

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 executables
Octocat-spinner-32 patches
Octocat-spinner-32 test
Octocat-spinner-32 .cvsignore
Octocat-spinner-32 AddingNewMOOTypes.txt
Octocat-spinner-32 ChangeLog-fileio.txt
Octocat-spinner-32 ChangeLog.txt
Octocat-spinner-32 FileioDocs.txt
Octocat-spinner-32 GNUmakefile
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 HACKING
Octocat-spinner-32 MOOCodeSequences.txt
Octocat-spinner-32 Minimal.db
Octocat-spinner-32 ProgrammersManual.texinfo
Octocat-spinner-32 README
Octocat-spinner-32 README.Minimal
Octocat-spinner-32 README.YAJL
Octocat-spinner-32 README.fileio
Octocat-spinner-32 README.lambdamoo
Octocat-spinner-32 README.rX
Octocat-spinner-32 Stunt.db
Octocat-spinner-32 Test.db
Octocat-spinner-32 acinclude.m4
Octocat-spinner-32 aclocal.m4
Octocat-spinner-32 ast.c
Octocat-spinner-32 ast.h
Octocat-spinner-32 base64.c
Octocat-spinner-32 base64.h
Octocat-spinner-32 bf_register.h
Octocat-spinner-32 client_bsd.c
Octocat-spinner-32 client_sysv.c
Octocat-spinner-32 code_gen.c
Octocat-spinner-32 code_gen.h
Octocat-spinner-32 collection.c
Octocat-spinner-32 collection.h
Octocat-spinner-32 configure
Octocat-spinner-32 db.h
Octocat-spinner-32 db_file.c
Octocat-spinner-32 db_io.c
Octocat-spinner-32 db_io.h
Octocat-spinner-32 db_objects.c
Octocat-spinner-32 db_private.h
Octocat-spinner-32 db_properties.c
Octocat-spinner-32 db_tune.h
Octocat-spinner-32 db_verbs.c
Octocat-spinner-32 decompile.c
Octocat-spinner-32 decompile.h
Octocat-spinner-32 disassemble.c
Octocat-spinner-32 disassemble.h
Octocat-spinner-32 eval_env.c
Octocat-spinner-32 eval_env.h
Octocat-spinner-32 eval_vm.c
Octocat-spinner-32 eval_vm.h
Octocat-spinner-32 exceptions.c
Octocat-spinner-32 exceptions.h
Octocat-spinner-32 exec.c
Octocat-spinner-32 exec.h
Octocat-spinner-32 execute.c
Octocat-spinner-32 execute.h
Octocat-spinner-32 extension-fileio.c
Octocat-spinner-32 extension-fileio.h
Octocat-spinner-32 extensions.c
Octocat-spinner-32 functions.c
Octocat-spinner-32 functions.h
Octocat-spinner-32 getpagesize.h
Octocat-spinner-32 gnu-malloc.c
Octocat-spinner-32 hmac_sha2.c
Octocat-spinner-32 hmac_sha2.h
Octocat-spinner-32 http_parser.c
Octocat-spinner-32 http_parser.h
Octocat-spinner-32 install-sh
Octocat-spinner-32 json.c
Octocat-spinner-32 json.h
Octocat-spinner-32 keywords.c
Octocat-spinner-32 keywords.gperf
Octocat-spinner-32 keywords.h
Octocat-spinner-32 list.c
Octocat-spinner-32 list.h
Octocat-spinner-32 log.c
Octocat-spinner-32 log.h
Octocat-spinner-32 malloc.c
Octocat-spinner-32 map.c
Octocat-spinner-32 map.h
Octocat-spinner-32 match.c
Octocat-spinner-32 match.h
Octocat-spinner-32 md5.c
Octocat-spinner-32 md5.h
Octocat-spinner-32 my-ctype.h
Octocat-spinner-32 my-fcntl.h
Octocat-spinner-32 my-in.h
Octocat-spinner-32 my-inet.h
Octocat-spinner-32 my-ioctl.h
Octocat-spinner-32 my-math.h
Octocat-spinner-32 my-poll.h
Octocat-spinner-32 my-signal.h
Octocat-spinner-32 my-socket.h
Octocat-spinner-32 my-stat.h
Octocat-spinner-32 my-stdarg.h
Octocat-spinner-32 my-stdio.h
Octocat-spinner-32 my-stdlib.h
Octocat-spinner-32 my-string.h
Octocat-spinner-32 my-stropts.h
Octocat-spinner-32 my-sys-time.h
Octocat-spinner-32 my-time.h
Octocat-spinner-32 my-tiuser.h
Octocat-spinner-32 my-types.h
Octocat-spinner-32 my-unistd.h
Octocat-spinner-32 my-wait.h
Octocat-spinner-32 name_lookup.c
Octocat-spinner-32 name_lookup.h
Octocat-spinner-32 net_bsd_lcl.c
Octocat-spinner-32 net_bsd_tcp.c
Octocat-spinner-32 net_mp_fake.c
Octocat-spinner-32 net_mp_poll.c
Octocat-spinner-32 net_mp_selct.c
Octocat-spinner-32 net_mplex.c
Octocat-spinner-32 net_mplex.h
Octocat-spinner-32 net_multi.c
Octocat-spinner-32 net_multi.h
Octocat-spinner-32 net_proto.c
Octocat-spinner-32 net_proto.h
Octocat-spinner-32 net_single.c
Octocat-spinner-32 net_sysv_lcl.c
Octocat-spinner-32 net_sysv_tcp.c
Octocat-spinner-32 net_tcp.c
Octocat-spinner-32 network.c
Octocat-spinner-32 network.h
Octocat-spinner-32 numbers.c
Octocat-spinner-32 numbers.h
Octocat-spinner-32 objects.c
Octocat-spinner-32 opcode.h
Octocat-spinner-32 options.h
Octocat-spinner-32 parse_cmd.c
Octocat-spinner-32 parse_cmd.h
Octocat-spinner-32 parser.h
Octocat-spinner-32 parser.y
Octocat-spinner-32 pattern.c
Octocat-spinner-32 pattern.h
Octocat-spinner-32 program.c
Octocat-spinner-32 program.h
Octocat-spinner-32 property.c
Octocat-spinner-32 quota.c
Octocat-spinner-32 quota.h
Octocat-spinner-32 random.h
Octocat-spinner-32 regexpr.c
Octocat-spinner-32 regexpr.h
Octocat-spinner-32 restart
Octocat-spinner-32 server.c
Octocat-spinner-32 server.h
Octocat-spinner-32 sha1.c
Octocat-spinner-32 sha1.h
Octocat-spinner-32 sha256.c
Octocat-spinner-32 sha256.h
Octocat-spinner-32 storage.c
Octocat-spinner-32 storage.h
Octocat-spinner-32 str_intern.c
Octocat-spinner-32 str_intern.h
Octocat-spinner-32 streams.c
Octocat-spinner-32 streams.h
Octocat-spinner-32 structures.h
Octocat-spinner-32 sym_table.c
Octocat-spinner-32 sym_table.h
Octocat-spinner-32 tasks.c
Octocat-spinner-32 tasks.h
Octocat-spinner-32 test.yml
Octocat-spinner-32 texinfo.tex
Octocat-spinner-32 timers.c
Octocat-spinner-32 timers.h
Octocat-spinner-32 tokens.h
Octocat-spinner-32 unparse.c
Octocat-spinner-32 unparse.h
Octocat-spinner-32 utils.c
Octocat-spinner-32 utils.h
Octocat-spinner-32 verbs.c
Octocat-spinner-32 verbs.h
Octocat-spinner-32 version.c
Octocat-spinner-32 version.h
Octocat-spinner-32 version_options.h
Octocat-spinner-32 version_src.txt
Octocat-spinner-32 xtrapbits.h
Octocat-spinner-32 yajl.c
Octocat-spinner-32 yajl_alloc.c
Octocat-spinner-32 yajl_alloc.h
Octocat-spinner-32 yajl_buf.c
Octocat-spinner-32 yajl_buf.h
Octocat-spinner-32 yajl_bytestack.h
Octocat-spinner-32 yajl_common.h
Octocat-spinner-32 yajl_encode.c
Octocat-spinner-32 yajl_encode.h
Octocat-spinner-32 yajl_gen.c
Octocat-spinner-32 yajl_gen.h
Octocat-spinner-32 yajl_lex.c
Octocat-spinner-32 yajl_lex.h
Octocat-spinner-32 yajl_parse.h
Octocat-spinner-32 yajl_parser.c
Octocat-spinner-32 yajl_parser.h
Octocat-spinner-32 yajl_version.c
Octocat-spinner-32 yajl_version.h
See `README.lambdamoo' for general information on LambdaMOO.

More information on Stunt is available here:  If you
want to get up and running quickly, consider starting with Improvise,
the Stunt starter kit:

This is Release 8 of the Stunt extensions to the LambdaMOO server.  It
is based on the latest "1.8.3+" version from SourceForge.  Read the
very important WARNING below before running this on your existing

Release 8 enhances existing features and improves performance in
specific areas:

* `^' is an alias for the first element in a sequence (to go along
  with `$').

* The map datatype supports index/range access/assignment using `^'
  and `$' (previously these only worked on lists).

* The `for' loop now sports the following syntax:

    for v, i in (...)

When used in this way, the first variable is assigned the value from
the sequence and the second variable is assigned the index (the
position in the case of lists and strings) or key (in the case of

The last change makes iterating over a map more performant.  Iteration
no longer requires a lengthly call to get the keys before actually
performing the iteration.

    m = [... map ...];
    for v, k in (m)

This release also improves the performance of code that uses indexed
assignment (code like `foo[x][y][x] = "blah"').  In my specific case
(package import in the Stunt core), it knocked off ~20% of the overall
time required to import a large package (LambdaCore, for example).

Stunt includes the following functionality not found in the main

1) Multiple-Inheritance
   `create()' now takes either an object number or a list of object
   numbers in the first argument position.  Two new built-ins,
   `parents()' and `chparents()', manipulate an object's parents.  The
   built-ins `parent()' and `chparent()' exist for backward
   compatibility -- when an object has multiple parents these
   built-ins operate on the first parent.

2) Task Local Storage
   The built-ins `task_local' and `set_task_local' retrieve/store a
   task local value.  The value is automatically freed when the task

3) Map Datatype
   The server includes a native map datatype based on a binary search
   tree (specifically, a red-black tree).  The implementation allows
   in-order traversal, efficient lookup/insertion/deletion, and
   supports existing MOO datatypes as values (keys may not be lists or
   maps).  Index, range, and looping operations on lists and strings
   also work on maps.

4) JSON Parsing/Generation
   The built-ins `parse_json' and `generate_json' transform MOO
   datatypes from/to JSON.

5) New Built-in Cryptographic Operations
   The new cryptographic operations include SHA-1 and SHA-256 hashes.
   The existing MD5 hash algorithm is broken from a cryptographic
   standpoint, as is SHA-1 -- both are included for interoperability
   with existing applications (both are still popular) but the default
   for `string_hash'/`binary_hash'/`value_hash' is now SHA-256.  Stunt
   also includes the HMAC-SHA-256 algorithm for generating secure,
   hash- based message authentication codes.

6) Built-in Base64 Encoding/Decoding
   The built-ins `encode_base64' and `decode_base64' encode and decode
   Base64-encoded strings.

7) An Improved FileIO Patch
   The 1.5p1 patch that is in wide circulation has flaws, including two
   server crashing bugs.  This patch fixes those bugs/flaws without
   changing the API.

8) Secure Suspending Process Exec
   The exec functionality adds an `exec' built-in which securely
   forks/execs an external executable.  It doesn't use the `system()'
   call, which is hard to secure and which blocks the server.
   `exec()' takes two parameters, a list of strings comprising the
   program and its arguments, and a MOO binary string that is sent to
   stdin.  It suspends the current task so the server can continue
   serving other tasks, and eventually returns the process termination
   code, stdout, and stderr in a list.

9) Verb Calls on Primitive Types
   The server supports verbs calls on primitive types (numbers,
   strings, etc.) so calls like `"foo bar":split()' can be implemented
   and work as expected (they were always syntactically correct but
   resulted in an E_TYPE error).  Verbs are implemented on prototype
   object delegates ($int_proto, $float_proto, $str_proto, etc.).  The
   server transparently invokes the correct verb on the appropriate
   prototype -- the primitive value is the value of `this'.

10) In Server HTTP Parsing
    The server uses the excellent Node HTTP parsing library to
    natively parse HTTP requests and responses into key/value pairs in
    a map datatype.  The parser handles corner cases correctly and
    supports things like HTTP upgrade (for using WebSockets, for
    example).  It's also much much faster than parsers implemented in
    MOO code.

11) Testing Framework
    The server includes a unit testing framework based on Ruby's
    Test-Unit.  It includes a Parslet parser (two, actually) for
    turning moo-code values into Ruby values, which makes writing
    tests much easier.  The new code is covered very well by the
    existing tests.

WARNING: This server changes the database format in a non-backward
compatible way in order to persist multiple-parent relationships.  The
server will automatically upgrade version 4 databases, however THERE

Use Github and the Github issue system for feedback and bugs!

Something went wrong with that request. Please try again.