Ce cours n'est pas disponible en Français (France)

Nous sommes actuellement en train de le traduire dans plus de langues.
Pragmatic AI Labs

Zig From Zero

Noah Gift

Instructeur : Noah Gift

Inclus avec Coursera Plus

Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Débutant

Expérience recommandée

5 heures à compléter
Planning flexible
Apprenez à votre propre rythme
Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Débutant

Expérience recommandée

5 heures à compléter
Planning flexible
Apprenez à votre propre rythme

Ce que vous apprendrez

  • Read and write Zig — including the four standard-library allocators (GPA, Arena, FixedBuffer, page_allocator) — and map each idiom back onto Rust

  • Build a tiny statically-linked Zig binary and ship it inside a multi-stage Dockerfile that produces a kilobyte-sized container image

  • Make the language choice on a real team — pick Zig for footprint, fast cold start, and C interop; stay with Rust for long-running services

Compétences que vous acquerrez

  • Catégorie : Interoperability
  • Catégorie : Cross Platform Development
  • Catégorie : Memory Management
  • Catégorie : Containerization
  • Catégorie : C and C++
  • Catégorie : Other Programming Languages
  • Catégorie : Embedded Systems
  • Catégorie : Application Deployment
  • Catégorie : Data Engineering
  • Catégorie : Performance Tuning
  • Catégorie : Software Engineering

Outils que vous découvrirez

  • Catégorie : Command-Line Interface
  • Catégorie : Rust (Programming Language)
  • Catégorie : Go (Programming Language)
  • Catégorie : Docker (Software)
  • Catégorie : Web Servers

Détails à connaître

Certificat partageable

Ajouter à votre profil LinkedIn

Récemment mis à jour !

avril 2026

Évaluations

3 devoirs

Enseigné en Anglais

Découvrez comment les employés des entreprises prestigieuses maîtrisent des compétences recherchées

 logos de Petrobras, TATA, Danone, Capgemini, P&G et L'Oreal

Il y a 7 modules dans ce cours

The four-card framing — memory, errors, generics, cleanup — and the four companion essays that walk each card against the Rust idiom it replaces. Allocator parameters travel through every function signature instead of lifetime annotations, !T plus try replaces Result plus the question-mark operator, comptime T type replaces trait bounds plus derive plus macro_rules, and defer plus errdefer replaces impl Drop with finer-grained lexically visible cleanup.

Inclus

1 vidéo4 lectures1 devoir

Install Zig 0.13, build a hello-world with zig build-exe, read the four release modes — Debug, ReleaseSafe, ReleaseFast, ReleaseSmall — against the same source file, and cross-compile to a Linux musl target with one -target flag. The week's payoff is the moment a Linux binary falls out of a macOS host with no extra toolchain — the same primitive that drives every later Lambda and edge-runtime deployment.

Inclus

1 vidéo3 lectures

The optimization matrix on a 4096-by-4096 matrix multiply — Zig versus Rust versus Go on the same workload — measuring binary size, cold-start, and steady-state throughput across all four release modes. The week teaches the measurement loop that turns "is this faster?" into "by how much, on which dimension, against which baseline?" — the same loop that drives the Lambda and edge decisions in later weeks.

Inclus

1 vidéo2 lectures

Build the marcopolo command-line tool from std.process.argsAlloc with a GeneralPurposeAllocator and std.testing.allocator so a leak fails the test suite, then walk all four standard-library allocators side by side — GPA for application code with debug-mode leak detection, ArenaAllocator for parse-and-discard scopes that free everything in a single deinit, FixedBufferAllocator for stack-only buffers with no heap, and page_allocator for direct mmap-backed allocations.

Inclus

2 vidéos4 lectures1 devoir

A 30-line HTTP server using std.net plus std.http, then the multi-stage Dockerfile that lands the final image at single-digit megabytes against a scratch base, then the use-case map for AWS Lambda, edge runtimes, and embedded targets where the binary footprint and cold-start budget dominate the workload's value over the borrow checker's compile-time payoff.

Inclus

2 vidéos4 lectures

Zig idioms a Rust developer trips on, when to reach for comptime versus a runtime branch, the Rust-or-Zig decision rule for a data-engineering team, the FFI patterns that let Zig call Rust and Rust call Zig over a C-ABI seam, and the path to Zig 1.0 that tells you which 0.13 features are stable to ship today versus which features need a feature-flag strategy.

Inclus

1 vidéo2 lectures

A culminating practice assignment that synthesizes every framework and pattern from Weeks 1 through 6 into one shippable production Zig component. Pick a Lambda or edge target, walk the four-card framing on the workload, build the Zig handler with a logic-versus-wiring split, ship the multi-stage Dockerfile against a scratch base, and add the named-contract assertInvariant helper that fires on container start before the binary fetches its first invocation. The reference implementation that grounds every deliverable lives at https://github.com/paiml/zig-from-zero — the workspace ships five demos (hello, marcopolo, http-server, sqlite-ws, lambda) that walk every standard-library allocator and every deployment target the course covers.

Inclus

3 lectures1 devoir

Instructeur

Noah Gift
Pragmatic AI Labs
36 Cours2 532 apprenants

Offert par

Pragmatic AI Labs

Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?

Felipe M.

Étudiant(e) depuis 2018
’Pouvoir suivre des cours à mon rythme à été une expérience extraordinaire. Je peux apprendre chaque fois que mon emploi du temps me le permet et en fonction de mon humeur.’

Jennifer J.

Étudiant(e) depuis 2020
’J'ai directement appliqué les concepts et les compétences que j'ai appris de mes cours à un nouveau projet passionnant au travail.’

Larry W.

Étudiant(e) depuis 2021
’Lorsque j'ai besoin de cours sur des sujets que mon université ne propose pas, Coursera est l'un des meilleurs endroits où se rendre.’

Chaitanya A.

’Apprendre, ce n'est pas seulement s'améliorer dans son travail : c'est bien plus que cela. Coursera me permet d'apprendre sans limites.’
Coursera Plus

Ouvrez de nouvelles portes avec Coursera Plus

Accès illimité à 10,000+ cours de niveau international, projets pratiques et programmes de certification prêts à l'emploi - tous inclus dans votre abonnement.

Faites progresser votre carrière avec un diplôme en ligne

Obtenez un diplôme auprès d’universités de renommée mondiale - 100 % en ligne

Rejoignez plus de 3 400 entreprises mondiales qui ont choisi Coursera pour les affaires

Améliorez les compétences de vos employés pour exceller dans l’économie numérique

Foire Aux Questions