Extensions
The following functions are unique to mooR and not found in original LambdaMOO:
XML/HTML Content Management:
xml_parse- Parse a string containing XML into a tree of flyweight objectsto_xml- Convert a tree of flyweight objects into a string containing XML
Import/Export of Objects:
load_object- Load an object from objdef format with optional conflict detection and resolution options.dump_object- Takes an object and returns a list of strings representing the object definition in objdef format.
Flyweights & Symbols (New Types):
toflyweight- Build a flyweight from a delegate, slots map, and optional contents listflyslots- Returns the slots on a given flyweight as a mapflycontents- Returns the contents list from a flyweightflyslotset- Returns a copy of the flyweight with a slot added or updatedflyslotremove- Returns a copy of the flyweight with the given slot removed, if presenttosym- Turns the given value into a Symbol
Cryptography:
age_generate_keypair- Generates a new X25519 keypair for use with age encryptionage_encrypt- Encrypts a message using age encryption for one or more recipients, outputs as base64age_decrypt- Decrypts a base64-encoded age-encrypted message using one or more private keysage_passphrase_encrypt- Encrypts a message using age encryption with a passphraseage_passphrase_decrypt- Decrypts an age-encrypted message using a passphrase
Administration:
vm_counters- Performance counters for profiling VM internalsbf_counters- Performance counters for profiling builtin function performancedb_counters- Performance counters for profiling DB performancefunction_help- Returns runtime documentation for builtin functions extracted from compiled code
Task Management:
active_tasks- Return information about running non-suspended/non-queued taskswait_task- Causes the current task to wait for a given task id to completecommit- Immediately commits data, suspends, then resumes (semantically same assuspend(0))rollback- Immediately rollbacks all mutations to the DB and aborts the current task
Functions Borrowed from ToastStunt
The following functions were originally extensions in ToastStunt that have been incorporated into mooR:
argon2- Hashing function for secure password storageargon2_verify- Verifies a password against an Argon2 hashftime- Enhanced time formatting (slight differences from ToastStunt implementation)encode_base64- Encodes a string using Base64 encodingdecode_base64- Decodes a Base64-encoded stringslice- Extracts a portion of a listgenerate_json- Converts a MOO value to a JSON stringparse_json- Parses a JSON string into a MOO valueancestors- Gets a list of all ancestors of an objectdescendants- Gets a list of all descendants of an objectisa- Checks if an object is a descendant of a specified ancestorresponds_to- Checks if an object has a specific verbpcre_match- Enhanced pattern matching using PCRE regular expressionspcre_replace- Text replacement using PCRE regular expressions