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

Earlier comments
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/

Quarrel2 replies#
Great work and thanks for the write up.

Sorry to be pedantic, your longest view is not from the Hindu Kush, but from the mountains to the south of the Tarim Basin which are the Kunlun mountains.
The Hindu Kush are largely in Afghanistan, but also Pakistan, running in an arc from Kabul to the north east. They aren't in China.
The Hindu Kush range then gives way to the Karakoram, as you cross Kashmir, which is then bordered to the north by the Kunlun which form the arc of the southern Tarim Basin.
I suspect you're just mixing it up with the Hindu Tagh pass, just to the south of the peak your point is looking from. Hindu Tagh seems to be about as good a name as the line-of-sight community has come up with for that peak.

ryanbberger#
We appreciate the pedantry.

I think I came up with that name from a game of telephone of sources claiming to have the longest line of sight. There's a lot of really random sources on the Internet that mention the line of sight but do not cite the data or analysis. I have seen Hindu Tagh thrown around as well so if it's more accurate we want it there.
Part of our motivations were to stop the game of telephone and become an authoritative source on this stuff.
I'm not much of a geographer, more of a HPC guy.
I have this on the TODO list to update tomorrow.

tombh#
Agreed, pedantry very much appreciated. Website updated!
fooker1 reply#
Here's a potential bug report, but maybe it comes down to the resolution.

There seems to be some missing data here when it comes to the north face of most Himalayan peaks (for example: Annapurna).
I am willing to believe looking south gives you the longer view, but there has to be some points on the north faces that win out for a northern view.
Fun fact, the view north is so far, clear and reliable weather-wise that the CIA partnered with mountaineers to set up equipment to monitor China's progress with nuclear weapons several decades ago.

tombh1 reply#
Could you post a link to a view that you think might not be right?
tombh#
I see, thanks. So my thinking is that overly dark areas to the North are caused by _relatively_ low visibility. The heatmap is actually dynamically generated for every viewport. So I agree that there has to be some amazing view from those North faces, it's just that they are drowned out by the sheer enormity of the views on the South face.

If were to use absolute global values for the heatmap, then the Himalayas would just appear as pure, washed-out white.
Does that make sense?

zoobab1 reply#
Cool places to try wifi long shots.

I did some longshots back in the early days of wifi.

ErroneousBosh3 replies#
You'd need to do a bit of work to adjust the timing, I suspect. At 530km the time delay would be around 1.75ms which would be enough to greatly upset WiFi ;-)

You could probably talk between ends using cheap crappy 446MHz 250mW walkie-talkies though.

galangalalgol#
This data base could be used to optimally place meshtastic nodes.
1e1a1 reply#
You could just send raw 802.11 data frames and then receive them with monitor mode on the other end.
ErroneousBosh#
If I had just re-read Neal Stephenson's Cryptonomicon recently, which I have, I'd say that I'd set up a link using WEP-encrypted 802.11b and hammer data across it with odd little bits here and there designed to generate maximum spy interest.

But then the actual message would be encoded by very slightly favouring the high or low end of the spread spectrum map as a kind of terribly slow FSK.

Load more comments