The Nyx Book
Learn Nyx from zero to production. No programming experience required.
Part 1: Learn
- What is programming?
- Variables and types
- Operations and expressions
- Control flow
- Functions
- Arrays
- Strings
- Maps
- Structs
- Your first project
Part 2: Build
- Imports and modules
- Files
- Closures and first-class functions
- Enums and pattern matching
- Traits and impl blocks
- Generics
- Networking — TCP servers
- Concurrency — threads and channels
- Your second project — A web server
Part 3: Master
- LLVM and performance
- FFI — Calling C code
- Unsafe and raw pointers
- Async and event loop
- Systems — inline assembly, volatile, atomic
- Case study — How nyx-kv was built
Part 4: Production
- The Package Manager
- Building web APIs with nyx-serve
- Real-time with Pub/Sub
- Message queues with nyx-queue
- HTTP/2 — Binary protocols
- Building a database — nyx-db