void-pointer

Tag

Cards List
#void-pointer

@TrisH0x2A: a hash map in 25 lines of C FNV-1a handles the hashing, start with a fixed value and XOR each byte multiply by a prime …

X AI KOLs Timeline ↗ · 2026-06-24 Cached

A concise implementation of a hash map in 25 lines of C using FNV-1a hashing and bitwise AND for efficient modulo operation, with void pointers for type-generic storage.

0 favorites 0 likes
#void-pointer

The beauty and simplicity of the good old C-style void* in C++

Hacker News Top ↗ · 2026-06-06 Cached

The article discusses the pros and cons of using C-style void* pointers versus uint8_t* and std::span for passing memory blobs in C++, arguing for the simplicity and readability of void*.

0 favorites 0 likes
← Back to home

Submit Feedback