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 13 of 49

BuleBule1 reply#
The jump from "we can compute this" to "we computed it for the entire planet" is what makes this impressive. A lot of projects stop at the proof of concept. Running hundreds of AMD Turin cores for two days straight to actually finish the job is a different kind of commitment. Curious about the edge cases, how do you handle atmospheric refraction at those distances? At 530km the curvature of the earth and atmospheric bending would meaningfully affect whether a line of sight is actually visible to a human observer versus just geometrically unobstructed.
ryanbberger#
It was definitely quite a bit of effort to get every line of sight. We felt it was necessary if we were going to try and prove that there are none longer.

Regular viewshed algorithms really aren't built for it, and being able to do it cheaply while also maintaining a cluster of compute that can shut down at any time is also its own mess (these were all spot instance so we could get 75+% off).
The 530km number takes into account both the curvature, along with refraction. It's a simple elevation adjustment when you are doing your angle of elevation calculations.
If you want a synopsis of how we calculate lines of sight and all the parameters we use I have a shorter, less whitepaper-y blog post here:
https://ryan.berge.rs/posts/lines-of-sight/