lib-script · crate

kinogaki-script-lib

Libraryenvironment

lib-script's function library.

Repository
lib-script (kinogaki/lib-script)
Folder
libs/lib-script/crates/lib
Source
13 files, 2,455 lines
Tests
1 file, 19 lines
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

lib-script's function library. Every function is a signature row (what the checker sees), a scalar reference and a column form, tested against each other: most are written once against kinogaki_script_ir::Emit and so lower to column instructions; the rest (noise, random, inverses, slerp, HSV) are kernels over a chunk of lanes.

library is the process-wide instance; reference() writes the function reference (docs/FUNCTIONS.md) from the signature table.

Depends on

CrateRepositoryAsWhat it is
kinogaki-mathlib-mathnormalKinogaki's vectors, points, matrices, quaternions and deterministic elementary functions.
kinogaki-script-hostlib-scriptnormalThe boundary between lib-script and a host.
kinogaki-script-irlib-scriptnormallib-script's column IR: typed SSA values (vectors as groups of scalar values) in structured regions; lowering from the checked program; uniform/varying analysis; optimisation; a verifier; and the fault table that maps instructions back to source spans.
kinogaki-script-typeslib-scriptnormallib-script's front end after parsing: types, the host schema a context offers, the library catalog's signatures, the checker that builds the typed program, and completion and hover for the editor.

Third-party

None.

Used by

CrateRepositoryAsWhat it is
kinogaki-script-execlib-scriptnormallib-script's engine: a column (batch) interpreter in safe Rust.

Modules

Public types and traits

At the crate root

Structs Lib

By module: 5 public types and traits in 2 modules

kernel KernelCall

row ImplPRowRows

Besides these, 58 public functions at module level.