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
Flyweights & Symbols (New Types):
slots- Returns the slots on a given flyweightremove_slot- Returns a copy of the flyweight with the given slot removed, if presentadd_slot- Returns a copy of the flyweight with a new slot addedtosym- 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 keys
Administration:
vm_counters- Performance counters for profiling VM internalsbf_counters- Performance counters for profiling builtin function performancedb_counters- Performance counters for profiling DB performance
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