No matching definitions.

Turmeric Standard Library

Auto-generated API reference. Run just docs to regenerate.

Core

tur/args

CLI argument parser with a builder-pattern API.

18 exported definitions

tur/arrow

Haskell-style Arrow typeclass hierarchy for signal processing.

8 exported definitions

tur/async_file

non-blocking file I/O integrated with the cooperative scheduler.

6 exported definitions

tur/async_pipe

non-blocking stdin/stdout pipe I/O for the cooperative scheduler.

4 exported definitions

tur/async_socket

non-blocking TCP socket I/O for the cooperative scheduler.

8 exported definitions

tur/atomic

atomic load/store/add/sub/swap/CAS on 64-bit integers.

8 exported definitions

tur/backtrack

backtracking monad (list monad) for non-deterministic search.

16 exported definitions

tur/bits

bitwise operations not expressible as arithmetic in Turmeric.

2 exported definitions

tur/capability

capability-passing typeclasses for controlled side-effect injection.

26 exported definitions

tur/chan

synchronous and async buffered channels for inter-fiber communication.

11 exported definitions

tur/comonad

Comonad typeclass -- the categorical dual of Monad.

2 exported definitions

tur/concurrent

stub concurrency types for linear resource tracking.

4 exported definitions

tur/condvar

POSIX condition variable (pthread_cond_t) wrapped as ptr<void>.

5 exported definitions

tur/contract

runtime contract macros (assert!, require!, ensure!, ...).

11 exported definitions

tur/csv

CSV parser and emitter following RFC 4180.

14 exported definitions

tur/digest

SHA-256 and MD5 checksum implementations.

5 exported definitions

tur/dynvar

dynamic variables and binding conveyance for cooperative tasks.

1 exported definition

tur/effects

standard algebraic effects for IO, logging, and randomness.

10 exported definitions

tur/env

environment variable access (getenv, setenv, unsetenv).

10 exported definitions

tur/equal

type-equality witness (Equal GADT) for type-safe coercions.

3 exported definitions

tur/existential

helpers for native pack/open existential types.

2 exported definitions

tur/fiber

lightweight cooperative fibers backed by the FiberBlock runtime.

15 exported definitions

tur/fix

Fix type: the fixed-point of a functor, with cata and ana.

4 exported definitions

tur/float-range

FloatRange: continuous interval with inclusive or exclusive ends.

19 exported definitions

tur/free

Free monad over a functor f for building effect DSLs.

5 exported definitions

tur/fs

extended file-system operations (stat, readdir, fnmatch, walk).

22 exported definitions

tur/future

Future<T> and Promise<T> for asynchronous results.

31 exported definitions

tur/gadt-vec

length-indexed GVec GADT with phantom natural-number type parameter.

8 exported definitions

tur/gen

generator helpers and macros for consuming and composing generators.

11 exported definitions

tur/grid

typed Grid[A]: 2D row-major grid parameterized over element type A.

7 exported definitions

tur/hamt

persistent hash-array-mapped trie (HAMT) map.

24 exported definitions

tur/io

FileSystem capability implementation using libc functions.

13 exported definitions

tur/json

JSON encode and decode with no external dependencies.

21 exported definitions

tur/list

typed singly-linked List[A] with Cons cells.

15 exported definitions

tur/log

Logger capability implementation using stderr/stdout.

10 exported definitions

tur/logic

miniKanren-style logic programming (unification, goals, streams).

37 exported definitions

tur/macros

core control-flow and utility macros (cond, when, for, do-m, ...).

22 exported definitions

tur/map

typed Map[K V]: persistent hash map requiring Hash[K] and Eq[K].

14 exported definitions

tur/math

thin wrappers around libm functions (sin, cos, sqrt, ...).

8 exported definitions

tur/mutex

POSIX mutex (pthread_mutex_t) wrapped as ptr<void>.

5 exported definitions

tur/mutmap

MutableMap[K V]: mutable open-addressed hash table.

10 exported definitions

tur/nat

type-level natural numbers via GADT for phantom length annotations.

4 exported definitions

tur/net

stub networking type (Socket) for linear resource tracking.

4 exported definitions

tur/option

typed Option[A]: parameterized optional value.

10 exported definitions

tur/pair

typed Pair[A B]: parameterized two-element tuple.

8 exported definitions

tur/parsec

parser combinator library built on the backtracking monad.

48 exported definitions

tur/path

pure path-string manipulation (join, dirname, basename, extension).

7 exported definitions

tur/process

process management: pid, spawn, wait, exec, cwd, chdir.

10 exported definitions

tur/random

Random capability implementation using the platform RNG.

8 exported definitions

tur/range

Range: continuous interval with inclusive, exclusive, or unbounded ends.

45 exported definitions

tur/rc

reference-counted pointer (rc<T>) for shared ownership.

4 exported definitions

tur/re

POSIX extended regular expressions via regcomp/regexec.

11 exported definitions

tur/ref

heap-allocated mutable reference cell with independent ownership.

5 exported definitions

tur/result

typed Result[A B]: ok value A or err value B.

11 exported definitions

tur/rwlock

POSIX read-write lock (pthread_rwlock_t) wrapped as ptr<void>.

7 exported definitions

tur/safe

bounds-checked operations returning Option or Result.

7 exported definitions

tur/scheduler

cooperative fiber scheduler managing a fiber run queue.

6 exported definitions

tur/scheduler_mt

multi-threaded work-stealing scheduler for parallel fibers.

10 exported definitions

tur/select

multi-channel select: wait on multiple channel operations at once.

0 exported definitions

tur/serial

serializable continuations for persistent workflow state.

12 exported definitions

tur/session

standard session-type protocol patterns for typed channels.

5 exported definitions

tur/set

typed Set[A]: persistent set backed by the HAMT.

13 exported definitions

tur/sized

static sizes and size arithmetic for memory layout verification.

30 exported definitions

tur/sized-bits

SizedBitVec: packed bit vector with static size annotations.

11 exported definitions

tur/sized-buf

SizedBuf: flat contiguous memory layout for sized types.

15 exported definitions

tur/sized-matrix

SizedMatrix: row-major 2D matrix with static size annotations.

15 exported definitions

tur/slice

typed Slice[A]: bounds-checked borrowed view into A elements.

6 exported definitions

tur/stm

Software Transactional Memory: transactional read/write on TVars.

6 exported definitions

tur/str

UTF-8 string view (pointer + length).

8 exported definitions

tur/sync

Once and Semaphore synchronization primitives.

7 exported definitions

tur/taskgroup

structured concurrency with scoped TaskGroup.

25 exported definitions

tur/term

terminal utilities: size, tty detection, raw mode, ANSI colors.

12 exported definitions

tur/test

lightweight unit test runner for Turmeric.

9 exported definitions

tur/thread

POSIX thread spawn, join, and detach wrappers.

8 exported definitions

tur/threadpool

WorkQueue<T> and ThreadPool for task-based parallelism.

16 exported definitions

tur/time

Time capability implementation using platform time functions.

11 exported definitions

tur/timer

Timer API backed by a min-heap timer wheel.

3 exported definitions

tur/tuple

typed N-ary tuples (Tuple2..Tuple5).

25 exported definitions

tur/typeclass

built-in typeclasses: Eq, Ord, Show, Num.

50 exported definitions

tur/typeclass-clone

minimal Clone typeclass stub for definstance sites.

2 exported definitions

tur/typeclass-eq

minimal Eq typeclass stub for typed-collection definstances.

12 exported definitions

tur/typeclass-functor

Phase TS5: Minimal Functor class stub for typed-collection definstances.

0 exported definitions

tur/vec

typed Vec[A]: parameterized growable array.

12 exported definitions

tur/vec-existential

Vec[A] as a size-hiding existential for heterogeneous collections.

2 exported definitions

tur/workflow

persistent workflow helpers built on tur/serial.

4 exported definitions

tur/zipper

typed Zipper[A]: 1D list zipper with typed focus and neighbors.

6 exported definitions

seq

test

turi