News for hackers. Stuff that matters.
Re:Ask HN: What are some cool but obscure data structures yo... by cvoss on Thursday July 21, 2022 @11:48PM (#32188298)
> In essence, as data size 'n' grows, the random access time grows as sqrt(n), because that's the radius of the growing circle with area 'n'.

I was about to write a comment suggesting that if we made better use of three dimensional space in constructing our computers and data storage devices, we could get this extra latency factor down to the cube root of n.

But then, I decided to imagine an absurdly large computer. For that, one has to take into account a curious fact in black hole physics: the radius of the event horizon is directly proportional to the mass, rather than, as one might expect, the cube root of the mass [1]. In other words, as your storage medium gets really _really_ big, you also have to spread it out thinner and thinner to keep it from collapsing. No fixed density is safe. So, in fact, I think the extra factor for latency in galactic data sets is neither the square root nor cube root, but n itself!

[1] https://en.wikipedia.org/wiki/Schwarzschild_radius

Re:Ask HN: What are some cool but obscure data structures yo... by samus on Friday July 22, 2022 @02:01AM (#32189002)
The main difficulty with growing computing devices in three dimensions is cooling. All that heat has to be somehow carried away. It's already difficult with 2D devices. One would have to incorporate channels for cooling liquids into the design, which takes a bite out of the gains from 3D.

https://www.anandtech.com/show/12454/analyzing-threadripper-...

Re:Ask HN: What are some cool but obscure data structures yo... by chriswarbo on Friday July 22, 2022 @12:11AM (#32188431)
This series of blog posts explains this sqrt behaviour quite nicely, covering both theory (including black holes) and practice:

http://www.ilikebigbits.com/2014_04_21_myth_of_ram_1.html

Re:Ask HN: What are some cool but obscure data structures yo... by 6510 on Friday July 22, 2022 @01:27AM (#32188827)
If its stored far away enough re-doing the calculation is faster. Depending on how much accuracy you need you might as well load a 2022-07-22 07:26:34 earth and have that guy on HN evaluate his thoughts all over again.
Re:Ask HN: What are some cool but obscure data structures yo... by l33t2328 on Friday July 22, 2022 @05:17PM (#32197230)
How do you accurately include those sqrt(n)’s in your analysis?