The Hillsman
thehillsman.bsky.social
The Hillsman
@thehillsman.bsky.social
Reposted by The Hillsman
December 15, 2025 at 8:29 PM
Reposted by The Hillsman
Material from my 🇩🇪 ESE Kongress talk "static, inline, const und constexpr - Was sie bedeuten und wann man sie verwendet" is available!

👉 Slides: https://fertig.to/slides

#cpp #esekongress
Here are the slides to a talk I recently gave.
fertig.to
December 11, 2025 at 10:32 AM
Reposted by The Hillsman
Day 11: A clever bit-counting loop using the "clear bottom bit" trick. Change one compiler flag and... wait, what just happened to my loop?! Pattern recognition at its finest.

xania.org/202512/11-po...
youtu.be/Hu0vu1tpZnc
#AoCO2025
xania.org
December 11, 2025 at 1:11 PM
Reposted by The Hillsman
It's complete BS to say "AI creates code in seconds." That's just a lie. AI creates a first draft in seconds, and that draft has to be extensively edited before it's even marginally acceptable as production-quality code. It moves the work from authoring to editing.
1/2
December 9, 2025 at 8:17 PM
Reposted by The Hillsman
Day 10: Fixed loop count? Compiler transforms code surprisingly. At 50 iterations it switches strategy. What's the cutoff and why?

xania.org/202512/10-lo...
youtu.be/HvF3tF2efEA
#AoCO2025
Unrolling loops — Matt Godbolt’s blog
Learning when the compiler decides to unroll loops for performance
xania.org
December 10, 2025 at 12:35 PM
Reposted by The Hillsman
Day 9: Why does the compiler keep an "expensive" multiply in the loop instead of using clever addition tricks? The slower operation enables something more valuable. What's the hidden benefit?

xania.org/202512/09-in...
youtu.be/vZk7Br6Vh1U
#AoCO2025
Induction variables and loops — Matt Godbolt’s blog
Compilers can rewrite loops to avoid expensive calculations
xania.org
December 9, 2025 at 12:56 PM
Reposted by The Hillsman
Day 8 of Advent of Compiler Optimisations! 🔄

Index-based for vs pointer while vs range-for vs std::accumulate—which is fastest? Three produce identical assembly, but one doesn't!

xania.org/202512/08-go...
youtu.be/FB8Hgj3TpJM

#AoCO2025
Going loopy — Matt Godbolt’s blog
Exploring the ways optimisers deal with loop constructs
xania.org
December 8, 2025 at 1:10 PM
Reposted by The Hillsman
Reposted by The Hillsman
Can you power your computer by typing?

What the latest What If? video in collaboration with
@minuteearth.bsky.social!

www.youtube.com/watch?v=0L44...
Can you power your computer by typing?
YouTube video by xkcd's What If?
www.youtube.com
December 2, 2025 at 9:06 PM
Reposted by The Hillsman
Ever wonder why compilers use `xor eax, eax` to zero registers? It's smaller AND faster—CPUs optimise it out entirely!

Day 1 of Advent of Compiler Optimisations: xania.org/202512/01-xo...
Video: youtu.be/eLjZ48gqbyg

#AoCO2025
Why xor eax, eax? — Matt Godbolt’s blog
Why do compilers love xor-ing registers so much?
xania.org
December 1, 2025 at 12:12 PM
Reposted by The Hillsman
In my latest blog post, "C++20s `std::source_location` in action," you'll learn how the datatype works and how to pass such an object.

https://andreasfertig.com/blog/2025/12/cpp20s-stdsource_location-in-action/

#cplusplus #cpp #cpp20
C++20s `std::source_location` in action
In today's post, I want to address a question I'm getting occasionally when teaching a C++20 class. From the plenty of new features tha...
andreasfertig.com
December 2, 2025 at 10:30 AM
Reposted by The Hillsman
Always do the most valuable thing next. When the budget or time runs out, you will have built the best thing you could have built within the constraints at hand. When time and money are fixed, scope must vary. Fixing all three is a death march.
5/5
November 26, 2025 at 6:24 PM
Reposted by The Hillsman
Fifteen Years

xkcd.com/3172/
November 26, 2025 at 10:32 PM
Reposted by The Hillsman
I'm not good at this marketing lark, but as it's black friday and I'm inundated with other people's offers...

You can get 10% off CE swag today with code BLACKFRIDAY :)

shop.compiler-explorer.com/promo/BLACKF...

Makes a great present too!
Compiler Explorer
The official Compiler Explorer shop! Come show your support for CE and get cool gear!
shop.compiler-explorer.com
November 28, 2025 at 2:24 PM
Reposted by The Hillsman
The attached screen grab should make everybody who programs AI systems pay attention. As programmers, we should never forget that so-called AI is just numbers and probabilities.
1/10
November 28, 2025 at 6:23 PM
Reposted by The Hillsman
Still writing C++11/14 and hoping C++17/20 just “click” someday?
They won’t.
But this course will.
Black Friday deal runs until Tuesday — code bfcppbndl26.

Templates → https://fertig.to/cpp2…
Coroutines → https://fertig.to/cpp2…

https://andreasfertig.…

#cpp20 #cpp #blackfriday
Black Friday Self Learning Course Deal!
andreasfertig.com
November 30, 2025 at 1:31 PM
Reposted by The Hillsman
Let’s talk about “Move fast and break things.” First of all, Facebook itself changed its motto to “Move fast with stable infrastructure” in 2014. So much for breaking things, at least if you’re a soulless corporate behemoth.
1/12
November 22, 2025 at 5:31 PM
Reposted by The Hillsman
C++ Insights - Episode 68: C++20: Making constructors smarter with conditional explicit

In this episode, you'll learn about the power of C++20's conditional explicit.

https://youtu.be/Ly9rD6D5iew

#cppinsights #cpp #cpp20
C++ Insights - Episode 68: C++20: Making constructors smarter with conditional explicit
youtu.be
November 19, 2025 at 5:48 PM
Reposted by The Hillsman
The latest Cloudflare and Amazon outages have got me thinking about utilities. We can't build modern software without dependencies. The days of running entirely on the client are over, which I see as a good thing. The cost is that we rely on infrastructure.
1/5
November 18, 2025 at 8:03 PM
Reposted by The Hillsman
Book of the Day: Notebook C++: About Move Semantics by Andreas Fertig
meetingcpp.com/mcpp/books/b...
#cplusplus
#cpp
Andreas Fertig
The idea of the Notebook C++ series is to share some tips and tricks about various C++ elements
meetingcpp.com
November 12, 2025 at 7:05 PM
Reposted by The Hillsman
What if ALL the sun's power was focused in one place?

What the latest What If? video in collaboration with
@minuteearth.bsky.social!

youtu.be/qu8nx1qUwEU
What if ALL the sun’s power was focused in one place?
YouTube video by xkcd's What If?
youtu.be
November 12, 2025 at 10:29 PM
Reposted by The Hillsman
This December, I'll be posting an article & video each day until Christmas in the Advent of Compiler Optimisations! #AoCO2025
Each day we'll explore a fun optimisation in C or C++; some low-level, x86 or ARM-specific, some high-level. Hope you'll join me!
YT: youtube.com/mattgodbolt
Blog: xania.org
Matt Godbolt’s blog
xania.org
November 13, 2025 at 7:51 PM
Reposted by The Hillsman
Reposted by The Hillsman
November 14, 2025 at 9:15 PM