Eric Scrivner (@etscrivner)

Luca @Lucrecious_ 2026-11-24T17:52:36.000Z

I saw the hashless video but I didn't like the usage of preprocessor for the implementation. The issue I have with it is that you can't nest controls into functions or loops because they'd result in the same hash, so you end up needing an ID stack regardless for many cases. Did you solve it differently?

0 0 156 1 0
@etscrivner reposted
Arika @Arikalabs 2026-11-23T15:27:27.000Z

If you read the Linux kernel source code (include/linux/container_of.h), you'll find one of the most important macros in systems programming. because C doesn't have classes or inheritance, the linux kernel embeds a generic struct list_head inside larger structs and uses container_of() to subtract the member's byte offset (offsetof) from a pointer, recovering the memory address of the enclosing struct.

204 20 21787 2 3