Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Breakout List(breakoutlist.com ↗)
    1comments
  2. Show HN: Pixel Agents – A pixel-art mission control for your Claude Code agents(mateovalle.github.io ↗)
    discuss
  3. A Trump-backed crypto bill just suffered a bruising defeat in the Senate(npr.org ↗)
    discuss
  4. Oil Prices Could Hit Highest Levels in Months After Saudi Pipeline Attacks(nytimes.com ↗)
    discuss
  5. The first (public) System One Model; Jev gives AI the properties of code(typesafe.ai ↗)
    discuss
  6. Iran strikes on Amazon data centers caused permanent loss of customer data(arstechnica.com ↗)
    1comments
  7. Amazon bumps minimum starting pay to $20/hour, adds new discount for employees(thehill.com ↗)
    discuss
  8. Google confirms Pixel phones exploited in 'targeted' modem based attack(9to5google.com ↗)
    discuss
  9. AI Compilers Are Not Just Compilers for AI(aicompilers.github.io ↗)
    discuss
  10. History of the BBC TV Idents(bbc.com ↗)
    discuss
  11. A mouse whose brain cortex is made up of human cells(technologyreview.com ↗)
    discuss
  12. Ask HN: AI Panic, you buying it?
    2comments
  13. The FBI Doubles Down on Easing 'Bestiality' Hiring Standards(wired.com ↗)
    discuss
  14. Show HN: Smarter Shell History for Zsh(github.com/overflowy ↗)
    discuss
  15. OSRS Wiki and RuneLite are under strain from low-effort AI development(runescape.wiki ↗)
    discuss
  16. CO3: Toward the Optimal FFI(mversic.github.io ↗)
    discuss
  17. Training Text-to-Image Models 3.6× Faster(linum.ai ↗)
    discuss
  18. Gnome 51 Released with Improved Frame Scheduling, Many App Improvements(phoronix.com ↗)
    1comments
  19. We killed our in-app AI chat and made the agent a first-class user(sensefold.app ↗)
    discuss
  20. Omarchy on Mac(github.com/omacom ↗)
    discuss
  21. Whiteboard Defense(twitter.com/mitchellh ↗)
    discuss
  22. Show HN: Ivx/AI Chat, AI client that doesn't track you (with a better GUI imo)(ivx.run ↗)
    discuss
  23. As Someone Who Has Written This Blog Post,(zachholman.com ↗)
    discuss
  24. Numerical Tours(numerical-tours.com ↗)
    discuss
  25. IPC Panic, a 4-call kernel panic in Apple XNU, up to macOS and iOS 26 included(seriot.ch ↗)
    discuss
  26. Inside the MIT Report on How AI Is Eroding Campus Culture(learningcurve.fm ↗)
    1comments
  27. GitMir just released Vibe, it's like Claude on steroids(gitmir.com ↗)
    discuss
  28. Mercury Books – Accounting Software Built into Your Bank Account(mercury.com ↗)
    discuss
  29. Hacking a Xiaomi Mi Band 4 to Run Super Mario Bros(qwertyforce.dev ↗)
    discuss
  30. Fedora 45 beta drags the Linux console into the 21st century(theregister.com ↗)
    discuss

Show HN: Why is a fly so hard to swat?

1 pointsby 1h agoflyswat.win
1 comments
1h agoHN ↗

I was at my desk when a large and very loud fly started circling my head and tapping the screen. I swatted it but missed every time, so I casually asked my AI assistant why. That kicked off an interesting thread.

I was surprised to learn that a fly does not curve. It flies a straight run, turns 90 degrees in 0.05s, then flies straight again (Wagner 1986 for houseflies; Tammero and Dickinson 2002 for fruit flies).

I also learned that each straight section has random duration (obstacles excepted). The pattern is exponential, which makes it very hard to predict. Watching it for longer really doesn't help.

Human reaction time is 0.15s at the fast end, so even if you guess correctly, it may still be gone. However, you still have a chance, which is why we keep coming back, in the game and in real life.

The resting fly research is Card and Dickinson (2008). It shifts position to jump away from the swatter and is off the wall in 0.2s, before your arm has moved. So standard advice is to aim a little ahead of where it faces.

The parameters are printed on the page. Depth is not modeled and the page says so.

20 swats, then you see your percentage score. I'm getting better, but still top out at about 25%.

It's plain JavaScript with no framework and no dependencies. Tests are node --test with nothing to install. No cookies... because they attract flies :)