Lurker News
We're Tom and Ryan and we teamed up to build an algorithm with Rust and SIMD to exhaustively search for the longest line of sight on the planet. We can confirm that a previously speculated view between Pik Dankova in Kyrgyzstan and the Hindu Kush in China is indeed the longest, at 530km.

We go into all the details at https://alltheviews.world
And there's an interactive map with over 1 billion longest lines, covering the whole world at https://map.alltheviews.world Just click on any point and it'll load its longest line of sight.
Some of you may remember Tom's post[1] from a few months ago about how to efficiently pack visibility tiles for computing the entire planet. Well now it's done. The compute run itself took 100s of AMD Turin cores, 100s of GBs of RAM, a few TBs of disk and 2 days of constant runtime on multiple machines.
If you are interested in the technical details, Ryan and I have written extensively about the algorithm and pipeline that got us here:
* Tom's blog post: https://tombh.co.uk/longest-line-of-sight
* Ryan's technical breakdown: https://ryan.berge.rs/posts/total-viewshed-algorithm
This was a labor of love and we hope it inspires you both technically and naturally, to get you out seeing some of these vast views for yourselves!
1. https://news.ycombinator.com/item?id=45485227

Comments (181) 49 threads

Show all comments

Showing thread 7 of 49

jstanley2 replies#
Neat. I did a related project a little while ago. I wasn't interested in how far I can see from everywhere, so much as what I can see from one place in particular.

So in mine you can click on a spot and it draws black lines over any land that is occluded by terrain, within 100km.
(But all with AI-generated JavaScript, not cool Rust and SIMD stuff)
https://incoherency.co.uk/line-of-sight-map/

eitally3 replies#
I am not sure if I'm experiencing what you describe. I just see a radiating circle of black lines, no matter where I click. I decided to click a local, notable "long line" viewpoint -- Lick Observatory outside San Jose. From here, on a clear day, you can see Half Dome in Yosemite, 120mi away. I still just see a black circle.
arethuza1 reply#
I think the lines indicate areas that you can't see?
jychang#
It's buggy. Mission peak shows much of the bay area occluded.
jstanley#
Are you standing on a raised platform when you see the Half Dome?

This is what I get when I set the observer height to 20m, and increase the "max distance" to 300km (200km = ~124 miles so may not be enough).
https://img.incoherency.co.uk/6478
It's also possible that the half dome is too short and the sampling rate of the line-of-sight jumps over it!

1e1a#
It seems that sometimes it fails to load the height map, try reloading the page. You should see terrain shading if it's loaded properly.
nottorp1 reply#
> But all with AI-generated JavaScript, not cool Rust and SIMD stuff

Heh, I almost hit back at the "in Rust" mention.
Would the end result have been different if it were done in python calling C libraries for performance? I strongly doubt it.

spookie#
Isn't cross language function calling expensive? I assume it is significant.