frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Algorithmically Finding the Longest Line of Sight on Earth

https://alltheviews.world
109•tombh•3h ago
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

umpriel•3h ago
Claps!
zoobab•2h ago
Cool places to try wifi long shots.

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

ErroneousBosh•2h ago
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•1h ago
This data base could be used to optimally place meshtastic nodes.
1e1a•1h ago
You could just send raw 802.11 data frames and then receive them with monitor mode on the other end.
jstanley•2h ago
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/

eitally•2h ago
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.
arethuza•1h ago
I think the lines indicate areas that you can't see?
jychang•1h ago
It's buggy. Mission peak shows much of the bay area occluded.
jstanley•1h ago
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•1h ago
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.
rob74•1h ago
Cool project! Unfortunately our planet has this pesky (but very useful!) thing called atmosphere, which makes all these extra-long lines of sight only theoretical, I guess? Ok, the longest line of sight is mostly over the Taklamakan desert, so probably very dry air (which might however have some dust/sand in it), but still?
tombh•1h ago
Thanks!

Well the record for the longest photographed line of sight is in the same region as our #3 longest line, at 483km https://www.guinnessworldrecords.com/world-records/66661-lon... So not far off. And I think that even takes advantage of some favourable refraction. So not only might it be possible to see the longest view. But there may even be longer lines if we were to take into account extreme cases of refraction. Which is certainly something we'd love to try.

rob74•1h ago
Wow, that's an impressive amount of dedication, but I guess you need that if you want to set a world record:

> He monitored weather conditions closely to find the right window and right location. After a lot of travelling he arrived at Aksu village. The village wasn't accessible by car due to snow and ice so he hiked to the summit. After 10 hours of climbing, he stood on the summit with moonlight providing enough light to set up his equipment. At midnight, he recalls that the temperature was around -12°C with winds around 8 m/s. He remained there all night capturing panoramic photos. Before sunrise, the wind picked up to roughly 20-25 m/s and the battle of capturing his world record image began. He planned to capture the image at sunrise to improve contrast and whilst he is pleased with the final result, he is already making plans for his next record-breaking image.

But still, that kinda confirms my observation about the pesky atmosphere: even with optimal weather conditions, he still needed the sun lighting up the sky behind the mountains just before sunrise, otherwise they would have blended in with the sky at the horizon...

This also applies for much shorter distances: despite what the publicity photos suggest, you can't see the Alps from Munich most of the time (or only as slightly darker shapes on the horizon), although they're "only" ~ 75 km away. You need really good weather to see them clearly...

codethief•42m ago
> This also applies for much shorter distances: despite what the publicity photos suggest, you can't see the Alps from Munich most of the time (or only as slightly darker shapes on the horizon)

You won't usually see them from the ground of course but from a couple floors up with a clear line of sight you do see them quite often.

metalman•41m ago
ok then, If I read you right, what counts is someone going and doing the actual seeing , VS drawing a line on a topigraphical map. there are groups on another quest flying gliders into the high stratospher riding atmospheric waves rolling up against mountains who might also qualify for setting records for the longest possible views through the atmosphear, they got started buying surplus soviet space suits as that was what made attempts possible.
danielsamuels•1h ago
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•1h ago
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.
brucehoult•1h ago
I tried the summit of Mt Ruapehu here in NZ and got 358.8 km to Mt Owen. Not bad as I was expecting Tapuae-o-Uenuku which is a little shorter at 342 km.

One advantage in NZ is that on a nice day you actually have a good chance of seeing it.

Oh ... clicking on Mt Owen doesn't return the favour ... or the other nearest peaks. But Culliford Hill does show a return back to Ruapehu, 355.4 km. Clicking on Tapuae-o-Uenuku also, as expected, gives a line to Ruapehu: 342.3km.

Mt Cook is high, but has too many other high peaks near it.

Mt Taranaki is isolated, but doesn't turn up any very long distances.

I don't expect any other candidates in NZ.

Update: actual and accidental photo of Tapuae-o-Uenuku from Ruapehu (342 km), seven months ago.

https://www.reddit.com/r/newzealand/comments/1m9p0bh/tapuaeo...

And, as pointed out in a comment, also Mount Alarm 2.5 km further.

What is the longest in North America? Or Europe proper -- not Elbrus (which I've not been to but have been close enough to see, from several places e.g. from a house in Lermontov (~94 km only), summit of Beshtau (93 km), Dombai ski field (~63 km), somewhere on A157 (~50km).

repelsteeltje•1h ago
Not a geologist, but interesting that many of these sites are close to equator. Suppose that's where mountains are higher because tectonic plates are more active?

Anyone with expertise want to comment?

kmaitreys•1h ago
Not a geologist either but an astronomer. Never heard that tectonic activity has any association with proximity to equator.

Mountains can rise higher near equator because you have the least gravity there. The whole Earth bulges along the equator. But I don't think it's measurable.

jmalicki•1h ago
It's also interesting because the radius of curvature is smaller, meaning the distance to the horizon is shorter north south, and a lot of these views are north south. So the increase in mountain height more than overcomes the other effect!
tombh•39m ago
Woah, I've been thinking about this whole project for so long, but never considered that!
iso1631•48m ago
While Everest (8849m) is the highest point above Sea Level, Chimborazo (6267m) in Ecuador is further from the centre of the Earth (about 2000 metres further), due to the equatorial bulge. It's very measurable.
tombh•1h ago
Wow, glad you had fun exploring. It suddenly made me think of a little feature that I'm not sure we made the best job of exposing. In the little trophy icon toggle on the right, there's the Top Ten list of views, then under those there's a little line that just says "In current viewport: 123km". Did you see that? Did it make sense? I implemented it, so of course I know that it's better than clicking all the points around a peak to find the longest view from a mountain summit. But maybe it's not obvious to other users? What I do is zoom in so that the viewport only contains the area of the summit (or indeed entire country for that matter) that I'm interested in, then I look at that "In current viewport:" line without having to click anything.

So using that, I would say that the longest line of sight in North America is from Mount Rainier, at 390km, looking North West into Canada: https://map.alltheviews.world/longest/-121.76853942871094_46...

brucehoult•1h ago
Oh, I missed that!

That gives a longest in NZ of 365.3 km from Ruapehu, skirting past close by Tapuae-o-Uenuku (in the Inland Kaikoura Range) to a point on the Seaward Kaikoura Range near the peak of Manakau. Clicking on the actual Manakau peak also gives 365.3 km back to Ruapehu.

I can't seem to find a peak to get a reverse path back to Mt Ranier. Everything I try gets stuck in the Olympic Peninsular. (I was there once ... 1998 or so ... a place called Hurricane Ridge IIRC)

tombh•42m ago
Right, I think we need to make that "In current viewport" thing more prominent somehow.

So this is the NZ longest line right https://map.alltheviews.world/longest/173.61386108398438_-42...

One thing to note about finding reverse lines, is that they're not truly mathematically identical because the observer always has a height of 1.65m and the destination is always some point at the surface, therefore 0.0m. It doesn't always make a difference, but it sometimes can.

alvsilvao•1h ago
This is so interesting. Thanks for sharing. I have been working on a similar project where instead of finding all the sights I have focused on finding all the cycling climbs in the world. I think there is a sense of satisfaction in finding ALL of something.

Cheers

www.climbs.cc

ourmandave•1h ago
Hopefully this won't become a tool for the Flat Earthers. =)
emiliobumachar•1h ago
Might be a tool against them. Note that Mt. Everest isn't on the list. If the Earth was flat, all the tallest peaks would be seeable from one another unless a specific peak taller than one of them was exactly in the way.
tombh•35m ago
We're actually thinking of writing a SIGBOVIK paper where we explore running this whole thing for a Flat Earth!
pestatije•1h ago
It be nice to get the 3 or 5 longest distances from a specific point, not just the longestest
noosphr•48m ago
Since you have the data could you show how far you can see in every direction rather than the longest direction?
bartread•41m ago
This would be incredible - please add this!
tombh•40m ago
Yes, but, there's one small problem, storing this extra data for the whole world starts to run into the petabytes!
drcongo•46m ago
This is my favourite kind of HN post, and I absolutely love this one. Would love to see photos from each of these views.
tombh•34m ago
Thank you <3

Well there is a photo near our #3 longest line of sight https://www.guinnessworldrecords.com/world-records/66661-lon...

em-bee•40m ago
how close is this to the theoretical maximum?

if we put mt. everest on a sperical cow, i mean on a planet with only ocean, how far could you see there? how far away could a second peak of the same height be, before it gets hidden by the curvature of the planet?

laci37•23m ago
If we have a 9 km mountain on an otherwise spherical planet (r=6371 km), the horizon would be 339 km away. With two mountains having a sightline between eachother the maximum theorethical distance doubles to 678 km.
tombh•6m ago
Exactly.

And it could even be tweaked slightly with some favourable refraction.

alansaber•18m ago
This is the geography I was promised in school
1970-01-01•9m ago
There was a post here about 6 years ago for a site that calculated line of site for any two points on a map with both the max line of sight and 2D cross sectional view of the terrain difference between the two points. I haven't been able to find it since 2020, but it was awesome.
tombh•7m ago
Could it be this? https://www.udeuschle.de/panoramas/makepanoramas.htm
colechristensen•7m ago
It's wild in the upper midwest you can SEE the glacial effects on the terrain better than any topo map I've seen before.
tombh•3m ago
I was wondering that too, that this might be a better visualisation of certain geological features. But I don't have much experience, so can't say for sure.

Show HN: Algorithmically Finding the Longest Line of Sight on Earth

https://alltheviews.world
110•tombh•3h ago•46 comments

Show HN: Browse Internet Infrastructure

https://www.wirewiki.com
29•pul•51m ago•2 comments

Show HN: Minimal NIST/OWASP-compliant auth implementation for Cloudflare Workers

https://github.com/vhscom/private-landing
11•vhsdev•1h ago•4 comments

Show HN: A custom font that displays Cistercian numerals using ligatures

https://bobbiec.github.io/cistercian-font.html
123•bobbiechen•14h ago•25 comments

Show HN: I created a Mars colony RPG based on Kim Stanley Robinson’s Mars books

https://underhillgame.com/
246•ariaalam•20h ago•80 comments

Show HN: Slack CLI for Agents

https://github.com/stablyai/agent-slack
90•nwparker•3d ago•28 comments

Show HN: Ported the 1999 game Bugdom to the browser and added a bunch of mods

https://reallyeli.com/bugdom/Bugdom.html
14•reallyeli•10h ago•1 comments

Show HN: GitWriter – mobile Markdown editor for writers

https://gitwriter.io
2•anthonybrooks•4h ago•0 comments

Show HN: ArkWatch – Uptime monitoring with zero dependencies

2•arkforge•4h ago•1 comments

Show HN: Emergent – Artificial life simulation in a single HTML file

https://emergent-ivory.vercel.app/
14•usernameis42•14h ago•0 comments

Show HN: Agentseed – Generate Agents.md from a Codebase

https://github.com/avinshe/agentseed
6•avinshe•7h ago•0 comments

Show HN: Horizons – OSS agent execution engine

https://github.com/synth-laboratories/Horizons
37•JoshPurtell•3d ago•6 comments

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
321•yi_wang•1d ago•150 comments

Show HN: Physical swipe typing for your computer

https://github.com/ZimengXiong/swipeType
2•zimengx•8h ago•0 comments

Show HN: It took 4 years to sell my startup. I wrote a book about it

https://derekyan.com/ma-book/
202•zhyan7109•4d ago•67 comments

Show HN: WhatsApp Chat Viewer – exported chats as HTML

https://github.com/rodrigodesalvobraz/whatsapp-chat-viewer
3•rodrigobraz•13h ago•0 comments

Show HN: Frop – AirDrop alternative for any device (no app required)

https://frop.mmynk.com
3•cueo•9h ago•3 comments

Show HN: Smooth CLI – Token-efficient browser for AI agents

https://docs.smooth.sh/cli/overview
106•antves•3d ago•71 comments

Show HN: Poisson – Chrome extension that buries your browsing in decoy traffic

https://github.com/Daring-Designs/poisson-extension
5•daringdesigns•14h ago•0 comments

Show HN: WrapClaw – a managed SaaS wrapper around Open Claw

3•kushagraagent•15h ago•2 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
324•isitcontent•2d ago•40 comments

Show HN: If you lose your memory, how to regain access to your computer?

https://eljojo.github.io/rememory/
391•eljojo•2d ago•227 comments

Show HN: R3forth, a ColorForth-inspired language with a tiny VM

https://github.com/phreda4/r3
90•phreda4•2d ago•17 comments

Show HN: Fine-tuned Qwen2.5-7B on 100 films for probabilistic story graphs

https://cinegraphs.ai/
95•graphpilled•1d ago•20 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
58•mbitsnbites•5d ago•9 comments

Show HN: I spent 4 years building a UI design tool with only the features I use

https://vecti.com
383•vecti•2d ago•176 comments

Show HN: Elysia JIT "Compiler", why it's one of the fastest JavaScript framework

https://elysiajs.com/internal/jit-compiler
12•saltyaom•1d ago•0 comments

Show HN: Artifact Keeper – Open-Source Artifactory/Nexus Alternative in Rust

https://github.com/artifact-keeper
165•bsgeraci•3d ago•66 comments

Show HN: IsHumanCadence – Bot detection via keystroke dynamics (no CAPTCHAs)

https://github.com/RoloBits/isHumanCadence
5•frankLopez•12h ago•2 comments

Show HN: Freeciv 3D with hex map tiles and WebGPU renderer

https://github.com/freecivworld/freecivworld
3•roschdal•5h ago•0 comments