Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. "They had no concept of a duty of care to their users." (aresluna.org)
    180comments
  2. The Normalization of Inexplicable Failures (ihatethefuture.com)
    10comments
  3. In an $80 Motel Room, a Discovery to Shed Light on the Origins of Life (nytimes.com)
    26comments
  4. Replacing the old battery on rechargeable bike lights (jvns.ca)
    25comments
  5. Writing Efficient C++ Code (asawicki.info)
    11comments
  6. Ten Lines of Code That Changed My World (pixelambacht.nl)
    4comments
  7. Show HN: TinyAIArena watch AI agents battle it out (tinyaiarena.com)
    8comments
  8. Flip Fluid on Flip Dots (mitxela.com)
    18comments
  9. Fakecloud: Local AWS cloud emulator for integration tests (fakecloud.dev)
    26comments
  10. Show HN: A CC0 museum of retro 3D tricks you can paste into a page (3d-retro.com)
    9comments
  11. Does Georgism work? Five years later (astralcodexten.com)
    374comments
  12. postmarketOS Rebrand: Nura (nura.eco)
    —discuss
  13. Go Concurrency Distilled (antonz.org)
    134comments
  14. Finally, A True Blue Rose Exists (sciencenews.org)
    27comments
  15. Walgit: A Git server that is one binary in front of an object store (github.com/rgodha24)
    2comments
  16. Unsealed Briefs in Authors’ Case v. Microsoft/OpenAI (authorsguild.org)
    498comments
  17. PipePipe: NewPipe hard fork implementing SponsorBlock (github.com/infinityloop1308)
    251comments
  18. Rusty thoughts on "Parse, don't validate" (thegreenplace.net)
    13comments
  19. Show HN: Reladraw – A diagram language where you decide where to place things (github.com/reladraw)
    101comments
  20. DeepSeek Elastic Compute (DSec) (arxiv.org)
    95comments
  21. The internet discovers TLA+. Now what? (reasonable.io)
    44comments
  22. ASML says it sold 'absolutely nothing' in Europe in 2026 (tomshardware.com)
    806comments
  23. Biology might not be quantum, but its math is quantumlike (quantamagazine.org)
    45comments
  24. 10 Tells of a Slop UI (hereticpleb.vercel.app)
    149comments
  25. "As a Language Model": Chat Template Switches LLM Self-Referential Voice (arxiv.org)
    93comments
  26. A searchable library of forgotten public-domain film clips from 1915 onward (movingimagearchive.com)
    26comments
  27. There are no "rogue" AI agents (eoinhiggins.substack.com)
    1comments
  28. Fifteen years later, the Apple Cards origin story (lexontech.org)
    110comments
  29. An agent used DNS to reach an external chatbot (alignment.openai.com)
    146comments
  30. Exploding variance of means of exponentials: least-squares to the rescue (francisbach.com)
    —discuss

Ten Lines of Code That Changed My World

35 pointsby 3h agopixelambacht.nl
4 comments
1h agoHN ↗

I have been collecting small code snippets that would make for good tattoos and I have to say, some of these ones would probably make a good addition to the collection.

I'm partially more in favor of "red" instead of "hotpink" for CSS, but that's just me.

26m agoHN ↗

Don’t forget the function name at the very beginning!

:(){ :|:& };:

1h agoHN ↗

The BASIC print+goto loop might have been my first ever program too (in the 80s) but one thing for sure for me: it was definitely not “Hello, World”. I and others filled the screen with any number of silly things, random words, jokes and juvenile phrases, whatever, but for some reason, “Hello, World!” was a C thing, and I remember seeing it for the first time in a C class in high school, and then much more often in college.

I have memories of ‘poke’ as well. On the Atari 800 you could poke memory to change the keystroke repeat rate and delay before repeat started, so obviously we would turn down the delay to zero and turn up the repeat to max (it was maybe 60 characters per second), so anyone trying to type couldn’t hit the keys quickly enough to avoid repeating. You’d have to power-cycle the machine to fix it, so it was hilarious to 11 year old me.

Similar to his description of ‘poke’, but different mechanism - using debug.com on an IBM PC jr to edit the Ultimate III save files, and give myself maximum money and lives.

Good times!