frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Elevators

https://john.fun/elevators
94•Jrh0203•58m ago

Comments

shadeslayer_•26m ago
This article gives me war flashbacks about a particularly irritating OO design interview from 5 years ago.
sambaumann•26m ago
This reminds me of elevator saga (https://play.elevatorsaga.com/) - little programming game where you have to program elevator schedules.
orliesaurus•25m ago
Oh my god, every time I'm waiting for the elevator, I think of how annoying it must be to be someone who's building the algorithm to make sure that you minimize the amount of wait times between picking up people and taking them to their destination. Then I also wonder if the people who apply the logic and program the logic into the elevators are actually evil sadists that are doing it on purpose to make us wait longer enough and suffer a little extra.
neutronicus•11m ago
They might have other objective functions like wear-and-tear on the elevators, total energy usage, or something
clarkmoody•24m ago
One of the most frustrating assignments[1] (2011) in my computer science education was trying to build a better mousetrap for elevator control.

[1]: https://clarkmoody.com/Moody_AgentBasedElevatorControl.pdf

brandonpelfrey•24m ago
For folks that have never seen elevator scheduling the game: https://play.elevatorsaga.com/ Enjoy this rabbit hole :D
grep_it•6m ago
I always come back to this game whenever I'm at a hotel for a conference waiting for the elevator.
gosub100•23m ago
Maybe I missed it, but the algorithm should also redistribute empty elevators that stop too closely to each other.
jmyeet•20m ago
This is a good article. It reminds me of a story.

At a previous employer we had heteregenous elevators. In one bank, some went to the lower half of floors only while others went to all and the company installed a "smart" elevator system. I kind of became known because I was constantly yelling about this system in the feedback group because I hate "smart" elevators and and (IMHO) they just don't work. What actually works is express elevators and sky lobbies.

This article covers one of the deficiencies this system had: full elevators. For example, you'd want to go down and an elevator would skip your floor because another had already been assigned. That one would show up full and you couldn't go down. Down wasn't so bad because the stairs weren't a bad option but up was terrible. Going up a few floors was fine. Going up 20 was... a bigger issue.

Back in the day we had elevator operators and people in the lobby during the morning rush who would shepherd people into particular elevators. I actually think this system works way better than anything technology has come up with. Even if you nail the implementation (and I've never experienced elevators that have), people don't read and will just get into elevators anyway.

Anyway the article says that generally speaking on smaller banks simple up and down buttons work best. I absolutely agree.

There's a deeper issue here though and that is solutions looking for a problem. Nobody is making money from up and down buttons. They are fromn selling smart elevator solutions. And you see this everywhere in life. It basically devolves into rent-seeking behavior. Salespeople wine and dine a couple of people responsible for making decisions and then make bank on selling something nobody wants or needs as well as the constant maintenance and updates.

marcosdumay•12m ago
> people in the lobby during the morning rush who would shepherd people into particular elevators

That's what the no-button elevators with the kiosk does.

jihadjihad•19m ago
In a similar vein, there was an interesting discussion [0] a while back about elevator buttons [1] and how timing for door close/open works, along with a bit of the history and regulations that go into them.

0: https://news.ycombinator.com/item?id=35152341

1: https://computer.rip/2023-03-13-the-door-close-button.html

Waterluvian•18m ago
Makes me want to play Sim Tower again.

There’s something so satisfying about watching a machine just dutifully work through queued tasks like this.

jp191919•18m ago
Reminds of something I haven't thought about in a very long time... SimTower
itunpredictable•17m ago
I didn't realize that neal.fun had some competition.
geephroh•16m ago
Slightly OT, but this reminded me of Colson Whitehead's _The Intuitionist_[1], an amazing speculative mystery novel about two dueling schools of elevator inspection philosophies: the Empiricists and the Intuitionists.

1. https://en.wikipedia.org/wiki/The_Intuitionist

paxys•15m ago
My biggest pet peeve is elevator banks where they don’t make some number of idle elevators automatically come back to the lobby. Half your traffic is over there! Everyone now has to wait an extra 30 seconds because all your elevators were chilling on the 35th floor and above.
mapmeld•5m ago
My apartment building is replacing the elevators, and someone on staff revealed that the first renovated elevator is intended to pick up only from the lobby (i.e. if you summon an elevator from the 10th floor, one of the others will come). This has caused some grumbling or calling it an "express elevator". In an apartment it really is mostly trips to many floors from the lobby. The only time this maybe would be inconvenient might be in the morning commute, when fewer people are re-entering.
teepo•14m ago
I've never really liked Destination Dispatch elevators. Besides struggling to find the car I've been assigned to, sometimes you really have to hustle across the lobby to catch it. Then you also run into visitors that assume it's a normal car and can hit a floor button when the get in, only to realize they've walked into a car without buttons.
quietsegfault•8m ago
What makes me more peeved about destination dispatch elevators are people who aren't used to them, and all pile into an elevator without hitting a floor, thinking one input is enough for everyone. Then, a totally full elevator stops at intermediate floors to pick up callers, but there's no room to get in. If everyone put the floor in as they arrive to the elevator lobby, then the elevator would know how many people are in the elevator and won't overfill them.
zatkin•13m ago
I think a small improvement that could be made is to have the dot representing the person be colored the same as a dot on each floor, which would obviate the destination floor for each individual.
soupspaces•7m ago
Yes the visualization is overused and could also use a stop button. I would have also liked to see different plots.
olex•13m ago
The biggest problem I always have with elevators is not the algorithm, it's the people seemingly being unable to grasp the concept of pressing either the up or the down request button, depending on where they want to go. Almost always I find someone will press both, because "then the elevator comes faster". Completely ignoring the fact that they end up going the wrong way first half the time, and adding an unnecessary halt for everyone already in there. How hard can it be to understand?..
Georgelemental•11m ago
I don't think I've ever seen someone do that
moritzwarhier•8m ago
[delayed]
trivo•8m ago
And then when the elevator door opens, they ask the people inside: "Are you going up or down?" There's an arrow showing that, for Christ's sake.
moralestapia•12m ago
>All this technology just to underperform the S&P

My takeaway is that the benefit of using a much more complex algorithm is marginal.

proee•11m ago
Don't forget the executive elevator algorithm (EEA), which uses a priority interrupt to take passengers directly to the top floor.
mekdoonggi•5m ago
Also need to make sure you increase the speed going past floors 4 and 13 to avoid bad luck.
quietsegfault•9m ago
I love elevator simulations.
hermanschaaf•9m ago
Hah, I thought a lot about this problem while developing Sky Lobby, a mobile game (iOS / Android) about controlling and automating elevators.

In the game, some of the elevators are automated, and I wanted to choose an algorithm that best aligned with what players would expect an elevator to do. I ended up going with something close to LOOK, which (as the article states) is mostly what people expect. Except in case of ambiguity, I had it prioritise floors that have been waiting longer, to improve the p90, which is important in the game.

But now, add in these challenges:

- double-deck cabs (where attached cabs cover two floors at once)

- transfer floors between shafts

- express shafts

and the best (or at least, most expected) algorithm becomes much less obvious! I'll leave it as an exercise for the reader to figure out the best one.

Luckily I was in charge of a game, not a real elevator system, so I just had to find a heuristic that was good-enough, and could tweak the rules to let players manually override the elevator's plan if they don't like where it's going. This seems to have satisfied most players.

OJFord•4m ago
I think this comparison is also assuming the distribution of request & requested floor is uniform? When actually near pairs are less likely (I'll just take the stairs) than bottom to top, so even analysing it is more complex than at first glance.

Getting 25 Gbps Thunderbolt Ethernet on My Mac Studio

https://www.jeffgeerling.com/blog/2026/getting-25g-ethernet-mac-thunderbolt/
1•speckx•43s ago•0 comments

Stripe's Knowledge AI Platform

https://stripe.dev/blog/meet-stripes-knowledge-ai-platform
1•bensouthwood•1m ago•0 comments

A Hidden 'Dark Dimension' Could Rewrite Our Understanding of the Universe

https://www.404media.co/dark-dimension-hypothesis-study/
2•pavel_lishin•2m ago•0 comments

The State of WordPress 2026 – Synmek Annual Report

https://synmek.com/state-of-wordpress-2026
2•ganjamuncha•2m ago•0 comments

Trump to Use Anti-Redlining Law to Target 'Activist' Groups

https://news.bloomberglaw.com/banking-law/trump-to-use-anti-redlining-law-to-target-activist-groups
4•petethomas•2m ago•0 comments

GenRec: Towards LLM-Native Recommendation at Netflix

https://netflixtechblog.com/genrec-towards-llm-native-recommendation-at-netflix-f20be6f643e3
2•Jimmc414•4m ago•0 comments

Inomis.life

https://inomis.life
2•supervillain•6m ago•0 comments

Pain Science

https://www.painscience.com/
2•Gecko4072•7m ago•0 comments

The Database Is Not the Data Model

https://practicaldatamodeling.substack.com/p/the-database-is-not-the-data-model
3•speckx•8m ago•0 comments

Online Friends Are Real Friends

https://toska.bearblog.dev/re-online-friends-are-real-friends/
7•Tomte•8m ago•0 comments

A fundamental flaw leaves LLMs strikingly vulnerable to attack

https://www.technologyreview.com/2026/07/30/1140927/a-fundamental-flaw-leaves-llms-vulnerable-to-...
3•digital55•8m ago•0 comments

Getopt() but Friendlier

https://www.unix.dog/~yosh/blog/getopt-but-friendlier.html
2•jandeboevrie•8m ago•0 comments

Saudi Arabia prepares sea and possible land offensive against Houthis

https://www.theguardian.com/world/2026/jul/30/saudi-forces-planning-major-offensive-against-houth...
3•wslh•9m ago•0 comments

Valve Funding Port of Linux RADV Radeon Vulkan Driver to Windows

https://www.tomshardware.com/software/linux/valve-funding-port-of-linux-radv-radeon-vulkan-driver...
3•sbulaev•9m ago•0 comments

Google Earth's New AI Lets Anyone Fabricate Satellite Images

https://www.404media.co/google-earths-new-ai-lets-anyone-fabricate-completely-bullshit-satellite-...
3•donohoe•9m ago•0 comments

South Korea fines telco giant KT $39M for customer data breach

https://www.bleepingcomputer.com/news/security/south-korea-fines-telco-giant-kt-39-million-for-cu...
3•Brajeshwar•10m ago•0 comments

Certifying the Black Box:Continuous Statistical Assurance for AutonomousVehicles

https://zenodo.org/records/21438788
3•neelshah0147•11m ago•0 comments

Big Food vs. the People

https://www.lighthousereports.com/investigation/big-food-vs-the-people/
3•jruohonen•11m ago•1 comments

PNG to SVG

https://png-to-svg.github.io/
2•javatuts•13m ago•0 comments

Physicists link the Riemann Hypothesis to phase transitions in quantum systems

https://phys.org/news/2026-07-physicists-link-riemann-hypothesis-phase.html
4•pseudolus•13m ago•1 comments

Open Railway Map

https://openrailwaymap.app/#view=4.31/40.85/-95.84
2•koch•13m ago•0 comments

US Government lists fictional nation Wakanda as trade partner

https://www.bbc.com/news/world-us-canada-50849559
24•ceejayoz•13m ago•7 comments

YouTube Bans ASMR Artists, Accusing Them of Making 'Sexually Gratifying' Videos

https://www.404media.co/youtube-asmr-ban-sex-and-nudity-policy/
3•healsdata•14m ago•0 comments

Poochmaxxing: The wellness industry is coming for your pets

https://theconversation.com/poochmaxxing-the-wellness-industry-is-coming-for-your-pets-287603
2•teaman2000•15m ago•0 comments

40k-Year-Old Bird Figurines Found in German Cave

https://www.sci.news/archaeology/hohle-fels-cave-bird-figurines-14956.html
3•bookofjoe•15m ago•0 comments

JEP 401: Value Objects and JEP 539: Strict Field Initialization Merged into JDK

https://github.com/openjdk/jdk/commit/cc278dbb8a1ca0754d5842708b9029441055d361
3•matt2000•17m ago•0 comments

Dubious research tied to Red Bull has shaped energy drink policy

https://www.theexamination.org/articles/red-bull-funded-research-energy-drinks-alcohol
10•Jimmc414•17m ago•0 comments

Show HN: Shared memory graph for Claude and ChatGPT, over MCP

https://uml.gpmai.workers.dev
3•12ziyad•18m ago•0 comments

How to plant a nuclear plant in Iran

https://www.digitaldigging.org/p/how-to-plant-a-nuclear-plant-in-iran
2•mlhpdx•18m ago•1 comments

Next-Level Productivity Revealed to Be Smart Sticky Notes

https://www.taskloco.com/
3•taskloco_nyc•20m ago•1 comments