Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Netanyahu claims ability to hack any iPhone and plant false evidence (twitter.com/dllambo)
    —discuss
  2. Single-Writer Bottleneck: Why Write Serialization Limits RealTime Graph Workload (memgraph.com)
    —discuss
  3. The Cambrian Explosion in Software (jeffammons.com)
    —discuss
  4. Changing the difference between Codex plans to be Plus=1x Pro 100=5x Pro 200=10x (twitter.com/thsottiaux)
    —discuss
  5. Show HN: An MCP to control other Windows computers (github.com/boxerbk)
    —discuss
  6. Car's data privacy problems are worse than you think (theverge.com)
    —discuss
  7. Show HN: MineSweeper, but guessing is not needed, or forgiven (billpg.com)
    —discuss
  8. Mark Zuckerberg – Colossus (colossus.com)
    —discuss
  9. Is Spotify Down? Streaming Service Reports Issues (cnet.com)
    —discuss
  10. OpenAI blocked its agent's web access. Then it tunneled out through DNS (thenewstack.io)
    —discuss
  11. Show HN: Sensored – streaming-first PII/PHI redaction (github.com/atomicpages)
    —discuss
  12. Florida invokes extinction fears in legal bid to halt OpenAI development (arstechnica.com)
    1comments
  13. Side Hustle Tax Calc – Paste your 1099 income, see what you owe in 30 seconds (botlabcollective.com)
    —discuss
  14. There's a new way to break RSA that's faster than anything we've seen before (arstechnica.com)
    —discuss
  15. Gates Foundation 5 Year Goal: Help 3B People to Use AI in Their Language (gatesfoundation.org)
    —discuss
  16. Star.vision Unveils 'Space.IDC' Computing Constellation with Partners (china-in-space.com)
    —discuss
  17. Reading Progress Bars Are Bad UX (maxschmitt.me)
    —discuss
  18. Strutt's Powered Wheelchair Is Not a Wheelchair (For Legal Reasons) (core77.com)
    —discuss
  19. DIY X-RAY generator made of eBay parts (highvoltageforum.net)
    —discuss
  20. No errors, no warnings, no gods, no masters – HTML Purity is a Fetish (shkspr.mobi)
    —discuss
  21. Oracle Extends Fusion Agentic Applications with Introduction of Fusion Claw (oracle.com)
    —discuss
  22. Apple's New CEO Moves to Overhaul Company to Run Faster and Leaner (bloomberg.com)
    1comments
  23. Show HN: ProgressCove, calm and smart to-do app with Home Assistant integration (progresscove.com)
    2comments
  24. San Diego overbills sanitation customers due to file copy error (voiceofsandiego.org)
    —discuss
  25. Another World Ported to ZX Spectrum (github.com/antirez)
    —discuss
  26. A list of publications that accept cartoons and their associated payment (colemantoons.com)
    —discuss
  27. Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck (turso.tech)
    —discuss
  28. The Genius Trick Behind Exile's Impossible Map (youtube.com)
    —discuss
  29. Every model (incl. Jev) we tested inflates security finding severity (casco.com)
    1comments
  30. Wikifunctions (wikifunctions.org)
    —discuss

TLA+ helped us fix and10 issues in our OSS project

1 pointsby 24m agogithub.com
1 comments
24m agoHN ↗

Hi there!

A few weeks ago, Boris posted how formal verification helped fix issues in their codebase (https://x.com/bcherny/status/2102543349102338309) and I definitely wanted to try it out in the swarm codebase.

The idea was simple:

1. Go over the codebase and fine most critical parts that could be modelled 2. Pick the first few and try to model them based on main code 3. Find counterexamples 4. Generate failing tests for them (single tests file diff pr) 5. Go over each of them and fix them + add the counterexamples in the repo for reference

I think this pattern is super nice tbh, and it helps a lot on reasoning around the code and implementation, specially when AI was involved.

The main issue: we had to add a daily wf to check for any updates to the spec, so that we keep it in sync (price you pay when the language can not be expressive enough, e.g. js).

Another win was that for the heartbeat system, which I wanted to refactor for a while, it managed to propose a simplification from 1.3M states to only ~4k (lol).

I believe it can be used for complex systems refactoring, while keeping the same functionalities.

Blog post about it (beware AI generated, but it contains some of the prompts we used during the session, just point your agent to the link and let it cook) -> https://www.agent-swarm.dev/blog/tla-plus-races-agent-swarm

I've been wanting to use tla+ for years, but always struggled w the syntax when working on something non-trivial. AI generating the specs and explaining the reasoning behind them helped a lot!

If you curious about the specs -> https://github.com/desplega-ai/agent-swarm/blob/main/specs/t...

Cheers,