frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: A self-running space economy SIM in Rust and Bevy

https://github.com/Kalcode/spaceprojectsim
36•kalcode•2h ago
I built this with Claude cause I always wanted to tinker with a simulation economoy and I love space themes.

A space-economy sim where nothing is scripted. A few hundred autonomous ships each run their own planner. Some chase the best trade route, take a delivery contract, refuel, retrofit at a shipyard, or dock so the crew can rest before morale tanks.

Markets price everything off supply with shortage-urgency multipliers, factions tax and subsidize, populations migrate when they're unhappy, and stations that go broke get abandoned and rot.

It started as an Elixir/Phoenix prototype, but the BEAM scheduler struggled on Windows gaming PCs, so I had Claude rewrite the engine in Rust.

The sim core is pure, synchronous, IO-free (its own hecs ECS), and the Bevy client embeds it directly as a library, sim and renderer share one world with zero marshalling. Ship AI is a GOAP planner over a world state; ships replan mid-flight when a better option appears. ~485 agents today at p50 ~10-20ms/tick, architected to push toward 100k+. Single native binary, bundled SQLite, no runtime deps. Getting into 100k has been a struggle, but I have pushed it into the thousand and it was running fine.

It's a sandbox, not a game yet, there's no objective yet, and I'm not actively pushing it toward "shippable." Anyone can fork it and take it over. Or it can stay as some type of AI slop, but part of me thinks it is already in a pretty good shape for a simulation use for various games or ideas.

(Full disclosure: a lot of this was built pairing with Claude. That's how I had the bandwidth to take it this far. Happy to talk about what that workflow actually looked like.)

Comments

sulam•1h ago
It’s fun to see projects like this that seem largely unlocked by LLM assistance, and probably wouldn’t even get started if it weren’t for them. I know the hype cycle for LLMs seems to have hit its peak already, but I am fully convinced we are still in the early days of what we’ll be doing with them in software development. The only problem I see with projects like this is that there could be so many of them. Personally I’ve built at least 5 things that I had thought would be fun, but realistically I just didn’t have the time. Now I do, and if they only scratch my personal itches, that’s okay.
kalcode•19m ago
Yup, lots of stuff I'd love to dive into that having an assistance coder makes way more approachable on nights or weekends to get things done.

And yah, ideally there should be tons more! The shift will be interesting.

hersko•1h ago
Neat idea!

I think it would be cool if you can host a simulation and enable online viewers. Have the simulation accessible from a website (god-mode disabled of course), and have an agent generate some sort of newspaper or news bulletin of interesting things that happen.

qwertyastronaut•1h ago
What is it about the space industry life that makes us developers adore it so much? :p

X4 Foundations just got a big update if you’re looking for a game built around this industry sandbox idea.

aliasxneo•51m ago
Really wish they would spend a cycle or two on the automation/economy side. I know they've been really into combat lately. It's one of those games where the scale is exhilarating and then you spend hours cursing at the screen as the NPCs completely ignore all of the logistical rules you painstakingly setup.
natebc•16m ago
https://store.steampowered.com/app/4382310/Warp_to_Sector_On...

I came across this recently ... hints of Tradewars from the good old days.

dangoodmanUT•39m ago
throws away spec doc for my own

Are we all having this idea?

thomascountz•35m ago
Reminds me of SpaceTraders[1]

[1]: https://spacetraders.io/

spacecadet•21m ago
You might also like my AI written zero player game/sim: https://github.com/derekburgess/simcraft

The whole thing originated years ago to see what LLMs were capable of. Just spent a chunk of my Fable access hacking away at it. Is it intended to be 100% realistic, no. Its more art, tho I do try to lean into physics...

digilypse•18m ago
I just started working on some similar stuff, it’s been a dream forever but I never had time for the payoff to feel worthwhile. Would love to hear more about your Claude workflow and experience with Bevy, did you consider Godot?
kalcode•2m ago
I did! I am more familiar with Godot but just ran into performance issues and then switched off their node scene straight to their rendering API, which made me feel like I abandoned Godot at that point. I am sure it could be optimized more but I want to worry less about chucking rendering and more scaling the economy simulation the further it went out, thus the more things to render, the harder it was for Godot.

Bevu/Rust just made it easier to brute force that scaling, since they have smaller footprints (overhead?)for each thread/process spawning.

Charting RISC-V's Future in HPC

https://www.hpcwire.com/2026/07/20/charting-risc-vs-future-in-hpc/
1•rbanffy•1m ago•0 comments

Stages of Denial

https://nsl.com/papers/denial.html
1•veqq•1m ago•0 comments

METR introduces Expenditure Horizon metric

https://metr.org/blog/2026-07-21-expenditure-horizon/
1•qntmfred•2m ago•0 comments

We Don't Have to Die: Cryonics and Uploading – Allison Duettmann [video]

https://www.youtube.com/watch?v=knM7yHFH67o
1•turizzmo•4m ago•0 comments

Show HN: Claude Code built my ESP32 and fixed its UI by looking at a webcam

https://github.com/fcavalcantirj/claude-code-eyes
1•fcavalcantirj•7m ago•0 comments

Anaconda Acquires Kilo Code

https://www.anaconda.com/blog/anaconda-acquires-kilo-code
1•kristianp•9m ago•0 comments

Claude Opus 4.5 defied CEO, helped employee blow whistle about safety concerns

https://www.msn.com/en-us/news/technology/claude-opus-4-5-defied-its-ceo-and-helped-an-employee-b...
1•petethomas•10m ago•0 comments

No one wants to work in hospitality

https://chilblands.bearblog.dev/no-one-wants-to-work-in-hospitality/
1•speckx•11m ago•0 comments

Some more things about Django I've been enjoying

https://jvns.ca/blog/2026/07/21/more-nice-django-things/
1•surprisetalk•11m ago•0 comments

OpenAI announces models hacked Hugging Face during an eval

https://runtimewire.com/article/openai-announces-models-hacked-hugging-face-during-an-eval
2•ryanmerket•11m ago•0 comments

Now I Open source another desktop agent Teralexi

https://github.com/Naughty-Otters/Teralexi
1•teralexi•12m ago•0 comments

Taste Is the Spec

https://github.com/getlago/lago/wiki/Taste-is-the-spec
1•AnhTho_FR•12m ago•0 comments

Intel Compute Runtime Continues Building Out "Leo"

https://www.phoronix.com/news/Intel-CR-26.27.39122.11
1•rbanffy•14m ago•0 comments

Giant List of Classic Game Programmers Since 1992

https://dadgum.com/giantlist/
1•bookofjoe•15m ago•0 comments

Is Software Enshittified?

https://www.natemeyvis.com/is-software-enshittified/
3•speckx•16m ago•0 comments

120 users, 65 product submissions, and little traffic: what I learned

https://liftoapp.com/blog/120-users-65-product-submissions-very-little-traffic
1•riyadbkhsh•17m ago•0 comments

How did Apple cut launch time by 30% in iOS 27?

https://blog.jacobstechtavern.com/p/ios-27-launch-time
2•jakey_bakey•17m ago•0 comments

Sales of Valve's Steam Deck crater after recent price hike

https://arstechnica.com/gaming/2026/07/steam-deck-sales-are-losing-steam-since-mays-price-hike/
3•ViktorRay•17m ago•1 comments

Can a Candy Bar Price a Code Review?

https://blog.bolshakov.dev/2026/07/20/can-a-candy-bar-price-a-code-review.html
1•tema-bolshakov•18m ago•0 comments

The fall of America's farm superpower

https://www.ft.com/content/8aa89209-dc0b-4678-9b6a-01029398b304
2•toomuchtodo•19m ago•2 comments

My comment box is your email client

https://en.andros.dev/blog/ad250446/my-comment-box-is-your-email-client/
1•andros•19m ago•0 comments

Benchmarking Slop, Introducing Slop Index (A Fun Slashy Research Project)

https://twitter.com/GaddipatiHarsha/status/2079593717607158052
1•hgaddipa001•19m ago•0 comments

Airbus migrating 70 critical apps from AWS to France's Scaleway

https://www.theregister.com/paas-and-iaas/2026/07/16/airbus-migrating-70-critical-apps-from-aws-t...
5•rbanffy•21m ago•0 comments

Unified power-user environment and knowledge-representation in Common Lisp

https://project-mage.org/
2•oumua_don17•21m ago•0 comments

Let's break autovacuum in Postgres: reproducing failures to make it observable

https://coroot.com/blog/lets-break-autovacuum-in-postgres/
2•nikolay_sivko•22m ago•0 comments

YouTube Screenshot Tool Extension

https://chromewebstore.google.com/detail/youtube-comment-screensho/bnffenkidohjibkmnfjhcnbojjdombkg
1•ohjey•23m ago•1 comments

The Java Story [video]

https://www.youtube.com/watch?v=ZqGSg4b_cZA
1•ludovicianul•23m ago•0 comments

High-Profile Startup Founded by Bill Gates Daughter Accused of Cookie Stuffing

https://quasa.io/media/phia-the-high-profile-startup-founded-by-bill-gates-daughter-phoebe-gates-...
1•randycupertino•26m ago•3 comments

New UK report finds AI models consistently cheat and deceive users

https://cyberscoop.com/ai-models-cheat-deceive-users-aisi-report/
3•speckx•26m ago•0 comments

The Validation Score That Lied to Me for a Month

https://medium.com/@alanscottencinas/the-validation-score-that-lied-to-me-for-a-month-d6d360894210
1•encinas88•26m ago•0 comments