Building a Hexdump in C & Zig – Day 7
Gabe Sampson
0:00 / 0:00
Building a Hexdump in C & Zig – Day 7
2 502 просмотра · Трансляция закончилась 2 нед. назад
Gabe Sampson
5,86 тыс. подписчиков
2 502 просмотра · Трансляция закончилась 2 нед. назад
join the discord: / discord
im tired of ai doomerism. the only thing i can control is getting better. im livestreaming daily for accountability.
i am a junior web developer, i want to learn systems programming.
Chapters
0:00 The C and Zig hexdump plan
1:58 C headers and command-line arguments
5:51 Compiling with Clang and starting file handling
10:44 MacBook green screen and streaming setup
13:34 FILE, fopen and byte buffers
17:32 Learning from examples and choosing stream material
20:01 Reading the file with fread
22:30 Printing offsets, hex bytes and ASCII
26:54 C walkthrough: buffer size and output layout
34:01 Testing the C hexdump
35:31 Starting the Zig port
38:55 Finding Zig's argument APIs
44:15 Testing Zig's argument iterator
49:25 Monokai Pro, editor colors and Monkeytype
55:15 Argument slices and allocator setup
1:00:30 Zig try, tuples and argument slice types
1:06:53 Process arenas and print arguments
1:09:54 Searching for Zig's file-opening API
1:16:08 Working through Zig's I/O interface and logging
1:25:36 defer, buffers and simplifying the Zig example
1:28:58 Memory management and the Rust borrow-checker correction
1:31:23 Revisiting Zig file opening and errors
1:34:13 Understanding .{}, .mode and .read_only
1:37:24 Books, Ziglings and next steps