artificial::mind blog

Thoughts about Graphics, C++, Optimization, and more

  • Home
  • About
C++ | Optimization

Moves in Returns

Mini guide to 'when is my return a move?'

8 min read
C++ | Optimization

Optimization without Inlining

Even without inlining, the compiler does not always has to assume the worst case.

5 min read
C++ | Optimization

Measuring std::unordered_map Badness

When is a good hash a good hash?

11 min read
C++

std::sort multiple ranges

Sorting a range of keys while keeping a range of values in sync.

8 min read
C++

consteval in C++17

Forcing compile time evaluation in C++17

2 min read
C++

Approximating 'constexpr for'

'if constexpr' is awesome, but can we do 'constexpr for'?

5 min read
C++ | Fun

Multi-Level Break in C++ via IIFE

Ever wanted to break more than one level at once?

1 min read
C++ | Api design

range_ref<T>

A fast, lightweight, non-owning view of a range

12 min read
C++

Static Registration Macros

Central registration of types or functions just doesn't feel very DRY sometimes.

20 min read
C++

Overloading by Return Type in C++

Everyone overloads by argument types. But can you do return type?

9 min read
C++

always_false<T>

The working version of static_assert(false);

3 min read
C++ | Api design

dont_deduce<T>

Reducing API friction by a seemingly useless typedef

5 min read
C++

Destructuring Assertions

How can we make ASSERT(a == b) print the values of a and b?

7 min read
C++

Recursive Lambdas in C++

Ever wondered how to make our beloved [](){}s call themselves?

7 min read
C++

C++ Compile Health Watchdog

Ever wondered what is slowing down your C++ builds?

4 min read
C++ | Machine learning

PyTorch Setup (C++17, zapcc, QtCreator, Debian, user-space)

Harder than it should be.

2 min read
C++ | Api design

Consider deleting your rvalue ref-qualified assignment operators

Why is foo{} = foo{} working anyways?

3 min read
C++ | Optimization

Performance of std::function

How bad is it really?

6 min read
C++ | Optimization

Basic Floating Point Optimizations

Why is "f + 0.0" slower than "f - 0.0"?

5 min read
C++ | Fun

Special Treatment for Literal Zero

Or: how to make "foo(0)" and "foo(1)" call different functions

6 min read
Meta

Hello Blog

Welcome to my blog!

1 min read
Philip Trettner © 2024
Proudly published with Jekyll & GitHub Pages using a modified Jasper2
Latest Posts Mastodon Facebook Twitter Github RSS