Skip to content

Package Overview ​

The toolchain embeds the following importable modules (packages/internal/manifest.json → importable_modules):

importPathUser surfaceExample
Numericspackages/linalg/mod.sypacked-SYX Mat (Host-backed)examples/linalg/
Systempackages/system/mod.syProcessInfo / File / FilePath / Env / process helpers; failures throw SystemErrorexamples/os_info/ · examples/file_tool/
Loggingpackages/log/mod.sylevel filtering + structured field lines (Log)examples/log_fields.sy
Networkingpackages/networking/mod.syHttp / Url; TLS clientexamples/http_tool/
Cryptopackages/crypto/mod.syhashing and moreexamples/basic_demo.sy
Textpackages/text/mod.syFmt / Regex / Encoding / Bytes—
Synchronizationpackages/sync/mod.syChannel / Mutex / Semaphoreexamples/concurrency_control/
SQLpackages/data/sql.sy:memory: CRUD; SqlRow accessors row: Dictionary (R-11; ≠ Object)examples/sql_tool/
Testingpackages/testing/mod.syassert / assertEqexamples/test_demo.sy
DIpackages/di/mod.syService DIexamples/service_di/
UIpackages/ui/mod.sySynUI bridge; not product GUI GAexamples/gui_demo.sy
Tracingpackages/trace/mod.syspans (MVP)—
Metricspackages/metrics/mod.sycounters / gauges (MVP)—
Profilingpackages/profiler/mod.sywall / CPU sections (MVP)—
JSONCOREencode / decode—
FmtCORE / Textformatting helpers—
OrderedSet / DequeCORE collectionsordered set / deque—
Math / Random / SIMD4COREmath / RNG / SIMD helpers—

Math comes in through the CORE prelude (packages/core/), so static Math.* is usable without import Math; there is no prelude Mat (use import Numerics).

Object / Dictionary are likewise part of CORE (object.sy); default literal → Dictionary; explicit : Object remains for residual paths.

Importing ​

swift
import Numerics
import System
import Logging

func main() {
    let a = Mat.from([1.0, 0.0, 0.0, 1.0], rows: 2, cols: 2)
    print(a.rows)
    print(ProcessInfo.processorCount)
    Log.info("ok")
}

import foo in the same directory still resolves the local foo.sy; embedded names (Numerics, System, …) are resolved by the toolchain to packages/.

SYX · Apache-2.0