Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning Zig

You're reading from   Learning Zig A reimagined introduction to low-level programming with Zig

Arrow left icon
Product type Paperback
Published in Nov 2025
Publisher Packt
ISBN-13 9781835085127
Length 502 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Alex Rios Alex Rios
Author Profile Icon Alex Rios
Alex Rios
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Zig Fundamentals
2. Safety First FREE CHAPTER 3. Setting Up Your Playground 4. Your First Zig Program 5. Control Flow, Loops, and Other Forms of Digital Domination 6. Functions for the Efficient Programmer 7. Error Handling 8. Testing Your Zig Code 9. Data, Memory, and Tools
10. Organizing Data 11. Memory Management 12. The Standard Library 13. Packing 14. Advanced Zig and Real-World Application
15. Sophisticated Topics 16. Real-World Zig 17. Unlock Your Book’s Exclusive Benefits 18. Other Books You May Enjoy
19. Index

Index

Symbols

@alignCast

using, with @ptrCast 226

@cImport 381-383

[*c]T 388

features 388

@import 334, 335

@setEvalBranchQuota() 371, 372

@Type 361, 362

@typeInfo 361

@typeOf 361

A

advanced error recovery 280

allocators 229, 231

interface 230

testing 235

anyopaque

versus void 256

anytype keyword 365, 366

pitfalls 366-370

append 267

application binary interface (ABI) 380

arena allocator 248

benefits 251

drawbacks 251

features 249, 250

ArrayList 266, 269

append 267

init 266

ArrayListUnmanaged 267

arrays 186, 187

compile-time array 188

initializing 189

iterating 187

modifying 188

multidimensional arrays 189

sentinel-terminated array 190

size 187

ASCII control characters 62

atomic actions, build pipeline 318

DAG 318

declarative syntax 319

taxonomy of steps 318

atomic logger 278

atomics 375, 377

AutoHashMap 270...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Zig
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon