Skip to content

Text and Crypto ​

Text ​

Implementation status: thin wrappers Fmt / Regex / Encoding / StringBuilder / Bytes Implemented.

TypeTypical API
Fmtprint / printLine / debug take Sendable; format(..., args: Array<Sendable>) (R-12; ≠ Object)
RegexisMatch / findAll / replaceAll
Encodingbase64Encode / hexEncode
Bytes / StringBuilderBuffered concatenation

Built-in string methods (split, matches) still come from CORE, so import Text is unnecessary.

Crypto ​

Implementation status: Crypto.sha256 and others Implemented (Host). For dynamic plugins, see also examples/plugin_demo and Language Guide · Runtime Extensions.

swift
import Crypto

func main() {
    print(Crypto.sha256("data"))
}

Other Embedded Packages (Short) ​

PackageKey points
Testingassert / assertEq(Sendable,Sendable) / test(fn: Function) (import Testing; R-12)
DIService DI; see examples/service_di
SQLSqlRow accessors take row: Dictionary (R-11); see examples/sql_tool
SynchronizationChannel / Mutex / Semaphore
UISynUI bridge; deferred, do not treat as a product GUI
Tracing / Metrics / ProfilingObservability MVP; not product OTel / Prometheus / pprof GA

SYX · Apache-2.0