Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
oomo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
oomo
6y ago
Leaving this here as comments on that blog seem broken. TL;DR: access(2) is a bit more lightweight than write(2) for this purpose. Consider the following (from memory, untested): word_t peek(word_t addr, int success) { word_t ret; err