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•1y ago

Comments

kaliqt•1y 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•1y ago
Interested to know why Deutsche telekom sponsored this
nand_gate•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
I had a similar reaction / question. Why not use KV store and get sub millisecond latency?
kaliqt•1y 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•1y 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•1y ago
I love that you use Bun.
kaliqt•1y 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•1y 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•1y 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•1y 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.

Using AI to write better code more slowly

https://nolanlawson.com/2026/05/25/using-ai-to-write-better-code-more-slowly/
122•signa11•2h ago•33 comments

Norway's 2 petabytes of Huawei flash storage and LLM training

https://www.blocksandfiles.com/flash/2026/05/22/norways-2-petabytes-of-huawei-flash-storage-and-l...
155•rbanffy•5h ago•73 comments

Taking a walk may lead to more creativity than sitting, study finds (2014)

https://www.apa.org/news/press/releases/2014/04/creativity-walk
45•bilsbie•3h ago•27 comments

Exit IP VPN servers mitigation rollout

https://mullvad.net/en/help/exit-ip-vpn-servers-mitigation-rollout
261•Cider9986•7h ago•42 comments

How Shamir's Secret Sharing Works

https://ente.com/blog/how-shamirs-secret-sharing-works/
27•subract•2h ago•5 comments

California moves to exempt Linux from its age-verification law after backlash

https://www.tomshardware.com/software/linux/california-moves-to-exempt-linux-from-its-upcoming-ag...
639•rbanffy•7h ago•277 comments

Squares in Squares

https://kingbird.myphotos.cc/packing/squares_in_squares.html
17•carlos-menezes•1d ago•1 comments

Show HN: Write your BPF programs in Go, not C

https://github.com/boratanrikulu/gobee
58•boratanrikulu•4d ago•29 comments

Hacker News front page as a site

https://thefrontpage.dev/
111•thatxliner•5h ago•41 comments

CVE-2026-28952: Apple macOS 26.5 Kernel Vuln found by Claude

https://support.apple.com/en-us/127115
62•dragonsenseiguy•1h ago•17 comments

Magnifica Humanitas

https://www.vatican.va/content/leo-xiv/en/encyclicals/documents/20260515-magnifica-humanitas.html
1331•theletterf•15h ago•748 comments

Toshifumi Suzuki, founder of Seven-Eleven Japan, has died

https://www.referenceforbusiness.com/biography/S-Z/Suzuki-Toshifumi-1932.html
118•L_Rahman•9h ago•52 comments

Microsoft Copilot Cowork Exfiltrates Files

https://www.promptarmor.com/resources/microsoft-copilot-cowork-exfiltrates-files
181•Kneenex•3h ago•37 comments

Show HN: OpenBrief – Local-first video downloader/summarizer

https://github.com/tantara/openbrief
22•tantara•3h ago•2 comments

Performance of Rust Language [pdf]

https://github.com/yugr/rust-slides/
7•tanelpoder•1h ago•0 comments

Riscrithm – An intuitive RISC-V assembler and optimizer coded in Go

https://github.com/ghetea-patrick/riscrithm
25•patrick-ghetea•4h ago•2 comments

Jensen–Shannon Divergence

https://en.wikipedia.org/wiki/Jensen%E2%80%93Shannon_divergence
74•teleforce•3d ago•12 comments

C extensions, portability, and alternative compilers

https://lemon.rip/w/6-c-extensions-compilers/
138•xngbuilds•11h ago•48 comments

The Lottery – Shirley Jackson (1948)

https://www.newyorker.com/magazine/1948/06/26/the-lottery
8•jxmorris12•3d ago•2 comments

The Skeuomorphism Nobody Talks About [video]

https://www.youtube.com/watch?v=3Q-G9x315-g
18•zdw•2d ago•4 comments

Weave (YC W25) is hiring ML, AI, product, & design engineers

https://jobs.ashbyhq.com/workweave
1•adchurch•7h ago

Yoti age checks share facial photos and device fingerprints with third parties

https://techxplore.com/news/2026-05-online-age-pointless-privacy.html
111•Lihh27•5h ago•24 comments

Every Frontier AI Is INTJ

https://zonted.com/posts/every-ai-is-intj/
5•bernardjhuang•2h ago•3 comments

Everyone Against Us (2023)

https://www.chicagomag.com/chicago-magazine/april-2023/everyone-against-us/
53•NaOH•5d ago•8 comments

Agentic Patterns

https://veso.ai/research/agentic-patterns/
7•kinlan•3h ago•3 comments

Gnutella: A Protocol Outliving the World That Created It

https://rickcarlino.com/notes/p2p/gnutella-explanation.html
209•rickcarlino•3d ago•67 comments

IBM Spins Off the First Pure-Play Quantum Chip Foundry

https://futurumgroup.com/insights/2-billion-chips-act-investment-in-quantum-bets-on-ibms-300mm-su...
143•rbanffy•15h ago•60 comments

Launch HN: Chert (YC P26) – Twilio for iMessage

https://www.trychert.com
51•garygao•10h ago•178 comments

CPPL: A Circuit Prompt Programming Language

https://arxiv.org/abs/2605.17892
35•chrsw•4d ago•6 comments

Netherlands Seizes 800 Servers, Arrests 2 for Aiding Cyberattacks

https://krebsonsecurity.com/2026/05/netherlands-seizes-800-servers-arrests-2-for-aiding-cyberatta...
264•jruohonen•11h ago•71 comments