frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Vircadia, a Bun and PostgreSQL-powered reactivity layer for games

https://vircadia.com/
12•kaliqt•5mo ago

Comments

kaliqt•5mo ago
We gave Vircadia a full Gen 2 overhaul (big thanks to our sponsors such as Linux Professional Institute, Deutsche Telekom, etc. for enabling this), aiming to cut down on code bloat and boost performance. The main shift is swapping out our custom backend infrastructure for a battle-tested, high-performance system like PostgreSQL with Bun wrapping and managing every end of it.

It's kind of unheard of to do this for things like game dev (preferring custom solutions), but it works and makes things way easier to manage. The shape of the data in a database affects how well it works for a use case, and that model scales well for virtually every kind of software ever, the same should apply here!

Feel free to prototype some game ideas you might have been tossing around, our priority is DX for the project as a whole to enable more developers with less resources to build bigger worlds, so please do share feedback here and/or in GH issues!

Our roadmap is for more SDKs, and cutting down on bloat where possible, with the express goal of giving devs more cycles in the day to focus on the actual gameplay instead of tooling.

porridgeraisin•5mo ago
Interested to know why Deutsche telekom sponsored this
nand_gate•5mo ago
My guess is money laundering, given that the product is pretty vapourware-y (as a game dev in a past life: Vircadia looks more like 'how a web dev thinks multiplayer games work' aka basically unusable in a serious title).
kaliqt•5mo ago
I think you fundamentally misunderstand the stack. Their main usage of the platform has to do with a E2E solution with avatars, audio, etc. all synced without issue. These features ship with the client and other private repositories wrapping the core.

However, for usage to HN users they would be (likely) more interested in the SDK, the core, the underlying system, and how it can fit their use cases.

If you want to understand a small part of the scale of this project, you are welcome to check out:

https://github.com/vircadia/vircadia-web https://github.com/vircadia/vircadia-web-sdk https://github.com/vircadia/vircadia-native-core

kaliqt•5mo ago
For an E2E worlds solution, so this https://github.com/vircadia/vircadia-web and this https://github.com/vircadia/vircadia-native-core except heavily condensed so it's easier to modify/upgrade for each new bespoke use case.

Our old system, being very monolithic, while extremely performant and capable, was nearly impossible to adapt and change. So what we have now is much more dynamic but also still a work in progress, a more complete example will be published in the coming weeks.

ricardobeat•5mo ago
The example shows using it to update player positions. Doesn’t Postgres add significant latency considering a 16-33ms budget for state updates? How well does this scale?
andyferris•5mo ago
Generally client games optimistically carry on a few frames (and sometimes much more!) ahead of the what the server has responded with as accepted.

This is because gamers require low latency to effectively play, but things can be slightly out of sync and logic can be complex, and anti cheat can be hard to implement server side only (which is why eg fortnite and valarant install fancy client side anti cheat software too).

For a friendly game of stardew valley or turn based strategy you can afford to wait for transactions to complete and causality to be enforced.

kaliqt•5mo ago
We CAN submit the change to the DB and not listen to the message on if it succeeded or not! The message will arrive eventually, it's just not necessary to await it, so you have options.
jasonjmcghee•5mo ago
I had a similar reaction / question. Why not use KV store and get sub millisecond latency?
kaliqt•5mo ago
So it's a bit of tradeoffs, we may add a second DB to the compose by the time we reach v1.0, but, if we had to pick the convergence of simplicity and flexibility to start, PostgreSQL is it.

We prototyped SQLite as well. It just wasn't working in the stack like we had needed.

The idea is simple: use as few components as possible to achieve the outcome. Better to have less than more initially, because we can simply add the more and extend the API, but ripping everything out and trying to trim it down is damn near impossible, especially when the platform garners widespread usage.

The decision to do the less then more instead of more then less approach was spurred by us (the wider project) always having way too much bulk and then finding it impossible to turn the ship when we needed to (https://github.com/vircadia/vircadia-native-core).

We need to be agile to reach the milestones we have set out, hence the differed approach using off the shelf parts and only adding what we need, when we need it.

kaliqt•5mo ago
Postgres finishes its updates sub-ms in a reasonably sized DB if optimized correctly. In terms of upper-scale (>1000 players in a somewhat real-world scenario), we're working out benchmarks to test that.

Postgres is not slow by any stretch of the imagination, but it depends on how the schema is setup and what layers you have between the user and the DB, naturally any game developer will want to tweak the client+schema before going live. The layers between we manage to make it as minimal as possible, so that shouldn't be touched, if it's too slow for a reasonable use case, it means we have more optimization to do!

koakuma-chan•5mo ago
I love that you use Bun.
kaliqt•5mo ago
We have to cut bloat where we can if this is to work for higher up revision games, so Bun is the only answer that balances speed and simplicity (TypeScript native).
Drakim•5mo ago
How does the system separate between state changes that must be confirmed by backed compared to state changes that can be updated locally (by prediction) to give the user more snappy experience?
reedf1•5mo ago
I would love to get into some game design - and something like this seems intuitive enough from my perspective as a software engineer. Forgive me if this is a naive question, but is the use case for this single-player games or multiplayer games?
kaliqt•5mo ago
Definitely multiplayer games, you wouldn't really need a syncing networking layer if you're doing single player as you can store state in any method you desire, something as simple as serializing JSON to the disk for example, or up to your server. But even then, a traditional setup like Supabase might be simpler to wrap your head around if you're just handing "user" data and not "player" data in a shared world.

Internet's biggest annoyance: Cookie laws should target browsers, not websites

https://nednex.com/en/the-internets-biggest-annoyance-why-cookie-laws-should-target-browsers-not-...
137•SweetSoftPillow•1h ago•132 comments

Greg Newby, CEO of Project Gutenberg, has died

https://www.pgdp.net/wiki/In_Memoriam/gbnewby
223•ron_k•4h ago•36 comments

MinIO (apparently) becomes source-only

https://github.com/minio/minio/issues/21647
238•LexSiga•6h ago•158 comments

Die shots of as many CPUs and other interesting chips as possible

https://commons.wikimedia.org/wiki/User:Birdman86
62•uticus•4d ago•9 comments

Evaluating the Infinity Cache in AMD Strix Halo

https://chipsandcheese.com/p/evaluating-the-infinity-cache-in
111•zdw•8h ago•40 comments

Knocker, a knock based access control system for your homelab

https://github.com/FarisZR/knocker
30•xlmnxp•4h ago•49 comments

Jaguar Land Rover hack cost UK economy an estimated $2.5B

https://www.reuters.com/sustainability/boards-policy-regulation/jaguar-land-rover-hack-cost-uk-ec...
17•giuliomagnifico•47m ago•13 comments

Infracost (YC W21) Hiring First Dev Advocate to Shift FinOps Left

https://www.ycombinator.com/companies/infracost/jobs/NzwUQ7c-senior-developer-advocate
1•akh•1h ago

Show HN: Cadence – A Guitar Theory App

https://cadenceguitar.com/
86•apizon•1w ago•12 comments

Go subtleties

https://harrisoncramer.me/15-go-sublteties-you-may-not-already-know/
91•darccio•1w ago•52 comments

French ex-president Sarkozy begins jail sentence

https://www.bbc.com/news/articles/cvgkm2j0xelo
164•begueradj•7h ago•194 comments

Starcloud

https://blogs.nvidia.com/blog/starcloud/
64•jonbaer•1h ago•76 comments

Tesla Recalls Almost 13,000 EVs over Risk of Battery Power Loss

https://www.bloomberg.com/news/articles/2025-10-22/tesla-recalls-almost-13-000-evs-over-risk-of-b...
13•zerosizedweasle•46m ago•4 comments

rlsw – Raylib software OpenGL renderer in less than 5k LOC

https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h
212•fschuett•16h ago•76 comments

LLMs can get "brain rot"

https://llm-brain-rot.github.io/
416•tamnd•22h ago•250 comments

Power over Ethernet (PoE) basics and beyond

https://www.edn.com/poe-basics-and-beyond-what-every-engineer-should-know/
189•voxadam•5d ago•131 comments

Show HN: Modshim – A new alternative to monkey-patching in Python

https://github.com/joouha/modshim
89•joouha•6d ago•21 comments

Evaluating Argon2 adoption and effectiveness in real-world software

https://arxiv.org/abs/2504.17121
21•pregnenolone•1w ago•7 comments

Ask HN: Our AWS account got compromised after their outage

339•kinj28•21h ago•78 comments

NASA chief suggests SpaceX may be booted from moon mission

https://www.cnn.com/2025/10/20/science/nasa-spacex-moon-landing-contract-sean-duffy
349•voxleone•1d ago•933 comments

Distributed Ray-Tracing

https://www.4rknova.com//blog/2019/02/24/distributed-raytracing
5•ibobev•5d ago•1 comments

Neural audio codecs: how to get audio into LLMs

https://kyutai.org/next/codec-explainer
396•karimf•1d ago•114 comments

Subprime Lender PrimaLend Enters Bankruptcy After Bond Default

https://www.bloomberg.com/news/articles/2025-10-22/subprime-lender-primalend-enters-bankruptcy-af...
19•zerosizedweasle•53m ago•5 comments

The Hidden Engineering of Niagara Falls

https://practical.engineering/blog/2025/10/21/the-hidden-engineering-of-niagara-falls
143•chmaynard•14h ago•15 comments

Replacing a $3000/mo Heroku bill with a $55/mo server

https://disco.cloud/blog/how-idealistorg-replaced-a-3000mo-heroku-bill-with-a-55-server/
712•jryio•16h ago•480 comments

The Gypsy Life of Robert Louis Stevenson

https://hudsonreview.com/2025/10/the-gypsy-life-of-robert-louis-stevenson/
52•Caiero•16h ago•16 comments

Ghostly swamp will-O'-the-wisps may be explained by science

https://www.snexplores.org/article/swamp-gas-methane-will-o-wisp-chemistry
5•WaitWaitWha•1w ago•2 comments

The Stagnant Order. and the End of Rising Powers

https://www.foreignaffairs.com/united-states/stagnant-order-michael-beckley
3•csomar•10m ago•0 comments

Erowid - Documenting the Complex Relationship Between Humans and Psychoactives

https://www.erowid.org
138•slow_typist•16h ago•27 comments

Mathematicians have found a hidden 'reset button' for undoing rotation

https://www.newscientist.com/article/2499647-mathematicians-have-found-a-hidden-reset-button-for-...
164•mikhael•5d ago•102 comments