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/
2•nicolas-siplis•4h 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!

Show HN: State of the Art of Coding Models, According to Hacker News Commenters

https://hnup.date/hn-sota
70•yunusabd•7h ago•36 comments

Show HN: Golang binaries built for your users depending on their arch and system

https://goblin.run
7•aliezsid•2d ago•6 comments

Show HN: I'm running parallel Pi agents on a local sandbox

https://github.com/CelestoAI/SmolVM/
2•theaniketmaurya•1h ago•0 comments

Show HN: Pollen – distributed WASM runtime, no control plane, single binary

https://github.com/sambigeara/pollen
110•sambigeara•2d ago•47 comments

Show HN: DAC – open-source dashboard as code tool for agents and humans

https://github.com/bruin-data/dac
100•karakanb•3d ago•31 comments

Show HN: Rust library for Undo/Redo using deltas, snapshots or commands

https://github.com/mikwielgus/undoredo
15•mikolajw•9h ago•2 comments

Show HN: Mljar Studio – local AI data analyst that saves analysis as notebooks

https://mljar.com/
63•pplonski86•18h ago•10 comments

Show HN: Filling PDF forms with AI using client-side tool calling

https://copilot.simplepdf.com/?share=a7d00ad073c75a75d493228e6ff7b11eb3f2d945b6175913e87898ec96ca...
51•nip•19h ago•23 comments

Show HN: Browser-based light pollution simulator using real photometric data

https://iesna.eu/?wasm=skyglow_demo
37•holg•19h ago•11 comments

Show HN: Piruetas – A self-hosted diary app I built for my girlfriend

https://piruet.app
59•patillacode•17h ago•48 comments

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

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

Show HN: Large Scale Article Extract of Newspapers 1730s-1960s

https://snewpapers.com/
45•brettnbutter•19h ago•18 comments

Show HN: AI CAD Harness

https://fusion.adam.new/install
93•zachdive•1d ago•89 comments

Show HN: Stop playing my matchstick puzzles, start building your own in seconds

https://mathstick.github.io
34•trangram•23h ago•28 comments

Show HN: WhatCable, a tiny menu bar app for inspecting USB-C cables

https://github.com/darrylmorley/whatcable
531•sleepingNomad•1d ago•160 comments

Show HN: Rotato – Node.js proxy that rotates LLM API keys on 429 errors

https://github.com/p32929/rotato
2•heliskyr2•7h ago•0 comments

Show HN: Clipmon is a macOS clipboard manager on steroids

https://github.com/c9-labs/clipmon
4•vednig•7h ago•0 comments

Show HN: Site Mogging

https://sitemogging.com
65•jilles•1d ago•74 comments

Show HN: Loopsy, a way for terminals and AI agents on different machines to talk

https://github.com/leox255/loopsy
54•todience•1d ago•11 comments

Show HN: Fabrica – A minimal terminal-based coding agent built in Rust

https://github.com/Endi1/fabrica
2•PestoDiRucola•8h ago•2 comments

Show HN: SimDrive – a browser racing game with your phone as the controller:D

https://simdrive.xyz/
17•1000xcat•3d ago•9 comments

Show HN: Agent-desktop – Native desktop automation CLI for AI agents

https://github.com/lahfir/agent-desktop
93•lahfir•1d ago•35 comments

Show HN: Perfect Bluetooth MIDI for Windows

104•mayerwin•1d ago•34 comments

Show HN: My Private GitHub on Postgres

https://github.com/calebwin/gitgres
41•calebhwin•1d ago•23 comments

Show HN: A new benchmark for testing LLMs for deterministic outputs

https://interfaze.ai/blog/introducing-structured-output-benchmark
59•khurdula•3d ago•28 comments

Show HN: GhostBox – Borrow a disposable little machine from the Global Free Tier

https://www.ghost.charity/
123•keepamovin•1d ago•99 comments

Show HN: AgInTiFlow, a local web and CLI agent workspace using DeepSeek

https://www.npmjs.com/package/@lazyingart/agintiflow
3•lachlanchen•14h ago•0 comments

Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell

https://pu.dev/
89•nahimn•2d ago•27 comments

Show HN: Drive any macOS app in the background without stealing the cursor

https://github.com/trycua/cua
189•frabonacci•4d ago•41 comments

Show HN: Live Sun and Moon Dashboard with NASA Footage

https://www.lumara-space.app/
222•beeswaxpat•4d ago•68 comments