std — API Documentation v0.1.21

Project Modules

allocator

Memory allocation abstractions and global allocator interface.

2 fn · 3 type · 1 trait · 1 const

async

Async utilities for cooperative task scheduling.

1 fn

build

Declarative build API for Yo projects.

12 fn · 19 type · 2 const

error

Standard error handling types and traits for Yo.

1 type · 1 trait · 1 module

gc

Garbage collection interface for cycle collection.

2 fn

path

Cross-platform filesystem path manipulation.

2 type · 2 const

prelude

Prelude — automatically imported into every Yo source file.

7 fn · 57 type · 21 trait · 1 module · 6 const

process

Process information, command-line arguments, environment variables, and platform detection.

7 fn · 5 const

thread

OS thread creation and management with per-thread IO event loops.

3 fn · 1 type

worker

Thread pool with per-core thread affinity and round-robin task distribution.

3 fn

alg/

alg/hash

FNV-1a (Fowler-Noll-Vo) hash function.

2 fn · 2 const

cli/

cli/arg_parser

Command-line argument parsing.

4 type

collections/

collections/array_list

Dynamic array (vector) with amortized O(1) push and O(1) indexed access.

4 type

collections/btree_map

Sorted map backed by a sorted array with O(log n) lookup via binary search.

6 type

collections/deque

Double-ended queue (ring buffer) with O(1) push/pop at both ends.

3 type

collections/hash_map

Hash map using SwissTable algorithm with SIMD-accelerated lookup.

7 type

collections/hash_set

Hash set using SwissTable algorithm with set-theoretic operations.

4 type

collections/linked_list

Doubly-linked list with O(1) push/pop at both ends.

4 type

collections/priority_queue

Binary min-heap priority queue.

3 type

crypto/

crypto/md5

MD5 hash function (RFC 1321), pure Yo implementation.

2 fn

crypto/random

Cryptographically secure random number generation.

6 fn · 1 type

crypto/sha256

SHA-256 hash function (FIPS 180-4), pure Yo implementation.

2 fn · 1 type

encoding/

encoding/base64

Base64 encoding and decoding (RFC 4648) with standard and URL-safe variants.

6 fn

encoding/hex

Hexadecimal encoding and decoding.

2 fn · 1 type

encoding/html

HTML entity decoding — named, decimal, and hexadecimal character references.

3 fn

encoding/html_char_utils

HTML character utility functions.

2 fn

encoding/html_entities

HTML5 named character references data.

2 fn

encoding/json

JSON parsing and serialization.

3 fn · 3 type

encoding/punycode

Punycode encoding/decoding (RFC 3492) for internationalized domain names.

4 fn

encoding/toml

Basic TOML parser for configuration files.

1 fn · 1 type

encoding/utf16

UTF-8 to UTF-16 conversion and vice versa.

2 fn

fmt/

fmt/display

Display trait for streaming formatted output to a Writer.

fmt/index

Formatted output to stdout and stderr.

4 fn · 1 trait

fmt/to_string

ToString trait and implementations for all primitive types.

1 trait

fmt/writer

Chainable string builder for composing formatted output.

2 type

fs/

fs/dir

Async directory operations — create, remove, read, link, rename.

16 fn · 2 type

fs/file

Async file I/O operations with Exception-based error handling.

24 fn · 4 type

fs/metadata

File metadata via statx with ergonomic accessors.

4 fn · 1 type

fs/temp

RAII-managed temporary files and directories.

2 type

fs/types

File system types for open modes, permissions, and seek positions.

3 fn · 3 type

fs/walker

Recursive directory traversal.

4 fn · 2 type

glob/

glob/index

Glob pattern matching for file paths.

1 fn · 1 type

http/

http/client

Async HTTP client with high-level fetch API.

2 fn · 2 type

http/http

HTTP core types — methods, headers, requests, and responses.

2 fn · 4 type

http/index

HTTP client library — types, request building, and async fetching.

4 fn · 6 type

imm/

imm/list

Persistent immutable singly-linked list with O(1) prepend, head, and tail.

2 type

imm/map

Persistent immutable hash map using a Hash Array Mapped Trie (HAMT).

8 type

imm/set

Persistent immutable hash set using a Hash Array Mapped Trie (HAMT).

1 type

imm/sorted_map

Persistent immutable sorted map using a left-leaning red-black tree.

3 type

imm/sorted_set

Persistent immutable sorted set using a left-leaning red-black tree.

1 type

imm/string

Immutable, thread-safe UTF-8 string type.

1 type

imm/vec

Persistent immutable vector with efficient indexed access and append.

2 type

io/

io/reader

Reader trait for byte-level input.

1 trait

io/writer

Writer trait for byte-level output.

1 trait

libc/

libc/assert

C11 <assert.h> — assertion debugging facility.

3 fn

libc/ctype

C11 <ctype.h> — character classification and conversion functions.

14 fn

libc/dirent

C11 <dirent.h> — directory entry operations.

4 fn · 2 type · 9 const

libc/errno

C11 <errno.h> — error handling constants and errno variable.

81 const

libc/fcntl

POSIX <fcntl.h> — file control options.

3 fn · 22 const

libc/float

C11 <float.h> — floating-point implementation limits.

31 const

libc/limits

C11 <limits.h> — implementation-defined limits for integer types.

19 const

libc/math

C11 <math.h> — mathematical functions and constants.

177 fn · 26 const

libc/signal

C11 <signal.h> — signal handling functions and constants.

5 fn · 1 type · 30 const

libc/stdatomic

C11 <stdatomic.h> — atomic operations and types.

34 fn · 39 type · 16 const

libc/stdint

C11 <stdint.h> — fixed-width integer types and limits.

29 type · 49 const

libc/stdio

C11 <stdio.h> — standard I/O functions.

46 fn · 3 type · 15 const

libc/stdlib

C11 <stdlib.h> — general utility functions.

44 fn · 4 type · 4 const

libc/string

C11 <string.h> — string and memory functions.

36 fn

libc/time

C11 <time.h> — date and time functions.

14 fn · 4 type · 3 const

libc/unistd

POSIX <unistd.h> — standard symbolic constants and types.

23 fn · 5 type · 7 const

libc/wctype

C11 <wctype.h> — wide character classification and conversion functions.

14 fn

libc/windows

Windows-specific C API bindings.

4 fn · 3 type · 1 const

libc/sys/

libc/sys/stat

POSIX <sys/stat.h> — file status and mode operations.

8 fn · 1 type · 23 const

log/

log/index

Structured logging with configurable level and output destination.

8 fn · 2 type

net/

net/addr

Network address types — IP addresses and socket addresses.

2 type

net/dns

Async DNS resolution.

2 fn

net/errors

Network error types.

1 type

net/tcp

Async TCP networking — listeners and streams with Exception-based error handling.

2 type

net/udp

Async UDP networking — connectionless datagram sockets.

1 type

os/

os/env

Environment directory utilities.

4 fn

os/signal

High-level signal handling.

2 fn · 2 type

regex/

regex/compiler

NFA compiler — compiles a RegexNode AST into a flat list of NFA instructions

6 type

regex/flags

Regex flags parsing and representation.

1 type

regex/index

Regular expression engine with an NFA-based virtual machine.

3 type

regex/match

Match result type — represents the result of a regex match,

1 type

regex/node

Regex AST node types.

5 type

regex/parser

Regex pattern parser — parses a regex pattern string into an AST

1 type

regex/unicode

Unicode property ranges for `\p{...

1 fn

regex/vm

NFA virtual machine (Thompson simulation).

4 type

string/

string/index

String and Unicode types.

5 type

string/rune

Unicode code point type (rune) for representing individual characters.

1 type

string/string

Immutable UTF-8 string type with comprehensive operations.

4 type

string/unicode

Unicode-aware case conversion using full case folding rules.

2 fn

sync/

sync/channel

Bounded multi-producer multi-consumer (MPMC) channel.

1 type

sync/cond

Condition variable for thread synchronization.

2 type

sync/mutex

Mutual exclusion lock primitives.

3 type

sync/once

One-time initialization primitive.

1 type

sync/rwlock

Reader-writer lock allowing multiple concurrent readers or one exclusive writer.

1 type

sync/waitgroup

Wait for a group of tasks to complete, similar to Go's sync.WaitGroup.

1 type

sys/

sys/advise

Kernel advisory hints.

2 fn · 11 const

sys/clock

High-resolution clock queries.

1 fn · 2 const

sys/constants

File system constants.

54 const

sys/copy

File copy operations.

2 fn

sys/dir

Directory operations.

12 fn

sys/dns

DNS resolution operations.

17 fn

sys/errors

IOError type — comprehensive I/O error type with errno-to-error mapping.

1 type

sys/events

TTY, Poll, and FS Event constants.

8 fn · 4 type · 12 const

sys/externs

Extern C runtime function declarations.

sys/fallocate

File space pre-allocation.

1 fn · 3 const

sys/fcntl

File descriptor control operations.

4 fn · 2 const

sys/file

Async and sync file operations.

11 fn

sys/future

IOFuture type — opaque handle to a C async I/O future struct.

1 type

sys/iov

Scatter/gather I/O.

6 fn

sys/lock

Advisory file locking.

1 fn · 4 const

sys/mmap

Memory-mapped I/O operations.

6 fn · 10 const

sys/path

Path resolution.

1 fn

sys/perm

File permission and access operations.

5 fn

sys/pipe

Pipe and file descriptor duplication operations.

3 fn

sys/process

Child process management.

5 fn

sys/seek

File position control.

1 fn · 3 const

sys/signal

Signal handling functions.

3 fn · 1 type

sys/signals

POSIX signal constants.

27 const

sys/socket

Socket constants.

4 fn · 40 const

sys/socketpair

Connected socket pair.

1 fn

sys/sockinfo

Socket address and option query helpers.

4 fn

sys/statfs

Filesystem statistics.

9 fn

sys/statx

Statx file status type.

1 type

sys/sysinfo

Runtime system identification.

2 fn · 7 const

sys/tcp

Async TCP socket operations.

23 fn · 1 type

sys/temp

Temporary file/directory operations.

2 fn

sys/time

File timestamp operations.

3 fn

sys/timer

Async timer operations.

1 fn

sys/tty

TTY operations.

5 fn · 1 type · 3 const

sys/udp

Async UDP socket operations.

9 fn

sys/umask

Process file creation mask.

1 fn

sys/unix

Unix domain socket operations.

12 fn · 1 type

sys/bufio/

sys/bufio/buf_reader

Buffered reader for file descriptors.

1 type

sys/bufio/buf_writer

Buffered writer for file descriptors.

1 type

testing/

testing/bench

Micro-benchmarking utilities.

1 fn · 1 type

time/

time/datetime

Wall-clock date and time in UTC.

1 type

time/duration

Duration type representing a span of time with nanosecond precision.

1 type

time/instant

Monotonic clock instant for measuring elapsed time.

1 type

time/sleep

Synchronous sleep — blocks the current thread.

1 fn

url/

url/index

URL parsing and formatting per RFC 3986 (simplified).

2 type