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)
    91comments
  2. In an $80 Motel Room, a Discovery to Shed Light on the Origins of Life (nytimes.com)
    19comments
  3. The Normalization of Inexplicable Failures (ihatethefuture.com)
    1comments
  4. Replacing the old battery on rechargeable bike lights (jvns.ca)
    17comments
  5. Writing Efficient C++ Code (asawicki.info)
    3comments
  6. Font where each token is equal-width (twitter.com/amplifiedamp)
    5comments
  7. Flip Fluid on Flip Dots (mitxela.com)
    17comments
  8. Fakecloud: Local AWS cloud emulator for integration tests (fakecloud.dev)
    18comments
  9. Show HN: A CC0 museum of retro 3D tricks you can paste into a page (3d-retro.com)
    6comments
  10. Ten Lines of Code That Changed My World (pixelambacht.nl)
    2comments
  11. Does Georgism work? Five years later (astralcodexten.com)
    350comments
  12. Unsealed Briefs in Authors’ Case v. Microsoft/OpenAI (authorsguild.org)
    475comments
  13. Go Concurrency Distilled (antonz.org)
    134comments
  14. Finally, A True Blue Rose Exists (sciencenews.org)
    26comments
  15. PipePipe: NewPipe hard fork implementing SponsorBlock (github.com/infinityloop1308)
    250comments
  16. The internet discovers TLA+. Now what? (reasonable.io)
    40comments
  17. Rusty thoughts on "Parse, don't validate" (thegreenplace.net)
    11comments
  18. DeepSeek Elastic Compute (DSec) (arxiv.org)
    94comments
  19. Show HN: Reladraw – A diagram language where you decide where to place things (github.com/reladraw)
    95comments
  20. 10 Tells of a Slop UI (hereticpleb.vercel.app)
    124comments
  21. postmarketOS Rebrand: Nura (nura.eco)
    —discuss
  22. ASML says it sold 'absolutely nothing' in Europe in 2026 (tomshardware.com)
    786comments
  23. Biology might not be quantum, but its math is quantumlike (quantamagazine.org)
    41comments
  24. "As a Language Model": Chat Template Switches LLM Self-Referential Voice (arxiv.org)
    89comments
  25. A searchable library of forgotten public-domain film clips from 1915 onward (movingimagearchive.com)
    26comments
  26. An agent used DNS to reach an external chatbot (alignment.openai.com)
    141comments
  27. Fifteen years later, the Apple Cards origin story (lexontech.org)
    110comments
  28. How I changed teaching after AI managed to do all my homework assignments (thelastsoftwareengineer.substack.com)
    250comments
  29. Exploding variance of means of exponentials: least-squares to the rescue (francisbach.com)
    —discuss
  30. Promising discoveries about the potential for life on one of Saturn’s icy moons (fu-berlin.de)
    51comments

Writing Efficient C++ Code

23 pointsby 1d agoasawicki.info
3 comments
41m agoHN ↗

"This article was originally published in Polish in issue 4/2013" — a lot of excellent advice. Sad to see C++ have moved in last decade in a direction that makes writing efficient, simple low level code harder and harder :(

21m agoHN ↗

How? you can write exactly the same low level code today.

11m agoHN ↗

My thought too.

There are so many things that are expressible in C++ now that could not be without writing much more code or using per-compilation tools back then. The ability to run code at compile time that is not run at runtime is huge, #embed lets us make other tools output available without linker scripts or compiler specific tools that.

Also, most of the code from the past still works(from 10 years ago definitely works)