The Nyx Book

Learn Nyx from zero to production. No programming experience required.

Part 1: Learn

  1. What is programming?
  2. Variables and types
  3. Operations and expressions
  4. Control flow
  5. Functions
  6. Arrays
  7. Strings
  8. Maps
  9. Structs
  10. Your first project

Part 2: Build

  1. Imports and modules
  2. Files
  3. Closures and first-class functions
  4. Enums and pattern matching
  5. Traits and impl blocks
  6. Generics
  7. Networking — TCP servers
  8. Concurrency — threads and channels
  9. Your second project — A web server

Part 3: Master

  1. LLVM and performance
  2. FFI — Calling C code
  3. Unsafe and raw pointers
  4. Async and event loop
  5. Systems — inline assembly, volatile, atomic
  6. Case study — How nyx-kv was built

Part 4: Production

  1. The Package Manager
  2. Building web APIs with nyx-serve
  3. Real-time with Pub/Sub
  4. Message queues with nyx-queue
  5. HTTP/2 — Binary protocols
  6. Building a database — nyx-db

Appendices