Systems Programming with Zig: Build Real Tools with No Hidden Cost
暫譯: 使用 Zig 進行系統程式設計:構建無隱藏成本的真實工具
Tsoukalos, Mihalis
- 出版商: Packt Publishing
- 出版日期: 2026-06-26
- 售價: $1,800
- 貴賓價: 9.5 折 $1,710
- 語言: 英文
- 頁數: 542
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1807426432
- ISBN-13: 9781807426439
-
相關分類:
Rust 語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Build efficient systems software with the Zig programming language by creating UNIX tools, network services, asynchronous applications, and high-performance servers.
Key Features:
- Build real-world systems software and UNIX programming tools through practical Zig projects
- Develop network programming skills through TCP, UDP, HTTP services, concurrent applications, and CLI tools
- Master memory management, I/O, and systems-level design with the Zig programming language
Book Description:
Build reliable systems software with Zig through a project-driven approach focused on practical engineering challenges. Guided by UNIX systems engineer & bestselling author Mihalis Tsoukalos, you will learn modern systems programming techniques while creating production-ready applications, UNIX tools, & network services.
This book takes you from essential UNIX tooling and build infrastructure to advanced topics such as direct memory access, binary formats, filesystem monitoring, networking, concurrency, asynchronous I/O, & database integration. Through hands-on projects, you will create command-line utilities, TCP and UDP services, HTTP applications, file indexing tools, cache servers, & a domain-specific language interpreter that combines memory management, comptime metaprogramming, parsing, evaluation, & error handling.
Each chapter demonstrates how Zig features solve practical systems programming problems. You will work with memory management, process control, synchronization primitives, event-driven architectures, SQLite integration, protocol design, & performance-focused data structures while learning the reasoning behind key engineering decisions.
By the end of this book, you will be able to build efficient and maintainable systems software in Zig & confidently apply the language to production projects.
What You Will Learn:
- Build production-ready UNIX command-line tools with Zig
- Develop TCP, UDP, and HTTP network services and applications
- Apply systems programming techniques to memory, filesystems, and process management
- Manage memory and binary data safely and efficiently
- Implement multithreading, synchronization, and concurrent systems
- Create asynchronous I/O and event-driven network applications
- Integrate SQLite into real-world Zig applications
- Design and build a domain-specific language using parsing and comptime techniques
Who this book is for:
Software developers, systems programmers, UNIX systems engineers, and backend engineers who already understand Zig fundamentals and want to build production-ready systems software. Familiarity with programming concepts and experience using languages such as C, C++, Rust, Go, or Python will help you get the most from this book.
Table of Contents
- Building Essential UNIX Tools
- Systems Infrastructure: Builds, Testing, and Distribution
- Direct Memory Access and Binary Formats
- Processing Streams, Buffers, and Data Encoding
- Navigating Directories and Filesystem Events
- Programming the Network Stack
- Managing Threads, Processes, and Signals
- Orchestrating Concurrency and Synchronization
- Implementing Asynchronous I/O
- Building a High-Performance In-Memory Cache Server
- Persisting Structured Data with SQLite3
- Developing a Domain-Specific Language
商品描述(中文翻譯)
建構高效的系統軟體,使用 Zig 程式語言創建 UNIX 工具、網路服務、非同步應用程式和高效能伺服器。
主要特點:
- 通過實用的 Zig 專案建構真實世界的系統軟體和 UNIX 程式設計工具
- 通過 TCP、UDP、HTTP 服務、並發應用程式和 CLI 工具發展網路程式設計技能
- 精通記憶體管理、I/O 和系統層級設計,使用 Zig 程式語言
書籍描述:
通過專案驅動的方法,專注於實際的工程挑戰,使用 Zig 建構可靠的系統軟體。在 UNIX 系統工程師及暢銷書作者 Mihalis Tsoukalos 的指導下,您將在創建生產就緒的應用程式、UNIX 工具和網路服務的同時學習現代系統程式設計技術。
本書將帶您從基本的 UNIX 工具和建構基礎設施,深入到直接記憶體存取、二進位格式、檔案系統監控、網路、並發、非同步 I/O 和資料庫整合等進階主題。通過實作專案,您將創建命令列工具、TCP 和 UDP 服務、HTTP 應用程式、檔案索引工具、快取伺服器,以及一個結合記憶體管理、編譯時元程式設計、解析、評估和錯誤處理的領域特定語言解譯器。
每一章都展示了 Zig 特性如何解決實際的系統程式設計問題。您將學習記憶體管理、進程控制、同步原語、事件驅動架構、SQLite 整合、協議設計和以性能為重點的資料結構,同時了解關鍵工程決策背後的推理。
在本書結束時,您將能夠使用 Zig 建構高效且可維護的系統軟體,並自信地將該語言應用於生產專案。
您將學到的內容:
- 使用 Zig 建構生產就緒的 UNIX 命令列工具
- 開發 TCP、UDP 和 HTTP 網路服務及應用程式
- 將系統程式設計技術應用於記憶體、檔案系統和進程管理
- 安全且高效地管理記憶體和二進位資料
- 實作多執行緒、同步和並發系統
- 創建非同步 I/O 和事件驅動的網路應用程式
- 將 SQLite 整合到實際的 Zig 應用程式中
- 使用解析和編譯時技術設計和建構領域特定語言
本書適合對象:
軟體開發人員、系統程式設計師、UNIX 系統工程師和後端工程師,這些人已經了解 Zig 的基本概念並希望建構生產就緒的系統軟體。熟悉程式設計概念和使用 C、C++、Rust、Go 或 Python 等語言的經驗將幫助您從本書中獲益良多。
目錄:
- 建構基本的 UNIX 工具
- 系統基礎設施:建構、測試和分發
- 直接記憶體存取和二進位格式
- 處理串流、緩衝區和資料編碼
- 瀏覽目錄和檔案系統事件
- 程式設計網路堆疊
- 管理執行緒、進程和信號
- 協調並發和同步
- 實作非同步 I/O
- 建構高效能的記憶體快取伺服器
- 使用 SQLite3 持久化結構化資料
- 開發領域特定語言