Meeting 115 (22 October 2020)
r/cpp status update
WHAT.
Book: C++ Best Practices by Jason Turner
LeanPub (min. $9.99)
id Tech – Game engines written in C++
Fabien Sanglard’s game engine code reviews
See also
Should I use C++ exceptions?
TL;DR: Yes.
6 Efficient Things You Can Do to Refactor a C++ Project
- Update the Compiler and Set Correct C++ Standard Conformance
- Fix Code With Deprecated or Removed C++ Features
- Start Adding Unit Tests
- Decouple or Extract Classes
- Extract Non-member Functions
- Reduce the Global State
Why do all guides use #using namespace std
if it’s supposedly really bad practice?
C++17 Zero allocation Coroutine/[Resumable function] library
This does not use C++20 coroutines. It is a managed state machine style coroutine library, a modern take on Duff’s device.
I do not buy any of these anti-coroutine arguments (maybe except for the fact that HALO can fail in some situations – but that is an engineering problem in the compiler). =>
Later, same author on Reddit: C++20 coroutines, opinions? And yes, Rust gets mentioned.
C/C++: 70x faster file embeds using string literals
Why I like C++ attributes
Unpopular opinion: It’s ok to derive from STL types/classes
C++ STL-Like Algorithm Libraries
Library: Libcu++ - the NVIDIA Standard Library
Recursive lambdas in C++
1auto fib = [](int n, auto&& fib) {
2 if (n <= 1) return n;
3 return fib(n - 1, fib) + fib(n - 2, fib);
4};
5auto i = fib(7, fib);