NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Writing Efficient C++ Code (asawicki.info)
hn_submit 8 minutes 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.
112233 48 minutes 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 28 minutes ago [-]
How? you can write exactly the same low level code today.
beached_whale 18 minutes 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)

tug2024 7 minutes ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 16:11:52 GMT+0000 (Coordinated Universal Time) with Vercel.