Blogs / Personal blogs

Arthur O'Dwyer

quuxplusone.github.io

Popular posts
11
Total points
5,320
HN comments
3,179
Rank
#194 personal

Visit quuxplusone.github.io → On Hacker News Nov 2019 – Jul 2025

Software Engineering 9Programming Languages 6Systems & Performance 2Web & Frontend 1Math & Algorithms 1History & Retro Computing 1

1

Escape analysis hates copy elision (2021)

Yesterday Lauri Vasama showed me this awesome Godbolt: struct S { static std::unique_ptr<S> make() noexcept; ~S(); static std::unique_ptr<S> factory() { std::unique_ptr<S> s = S::make(); return M(s); } }; void take_ownership(S*) noexcept; void test() { std::unique_ptr<S> p = S::factory()…