frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Writing Efficient C++ Code

https://asawicki.info/articles/writing_efficient_cpp_code.php
35•ibobev•1d ago

Comments

112233•1h ago
"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 :(
fooblaster•41m ago
How? you can write exactly the same low level code today.
beached_whale•31m ago
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)

jll29•6m ago
I think it has become EASIER: for instance, since C++23 Rust-like move semantics can be used, which provides the compiler with extra information that can be leveraged for the generation of better code.

Or take constexpr - it permits to move computations to compile time that are complex and in older versions either had to be done at runtime, or an ugly workaround had to be used (e.g. assigning a mysterious literal pre-computed in another run or by hand).

hn_submit•20m ago
I write in C++ almost every day but never have the need to optimize for speed. Even when you write straightforward code it's already blazingly fast.

"They had no concept of a duty of care to their users."

https://unsung.aresluna.org/they-had-no-concept-of-a-duty-of-care-to-their-users/
185•jandeboevrie•1h ago•134 comments

In an $80 Motel Room, a Discovery to Shed Light on the Origins of Life

https://www.nytimes.com/2026/09/26/science/motel-science-discovery.html
54•danso•1h ago•20 comments

The Normalization of Inexplicable Failures

https://www.ihatethefuture.com/2026/09/the-normalization-of-inexplicable.html
29•pxx•57m ago•3 comments

Replacing the old battery on rechargeable bike lights

https://jvns.ca/blog/2026/09/27/replacing-the-old-battery-on-rechargeable-bike-lights/
57•surprisetalk•2h ago•22 comments

Show HN: TinyAIArena watch AI agents battle it out

https://tinyaiarena.com/
12•hp6•33m ago•3 comments

Writing Efficient C++ Code

https://asawicki.info/articles/writing_efficient_cpp_code.php
35•ibobev•1d ago•6 comments

Font where each token is equal-width

https://twitter.com/amplifiedamp/status/2103535129503383700
20•ampdot•23h ago•6 comments

Ten Lines of Code That Changed My World

https://pixelambacht.nl/2026/ten-lines-of-code/
26•dimonomid•2h ago•4 comments

Flip Fluid on Flip Dots

https://mitxela.com/projects/flipflip
268•blutack•1d ago•18 comments

Show HN: A CC0 museum of retro 3D tricks you can paste into a page

https://3d-retro.com/
35•SouthWestAtlas•3d ago•8 comments

Fakecloud: Local AWS cloud emulator for integration tests

https://fakecloud.dev/
42•theanonymousone•1d ago•25 comments

Does Georgism work? Five years later

https://www.astralcodexten.com/p/does-georgism-work-five-years-later
459•silveraxe93•2d ago•365 comments

Go Concurrency Distilled

https://antonz.org/go-concurrency-distilled/
310•chmaynard•1d ago•134 comments

Finally, A True Blue Rose Exists

https://www.sciencenews.org/article/true-blue-rose-pigment-copigment
71•bookofjoe•1d ago•27 comments

Unsealed Briefs in Authors’ Case v. Microsoft/OpenAI

https://authorsguild.org/news/ag-v-openai-top-execs-knew-mass-book-piracy-was-illegal/
543•papergirl•10h ago•484 comments

postmarketOS Rebrand: Nura

https://nura.eco/blog/2026/09/27/nura-rename/
27•HotGarbage•53m ago•0 comments

PipePipe: NewPipe hard fork implementing SponsorBlock

https://github.com/InfinityLoop1308/PipePipe
467•Qision•2d ago•249 comments

Rusty thoughts on "Parse, don't validate"

https://eli.thegreenplace.net/2026/rusty-thoughts-on-parse-dont-validate/
37•ingve•7h ago•12 comments

Walgit: A Git server that is one binary in front of an object store

https://github.com/rgodha24/walgithub
3•handfuloflight•1d ago•1 comments

DeepSeek Elastic Compute (DSec)

https://arxiv.org/abs/2609.22978
301•shenli3514•22h ago•95 comments

Show HN: Reladraw – A diagram language where you decide where to place things

https://github.com/reladraw/reladraw
361•jpwalsh234•23h ago•97 comments

The internet discovers TLA+. Now what?

https://reasonable.io/blog/tla-tutorial/
82•matt_d•10h ago•42 comments

10 Tells of a Slop UI

https://hereticpleb.vercel.app/blog/10-tells-of-slop
178•theanonymousone•1h ago•136 comments

ASML says it sold 'absolutely nothing' in Europe in 2026

https://www.tomshardware.com/tech-industry/semiconductors/asml-says-its-sells-absolutely-nothing-...
368•MC995•2d ago•798 comments

Biology might not be quantum, but its math is quantumlike

https://www.quantamagazine.org/biology-might-not-be-quantum-but-its-math-is-quantumlike-20260923/
104•pseudolus•2d ago•43 comments

A searchable library of forgotten public-domain film clips from 1915 onward

https://www.movingimagearchive.com/
197•momentmaker•3d ago•26 comments

"As a Language Model": Chat Template Switches LLM Self-Referential Voice

https://arxiv.org/abs/2609.25021
83•yu3zhou4•5h ago•93 comments

Fifteen years later, the Apple Cards origin story

https://lexontech.org/fifteen-years-later-the-apple-cards-origin-story
423•ksec•1d ago•110 comments

An agent used DNS to reach an external chatbot

https://alignment.openai.com/misalignment-reports/an-agent-used-dns-to-reach-an-external-chatbot/
141•apsec112•1d ago•143 comments

How I changed teaching after AI managed to do all my homework assignments

https://thelastsoftwareengineer.substack.com/p/how-i-changed-teaching-after-ai-managed
267•azhenley•2d ago•254 comments