frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Circuit Artist –Circuit simulator with propagation animation and rewind

https://github.com/lets-all-be-stupid-forever/circuit-artist
2•rafinha•1h ago
Hello,

Circuit Artist is a game about drawing digital circuits as pixel art — like MS Paint, but pixels are wires and little triangles are NANDs. Hit play and the simulation runs in real time. It's fully white-box: every wire's state is visible.

I launched it last year with a unit-delay simulation that ran until convergence on each update. It worked, but I realized it had some fundamental problems:

(i) It hid what was actually happening. Players couldn't tell the difference between a ripple carry adder and a look-ahead adder — everything just resolved instantly.

(ii) Design bugs became "game bugs." When players had non-converging wires (like A = not(A)), the game couldn't explain why or where the error was.

(iii) Layout didn't matter. A NAND on one side of the map would instantly propagate to the opposite side, making spatial decisions meaningless. Unit delay probably works better for schematic-based simulators like Logisim, not a layout-focused game like this.

(iv) Propagation visualization couldn't be added on top of the unit-delay engine — there was no notion of direction or distance.

So I rebuilt the engine with variable-delay event-based simulation using an adaptation of Elmore delay. The delay for each wire depends on distance and fanout — longer wires are slower, higher fanout adds delay, branching wires are faster.

For the implementation: I compute Elmore delay over wire trees. Each pixel has resistance and capacitance, with NAND inputs as nodes to account for fanout. For non-tree wire graphs, I build a Dijkstra-based spanning tree (driver as root) and interpolate for edges outside the tree. I calculate the delay for each node and project it back to the image so every pixel has a distance.

This lets me animate propagation with a glow effect during simulation. The shader knows when each wire was triggered, the current time, and the Elmore distance of each pixel, so it resolves state per-pixel in real time.

On top of that:

- Time rewind: the simulation is now delta-based, so players can freeze and scrub backwards to debug. Super useful for cyclic circuits.

- Layers: since timing matters now, I added up to 3 layers. NANDs only go on the bottom layer, upper layers propagate faster (lower capacitance). Lets you route wires above dense NAND areas.

The game has a campaign for learning from scratch, though it's still incomplete and in progress. I'm working toward Steam Workshop support so people can create their own campaigns to teach different concepts or cover more advanced topics.

GitHub (full source): https://github.com/lets-all-be-stupid-forever/circuit-artist

Steam: https://store.steampowered.com/app/3139580/Circuit_Artist/

"Taking AI Doom Seriously" by Primer [video]

https://www.youtube.com/watch?v=Qg5QXY_qZuI
1•fainpul•43s ago•0 comments

Tesla publishes analyst forecasts suggesting sales set to fall

https://www.theguardian.com/technology/2025/dec/31/tesla-surprise-announcement-lower-sales-2025
2•rene_d•4m ago•0 comments

Photoshop 1.0 and the Early Macintosh HIG

https://daringfireball.net/linked/2025/12/31/photoshop-1-and-the-early-macintosh-hig
1•tosh•7m ago•0 comments

Navigating AI: Critical Thinking in the Age of LLMs

https://mcuoneclipse.com/2025/12/31/navigating-ai-critical-thinking-in-the-age-of-llms/
1•chrsw•7m ago•0 comments

Astronomers combine JWST and Chandra X-ray Telescope to image colliding galaxies

https://www.scientificamerican.com/article/nasa-telescopes-capture-colliding-spiral-galaxies-in-s...
1•ck2•8m ago•1 comments

New York's incoming mayor bans Raspberry Pi at inauguration

https://www.theregister.com/2025/12/31/zohran_mamdani_raspberry_pi_ban/
6•Tomte•13m ago•3 comments

Are you a deep-tech founder working on an interesting project?

1•udit_50•14m ago•0 comments

Fire19 – A New DNS

https://jaguarint.vercel.app/
1•telui•14m ago•1 comments

Web Browsers have stopped blocking pop-ups

https://www.smokingonabike.com/2025/12/31/web-browsers-have-stopped-blocking-pop-ups/
2•coldpie•16m ago•0 comments

Here we go again: Retiring coal plant forced to stay open by Trump Admin

https://arstechnica.com/science/2025/12/trump-admin-orders-another-coal-plant-to-stay-open/
2•duxup•17m ago•0 comments

Stewart Cheifet, creator of The Computer Chronicles, dead at 87

https://obits.goldsteinsfuneral.com/stewart-cheifet
2•spankibalt•17m ago•1 comments

Poland calls for EU action for AI-generated TikTok videos calling for "Polexit"

https://notesfrompoland.com/2025/12/31/poland-calls-for-eu-action-against-ai-generated-tiktok-vid...
2•consumer451•18m ago•0 comments

2026

1•xalu•18m ago•0 comments

Nelm (Helm alternative)

https://github.com/werf/nelm
1•gtirloni•20m ago•0 comments

Authors Guild Raises Concerns About Kindle's New "Ask This Book" AI Feature

https://authorsguild.org/news/statement-on-amazon-kindle-ask-this-book-ai-feature/
1•ilamont•20m ago•0 comments

Moonshot AI, a Chinese AI startup behind Kimi, closed a $500M Series C

https://twitter.com/poezhao0605/status/2006286951222038562
2•Alifatisk•22m ago•1 comments

Running out of places to move the goalposts to

https://nickdrozd.github.io/2025/12/31/goalposts.html
2•nickdrozd•24m ago•1 comments

Formally speaking, "Transpiler" is a useless word

https://people.csail.mit.edu/rachit/post/transpiler-formal/
1•birdculture•24m ago•0 comments

Agents Done Right: A Framework Vision for 2026

https://blog.bryanl.dev/posts/agent-framework-vision/
1•camedee•27m ago•1 comments

Climate Solutions: Why I'm More Optimistic for 2026

https://www.gravityloss.com/2025/12/climate-solutions-why-im-more-optimistic-for-2026/
1•Gravityloss•27m ago•0 comments

What Do Consumers Want in Smart Glasses?

https://spectrum.ieee.org/two-visions-for-smart-glasses
1•ohjeez•28m ago•0 comments

Head Up, Feet Moving: Complexity isn't a spectator sport

https://medium.com/topology-insight/head-up-feet-moving-b56e60867190
1•asplake•30m ago•0 comments

Tesla Q4 2025 Delivery Consensus

https://ir.tesla.com/press-release/delivery-consensus-fourth-quarter-2025
2•yibg•30m ago•0 comments

Historical Popularity Index

https://pantheon.world/explore/rankings?show=people&years=-3501,2025
1•gygodard•31m ago•0 comments

Second-Hand Bookshops in Britain: 2025 Report

http://wormwoodiana.blogspot.com/2025/12/second-hand-bookshops-in-britain-2025.html
1•fogus•31m ago•0 comments

Looking Back at Python Pescara 2025

https://www.paulox.net/2025/12/31/looking-back-at-python-pescara-2025/
1•pauloxnet•34m ago•0 comments

WORST REGARDS: A collective fuck-you letter from humanity to 2025

https://worstregards.com/
4•tom8opot8o•34m ago•1 comments

Show HN: Overlay – Invisible AI Assistant

https://overlayai.app
1•ckkampy•36m ago•1 comments

Re-attach detached Terminal Tabs

https://askubuntu.com/questions/1242144/re-attach-detached-terminal-tabs
1•sipofwater•36m ago•0 comments

Thoughts on AI

https://vega.rd.no/writing/ai
2•vegardlarsen•40m ago•1 comments