frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Organic cell simulation with infinite zoom (100k cells, raw WebGL)

https://philomatics.com/cell-game-source/
2•cloogshicer•1h ago
Made this little cell simulation with an infinite zoom mechanic in raw WebGL. Renders up to 100k cells on my laptop (M1 MBA).

It's a single HTML file, not minified, without dependencies, so you can just inspect the source code. It's just raw JS and WebGL shaders. No assets, everything is procedurally generated.

For each cell, I draw a single quad using instanced rendering. To create a nice organic wobble, I use SDF (Signed Distance Fields) to draw a circle (or another base shape), which is then distorted by adjusting the radius using multiple overlapping sine waves. I explain this visually here. [1]

To get the cells to stretch dynamically based on their velocity, I use a technique called Domain Warping. Basically in the fragment shader, the fragmentPosition is adjusted inwards/outwards depending on the current velocity, which squashes/stretches the entire coordinate system of the quad in either direction. Gives it a very organic look. I explain this in more detail here. [2]

Physics are also custom, on the CPU using position-based dynamics (PBD). This is currently the weak point of the engine, and with lots of cells, it's CPU constrained. I might move this to the GPU later or switch to a different approach. Not sure yet.

The infinite zoom mechanic works by dynamically rendering only the two currently visible layers. Physics are currently simulated all the time for all layers, although I could potentially also pause layers that are not currently visible.

All of this uses data-oriented design (DOD) techniques to keep most of the data structures in flat typed arrays for fast iteration and to minimize allocations in the main game loop.

I'm planning to build this engine out into a full incremental game with some light automation elements (think a microscopic Factorio, but much shorter). If you're interested in following the dev process, I post highly technical deep-dives on YouTube [3], or you can enter your email here [4] to get source code updates (super low volume).

Let me know what you think! Happy to answer any questions.

[1] https://youtu.be/VChlSt6gVSo?t=380 [2] https://youtu.be/VChlSt6gVSo?t=516 [3] https://youtube.com/@philomatics [4] https://philomatics.com/cell-game

Meta faces higher borrowing costs in latest $12B data centre financing

https://www.ft.com/content/822628c5-4f9c-47db-bd27-f3ad7f841700
1•1vuio0pswjnm7•1m ago•0 comments

Managing File Descriptors for Durability and Performance

https://blog.atimin.dev/handling-file-descriptors/
1•flipback•2m ago•0 comments

Building Drizzle ORM

https://underdogfounders.substack.com/p/the-story-of-building-drizzle-orm
1•matijash•3m ago•0 comments

LoRA Fine-Tuning and Profiling of a 0.5B Language Model on Apple Silicon

https://zenodo.org/records/21541601
1•tanmaydesh5189•3m ago•0 comments

Show HN: External KV Cache Offloading Cuts Long Horizon Inference Costs by 50%

https://github.com/openlake-project/openlake
4•arnav__1•4m ago•0 comments

Show HN: Temporal Context Map

https://ab.neudice.eu/
1•zebike•7m ago•0 comments

The Money AMD Is Chasing with Its Rackscale AI System Roadmaps

https://www.nextplatform.com/compute/2026/07/24/the-money-amd-is-chasing-with-its-rackscale-ai-sy...
1•rbanffy•9m ago•0 comments

Introduction to Microsoft Excel 1990 with Jan Brehm

https://www.youtube.com/watch?v=kOO31qFmi9A
1•chistev•10m ago•0 comments

Shared Claude chats showing up in Google results

https://old.reddit.com/r/ClaudeAI/comments/1v6fiyj/you_can_view_a_lot_of_shared_conversations_via/
1•dgellow•11m ago•0 comments

US tech groups cut 140k jobs despite AI spending boom

https://www.ft.com/content/96a33881-27fd-42cf-8cff-4cbc87fc835f
1•1vuio0pswjnm7•12m ago•0 comments

Modern and Minimal Linux: NixOS and Noctalia and Labwc Flake

https://github.com/grigio/nixos-noctalia-labwc-flake
3•grigio•13m ago•0 comments

Goodbye Microslop: Finally Moved to Codeberg

https://nezutero.dev/goodbye-microslop-finally-moved-to-codeberg/
1•nezutero•13m ago•0 comments

Kahneman's Cabs: Solving Probability Puzzles

https://www.neelocean.com/kahnemans-cabs/
1•thinkingemote•15m ago•0 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
3•pompomsheep•15m ago•1 comments

Job Search, in One Intelligent Workspace

https://www.karyfy.com
1•negiadventures•17m ago•0 comments

Show HN: Virtual time engine to record HTML to 60fps MP4, no drops

https://zlvox.com/tools/html-to-video
1•mrdisloyal•19m ago•0 comments

An update on beta-alanine supplementation for athletes (2020)

https://www.gssiweb.org/sports-science-exchange/article/an-update-on-beta-alanine-supplementation...
1•Jazgot•20m ago•0 comments

CVE-2026-49176 Exploit Development: WalletService to System

https://davidcarliez.github.io/blog/cve-2026-49176-walletservice-to-system/
1•haeseong•20m ago•0 comments

Google's AI Spending Spree Has Investors Nervous

https://www.wsj.com/tech/ai/alphabet-googl-q2-earnings-report-2026-stock-f6bdd223
1•1vuio0pswjnm7•21m ago•0 comments

Google Discloses $94.1B in SpaceX Stock, Marking 6% Stake

https://www.wsj.com/tech/google-discloses-94-1-billion-in-spacex-stock-marking-6-stake-91655d7c
10•1vuio0pswjnm7•23m ago•3 comments

Islamist terrorist attack in Berlin Pride event

https://www.dw.com/en/germany-classifies-berlin-pride-ramming-as-terror-attack/live-78117180
1•sajithdilshan•26m ago•0 comments

Show HN: I got 32-bit Bun running on Windows

https://twitter.com/_vkaku/status/2081356483040620981
1•vkaku•27m ago•1 comments

Show HN: Crossle – A daily puzzle game where you find 3 intersecting words

https://crossle.resistancelabs.tech
2•samurai4869•29m ago•0 comments

Making 3 AI's Count to 100 Together [video]

https://www.youtube.com/watch?v=MXEInc6Zy7Q
1•pingou•30m ago•0 comments

ARIA – Voice-native 3D spatial AI SoC with governed autonomy (BSL 1.1)

https://github.com/sidevworks/aria-sec
1•saryismail•31m ago•0 comments

Ask HN: Something fishy is going on with Google feed on my Android

1•motbus3•34m ago•0 comments

Marketing Team Eve Template

https://github.com/vercel-labs/marketing-team-eve-template
1•flashbrew•34m ago•0 comments

The product function in the age of AI

https://fnune.com/2026/07/26/the-product-function-in-the-age-of-ai/
1•brainlessdev•36m ago•0 comments

Dream Exchange – a persistent world where AI agents live, not work

https://www.soudushi.com
1•damiyangguang•36m ago•0 comments

Crypto Bill Mired in Debate over Rules to Stop President from Selling Coins

https://www.nytimes.com/2026/07/22/technology/crypto-bill-trump.html
1•1vuio0pswjnm7•37m ago•0 comments