Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ProbonoBonobo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ProbonoBonobo
12y ago
That's interesting, I hadn't considered the possibility of attaching bytes to pointers before (although the flavor of the idea reminds me a little bit of certain SICP exercises I struggled with, but in a slightly different termino
2.
▲
by
ProbonoBonobo
12y ago
Why wouldn't it be possible? Here's a different (I believe more efficient) implementation of the Node container class by Sedgwick himself, which does exactly that: private Node insert(Node h, Key key, Value val) { if (h == nu