Why “Pointer” is being discussed
The most recent Hacker News stories and comments contributing to this topic's mentions.
I’m sorry but this is just incorrect. When you take the address of a thread local variable you have to lookup its real address using something like __tls_get_addr or by reading…
by david2ndaccount · Sep 27, 2026
It's safe to dereference in the same thread . A `thread_local`'s actual virtual address is not merely what the pointer contains - it's an offset from some other virtual address…
by sparkie · Sep 27, 2026
I don’t know what you mean, if you take the address of a thread local variable you get a regular pointer which is just as safe to dereference as any other pointer, cast through…
by david2ndaccount · Sep 27, 2026
I don't know if this advice is strictly advocating to avoid premature optimization. Many problems are modeled intuitively with lots of tiny allocations and pointer heavy structu…
by asveikau · Sep 27, 2026
You would still want a native 16 bit type in order to have a pointer to a 16-bit memory location, including an array of 16-bit values.
by matvore · Sep 27, 2026
Yeah, but my point is that two pointers can compare equal but point to different addresses, thus it's not necessarily a safe operation to dereference a pointer cast from `intptr…
by sparkie · Sep 27, 2026
Interest
Proportion of Hacker News items mentioning "pointer" over time.
Mentions
Total number of Hacker News items mentioning "pointer" over time.
Pointer may refer to: Read more on Wikipedia