5 Curious C++ Lambda Examples: Recursion, constexpr, Containers and More
https://www.cppstories.com/2020/07/lambdas5ex.html/
https://www.cppstories.com/2020/07/lambdas5ex.html/
C++ Stories
5 Curious C++ Lambda Examples: Recursion, constexpr, Containers and More
In this blog post I’ll show you a couple of interesting examples with lambda expressions. Do you know how to write a recursive lambda? Store them in a container? Or invoke at compile time?
See in the article.
Updated in August 2022: Added C++23 improvements.…
See in the article.
Updated in August 2022: Added C++23 improvements.…
fast-cheap-with-proof.pdf
401.9 KB
Deny Capabilities for Safe, Fast Actors
The Rise of "Worse is Better"
https://www.jwz.org/doc/worse-is-better.html
https://www.jwz.org/doc/worse-is-better.html
Writing Portable ARM64 Assembly
https://ariadne.space/2023/04/13/writing-portable-arm64-assembly/
https://ariadne.space/2023/04/13/writing-portable-arm64-assembly/
ariadne.space
Writing portable ARM64 assembly
An unfortunate side effect of the rising popularity of Apple’s ARM-based computers is an increase in unportable assembly code which targets the 64-bit ARM ISA. This is because developers are writing these bits of assembly code to speed up their programs when…
How to check if a pointer is in a range of memory (C)
https://devblogs.microsoft.com/oldnewthing/20170927-00/?p=97095
https://devblogs.microsoft.com/oldnewthing/20170927-00/?p=97095
Microsoft News
How to check if a pointer is in a range of memory
Thanks to the C language standard, it's trickier than it seems.
Deep Neural Networks from Scratch in Zig
https://monadmonkey.com/dnns-from-scratch-in-zig
https://monadmonkey.com/dnns-from-scratch-in-zig
Monadmonkey
DNNs from Scratch in Zig
Exploring the world of Zig and Deep Neural Networks
👍2
C++17: Polymorphic Allocators, Debug Resources and Custom Typeshttps://www.cppstories.com/2020/08/pmr-dbg.html/
C++ Stories
C++17: Polymorphic Allocators, Debug Resources and Custom Types
In my previous article on polymorphic allocators, we discussed some basic ideas. For example, you’ve seen a pmr::vector that holds pmr::string using a monotonic resource. How about using a custom type in such a container? How to enable it? Let’s see.
The…
The…
👍1
The Linux Kernel Module Programming Guide
https://sysprog21.github.io/lkmpg/
https://sysprog21.github.io/lkmpg/
👍6
How to Design Programs, Second Edition
https://htdp.org/2023-3-6/Book/index.html
https://htdp.org/2023-3-6/Book/index.html
🔥5👍3
💯2
Beautiful Branchless Binary Search (C++)
https://probablydance.com/2023/04/27/beautiful-branchless-binary-search/
https://probablydance.com/2023/04/27/beautiful-branchless-binary-search/
Probably Dance
Beautiful Branchless Binary Search
I read a blog post by Alex Muscar, “Beautiful Binary Search in D”. It describes a binary search called “Shar’s algorithm”. I’d never heard of it and it’s i…
Bootstrapping Uber’s Infrastructure on arm64 with Zig
https://www.uber.com/en-US/blog/bootstrapping-ubers-infrastructure-on-arm64-with-zig/
https://www.uber.com/en-US/blog/bootstrapping-ubers-infrastructure-on-arm64-with-zig/
⚡4
New C Features in GCC 13
https://developers.redhat.com/articles/2023/05/04/new-c-features-gcc-13
https://developers.redhat.com/articles/2023/05/04/new-c-features-gcc-13
Red Hat Developer
New C features in GCC 13 | Red Hat Developer
The latest major version of the GNU Compiler Collection (GCC), 13.1, was released in April 2023. Like every major GCC release, this version will bring many
How the Raku Language (aka Perl 6) is implemented as multiple layers on a meta-object protocol (MoarVM)
https://gist.github.com/raiph/849a4a9d8875542fb86df2b2eda89296
https://gist.github.com/raiph/849a4a9d8875542fb86df2b2eda89296
Gist
Raku's "core"
Raku's "core". GitHub Gist: instantly share code, notes, and snippets.
🤯3
False Sharing (Lock-free C++)
https://en.m.wikipedia.org/wiki/False_sharing
https://en.m.wikipedia.org/wiki/False_sharing
Wikipedia
False sharing
performance-degrading usage pattern
Beating the L1 cache with value speculation
https://mazzo.li/posts/value-speculation.html?s=35
https://mazzo.li/posts/value-speculation.html?s=35
mazzo.li
Beating the L1 cache with value speculation
❤1