Urbit
  • Introduction
  • Development

    • Getting Started
    • Environment Setup
    • Grants Program
    • Project Repositories
    • Precepts
    • System Overview

      • Arvo
      • Hoon
      • Nock
      • Vere
      • Azimuth
      • Cryptography
      • Arvo

        • Overview
        • Ames

          • Overview
          • Cryptography
          • API Reference
          • Scry Reference
          • Data Types
          • Behn

            • Overview
            • API Reference
            • Scry Reference
            • Examples
            • Clay

              • Overview
              • Architecture
              • Using Clay
              • Data Types
              • Scry Reference
              • API Reference
              • Examples
              • Marks

                • Overview
                • Writing Marks
                • Using Marks
                • Examples
              • Dill

                • Overview
                • API Reference
                • Scry Reference
                • Data Types
                • Eyre

                  • Overview
                  • External API Reference
                  • Internal API Reference
                  • Scry Reference
                  • Data Types
                  • Guide
                  • Ford

                    • Overview
                    • Gall

                      • Overview
                      • API Reference
                      • Data Types
                      • Iris

                        • Overview
                        • API Reference
                        • Data Types
                        • Example
                        • Jael

                          • Overview
                          • API Reference
                          • Scry Reference
                          • Data Types
                          • Examples
                          • Concepts

                            • Scries
                            • Subscriptions
                            • Tutorials

                              • Move Trace
                              • Reference

                                • Cryptography
                                • Filesystem Hierarchy
                              • Userspace

                                • Overview
                                • HTTP API Guide
                                • Gall Guide

                                  • Introduction
                                  • 1. Arvo
                                  • 2. The Agent Core
                                  • 3. Imports and Aliases
                                  • 4. Lifecycle
                                  • 5. Cards
                                  • 6. Pokes
                                  • 7. Structures and Marks
                                  • 8. Subscriptions
                                  • 9. Vanes
                                  • 10. Scries
                                  • 11. Failure
                                  • 12. Next Steps
                                  • Appendix: Types
                                  • Full-Stack Walkthrough

                                    • 1. Introduction
                                    • 2. Types
                                    • 3. Agent
                                    • 4. JSON
                                    • 5. Marks
                                    • 6. Eyre
                                    • 7. React app setup
                                    • 8. React app logic
                                    • 9. Desk and glob
                                    • 10. Summary
                                    • Graph Store

                                      • Graph Store Overview
                                      • Data Structure Overview
                                      • Validator Walkthrough
                                      • Sample Application: Library
                                      • Graph Store - Reference
                                      • Advanced Info
                                      • Threads

                                        • Overview
                                        • HTTP API
                                        • Reference
                                        • Basics

                                          • Fundamentals
                                          • Bind
                                          • Input
                                          • Output
                                          • Summary
                                          • Gall

                                            • Start Thread
                                            • Take Result
                                            • Take Facts
                                            • Stop Thread
                                            • Poke Thread
                                            • Examples

                                              • Fetch JSON
                                              • Child Thread
                                              • Main-loop
                                              • Poke Agent
                                              • Scry
                                              • Take Fact
                                            • Distribution

                                              • Overview
                                              • Guide
                                              • Docket File
                                              • Glob
                                              • Dojo Tools
                                            • Hoon

                                              • Overview
                                              • Hoon School

                                                • 1.1 Introduction
                                                • 1.1.1 Walkthrough: List of Numbers
                                                • 1.2 Nouns
                                                • 1.3 Hoon Syntax
                                                • 1.3.1 Walkthrough: Conditionals
                                                • 1.4 Gates (Hoon Functions)
                                                • 1.4.1 Walkthrough: Recursion
                                                • 1.5 Lists
                                                • 1.5.1 Walkthrough: Fibonacci Sequence
                                                • 1.6 The Subject and Its Legs
                                                • 1.6.1 Walkthrough: Ackermann Function
                                                • 1.7 Arms and Cores
                                                • 1.7.1 Walkthrough: Caesar Cipher
                                                • 1.8 Doors
                                                • 1.8.1 Bank Account
                                                • 1.9 Generators
                                                • 2.1 Atoms, Auras, and Simple Cell Types
                                                • 2.2 Type Checking and Type Inference
                                                • 2.3 Structures and Complex Types
                                                • 2.3.1 Walkthrough: Libraries
                                                • 2.3.2 Molds
                                                • 2.4 Standard Library: Trees, Sets, and Maps
                                                • 2.5 Type Polymorphism
                                                • 2.5.1 Walkthrough: Iron Polymorphism and Wet Polymorphism
                                                • 2.5.2 Walkthrough: Lead Polymorphism
                                                • 2.6 Behn
                                                • 2.7 Gall
                                                • 2.7.1 Gall Walkthrough: Egg Timer
                                                • Guides

                                                  • CLI apps
                                                  • Parsing
                                                  • JSON
                                                  • Strings
                                                  • Sail (HTML)
                                                  • Writing Aqua Tests
                                                  • Reference

                                                    • Cheat Sheet
                                                    • Irregular forms
                                                    • Hoon Errors
                                                    • Hoon Style Guide
                                                    • Basic Types
                                                    • Advanced Types
                                                    • Auras
                                                    • Runes

                                                      • Atoms and strings
                                                      • Nock . ('dot')
                                                      • Wild ! ('zap')
                                                      • Change Subject = ('tis')
                                                      • Conditionals ? ('wut')
                                                      • Cores | ('bar')
                                                      • Arms + ('lus')
                                                      • Cells : ('col')
                                                      • Calls % ('cen')
                                                      • Casts ^ ('ket')
                                                      • Structures $ ('buc')
                                                      • Make ; ('mic')
                                                      • Hints ~ ('sig')
                                                      • Imports / ('fas')
                                                      • Terminators -- and ==
                                                      • Limbs and wings

                                                        • Limbs
                                                        • Wings
                                                        • Standard library

                                                          • Table of Contents
                                                          • 1a: Basic Arithmetic
                                                          • 1b: Tree Addressing
                                                          • 1c: Molds and Mold-Builders
                                                          • 2a: Unit Logic
                                                          • 2b: List Logic
                                                          • 2c: Bit Arithmetic
                                                          • 2d: Bit Logic
                                                          • 2e: Insecure Hashing
                                                          • 2f: Noun Ordering
                                                          • 2g: Unsigned Powers
                                                          • 2h: Set Logic
                                                          • 2i: Map Logic
                                                          • 2j: Jar and Jug Logic
                                                          • 2k: Queue Logic
                                                          • 2l: Container from Container
                                                          • 2m: Container from Noun
                                                          • 2n: Functional Hacks
                                                          • 2o: Normalizing Containers
                                                          • 2p: Serialization
                                                          • 2q: Molds and Mold-Builders
                                                          • 3a: Modular and Signed Ints
                                                          • 3b: Floating Point
                                                          • 3c: Urbit Time
                                                          • 3d: SHA Hash Family
                                                          • 3e: AES encryption (Removed)
                                                          • 3f: Scrambling
                                                          • 3g: Molds and Mold-Builders
                                                          • 4a: Exotic Bases
                                                          • 4b: Text Processing
                                                          • 4c: Tank Printer
                                                          • 4d: Parsing (Tracing)
                                                          • 4e: Parsing (Combinators)
                                                          • 4f: Parsing (Rule-Builders)
                                                          • 4g: Parsing (Outside Caller)
                                                          • 4h: Parsing (ASCII Glyphs)
                                                          • 4i: Parsing (Useful Idioms)
                                                          • 4j: Parsing (Bases and Base Digits)
                                                          • 4k: Atom Printing
                                                          • 4l: Atom Parsing
                                                          • 4m: Formatting Functions
                                                          • 4n: Virtualization
                                                          • 4o: Molds
                                                          • 5a: Compiler Utilities
                                                          • 5b: Macro Expansion
                                                          • 5c: Compiler Backend & Prettyprinter
                                                          • 5d: Parser
                                                          • 5e: Molds and mold builders
                                                          • 5f: Profiling support
                                                          • Zuse

                                                            • Table of Contents
                                                            • 2d(1-5): To JSON, Wains
                                                            • 2d(6): From JSON
                                                            • 2d(7): From JSON (unit)
                                                            • 2e(2-3): Print & Parse JSON
                                                        • Nock

                                                          • Nock Definition
                                                          • Explanation
                                                          • Example
                                                          • Implementations
                                                          • Vere

                                                            • C Runtime System
                                                            • Land of Nouns
                                                            • API overview by prefix
                                                            • C in Urbit
                                                            • Writing Jets
                                                            • Cryptography
                                                            • Azimuth

                                                              • Overview
                                                              • Urbit HD Wallet
                                                              • Azimuth Data Flow
                                                              • Azimuth.eth
                                                              • Ecliptic.eth
                                                              • Advanced Azimuth Tools
                                                              • Life and Rift
                                                              • Layer 2

                                                                • Layer 2 Overview
                                                                • Layer 2 Actions
                                                                • Transaction Format
                                                                • Rollers
                                                                • Roller HTTP RPC-API
                                                                • Custom Roller Tutorial
                                                              • Glossary

                                                                • Ames
                                                                • Aqua
                                                                • Arm
                                                                • Arvo
                                                                • Atom
                                                                • Azimuth
                                                                • Battery
                                                                • Behn
                                                                • Bridge
                                                                • Censures
                                                                • Ceremony
                                                                • chat
                                                                • Claims
                                                                • Clay
                                                                • Comet
                                                                • Core
                                                                • Delegated Sending
                                                                • Desk
                                                                • Dill
                                                                • Document Proposal
                                                                • Dojo
                                                                • Door
                                                                • Ecliptic
                                                                • Event Log
                                                                • Eyre
                                                                • Ford
                                                                • Galaxy
                                                                • Gall
                                                                • Gate
                                                                • HD Wallet
                                                                • Hoon
                                                                • Invite Tree
                                                                • Iris
                                                                • Jael
                                                                • Jaque
                                                                • Keyfile
                                                                • Landscape
                                                                • Mark
                                                                • Moon
                                                                • Nock
                                                                • Noun
                                                                • OTA Updates
                                                                • Payload
                                                                • pH
                                                                • Pier
                                                                • Pill
                                                                • Planet
                                                                • Proxies
                                                                • Replay
                                                                • Factory Reset
                                                                • Naive rollups
                                                                • Sail/Udon
                                                                • Senate
                                                                • Ship
                                                                • ship.arvo.network
                                                                • Star
                                                                • |sync
                                                                • Trap
                                                                • Upgrade Proposal
                                                                • Vane
                                                                • Vere
                                                                • Voting
                                                                • Wallet-Generator
                                                                Urbit
                                                                • Introduction
                                                                • Development

                                                                  • Getting Started
                                                                  • Environment Setup
                                                                  • Grants Program
                                                                  • Project Repositories
                                                                  • Precepts
                                                                  • System Overview

                                                                    • Arvo
                                                                    • Hoon
                                                                    • Nock
                                                                    • Vere
                                                                    • Azimuth
                                                                    • Cryptography
                                                                    • Arvo

                                                                      • Overview
                                                                      • Ames

                                                                        • Overview
                                                                        • Cryptography
                                                                        • API Reference
                                                                        • Scry Reference
                                                                        • Data Types
                                                                        • Behn

                                                                          • Overview
                                                                          • API Reference
                                                                          • Scry Reference
                                                                          • Examples
                                                                          • Clay

                                                                            • Overview
                                                                            • Architecture
                                                                            • Using Clay
                                                                            • Data Types
                                                                            • Scry Reference
                                                                            • API Reference
                                                                            • Examples
                                                                            • Marks

                                                                              • Overview
                                                                              • Writing Marks
                                                                              • Using Marks
                                                                              • Examples
                                                                            • Dill

                                                                              • Overview
                                                                              • API Reference
                                                                              • Scry Reference
                                                                              • Data Types
                                                                              • Eyre

                                                                                • Overview
                                                                                • External API Reference
                                                                                • Internal API Reference
                                                                                • Scry Reference
                                                                                • Data Types
                                                                                • Guide
                                                                                • Ford

                                                                                  • Overview
                                                                                  • Gall

                                                                                    • Overview
                                                                                    • API Reference
                                                                                    • Data Types
                                                                                    • Iris

                                                                                      • Overview
                                                                                      • API Reference
                                                                                      • Data Types
                                                                                      • Example
                                                                                      • Jael

                                                                                        • Overview
                                                                                        • API Reference
                                                                                        • Scry Reference
                                                                                        • Data Types
                                                                                        • Examples
                                                                                        • Concepts

                                                                                          • Scries
                                                                                          • Subscriptions
                                                                                          • Tutorials

                                                                                            • Move Trace
                                                                                            • Reference

                                                                                              • Cryptography
                                                                                              • Filesystem Hierarchy
                                                                                            • Userspace

                                                                                              • Overview
                                                                                              • HTTP API Guide
                                                                                              • Gall Guide

                                                                                                • Introduction
                                                                                                • 1. Arvo
                                                                                                • 2. The Agent Core
                                                                                                • 3. Imports and Aliases
                                                                                                • 4. Lifecycle
                                                                                                • 5. Cards
                                                                                                • 6. Pokes
                                                                                                • 7. Structures and Marks
                                                                                                • 8. Subscriptions
                                                                                                • 9. Vanes
                                                                                                • 10. Scries
                                                                                                • 11. Failure
                                                                                                • 12. Next Steps
                                                                                                • Appendix: Types
                                                                                                • Full-Stack Walkthrough

                                                                                                  • 1. Introduction
                                                                                                  • 2. Types
                                                                                                  • 3. Agent
                                                                                                  • 4. JSON
                                                                                                  • 5. Marks
                                                                                                  • 6. Eyre
                                                                                                  • 7. React app setup
                                                                                                  • 8. React app logic
                                                                                                  • 9. Desk and glob
                                                                                                  • 10. Summary
                                                                                                  • Graph Store

                                                                                                    • Graph Store Overview
                                                                                                    • Data Structure Overview
                                                                                                    • Validator Walkthrough
                                                                                                    • Sample Application: Library
                                                                                                    • Graph Store - Reference
                                                                                                    • Advanced Info
                                                                                                    • Threads

                                                                                                      • Overview
                                                                                                      • HTTP API
                                                                                                      • Reference
                                                                                                      • Basics

                                                                                                        • Fundamentals
                                                                                                        • Bind
                                                                                                        • Input
                                                                                                        • Output
                                                                                                        • Summary
                                                                                                        • Gall

                                                                                                          • Start Thread
                                                                                                          • Take Result
                                                                                                          • Take Facts
                                                                                                          • Stop Thread
                                                                                                          • Poke Thread
                                                                                                          • Examples

                                                                                                            • Fetch JSON
                                                                                                            • Child Thread
                                                                                                            • Main-loop
                                                                                                            • Poke Agent
                                                                                                            • Scry
                                                                                                            • Take Fact
                                                                                                          • Distribution

                                                                                                            • Overview
                                                                                                            • Guide
                                                                                                            • Docket File
                                                                                                            • Glob
                                                                                                            • Dojo Tools
                                                                                                          • Hoon

                                                                                                            • Overview
                                                                                                            • Hoon School

                                                                                                              • 1.1 Introduction
                                                                                                              • 1.1.1 Walkthrough: List of Numbers
                                                                                                              • 1.2 Nouns
                                                                                                              • 1.3 Hoon Syntax
                                                                                                              • 1.3.1 Walkthrough: Conditionals
                                                                                                              • 1.4 Gates (Hoon Functions)
                                                                                                              • 1.4.1 Walkthrough: Recursion
                                                                                                              • 1.5 Lists
                                                                                                              • 1.5.1 Walkthrough: Fibonacci Sequence
                                                                                                              • 1.6 The Subject and Its Legs
                                                                                                              • 1.6.1 Walkthrough: Ackermann Function
                                                                                                              • 1.7 Arms and Cores
                                                                                                              • 1.7.1 Walkthrough: Caesar Cipher
                                                                                                              • 1.8 Doors
                                                                                                              • 1.8.1 Bank Account
                                                                                                              • 1.9 Generators
                                                                                                              • 2.1 Atoms, Auras, and Simple Cell Types
                                                                                                              • 2.2 Type Checking and Type Inference
                                                                                                              • 2.3 Structures and Complex Types
                                                                                                              • 2.3.1 Walkthrough: Libraries
                                                                                                              • 2.3.2 Molds
                                                                                                              • 2.4 Standard Library: Trees, Sets, and Maps
                                                                                                              • 2.5 Type Polymorphism
                                                                                                              • 2.5.1 Walkthrough: Iron Polymorphism and Wet Polymorphism
                                                                                                              • 2.5.2 Walkthrough: Lead Polymorphism
                                                                                                              • 2.6 Behn
                                                                                                              • 2.7 Gall
                                                                                                              • 2.7.1 Gall Walkthrough: Egg Timer
                                                                                                              • Guides

                                                                                                                • CLI apps
                                                                                                                • Parsing
                                                                                                                • JSON
                                                                                                                • Strings
                                                                                                                • Sail (HTML)
                                                                                                                • Writing Aqua Tests
                                                                                                                • Reference

                                                                                                                  • Cheat Sheet
                                                                                                                  • Irregular forms
                                                                                                                  • Hoon Errors
                                                                                                                  • Hoon Style Guide
                                                                                                                  • Basic Types
                                                                                                                  • Advanced Types
                                                                                                                  • Auras
                                                                                                                  • Runes

                                                                                                                    • Atoms and strings
                                                                                                                    • Nock . ('dot')
                                                                                                                    • Wild ! ('zap')
                                                                                                                    • Change Subject = ('tis')
                                                                                                                    • Conditionals ? ('wut')
                                                                                                                    • Cores | ('bar')
                                                                                                                    • Arms + ('lus')
                                                                                                                    • Cells : ('col')
                                                                                                                    • Calls % ('cen')
                                                                                                                    • Casts ^ ('ket')
                                                                                                                    • Structures $ ('buc')
                                                                                                                    • Make ; ('mic')
                                                                                                                    • Hints ~ ('sig')
                                                                                                                    • Imports / ('fas')
                                                                                                                    • Terminators -- and ==
                                                                                                                    • Limbs and wings

                                                                                                                      • Limbs
                                                                                                                      • Wings
                                                                                                                      • Standard library

                                                                                                                        • Table of Contents
                                                                                                                        • 1a: Basic Arithmetic
                                                                                                                        • 1b: Tree Addressing
                                                                                                                        • 1c: Molds and Mold-Builders
                                                                                                                        • 2a: Unit Logic
                                                                                                                        • 2b: List Logic
                                                                                                                        • 2c: Bit Arithmetic
                                                                                                                        • 2d: Bit Logic
                                                                                                                        • 2e: Insecure Hashing
                                                                                                                        • 2f: Noun Ordering
                                                                                                                        • 2g: Unsigned Powers
                                                                                                                        • 2h: Set Logic
                                                                                                                        • 2i: Map Logic
                                                                                                                        • 2j: Jar and Jug Logic
                                                                                                                        • 2k: Queue Logic
                                                                                                                        • 2l: Container from Container
                                                                                                                        • 2m: Container from Noun
                                                                                                                        • 2n: Functional Hacks
                                                                                                                        • 2o: Normalizing Containers
                                                                                                                        • 2p: Serialization
                                                                                                                        • 2q: Molds and Mold-Builders
                                                                                                                        • 3a: Modular and Signed Ints
                                                                                                                        • 3b: Floating Point
                                                                                                                        • 3c: Urbit Time
                                                                                                                        • 3d: SHA Hash Family
                                                                                                                        • 3e: AES encryption (Removed)
                                                                                                                        • 3f: Scrambling
                                                                                                                        • 3g: Molds and Mold-Builders
                                                                                                                        • 4a: Exotic Bases
                                                                                                                        • 4b: Text Processing
                                                                                                                        • 4c: Tank Printer
                                                                                                                        • 4d: Parsing (Tracing)
                                                                                                                        • 4e: Parsing (Combinators)
                                                                                                                        • 4f: Parsing (Rule-Builders)
                                                                                                                        • 4g: Parsing (Outside Caller)
                                                                                                                        • 4h: Parsing (ASCII Glyphs)
                                                                                                                        • 4i: Parsing (Useful Idioms)
                                                                                                                        • 4j: Parsing (Bases and Base Digits)
                                                                                                                        • 4k: Atom Printing
                                                                                                                        • 4l: Atom Parsing
                                                                                                                        • 4m: Formatting Functions
                                                                                                                        • 4n: Virtualization
                                                                                                                        • 4o: Molds
                                                                                                                        • 5a: Compiler Utilities
                                                                                                                        • 5b: Macro Expansion
                                                                                                                        • 5c: Compiler Backend & Prettyprinter
                                                                                                                        • 5d: Parser
                                                                                                                        • 5e: Molds and mold builders
                                                                                                                        • 5f: Profiling support
                                                                                                                        • Zuse

                                                                                                                          • Table of Contents
                                                                                                                          • 2d(1-5): To JSON, Wains
                                                                                                                          • 2d(6): From JSON
                                                                                                                          • 2d(7): From JSON (unit)
                                                                                                                          • 2e(2-3): Print & Parse JSON
                                                                                                                      • Nock

                                                                                                                        • Nock Definition
                                                                                                                        • Explanation
                                                                                                                        • Example
                                                                                                                        • Implementations
                                                                                                                        • Vere

                                                                                                                          • C Runtime System
                                                                                                                          • Land of Nouns
                                                                                                                          • API overview by prefix
                                                                                                                          • C in Urbit
                                                                                                                          • Writing Jets
                                                                                                                          • Cryptography
                                                                                                                          • Azimuth

                                                                                                                            • Overview
                                                                                                                            • Urbit HD Wallet
                                                                                                                            • Azimuth Data Flow
                                                                                                                            • Azimuth.eth
                                                                                                                            • Ecliptic.eth
                                                                                                                            • Advanced Azimuth Tools
                                                                                                                            • Life and Rift
                                                                                                                            • Layer 2

                                                                                                                              • Layer 2 Overview
                                                                                                                              • Layer 2 Actions
                                                                                                                              • Transaction Format
                                                                                                                              • Rollers
                                                                                                                              • Roller HTTP RPC-API
                                                                                                                              • Custom Roller Tutorial
                                                                                                                            • Glossary

                                                                                                                              • Ames
                                                                                                                              • Aqua
                                                                                                                              • Arm
                                                                                                                              • Arvo
                                                                                                                              • Atom
                                                                                                                              • Azimuth
                                                                                                                              • Battery
                                                                                                                              • Behn
                                                                                                                              • Bridge
                                                                                                                              • Censures
                                                                                                                              • Ceremony
                                                                                                                              • chat
                                                                                                                              • Claims
                                                                                                                              • Clay
                                                                                                                              • Comet
                                                                                                                              • Core
                                                                                                                              • Delegated Sending
                                                                                                                              • Desk
                                                                                                                              • Dill
                                                                                                                              • Document Proposal
                                                                                                                              • Dojo
                                                                                                                              • Door
                                                                                                                              • Ecliptic
                                                                                                                              • Event Log
                                                                                                                              • Eyre
                                                                                                                              • Ford
                                                                                                                              • Galaxy
                                                                                                                              • Gall
                                                                                                                              • Gate
                                                                                                                              • HD Wallet
                                                                                                                              • Hoon
                                                                                                                              • Invite Tree
                                                                                                                              • Iris
                                                                                                                              • Jael
                                                                                                                              • Jaque
                                                                                                                              • Keyfile
                                                                                                                              • Landscape
                                                                                                                              • Mark
                                                                                                                              • Moon
                                                                                                                              • Nock
                                                                                                                              • Noun
                                                                                                                              • OTA Updates
                                                                                                                              • Payload
                                                                                                                              • pH
                                                                                                                              • Pier
                                                                                                                              • Pill
                                                                                                                              • Planet
                                                                                                                              • Proxies
                                                                                                                              • Replay
                                                                                                                              • Factory Reset
                                                                                                                              • Naive rollups
                                                                                                                              • Sail/Udon
                                                                                                                              • Senate
                                                                                                                              • Ship
                                                                                                                              • ship.arvo.network
                                                                                                                              • Star
                                                                                                                              • |sync
                                                                                                                              • Trap
                                                                                                                              • Upgrade Proposal
                                                                                                                              • Vane
                                                                                                                              • Vere
                                                                                                                              • Voting
                                                                                                                              • Wallet-Generator
                                                                                                                              Urbit/Documentation/Arvo/Ames

                                                                                                                              Data Types

                                                                                                                              Here are the data types used by Ames, as defined in lull.hoon.

                                                                                                                              $address

                                                                                                                              +$  address  @uxaddress
                                                                                                                              

                                                                                                                              Opaque atomic transport address to or from Unix. For Ames over UDP, it will encode the IP address and port.

                                                                                                                              $verb

                                                                                                                              +$  verb  ?(%snd %rcv %odd %msg %ges %for %rot)
                                                                                                                              

                                                                                                                              Verbosity flag for Ames. Use with |ames-verb %flag1 %flag2 ... and turn off with |ames-verb.

                                                                                                                              • %snd - Sending packets.
                                                                                                                              • %rcv - Receiving packets.
                                                                                                                              • %odd - Unusual events.
                                                                                                                              • %msg - Message-level events.
                                                                                                                              • %ges - Congestion control.
                                                                                                                              • %for - Packet forwarding.
                                                                                                                              • %rot - Routing attempts.

                                                                                                                              $blob

                                                                                                                              +$  blob  @uxblob
                                                                                                                              

                                                                                                                              Raw atom to or from Unix, representing a packet.

                                                                                                                              $error

                                                                                                                              +$  error  [tag=@tas =tang]
                                                                                                                              

                                                                                                                              Tagged diagnostic trace.

                                                                                                                              $lane

                                                                                                                              +$  lane  (each @pC address)
                                                                                                                              

                                                                                                                              Ship transport address; either opaque $address or galaxy. The runtime knows how to look up galaxies, so we don't need to know their transport addresses.

                                                                                                                              $plea

                                                                                                                              +$  plea  [vane=@tas =path payload=*]
                                                                                                                              

                                                                                                                              Application-level message, as a %pass.

                                                                                                                              • vane - Destination vane on remote ship.
                                                                                                                              • path - Internal route on the receiving ship.
                                                                                                                              • payload - Semantic message contents.

                                                                                                                              $bone

                                                                                                                              +$  bone  @udbone
                                                                                                                              

                                                                                                                              Message flow index - mapped to ducts in the $ossuary.

                                                                                                                              The first bone is 0. They increment by 4, since each flow includes a bit for each message determining forward vs. backward and a second bit for whether the message is on the normal flow or the associated diagnostic flow (for naxplanations).

                                                                                                                              The least significant bit of a bone is:

                                                                                                                              • 1 if "forward", i.e. we send %pleas on this flow.
                                                                                                                              • 0 if "backward", i.e. we receive %pleas on this flow.

                                                                                                                              The second-least significant bit is 1 if the bone is a naxplanation bone, and 0 otherwise. Only naxplanation messages can be sent on a naxplanation bone, as %boons.

                                                                                                                              $fragment

                                                                                                                              +$  fragment  @uwfragment
                                                                                                                              

                                                                                                                              A message fragment.

                                                                                                                              $fragment-num

                                                                                                                              +$  fragment-num  @udfragmentnum
                                                                                                                              

                                                                                                                              Message fragment count.

                                                                                                                              $message-blob

                                                                                                                              +$  message-blob  @udmessageblob
                                                                                                                              

                                                                                                                              Unfragmented message blob.

                                                                                                                              $message-num

                                                                                                                              +$  message-num  @udmessagenum
                                                                                                                              

                                                                                                                              Message count.

                                                                                                                              $public-key

                                                                                                                              +$  public-key  @uwpublickey
                                                                                                                              

                                                                                                                              A peer's public key.

                                                                                                                              $symmetric-key

                                                                                                                              +$  symmetric-key  @uwsymmetrickey
                                                                                                                              

                                                                                                                              A symmetric key for encrypting messages to a peer. This is produced by performing an elliptic curve Diffie-Hellman using our private key and the peer's public key.

                                                                                                                              $ack

                                                                                                                              +$  ack
                                                                                                                                $%  [%ok ~]
                                                                                                                                    [%nack ~]
                                                                                                                                    [%naxplanation =error]
                                                                                                                                ==
                                                                                                                              

                                                                                                                              A message acknowledgement.

                                                                                                                              • %ok - Positive acknowledgement.
                                                                                                                              • %nack - Negative acknowledgement.
                                                                                                                              • %naxplanation - Nack trace.

                                                                                                                              $ship-state

                                                                                                                              +$  ship-state
                                                                                                                                $%  [%alien alien-agenda]
                                                                                                                                    [%known peer-state]
                                                                                                                                ==
                                                                                                                              

                                                                                                                              All Ames knows about a peer.

                                                                                                                              • %alien - No PKI data, so enqueue actions to perform once we learn it.
                                                                                                                              • %known - We know their life and public keys, so we have a channel.

                                                                                                                              $alien-agenda

                                                                                                                              +$  alien-agenda
                                                                                                                                $:  messages=(list [=duct =plea])
                                                                                                                                    packets=(set =blob)
                                                                                                                                    heeds=(set duct)
                                                                                                                                ==
                                                                                                                              

                                                                                                                              What to do when Ames learns a peer's life and keys.

                                                                                                                              • messages - $pleas local vanes have asked Ames to send.
                                                                                                                              • packets - Packets we've tried to send.
                                                                                                                              • heeds - Local tracking requests; passed through into $peer-state.

                                                                                                                              $peer-state

                                                                                                                              +$  peer-state
                                                                                                                                $:  $:  =symmetric-key
                                                                                                                                        =life
                                                                                                                                        =public-key
                                                                                                                                        sponsor=ship
                                                                                                                                    ==
                                                                                                                                    route=(unit [direct=? =lane])
                                                                                                                                    =qos
                                                                                                                                    =ossuary
                                                                                                                                    snd=(map bone message-pump-state)
                                                                                                                                    rcv=(map bone message-sink-state)
                                                                                                                                    nax=(set [=bone =message-num])
                                                                                                                                    heeds=(set duct)
                                                                                                                                ==
                                                                                                                              

                                                                                                                              State for a peer with known life and keys.

                                                                                                                              • route - Transport-layer destination for packets to the peer.
                                                                                                                              • qos - Quality of service; connection status to the peer.
                                                                                                                              • ossuary - $bone to duct mapper.
                                                                                                                              • snd - Per-bone message pumps to send messages as fragments.
                                                                                                                              • rcv - Per-bone message sinks to assemble messages from fragments.
                                                                                                                              • nax - Unprocessed nacks (negative acknowledgments).
                                                                                                                              • heeds - Listeners for %clog notifications.

                                                                                                                              $qos

                                                                                                                              +$  qos
                                                                                                                                $~  [%unborn *@da]
                                                                                                                                [?(%live %dead %unborn) last-contact=@da]
                                                                                                                              

                                                                                                                              Quality of service; how is the connection to a peer doing?

                                                                                                                              • %live - Peer is ok.
                                                                                                                              • %dead - Peer is not responding.
                                                                                                                              • %unborn - Peer is sunken.
                                                                                                                              • last-contact - Last time Ames heard from the peer, or if %unborn, the time when we first started tracking then.

                                                                                                                              $ossuary

                                                                                                                              +$  ossuary
                                                                                                                                $:  =next=bone
                                                                                                                                    by-duct=(map duct bone)
                                                                                                                                    by-bone=(map bone duct)
                                                                                                                                ==
                                                                                                                              

                                                                                                                              $bone to duct mapping, next is the next bone to map to a duct.

                                                                                                                              $message-pump-state

                                                                                                                              +$  message-pump-state
                                                                                                                                $:  current=_`message-num`1
                                                                                                                                    next=_`message-num`1
                                                                                                                                    unsent-messages=(qeu message-blob)
                                                                                                                                    unsent-fragments=(list static-fragment)
                                                                                                                                    queued-message-acks=(map message-num ack)
                                                                                                                                    =packet-pump-state
                                                                                                                                ==
                                                                                                                              

                                                                                                                              Persistent state for a |message-pump.

                                                                                                                              • current- Sequence number of earliest message sent or being sent.
                                                                                                                              • next - Sequence number of next message to send.
                                                                                                                              • unsent-messages - Messages to be sent after current message.
                                                                                                                              • unsent-fragments - Fragments of current message waiting for sending.
                                                                                                                              • queued-message-acks - Future message acks to be applied after current.
                                                                                                                              • packet-pump-state - State of corresponding |packet-pump.

                                                                                                                              $static-fragment

                                                                                                                              +$  static-fragment
                                                                                                                                $:  =message-num
                                                                                                                                    num-fragments=fragment-num
                                                                                                                                    =fragment-num
                                                                                                                                    =fragment
                                                                                                                                ==
                                                                                                                              

                                                                                                                              A packet; a fragment of a message and metadata.

                                                                                                                              $packet-pump-state

                                                                                                                              +$  packet-pump-state
                                                                                                                                $:  next-wake=(unit @da)
                                                                                                                                    live=(tree [live-packet-key live-packet-val])
                                                                                                                                    metrics=pump-metrics
                                                                                                                                ==
                                                                                                                              

                                                                                                                              Persistent state for a |packet-pump.

                                                                                                                              • next-wake - Last timer we've set, or null.
                                                                                                                              • live - Packets in flight; sent but not yet acked.
                                                                                                                              • metrics - Congestion control information.

                                                                                                                              $pump-metrics

                                                                                                                              +$  pump-metrics
                                                                                                                                $:  rto=_~s1
                                                                                                                                    rtt=_~s1
                                                                                                                                    rttvar=_~s1
                                                                                                                                    ssthresh=_10.000
                                                                                                                                    cwnd=_1
                                                                                                                                    num-live=@ud
                                                                                                                                    counter=@ud
                                                                                                                                ==
                                                                                                                              

                                                                                                                              Congestion control state for a |packet-pump.

                                                                                                                              • rto - Retransmission timeout.
                                                                                                                              • rtt - Roundtrip time estimate, low-passed using EWMA.
                                                                                                                              • rttvar - Mean deviation of rtt, also low-passed with EWMA.
                                                                                                                              • num-live - How many packets sent, awaiting ack.
                                                                                                                              • ssthresh - Slow-start threshold.
                                                                                                                              • cwnd - Congestion window; max unacked packets.

                                                                                                                              $live-packet

                                                                                                                              +$  live-packet
                                                                                                                                $:  key=live-packet-key
                                                                                                                                    val=live-packet-val
                                                                                                                                ==
                                                                                                                              

                                                                                                                              A packet in flight, as tracked in the $packet-pump-state.

                                                                                                                              $live-packet-key

                                                                                                                              +$  live-packet-key
                                                                                                                                $:  =message-num
                                                                                                                                    =fragment-num
                                                                                                                                ==
                                                                                                                              

                                                                                                                              Identifier of a packet in flight.

                                                                                                                              $live-packet-val

                                                                                                                              +$  live-packet-val
                                                                                                                                $:  packet-state
                                                                                                                                    num-fragments=fragment-num
                                                                                                                                    =fragment
                                                                                                                                ==
                                                                                                                              

                                                                                                                              Content and metadata about a packet in flight.

                                                                                                                              $packet-state

                                                                                                                              +$  packet-state
                                                                                                                                $:  last-sent=@da
                                                                                                                                    retries=@ud
                                                                                                                                    skips=@ud
                                                                                                                                ==
                                                                                                                              

                                                                                                                              Sending statistics about a packet in flight.

                                                                                                                              $message-sink-state

                                                                                                                              +$  message-sink-state
                                                                                                                                $:  last-acked=message-num
                                                                                                                                    last-heard=message-num
                                                                                                                                    pending-vane-ack=(qeu [=message-num message=*])
                                                                                                                                    live-messages=(map message-num partial-rcv-message)
                                                                                                                                    nax=(set message-num)
                                                                                                                                ==
                                                                                                                              

                                                                                                                              State of a |message-sink to assemble received messages.

                                                                                                                              • last-acked - Highest $message-num Ames has fully acknowledged.
                                                                                                                              • last-heard - Highest message-num Ames has heard all fragments for.
                                                                                                                              • pending-vane-ack - Heard but not processed by local vane.
                                                                                                                              • live-messages - Partially received messages.

                                                                                                                              $partial-rcv-message

                                                                                                                              +$  partial-rcv-message
                                                                                                                                $:  num-fragments=fragment-num
                                                                                                                                    num-received=fragment-num
                                                                                                                                    fragments=(map fragment-num fragment)
                                                                                                                                ==
                                                                                                                              

                                                                                                                              A message for which Ames has received some fragments.

                                                                                                                              • num-fragments - Total number of fragments in the message.
                                                                                                                              • num-received - How many fragments Ames has received so far.
                                                                                                                              • fragments - The received fragments themselves.

                                                                                                                              <-

                                                                                                                              Scry Reference

                                                                                                                              Edit this page on GitHub