cpp_weekly
cpp_weekly copied to clipboard
The official C++ Weekly Repository. Code samples and notes of future / past episodes will land here at various times. PR's will be accepted in some cases.
https://github.com/lefticus/cpp_weekly/blob/fb91f97876cb5ad479e1667aff3d03e7adb4592d/parallel_algorithms/game_of_life.cpp#L186C18-L186C37 that `else if` and `else` could be replaced by simple `return neighbor_count
https://github.com/lefticus/cpp_weekly/blob/fb91f97876cb5ad479e1667aff3d03e7adb4592d/parallel_algorithms/game_of_life.cpp#L192C11-L192C30 that `if` and `else` could be replaced by simple `return neighbor_count == 3;`
**Channel** C++Weekly **Topics** Use ChatGPT to solve a couple of bugs. For example there could be three different levels of difficulty. **Length** Bite-sized (5-10 minutes)
**Channel** C++Weekly **Topics** `` has just been [accepted](https://github.com/cplusplus/papers/issues/114) for C++26! - What is it? - "A dynamically-resizable vector with fixed capacity and embedded storage" - Why is it useful (generally)?...
**C++ weekly** Is this a "C++Weekly" **Topics** How to use (arena?) allocator in embedded world to reduce fragmentation. E.g. in order to use std::vector, JSON libraries in a dedicated memory...
based on https://x.com/lefticus/status/1792331017019379845 **Channel** C++Weekly **Topics** Compilers **Length** I have no idea how long the bugs you fond are (except the Clang since you have published it already).
**Channel** C++Weekly **Topics** - Custom User-Defined Attributes Since the C++ standard does not yet allow us to define our own attributes like `[[metadata]]`, what are the alternatives to achieve this?...
Based on your simple generator episode I would suggest a episode about type erased ranges and why they can be great in some cases. Range V3 had an any_range, Folly...
https://cppcoach.godbolt.org/z/Yx1WexoMa https://eel.is/c++draft/dcl.enum#8