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
46•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•36m 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•1h 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•34m ago
https://store.steampowered.com/app/4382310/Warp_to_Sector_On...

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

zipy124•2m ago
Ooooh didn't know it had an update! Thanks for posting.
dangoodmanUT•56m ago
throws away spec doc for my own

Are we all having this idea?

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

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

spacecadet•38m 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•35m 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•19m 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.

nixpulvis•10m ago
Not using big_space :(

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

https://github.com/Kalcode/spaceprojectsim
46•kalcode•2h ago•13 comments

Show HN: Justif – Knuth-Plass justification and microtypography for the web

https://justif.lyall.co/
12•lyall•4d ago•2 comments

Show HN: Read the Tape – Wordle for daytrading, five blind S&P 500 charts a day

https://readthetape.cc/
8•will_asouka•1d ago•4 comments

Show HN: CodeAlmanac – Karpathy-style codebase wiki from your conversations

https://github.com/AlmanacCode/codealmanac/
27•divitsheth•3h ago•12 comments

Show HN: Imagin Raw – A 9MB Open-Source Alternative to Adobe Bridge for Mac

https://github.com/cristibaluta/Imagin-Raw
43•cristi_baluta•3h ago•15 comments

Show HN: Word in Web – Near MS Word Parity Docx Editor in Web

https://word-in-web.com/
13•theRealestAEP•3h ago•1 comments

Show HN: Language Model Builder (an app to learn about and build models)

https://languagemodelbuilder.com/
9•felixrieseberg•3h ago•1 comments

Show HN: Datalevin – a simple, fast, and versatile Datalog database

https://github.com/datalevin/datalevin
3•huahaiy•55m ago•0 comments

Show HN: OSS Cross-Harness self hosted registry and analytics for AI Agents

https://github.com/Observal/Observal
18•haz3-jolt•4h ago•1 comments

Show HN: Designing a Static Site Generator for iPhone

https://hypertemplates.net/blog/designing-an-ssg-for-iphone/
5•calebhailey•2h ago•0 comments

Show HN: TokenPath – token-level citations for LLM output, read from attention

https://tokenpath.ai
4•apoorvumang•1h ago•0 comments

Show HN: DocCharm – The help center that keeps itself up to date

https://doccharm.com/
6•yakshaving_jgt•3h ago•1 comments

Show HN: In Meeting – A native macOS Mic/Cam observer for home automation

https://github.com/fellowgeek/in-meeting
6•pcbmaker20•3h ago•0 comments

Show HN: Explore 6048 YC companies as an interactive galaxy

https://artifacta.io/a/pg_x9pombpdybx90q2s16eu
34•jnakano89•2d ago•18 comments

Show HN: Observability for Coding Agents and LLM Applications

https://telemetry.dev/
2•ephraimduncan•1h ago•0 comments

Show HN: Posecode, a text language and renderer for human movement

https://www.posecode.org/play
5•brnbrn•1h ago•0 comments

Show HN: Edky, a CLI to convert Ed25519 public keys from one encoding to another

https://github.com/artob/edky
6•arto•2h ago•3 comments

Show HN: X Downloader – save public X videos, MP3s and screenshots

https://xdownloader.site/
2•cser700•1h ago•1 comments

Show HN: Browser-based 3D terrain reconstruction

https://github.com/topherchris420/lop-nur-twin
4•ciao_chris•2h ago•0 comments

Show HN: NoopJS – A compiler that ships 0 KB JavaScript for static pages

https://github.com/noop-js/noopjs
2•pullrun•2h ago•0 comments

Show HN: How to fix blank pages in a PDF file

https://www.3emalak.com/p/convert-articles-to-epub-pdf-word-build.html
2•omeraliamm•2h ago•0 comments

Show HN: Gift Ideas Tool on Wallble

https://www.wallble.com/gift-ideas
2•zainalabdin878•2h ago•0 comments

Show HN: Tsaagan – Browser control for AI agents that verifies every action

https://github.com/michaelolmos/tsaagan
2•molmos•2h ago•0 comments

Show HN: Fractal – recursive agent loops for complex, multi-step work

https://github.com/plasma-ai/fractal
14•ryanpettry•2h ago•1 comments

Show HN: PMG, open source package firewall

https://github.com/safedep/pmg
3•abhisek•4h ago•1 comments

Show HN: Term Sheets Against Humanity: VC card game where you read the partner

https://cards-against-capital.vercel.app/
3•Exorust•2h ago•0 comments

Show HN: threadfork – AI meeting notes that run on your Mac

https://www.threadfork.com/
10•smohan88•2h ago•0 comments

Show HN: GeoGuessr, but for Literature

https://litfinder.io/
2•argoss•2h ago•1 comments

Show HN: Aido – an AI companion for the pull requests your AI writes

https://github.com/aido-dev/aido
2•dvirdung•2h ago•0 comments

Show HN: Autoretrieval – Autoresearch for RAG Pipelines

https://github.com/daly2211/autoretrieval
3•Daly_chebbi•2h ago•1 comments