The Standard Library provides core control helpers, containers, text-processing modules, synchronization utilities, numeric helpers, and platform-specific wrappers for MPL programs.
The visible module names below use module-descriptor form without the trailing .mpl, matching use. Programs that use platform modules put both mpl-sl and the platform folder on the include path, as in -I mpl-sl -I mpl-sl/linux; a platform module can then also be imported without its folder, as in "posix" use.
Stack effects on the module pages are written from the lowest stack position to the top, exactly as in the Built-in Reference. For functions imported from C this is the reverse of the C parameter list, because the first C parameter is the top stack item; see importFunction.
Index
Foundation / Core
controlFoundational schema aliases, low-level runtime bindings, predicates, stack helpers, control combinators, and numeric utilities.
FunctionCallable wrapper schema and callable adaptation helpers.
memoryAllocation, raw memory operations, cached allocation helpers, and heap-usage accounting.
Data Structures and Algorithms
ArrayGrowable array.
AvlMapOrdered map with key-based insertion, search, erasure, and in-order traversal.
DequeDouble-ended queue data structure.
HashTableHash-based map and set module.
IntrusiveDequeIntrusive doubly linked deque over external items.
IntrusiveQueueIntrusive singly linked queue over external items.
IntrusiveStackIntrusive singly linked LIFO stack over external items.
PoolPooled storage with reusable numeric keys.
PriorityQueuePriority queue with customizable comparison.
SpanContiguous non-owning view of items of the same schema.
SpanStaticContiguous non-owning view of items of the same schema with a schema-level fixed size.
algorithmCollection interfaces, comparison helpers, iteration adapters, and view slicing utilities.
Structured Values and Object Tools
interfaceInterface-wrapper construction and implementation helpers.
MrefMinimal Ref type with custom semantics.
objectToolsStatic object-formatting helpers and dictionary-shape manipulation utilities.
OwnerOwnership management and move/transfer semantics.
UnionUntagged multi-schema storage and helper operations.
VariantTagged multi-schema storage and helper operations.
Interoperability
CommandLineCommand-line argument view construction and printing.
conventionsCalling-convention descriptor objects for imported and exported procedures.
Text Processing and Serialization
StringUTF-8 string views, owned strings, formatting helpers, and text conversion utilities.
asciiDynamic ASCII code constants grouped under object ascii.
unicodeToolsUTF-16 code-unit and surrogate-pair helpers for JSON \uXXXX escapes.
JsonJSON value type, parsing helpers, and serialization helpers.
XmlXML document, parser, and serialization helpers.
Hashing and Checksums
murmurHashMurmur3 32-bit hashing helpers over raw byte storage.
sha1Whole-input and incremental SHA-1 hashing helpers.
Numeric, Randomness, and Geometry
algebraAlgebraic operations, vectors, and matrix utilities.
PoseRigid-transform helpers over position vectors and quaternions.
QuaternionQuaternion construction, normalization, interpolation, and matrix conversion.
RandomLCGLinear congruential pseudo-random generator.
Network and I/O
sync/TcpAcceptorListening TCP acceptor with address reporting and accepted connection creation.
sync/TcpConnectionConnected TCP stream with buffered read, string read, write, and shutdown operations.
fileFile I/O helpers for byte arrays and String values.
Synchronization and Scheduling
atomicAtomic operations and memory-order markers.
lockGuardScope-based locking and unlocking helpers.
SpinlockLightweight spinlock for concurrency control.
sync/ContextSpawned context handle with waiting, output retrieval, and cancellation.
sync/ContextGroupGroup of spawned contexts with shared waiting and cancellation.
sync/EventPersistent event state with clear, set, wait, wake, and wakeOne.
sync/SignalWait queue with wake and wakeOne operations.
sync/syncCross-platform scheduling, sleep, time, IPv4 formatting, and TCP helpers.
Linux
linux/errnoAccessor for platform error-number storage.
linux/linuxLinux epoll, timerfd, and flock declarations.
linux/posixPOSIX process, timing, descriptor, and context declarations used by Linux support modules.
linux/ProcessLinux process creation, waiting, and termination helpers.
linux/runningTimeElapsed-time helper built on platform monotonic timing APIs.
linux/socketLinux socket declarations, constants, address schemas, and imported functions.
macOS
macos/errnoAccessor for platform error-number storage.
macos/macosmacOS kqueue and kevent declarations.
macos/posixmacOS POSIX process, timing, descriptor, and context declarations.
macos/ProcessmacOS process creation, waiting, and termination helpers.
macos/runningTimeElapsed-time helper built on macOS monotonic timing APIs.
macos/socketmacOS socket declarations, constants, address schemas, and imported functions.
Windows
windows/ConditionVariableSRW-lock-based condition-variable wrapper.
windows/dispatcherWindows completion-port dispatcher and callback posting helpers.
windows/errnoAccessor for platform error-number storage.
windows/gdi32GDI32 pixel-format and buffer-swap declarations.
windows/hardwareConcurrencyProcessor-count query helper.
windows/kernel32Kernel32 declarations for synchronization, process, thread, file, and timing helpers.
windows/MutexSRW lock wrapper with exclusive and shared locking.
windows/ole32OLE32 COM initialization declarations.
windows/opengl32OpenGL32 WGL context declarations.
windows/ProcessWindows process creation, waiting, and termination helpers.
windows/runningTimeElapsed-time helper built on platform performance counters.
windows/shell32Shell folder path declarations.
windows/TcpAcceptorWindows completion-port TCP acceptor with asynchronous callbacks.
windows/TcpConnectionWindows completion-port TCP connection with asynchronous callbacks and cancellation.
windows/ThreadWindows thread wrapper and helper constructor.
windows/unicodeUTF-8 to zero-terminated UTF-16 conversion helper.
windows/user32User32 windowing, message, cursor, monitor, and device-context declarations.
windows/winmmWinMM joystick input declarations.
windows/ws2_32Winsock2 declarations for sockets, overlapped I/O, and address-resolution helpers.