Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aCthrowa
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
aCthrowa
11y ago
Yes, this limits the utility of ptrdiff_t. But I don't believe you're allowed to subtract arbitrary pointers in C anyway. So you might need a >63-bit char array in order to legally hit this limit, and you probably don't ha
2.
▲
by
aCthrowa
11y ago
ptrdiff_t is the wrong type for exactly this reason. OP's article is... not good.
3.
▲
by
aCthrowa
11y ago
This may be practically correct, but is semantically very very wrong. size_t represents the size of objects in memory. So of course it scales with virtual memory space. ssize_t is like size_t (same width), but signed. It's useful for r