Skip to content
0:00 / 0:00

#zig#allocator#interfaces

Zig For the Uninitiated: Zig Interfaces

Tyler Calder

1.2K subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Tyler Calder

Intermediate. Assumes working knowledge.

7.3K views2 years ago2 recommendations

Programming languagesSoftware designZigDesign patterns

Tyler Calder explains how interfaces work in Zig, focusing on the Allocator interface in the standard library.

Here we discuss Zig interfaces, with particular attention to the Allocator interface in std.mem. If you have any questions, feel free to reach out in the comments, or at my discord: discord.gg/QyyXnwKqCP Write up: calder-ty.com/posts/zig_uninitiated_interfaces/

Why it's here

2 people recommend this

What people say. Recommended as an excellent explanation of how Zig handles interfaces, using the Allocator interface as a primary example.

u/polish_jerryin r/Zig • Recommends

On “Why Zig doesn't have/want Go-like interfaces?”

This video explains it very well using std.mem.Allocator as an example link to this video

u/hequ9bqn6jr2wfxsptgfin r/Zig • Recommends

On “How does this work in std.heap.GenerealPurposeAllocator.allocator()?”

Not mine, but that would explain well.