frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Snow Simulation Toy

https://potch.me/2026/snow-simulation-toy.html
32•surprisetalk•1w ago

Comments

throwaway290•1h ago
Powder toy deserves a mention here
TruffleLabs•1h ago
This is fun to see :) thanks!
ygra•1h ago
Oh, that's something I also did in QBasic ages ago. I since lost the source code, but it basically worked by querying the screen from bottom to top, finding snow pixels (white) and moving them down, unless there was an obstacle. The initial snow on the ground (and the snowman) were using a different color that was almost white so it wouldn't detect as snow. It worked fairly well in 320×200 at the time.

I've tried the same approach in Turbo Pascal with BGI in the hopes of having a faster language and higher resolution available. It turned out to be quite a bit slower, likely because drawing and querying pixels was a bit more involved when using an adapter layer like BGI.

A few weeks ago I tried rewriting all that in TypeScript for fun and also trying to integrate it as an easter-egg with our graph drawing library (which renders with SVG) and first had to figure out how to efficiently support arbitrary obstacles that are initially SVG as well as a potentially changing viewport of the whole scene. I got sidetracked and didn't finish it, but proper collision handling was so easy back then (just look at the pixel color), but now with vector graphics and reading pixels being a very slow operation in many cases, it was surprisingly complicated.

tetris11•58m ago
I had to check if the author was Alphapapa
petargyurov•45m ago
Love it :)

I also rate the author's slogan: "make things, not too much, mostly crap". A reference to Michael Pollan's "eat food, not too much, mostly veg".

kleiba•19m ago
Why do some snowflakes stop in mid-air?
wongarsu•8m ago
I haven't looked at the code, but I suspect that those flakes have hit another snowflake and are now considered "fallen" snow. And for fallen snow there's probably an optimization that only x% of particles are updated every step
bananaboy•12m ago
Very nice! I made a version of this effect for a little NYE thing years ago [0] (source here [1]). I first saw this effect in Iguana's Blastersound BBS intro [2]. I always thought that intro looked slick!

[0] https://www.horsedrawngames.com/nye

[1] https://bitbucket.org/izzo/hdgnye

[2] https://youtu.be/qPOoU44GU50

Kim_Bruning•8m ago
Here's my variant on the same toy idea, using a CA, generated trees, and a few other tricks.

https://vps.kimbruning.nl/snow/2025/snow_singlecore_scalable...

Every year during snow season I try to make it faster/more flakes. After this year though in chrome, I think it'd be whiteout conditions ;-) (it'll auto-scale to try to match your system performance. Best effects in a clean browser with not too much else running/open at the same time)

101008•2m ago
Love everything about this. The idea of just do something because it's enjoyable for yourself, the retro style, the toyish-aspect...

I made my own Git

https://tonystr.net/blog/git_immitation
123•TonyStr•3h ago•44 comments

Heathrow scraps liquid container limit

https://www.bbc.com/news/articles/c1evvx89559o
416•robotsliketea•3d ago•558 comments

Velox: A Port of Tauri to Swift by Miguel de Icaza

https://github.com/velox-apps/velox
78•wahnfrieden•1w ago•15 comments

Snow Simulation Toy

https://potch.me/2026/snow-simulation-toy.html
32•surprisetalk•1w ago•10 comments

A list of fun destinations for telnet

https://telnet.org/htm/places.htm
186•tokyobreakfast•10h ago•51 comments

Xfwl4 – The Roadmap for a Xfce Wayland Compositor

https://alexxcons.github.io/blogpost_15.html
4•pantalaimon•41m ago•0 comments

Ask HN: Books to learn 6502 ASM and the Apple II

52•abkt•2h ago•29 comments

9 Mothers (YC X26, Defense Tech) Is Hiring

https://jobs.ashbyhq.com/9-mothers?utm_source=x8pZ4B3P3Q
1•ukd1•1h ago

Kimi Released Kimi K2.5, Open-Source Visual SOTA-Agentic Model

https://www.kimi.com/blog/kimi-k2-5.html
309•nekofneko•8h ago•116 comments

We Do Not Support Opt-Out Forms (2025)

https://consciousdigital.org/why-we-do-not-support-opt-out-forms/
35•mefengl•4h ago•8 comments

The Universal Pattern Popping Up in Math, Physics and Biology (2013)

https://www.quantamagazine.org/in-mysterious-pattern-math-and-nature-converge-20130205/
83•kerim-ca•4d ago•33 comments

Apple introduces new AirTag with longer range and improved findability

https://www.apple.com/newsroom/2026/01/apple-introduces-new-airtag-with-expanded-range-and-improv...
508•meetpateltech•23h ago•592 comments

ChatGPT Containers can now run bash, pip/npm install packages and download files

https://simonwillison.net/2026/Jan/26/chatgpt-containers/
372•simonw•18h ago•270 comments

The hidden engineering of runways

https://practical.engineering/blog/2026/1/20/the-hidden-engineering-of-runways
353•crescit_eundo•6d ago•84 comments

The C-Shaped Hole in Package Management

https://nesbitt.io/2026/01/27/the-c-shaped-hole-in-package-management.html
10•tanganik•3h ago•10 comments

There is an AI code review bubble

https://www.greptile.com/blog/ai-code-review-bubble
292•dakshgupta•22h ago•198 comments

Windows 11's Patch Tuesday nightmare gets worse

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
348•01-_-•22h ago•275 comments

I let ChatGPT analyze a decade of my Apple Watch data, then I called my doctor

https://www.msn.com/en-us/news/technology/i-let-chatgpt-analyze-a-decade-of-my-apple-watch-data-t...
163•zdw•15h ago•157 comments

TikTok users can't upload anti-ICE videos. The company blames tech issues

https://www.cnn.com/2026/01/26/tech/tiktok-ice-censorship-glitch-cec
41•kotaKat•23m ago•13 comments

JuiceSSH – Give me my pro features back

https://nproject.io/blog/juicessh-give-me-back-my-pro-features/
360•jandeboevrie•20h ago•147 comments

Dithering – Part 2: The Ordered Dithering

https://visualrambling.space/dithering-part-2/
221•ChrisArchitect•18h ago•28 comments

Over 36,500 killed in Iran's deadliest massacre, documents reveal

https://www.iranintl.com/en/202601255198
602•mhb•1d ago•345 comments

RIP Low-Code 2014-2025

https://www.zackliscio.com/posts/rip-low-code-2014-2025/
248•zackliscio•21h ago•129 comments

Russia using Interpol's wanted list to target critics abroad, leak reveals

https://www.bbc.com/news/articles/c20gg729y1yo
143•breve•7h ago•46 comments

AI code and software craft

https://alexwennerberg.com/blog/2026-01-25-slop.html
207•alexwennerberg•20h ago•119 comments

Refinement Without Specification

https://buttondown.com/hillelwayne/archive/refinement-without-specification/
9•BerislavLopac•6d ago•0 comments

New York Times games are hard: A computational perspective

https://arxiv.org/abs/2509.10846
46•PaulHoule•4d ago•15 comments

The Adolescence of Technology

https://www.darioamodei.com/essay/the-adolescence-of-technology
211•jasondavies•21h ago•139 comments

Porting 100k lines from TypeScript to Rust using Claude Code in a month

https://blog.vjeux.com/2026/analysis/porting-100k-lines-from-typescript-to-rust-using-claude-code...
229•ibobev•1d ago•140 comments

Model Market Fit

https://www.nicolasbustamante.com/p/model-market-fit
68•nbstme•6d ago•12 comments