frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Signal-free implementation of trains in a simulation game

5•iliketrains•3h ago
Three years ago I posted here about Captain of Industry, a simulation game that me and co-founder are making and there was quite a bit of interest so I wanted to post a short update. Today we dropped a massive update that is, among other things, adding trains. However, these are not your standard trains that you know from other games.

We have developed a new system that uses train track direction and no-stopping zones instead of your block and chain signals. The motivation was to make train network building easier but not to compromise on what can be achieved in terms of rail network complexity.

In short, instead of chain signals ensuring that trains can pass through intersections without blocking them, in our system, intersections are marked as "no-stopping-zones" and train will only enter a no-stopping zone if it can reserve enough track along its path to fully clear it. This is even better than chain signals, because it takes into account the train length.

We even support bi-directional tracks that allow for terminus stations, or sidings on bi-directional routes, all while guaranteeing that no trains will get stuck (when configured correctly). These use "exclusive zones" that restrict only one train to ever occupy bi-directional sections.

This has taken us nearly a year and while the system is not perfect, our early testers love it. I am not claiming that you won’t be able to get trains stuck with this system, but I do think that the kind of issues and their solutions are easier to understand and resolve than with chain signals. Only time will tell though. If you are interested in more details, see our blog post: https://www.captain-of-industry.com/post/cd-46

I’d love to hear your thoughts!

Newsome outlines $12B CA deficit and freeze on immigrant health program access

https://apnews.com/article/california-governor-newsom-budget-health-immigrants-9e743d55cedbf231fff53935c31f16db
1•donsupreme•13s ago•0 comments

Would you believe try-catch-finally works in plain old C?

1•mf_taria•5m ago•0 comments

DeltaChat: "We can not hand out data that we don't have" [pdf]

https://merlinux.eu/press/2025-05-14-russia-deltachat.pdf
1•ColinWright•5m ago•0 comments

States Chase OpenAI's $100B AI American Dream

https://www.washingtonpost.com/technology/2025/05/10/stargate-openai-data-centers-states/
1•bookofjoe•5m ago•1 comments

WW3 will be fought with money [video]

https://www.youtube.com/watch?v=bZ6HodKDxJE
1•downboots•7m ago•0 comments

LangGraph Checkpointer on KurrentDB

https://www.kurrent.io/blog/langgraph-checkpointer-on-kurrentdb/
2•zilato•8m ago•0 comments

Ask HN: Any Tech/AI Folks Buying in SF? Rare 4BR Penthouse for Sale in Soma

1•lailasalma•10m ago•0 comments

California Governor Newsom seeks to scale back free healthcare for migrants

https://www.reuters.com/business/healthcare-pharmaceuticals/california-governor-newsom-seeks-scale-back-free-healthcare-migrants-2025-05-14/
1•tlogan•13m ago•0 comments

World Video Game Hall of Fame Inducts Defender, Tamagotchi, GoldenEye 007, Quake

https://apnews.com/article/video-game-hall-of-fame-defender-tamagotchi-2e4ad6ec2258d482dc3a34ed324ee7f5
3•gnabgib•14m ago•0 comments

Detained Russian-born Harvard scientist criminally charged with smuggling

https://www.reuters.com/world/us/detained-russian-born-harvard-scientist-criminally-charged-with-smuggling-2025-05-14/
3•c420•14m ago•0 comments

The Ego Pandemic

https://mattruby.substack.com/p/the-ego-pandemic
1•rubymatt•15m ago•0 comments

OpenAI says OneDrive/SharePoint users can now directly connect files to ChatGPT

https://www.windowscentral.com/software-apps/chatgpt-deep-research-to-onedrive-sharepoint
1•thoughtpeddler•17m ago•0 comments

A testing question – Testing under uncertainty

https://third-bit.com/2025/04/20/a-testing-question/
1•NeutralForest•18m ago•0 comments

Software engineer lost $150K-a-year job to AI – he's been forced to DoorDash

https://www.yahoo.com/news/software-engineer-lost-150k-job-090000839.html
5•amichail•24m ago•1 comments

Data from 89M Steam users leaked

https://twitter.com/mellowonline1/status/1921682082025115818
3•sellmesoap•24m ago•0 comments

José Mujica has died

https://www.bbc.co.uk/news/articles/c0j71402z58o
22•scrambled•27m ago•3 comments

GT Standard

https://gt-standard.com/
1•mrzool•27m ago•1 comments

Obsidian plugin for removeing old completed tasks

https://github.com/lowitea/obsidian-tasks-cleaner
1•lowit•28m ago•0 comments

"It was a bit nuts" – Teo Connor on designing the new Airbnb app

https://www.designweek.co.uk/it-was-a-bit-nuts-teo-connor-on-designing-the-new-airbnb-app/
1•rognjen•30m ago•0 comments

Vibe Rater: Let's kill LeetCode interviews

https://company-vibe-rater.lovable.app/#
3•trevorfrese•30m ago•0 comments

Musk's xAI chatbot Grok keeps responding about white genocide in South Africa

https://www.cnbc.com/2025/05/14/musk-xai-grok-south-africa-white-genocide.html
1•kbhomes•30m ago•1 comments

AI Agents Must Follow the Law

https://www.lawfaremedia.org/article/ai-agents-must-follow-the-law
4•EA-3167•34m ago•1 comments

'Aggressive' hackers of UK retailers are now targeting US stores, says Google

https://www.theguardian.com/technology/2025/may/14/google-scattered-spider-hackers-retailers
1•chrisjj•35m ago•0 comments

HTAP Databases Are Dead

https://www.mooncake.dev/blog/htap-is-dead
3•moonikakiss•35m ago•1 comments

Study shows factual knowledge can reduce political polarization

https://phys.org/news/2025-04-bridging-political-debates-factual-knowledge.html
4•PaulHoule•37m ago•1 comments

Verified Purely Functional Catenable Real-Time Deques

https://arxiv.org/abs/2505.07681
2•TimorousBestie•38m ago•0 comments

Codeflash: Automated performance optimization for Python programs

https://github.com/codeflash-ai/codeflash
5•misrasaurabh1•39m ago•0 comments

Migrating to Postgres

https://engineering.usemotion.com/migrating-to-postgres-3c93dff9c65d
4•shenli3514•40m ago•0 comments

Critical Warning for External Purchases in App Store

https://mjtsai.com/blog/2025/05/14/critical-warning-for-external-purchases-in-app-store/
3•jeff_tyrrill•43m ago•1 comments

SEM-CTRL: Semantically Controlled Decoding

https://arxiv.org/abs/2503.01804
2•tough•47m ago•0 comments