Skip to content

Latest commit

 

History

History
87 lines (73 loc) · 6.1 KB

README.md

File metadata and controls

87 lines (73 loc) · 6.1 KB
description Reference documentation for the Hoon standard library, organized by layer from basic arithmetic to advanced compiler operations and text processing.
layout
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

Standard Library

Comprehensive documentation for the Hoon standard library.

The Hoon standard library provides a complete suite of functions for working with the fundamental data types and operations in Hoon. These functions are organized into numbered sections based on their purpose and the types they operate on. The numbering corresponds to the layer structure in /sys/hoon.hoon.

Layer 1: Basic Operations {#layer-1-basic-operations}

  • 1a: Basic Arithmetic - Unsigned arithmetic operations including addition, subtraction, multiplication, division, and comparison functions.
  • 1b: Tree Addressing - Functions for addressing and navigating tree structures using Nock's tree addressing scheme.
  • 1c: Containers - Fundamental container types and molds including +pair, +list, +unit, +tree, +gate, and other essential type definitions.

Layer 2: Data Structures and Operations {#layer-2-data-structures-and-operations}

Unit and List Operations {#unit-and-list-operations}

Bit and Logic Operations {#bit-and-logic-operations}

  • 2c: Bit Arithmetic - Functions for assembling, disassembling, and manipulating $atoms at the bit level.
  • 2d: Bit Logic - Bitwise logical operations including binary AND, OR, XOR, and bit manipulation.
  • 2e: Insecure Hashing - Non-cryptographic hash functions including MurmurHash and other fast hashing algorithms.
  • 2f: Noun Ordering - Functions for ordering and comparing $nouns.
  • 2g: Unsigned Powers - Exponentiation and power-related operations for unsigned integers.

Container Data Structures {#container-data-structures}

Layer 3: Advanced Operations {#layer-3-advanced-operations}

Layer 4: Text Processing and I/O {#layer-4-text-processing-and-io}

Layer 5: Compiler and System Operations {#layer-5-compiler-and-system-operations}