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
danielsamuels2 replies#
The website claims the longest line of sight in my city is 24.7km from someone's garden that is surrounded by houses. I walk past this particular spot on my way to the gym. I walk downhill from my house to get there. I seriously question the reliability of this data.
tombh#
The resolution of the underlying data is only ~100m. So most houses, vegetation, etc, gets blurred into the same smooth surface. There are actually higher resolution data sets, even up to centimetre scale, using LiDAR, of cities. We'd love to integrate these but it's a few orders of magnitude more data.
DiggyJohnson1 reply#
I think you're assuming more fidelity than the project is claiming
danielsamuels2 replies#
I'm assuming that when the project says you can see 24 km from a given location, that you can see 24 km from that location. That's not the case. Fundamentally, it doesn't do what it claims to do.

Why allow the user to select any arbitrary location on a map and give an answer when you know the answer is most likely nonsense? You don't need to compute for 2 days to accomplish that; you could just make it up.

crazygringo#
Surely you understand it's based on limited resolution data, and therefore intended to be used at the scale of general topography like mountains and valleys?

That it's not taking into account human construction or distances of tens of meters?
Presumably you can walk a little bit and climb on someone's roof to see the claimed 24.7 km. Assuming a sufficiently clear atmosphere, and that there isn't a tall office building in the way or something.

wat100002 replies#
Why not complain that there's a point inside somebody's basement and you can't see any distance from that? Why not complain that it's wrong any time you close your eyes? Those would be about as sensible.

Continue this thread — 2 replies

amingilani1 reply#
Now we just need to put two hams with 2m/70cm radios to make the longest line-of-sight QSO on the planet. Bonus points for QRP.

Definitions:
* Hams: Amateur radio operators.
* QSO: conversation or contact between two radio stations.
* QRP: Low power, typically under 5 watts.

tombh1 reply#
That's actually one of the legitimate uses cases we've consider for the algorithm.
stilldavid1 reply#
This is so rad! Here's a photo of me making a 1.2Ghz FM contact 244km away from the summit of a 14er to the summit of another 14er here in Colorado. That particular band is very line-of-sight, with not much propagation or reflections like even 2m SSB or the HF bands. This is a very fun tool that I can't wait to explore more!

https://www.k0nr.com/wordpress/2021/08/using-1-2-ghz-in-the-...

tombh#
244km! Oh wow, I never knew people did this kind of thing. Yeah this is exactly the sort of thing we want people to use the app for.
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.
hdersch1 reply#
"Viewsheds" of any location can be calculated and matched with photographs using "GeoImageViewer", an application I wrote a couple of years ago. Any feature in the photo can be interactively identified in a mapview and vice versa, including the boundary of the viewshed. See the link below for a couple of examples.

I wonder how atmospheric refraction is handled in the calculations for the longest line of sight. Since it (a) strongly affects the line of sight, and (b) depends on temperature and weather, how is a static "world record" possible, or even defined? E.g. objects may appear 400m higher in 200km distance under typical conditions.
https://hdersch.github.io/Viewing.html

tombh#
Oh hey, I remember you from the last time I posted something about our project. That's a great app you have.

We actually have a plan to aggregate world runs together, so that one run as low refraction and a short observer, then another run with high refraction and tall observer. Then instead of rendering longest lines of sight as those singl triangles, we could render them as 2 triangles that represents the extremes of expected visibility.

Load more comments