frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A (de)compiler and parser/engine for custom Magic: The Gathering cards

https://chiplis.com/ironsmith/
1•nicolas-siplis•1h ago
Hey HN! I've been working on this for the past few months and I think it's at the point where I'm ready for some user feedback.

It's a WASM engine attempting to accurately model all of MTG's rules and cards. AFAIK, this is the first MTG engine which tries to accomplish this by live compiling the entire card collection at runtime, instead of coding each individual card.

You can create your own unique cards to playtest against ("Compile Card" button is what you're looking for), as long as they follow the engine's supported grammar (which I'm working on so that it fully supports Magic's ~30k legally playable cards, currently at 23k partially/17k fully supported).

It also supports 4-way P2P multiplayer lobbies via PeerJS, though I haven't had enough time to test everything network related so there may be some hidden bugs there!

My dev process was heavily influenced by the recent surge in agentic coding, but I think I've settled on an architecture which successfully manages to avoid slop creeping in:

Each card from its original, normalized oracle text into a CardDefinition struct which contains every single behavior for that particular card. By the time this card definition is compiled, we no longer have access to the original oracle text.

Each effect in the card's compiled definition can be decompiled into human readable text, after which a series of normalization steps based on the AST structure of the card's compilation and a post-pass to cleanup awkward wording is applied. The resulting compiled oracle text is compared against the original card's using vector embeddings, which gives us a semantic similarity score.

The entire purpose of this development workflow is making it obvious to the AI which cards are working correctly and which ones still need better support, without having to rely on behavioral tests for every single card. It took me some time until I finally managed to get the architecture to the point where the AI doesn't cheat its way into improving the card coverage, but the whole experience has been a fantastic way of getting used to this new way of coding and I'm excited to see how the future of our profession looks like in a few years.

I'm looking for any kind of feedback, both UI/UX and engine related, so please share your thoughts!

Why do crabs walk sideways? Scientists trace it back 200M years

https://www.sciencedaily.com/releases/2026/05/260501052844.htm
1•y1n0•5m ago•0 comments

US Navy signs deal with AI firm for training underwater drones

https://www.tomshardware.com/tech-industry/artificial-intelligence/us-navy-signs-deal-with-ai-fir...
1•y1n0•7m ago•0 comments

New Netflix documentary reexamines Winnie Mandela's divisive legacy

https://www.npr.org/2026/05/02/nx-s1-5800681/netflix-winnie-mandela
1•andsoitis•11m ago•0 comments

Reaching for the stars: enduring symbols of Soviet science in pictures

https://www.theguardian.com/artanddesign/gallery/2026/may/03/symbols-of-soviet-science-in-pictures
1•andsoitis•14m ago•0 comments

I touched a ZX Spectrum for the first time in decades

https://www.theguardian.com/games/2026/may/01/zx-spectrum-retro-games-dominik-diamond
1•andsoitis•15m ago•0 comments

The Wayfinders

https://longreads.com/2026/04/21/marshall-islands-soccer-team/
1•mooreds•15m ago•0 comments

How to prepare to be a startup founder (2021)

https://letterstoanewdeveloper.com/2021/11/22/how-to-prepare-to-be-a-startup-founder/
1•mooreds•17m ago•0 comments

Care Homes and Hotels in Japan Shut as Expansion Strategy Unravels

https://www.newsonjapan.com/article/149075.php
1•mikhael•21m ago•0 comments

Training language models to be warm can reduce accuracy and increase sycophancy

https://www.nature.com/articles/s41586-026-10410-0
1•0in•25m ago•0 comments

Why Nostr Will Win Where Mastodon and Bluesky Failed

https://primal.net/a/naddr1qvzqqqr4gupzqgycd7urua6ajmgc3jjunhcseekkz0swkljhdzs0pvftxlx6cgdnqq2hwv...
3•nout•26m ago•0 comments

A Common Proof of the Riemann Hypothesis and the Collatz Conjecture

https://www.academia.edu/166172334/A_Common_Proof_of_the_Riemann_Hypothesis_and_the_Collatz_Conje...
2•kristintynski•35m ago•1 comments

Maryland Is First to Ban A.I.-Driven Price Increases in Grocery Stores

https://www.nytimes.com/2026/05/01/business/surveillance-pricing-groceries-maryland.html
11•doener•35m ago•2 comments

Treat Agent Output Like Compiler Output

https://skiplabs.io/blog/codegen_as_compiler
1•azhenley•35m ago•0 comments

Clandestine network smuggling Starlink tech into Iran to beat internet blackout

https://www.bbc.com/news/articles/cvgzk91leweo
2•1659447091•36m ago•0 comments

The math behind how LLMs are trained and served

https://www.dwarkesh.com/p/reiner-pope
1•stopachka•38m ago•0 comments

ORBA: Orthogonal Reflection Bounded Ablation

https://huggingface.co/blog/grimjim/orthogonal-reflection-bounded-ablation
1•pyinstallwoes•40m ago•0 comments

Wyoming celebrates 'nuclear Renaissance' as feds approve license for a reactor

https://text.npr.org/nx-s1-5798892
2•mooreds•41m ago•0 comments

Show HN: Lisa a live dynamic wavetables synth you play and program in real-time

https://github.com/dr-schlange/LISA
1•drschlange•46m ago•0 comments

Virtual Scrolling

https://www.nicbarker.com/virtual-scrolling
1•azhenley•53m ago•0 comments

A Falcon 9 rocket will hit the Moon this summer at 7 times the speed of sound

https://arstechnica.com/space/2026/04/a-falcon-9-upper-stage-will-strike-the-moon-in-august/
1•bookofjoe•1h ago•0 comments

Intel Inside the Micro Revolution: 8008 Origins

https://thechipletter.substack.com/p/intel-inside-the-micro-revolution
1•ibobev•1h ago•0 comments

About St Helena, in the South Atlantic Ocean

https://sainthelenaisland.info/index.htm
1•Redoubts•1h ago•0 comments

Batteries: The game has changed – and it's not what you think

https://pv-magazine-usa.com/2026/05/01/batteries-the-game-has-changed-and-its-not-what-you-think/
1•xbmcuser•1h ago•0 comments

Class Variance Authority

https://cva.style/docs
1•doener•1h ago•1 comments

Am I the only one who hates delivery robots?

https://www.latimes.com/entertainment-arts/story/2026-04-14/delivery-robots-creating-problems-gle...
11•robotlaunch•1h ago•1 comments

Driverless cars can now get citations; autonomous trucks approved for testing CA

https://abc7.com/post/california-dmv-issues-new-regulations-autonomous-vehicles-including-getting...
1•robotlaunch•1h ago•0 comments

OpenAI's o1 correctly diagnosed 67% of ER patients vs. 50-55% by triage doctors

https://www.theguardian.com/technology/2026/apr/30/ai-outperforms-doctors-in-harvard-trial-of-eme...
3•donsupreme•1h ago•0 comments

Show HN: A (de)compiler and parser/engine for custom Magic: The Gathering cards

https://chiplis.com/ironsmith/
1•nicolas-siplis•1h ago•0 comments

Introducing Advanced Account Security

https://openai.com/index/advanced-account-security/
1•Cider9986•1h ago•0 comments

Show HN: Use an Android Phone as an HTTP Proxy

https://github.com/vgaj/proxy
1•viru7•1h ago•0 comments