frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

One Billion Cells – Another Multiplayer Demo with Clojure

https://cells.andersmurphy.com/
42•adityaathalye•7h ago

Comments

andersmurphy•5h ago
Oh, fun. I wasn't expecting this on here so soon. It's very MVP and currently running on a 5$ VPS.

Happy to answer any questions.

andersmurphy•4h ago
And we're back on a 10$ VPS.
konsalexee•4h ago
What is the full stack you are using? What parts also require scaling up? DB, bandwidth orrr?
andersmurphy•3h ago
So the stack is datastar + clojure + sqlite + caddy on a hetzner VPS 2 core 2G.

The scaling was preemptive as it was hitting 150% CPU (out of 200%). Needed to power down to rescale.

Now it's hovering at around 200% (out of 400%). About 80kb/s and 10 disk iops.

Everything goes via a sqlite db.

daymanstep•3h ago
How are you doing the throttling? I imagine one malicious player might do like 10000 iops to your DB.
andersmurphy•3h ago
So there's no rate limiting.

But because it's sqlite it's a single writer. Everything gets batched as one transaction every 100ms. The operations on a single chunk gets squashed into a single write.

Even without the squashing sqlite can handle 10000-20000+ updates/s because of the transaction batching.

With the chunk based squashing all edits to a chunk in that 100ms window become one update, so it can scale quite well.

matsemann•2h ago
But the question wasn't really if you can handle it, but more if someone could control the whole board themselves, I think?
andersmurphy•2h ago
Oh, I mean they could try. It's a very big board. Probably possible though if someone is sufficiently motivated.
matsemann•2h ago
I see a snake eating the 0,0 part now at least, heh.

Btw, if I add a ' to the string, it's impossible to override by othrs. At least in the UI on Firefox, the snake still ate it.

Theofrastus•1h ago
Has someone already animated Bad Apple on there?

Or played Doom, for that matter.

andersmurphy•1h ago
I'm just heading off on holiday so if someone does... Please make a gif so I can watch it on my return.

There's a bad apple demo on the datastar site. Datastar's[1] streaming hypermedia is what makes this possible, that and good old Clojure and sqlite.

- [1] https://github.com/starfederation/datastar

freilanzer•1h ago
What the hell am I even looking at?
amadeuspagel•1h ago
On mobile, when I click on one of the cells, my keyboard opens.
andersmurphy•1h ago
So that you can type in the field. It does shift the layout which is annoying.

I put this together in a day and wasn't planning on it being on HN. So there's definitely some jank/UX polish.

For example the typing experience is nicer on chrome as the field sizes to the text.

Is an Intel N100 or N150 a better value than a Raspberry Pi?

https://www.jeffgeerling.com/blog/2025/intel-n100-better-value-raspberry-pi
36•transpute•1h ago•24 comments

Why I Left My Tech Job to Work on Chronic Pain

https://sailhealth.substack.com/p/why-i-left-my-tech-job-to-work-on
21•glasscannon•40m ago•4 comments

Writing a Game Boy Emulator in OCaml

https://linoscope.github.io/writing-a-game-boy-emulator-in-ocaml/
109•ibobev•3h ago•2 comments

Show HN: BunkerWeb – the open-source and cloud-native WAF

https://docs.bunkerweb.io/latest/
23•bnkty•1h ago•4 comments

Show HN: I AI coded a tower defense game and documented the whole process

https://github.com/maciej-trebacz/tower-of-time-game
13•M4v3R•55m ago•3 comments

A Rust-TypeScript integration

https://github.com/beeeeep54/rust-typescript
12•wreedtyt•1h ago•20 comments

Developing with GitHub Copilot Agent Mode and MCP

https://austen.info/blog/github-copilot-agent-mcp/
64•miltonlaxer•3d ago•25 comments

Introducing tmux-rs

https://richardscollin.github.io/tmux-rs/
795•Jtsummers•22h ago•260 comments

Enhanced Radar (YC W25) is hiring a founding engineer

1•EricButton•1h ago

Lens: Lenses, Folds and Traversals

https://hackage.haskell.org/package/lens
9•hyperbrainer•3d ago•0 comments

Larry (cat)

https://en.wikipedia.org/wiki/Larry_(cat)
35•dcminter•3h ago•11 comments

DRM Panic QR code generator

https://rust-for-linux.com/drm-panic-qr-code-generator
35•weinzierl•5h ago•19 comments

How often is the query plan optimal?

https://vondra.me/posts/how-often-is-the-query-plan-optimal/
15•eatonphil•3d ago•12 comments

Is there a no-AI audience?

https://thatshubham.com/blog/ai
23•DorkyPup•57m ago•17 comments

Killer whales groom each other with pieces of kelp

https://www.science.org/content/article/killer-whales-groom-each-other-pieces-kelp
34•noleary•3d ago•22 comments

Can Large Language Models Play Text Games Well?

https://arxiv.org/abs/2304.02868
4•willvarfar•2h ago•0 comments

Show HN: Fast Thermodynamic Calculations in Python

https://dlr-institute-of-future-fuels.github.io/gaspype/
16•Saloc•1h ago•1 comments

Flounder Mode – Kevin Kelly on a different way to do great work

https://joincolossus.com/article/flounder-mode/
273•latentnumber•22h ago•61 comments

LooksMapping

https://looksmapping.com/
71•elsewhen•9h ago•44 comments

Launch HN: K-Scale Labs (YC W24) – Open-Source Humanoid Robots

199•codekansas•20h ago•87 comments

Wind Knitting Factory

https://www.merelkarhof.nl/work/wind-knitting-factory
162•bschne•17h ago•47 comments

Raphael discovery emerges from Vatican museum restoration

https://news.artnet.com/art-world/raphael-rooms-restoration-discovery-2662624
37•andsoitis•3d ago•7 comments

AV1@Scale: Film Grain Synthesis, The Awakening

https://netflixtechblog.com/av1-scale-film-grain-synthesis-the-awakening-ee09cfdff40b
231•CharlesW•20h ago•187 comments

How to render a mesh gradient using RBF interpolation

https://www.notion.so/Smooth-Mesh-Gradients-with-RBF-Interpolation-1ba8eeb5a3e68046b34cf997fe67d3c1?source=copy_link
10•olpyhn•1h ago•2 comments

Batteries and Buildings

https://mtende.blog/batteries-vs-no-batteries
8•sonderotis•2d ago•1 comments

Peasant Railgun

https://knightsdigest.com/what-exactly-is-the-peasant-railgun-in-dd-5e/
257•cainxinth•23h ago•178 comments

Alternative Blanket Implementations for a Single Rust Trait

https://www.greyblake.com/blog/alternative-blanket-implementations-for-single-rust-trait/
23•greyblake•3d ago•3 comments

Context Engineering for Agents

https://rlancemartin.github.io/2025/06/23/context_engineering/
70•0x79de•3d ago•20 comments

My open source project was relicensed by a YC company [license updated]

https://twitter.com/soham_btw/status/1940952786491027886
671•sohzm•11h ago•344 comments

How AI on Microcontrollers Works: Operators and Kernels

https://danielmangum.com/posts/ai-microcontrollers-operators-kernels/
63•hasheddan•4d ago•4 comments