Text and Crypto
Text
Implementation status: thin wrappers Fmt / Regex / Encoding / StringBuilder / Bytes Implemented.
| Type | Typical API |
|---|---|
Fmt | print / printLine / debug take Sendable; format(..., args: Array<Sendable>) (R-12; ≠ Object) |
Regex | isMatch / findAll / replaceAll |
Encoding | base64Encode / hexEncode |
Bytes / StringBuilder | Buffered 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)
| Package | Key points |
|---|---|
Testing | assert / assertEq(Sendable,Sendable) / test(fn: Function) (import Testing; R-12) |
DI | Service DI; see examples/service_di |
SQL | SqlRow accessors take row: Dictionary (R-11); see examples/sql_tool |
Synchronization | Channel / Mutex / Semaphore |
UI | SynUI bridge; deferred, do not treat as a product GUI |
Tracing / Metrics / Profiling | Observability MVP; not product OTel / Prometheus / pprof GA |