Learn Zig over Rust and C++

Learn Zig over Rust and C++

Annie Cal

60,70 €
IVA incluido
Disponible
Editorial:
GitforGits
Año de edición:
2026
Materia
Programación informática/desarrollo de software
ISBN:
9789349174115
60,70 €
IVA incluido
Disponible

Selecciona una librería:

  • Librería Samer Atenea
  • Kálamo Books
  • Librería Elías (Asturias)
  • Librería Kolima (Madrid)
  • Librería Proteo (Málaga)

There’s a question that’s always been asked by systems programmers working in C++ and those working in Rust. Is there a way to control systems that doesn’t mean choosing between power and predictability? Zig represents that path.The idea is pretty clear as really there’s no such thing as hidden behaviour. Everything’s totally clear about each allocation. Every error is given a name and can be found in the type system. So, every piece of control flow is going to appear at the call site. The programmer always knows what the program does, because the language won’t act without instruction. This book teaches Zig through a project-based approach centred on a single growing systems toolkit.This book gives hands-on experience with Zig’s allocator model, generic programming through comptime, typed error handling, filesystem and process management, concurrent threads and atomic state, and HTTP server construction, with each concept built on the one before it.For C++ developers, Zig gets rid of undefined behaviour and preprocessor complexity without sacrificing machine-level access. For Rust developers, it’s got a simpler ownership model, no borrow checker friction, and a C interoperability path that doesn’t need a binding generator. You’ll see that both communities have familiar systems programming patterns expressed in Zig that carries none of their respective historical weight.Key FeaturesWrite memory-safe systems code without garbage collector or borrow checker overhead.Control heap allocation using Zig’s transparent allocator interface.Build compile-time generic data structures with zero runtime overhead.Handle errors through typed error sets.Interoperate with C libraries directly without binding generators or wrapper layers.Cross-compile production binaries with a single build command.Coordinate concurrent threads safely using Mutex, atomic values, and condition variables.Model data with exhaustive enums and tagged unions.Inspect and manipulate raw memory through typed slices, packed structs, and pointers.Deploy release binaries using Zig’s 3 configurable build modes.Table of ContentGetting Started with ZigExploring Zig CodesAllocation, Safety, and Data StructuresGenerics, Reflection, and ToolchainFiles, Processes, and NetworksThreads, Shared State, and CoordinationOptimisation and DeploymentAdvanced Patterns

Artículos relacionados

  • SPARK 2014 Reference Manual
    AdaCore / Altran UK Ltd
    SPARK 2014 is a programming language and a set of verification tools designed to meet the needs of high-assurance software development. SPARK 2014 is based on Ada 2012, both subsetting the language to remove features that defy verification, but also extending the system of contracts and aspects to support modular, formal verification.This manual is available online for free at ...
    Disponible

    19,91 €

  • Software and Intelligent Sciences
    Yingxu Wang
    The junction of software development and engineering combined with the study of intelligence has created a bustling intersection of theory, design, engineering, and conceptual thought. Software and Intelligent Sciences: New Transdisciplinary Findings sits at a crossroads and informs advanced researchers, students, and practitioners on the developments in computer science, theor...
  • Power System Planning Technologies and Applications
    Fawwaz Elkarmi / Nazih Abu Shikhah / Nazih Abu-Shikhah
    Planning is an important function of the management of any business, providing knowledge of future prospects and enabling prudent and appropriate decision-making. Planning is especially critical for power systems, since electricity is a fundamental part of modern societies and many conventional electrical energy resources currently in use are limited. Power System Planning Tech...
  • Concept Parsing Algorithms (CPA) for Textual Analysis and Discovery
    Masha Etkind / Uri Shafrir
    Text analysis tools aid in extracting meaning from digital content. As digital text becomes more and more complex, new techniques are needed to understand conceptual structure. Concept Parsing Algorithms (CPA) for Textual Analysis and Discovery: Emerging Research and Opportunities provides an innovative perspective on the application of algorithmic tools to study unstructured d...
  • Model-Based Design for Effective Control System Development
    Wei Wu
    Control systems are an integral aspect of modern society and exist across numerous domains and applications. As technology advances more and more, the complexity of such systems continues to increase exponentially. Model-Based Design for Effective Control System Development is a critical source of scholarly information on model-centric approaches and implementations for control...
  • Verification, Validation and Testing in Software Engineering
    ...