Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.86 KB

File metadata and controls

46 lines (32 loc) · 1.86 KB

Cyan documentation

One page per module. Every module is a standalone header under include/cyan/; include <cyan/cyan.h> to pull in everything at once, or include individual headers to keep compile times down.

Core

Collections

  • Vector: growable arrays with push/pop/insert/remove, find, sort, and iteration
  • Slice: non-owning bounds-checked views
  • String: growable text with search, trim, split, and compare
  • HashMap: open-addressing maps, a string-keyed variant, and iteration
  • HashSet: membership testing built on HashMap's engine

Memory

  • Defer: scope-exit cleanup, RAII-style
  • Smart pointers: unique, shared, and weak pointers with auto-release

Concurrency

  • Coroutines: stackful cooperative multitasking over ucontext (experimental)
  • Channels: CSP-style communication, coroutine-aware

Utilities

  • Functional: map, filter, reduce, foreach
  • Serialization: S-expressions with atoms, symbols, nested lists, and round-tripping
  • Bit-width integers: Zig-style uN/iN wrap-around integers
  • Bitset: fixed-size flag collections with named flags

Library-wide

Version history lives in the changelog.