Hercules Lemke Merscher's Avatar

Hercules Lemke Merscher

@bitmaybewise.com

Coding for a living and for fun -- bitmaybewise.com Backend Engineer at GitLab

37
Followers
92
Following
173
Posts
31.08.2024
Joined
Posts Following

Latest posts by Hercules Lemke Merscher @bitmaybewise.com

Preview
Tsonnet #32 - != done, but getting there Welcome to the Tsonnet series! If you're not following along, check out how it all started in the...

Also available on dev.to/bitmaybewise...

05.03.2026 22:03 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet #32 - != done, but getting there Tsonnet gains a full set of binary operators

Bit Maybe Wise - Tsonnet #32 - != done, but getting there
bitmaybewise.substack.com/p/tsonnet-32...

05.03.2026 08:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Tsonnet #31 - Taking back control of equality Welcome to the Tsonnet series! If you're not following along, check out how it all started in the...

Also available on dev.to/bitmaybewise...

02.03.2026 20:51 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet #31 - Taking back control of equality Cleaning up a messy equality implementation by introducing a new AST variant.

Bit Maybe Wise - Tsonnet #31 - Taking back control of equality
bitmaybewise.substack.com/p/tsonnet-31...

01.03.2026 10:48 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
ABEND dump #25 Welcome to the ABEND dump #25! Don't know what is an β€œABEND dump”?!Β I'm glad you asked. You can...

Also available on dev.to/bitmaybewise...

28.02.2026 18:17 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
ABEND dump #25 AI, AI everywhere!

Bit Maybe Wise - ABEND dump #25
bitmaybewise.substack.com/p/abend-dump...

23.02.2026 20:48 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Tsonnet #30 - Dabbling with equality Welcome to the Tsonnet series! If you're not following along, check out how it all started in the...

Also available on dev.to/bitmaybewise....

30.01.2026 14:53 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet #30 - Dabbling with equality A first-pass implementation of equality in Tsonnet

Bit Maybe Wise - Tsonnet #30 - Dabbling with equality
bitmaybewise.substack.com/p/tsonnet-30...

30.01.2026 14:44 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
ABEND dump #24 Welcome to ABEND dump #24!

Bit Maybe Wise - ABEND dump #24
bitmaybewise.substack.com/p/abend-dump...

31.12.2025 10:43 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet series - Table of contents Every post published about Tsonnet

Bit Maybe Wise - Tsonnet series - Table of contents
bitmaybewise.substack.com/p/tsonnet-se...

29.12.2025 15:00 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet #29 - Making inner references work Welcome to the Tsonnet series! If you're not following along, check out how it all started in the...

Also available on dev.to/bitmaybewise...

13.12.2025 10:16 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet #29 - Making inner references work Inner references require lazy evaluation to prevent infinite loops when variables hold self-referential objects.

Tsonnet #29 - Making inner references work
bitmaybewise.substack.com/p/tsonnet-29...

12.12.2025 10:45 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Unrolling loops β€” Matt Godbolt’s blog Learning when the compiler decides to unroll loops for performance

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

10.12.2025 12:35 πŸ‘ 25 πŸ” 5 πŸ’¬ 1 πŸ“Œ 0
Induction variables and loops β€” Matt Godbolt’s blog Compilers can rewrite loops to avoid expensive calculations

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

09.12.2025 12:56 πŸ‘ 32 πŸ” 6 πŸ’¬ 1 πŸ“Œ 1
Going loopy β€” Matt Godbolt’s blog Exploring the ways optimisers deal with loop constructs

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

08.12.2025 13:10 πŸ‘ 31 πŸ” 11 πŸ’¬ 1 πŸ“Œ 0
Multiplying our way out of division β€” Matt Godbolt’s blog How compilers avoid expensive division with multiplication tricks

Day 7: Dividing by 10 compiles to... no division at all!

How does the compiler pull this off? Magic constants, bit shifts, and a clever arithmetic trick.

xania.org/202512/07-di...
youtu.be/V9Pvv1tkocM

#AoCO2025

07.12.2025 11:07 πŸ‘ 35 πŸ” 7 πŸ’¬ 0 πŸ“Œ 1
Division β€” Matt Godbolt’s blog Division doesn't have to be slow with some clever tricks

Day 6 of Advent of Compiler Optimisations! Divide by 512β€”just a shift, right? But the compiler adds extra instructions. Why? A subtle difference between what you asked and what you meant!

xania.org/202512/06-di...
youtu.be/7Rtk0qOX9zs

#AoCO2025

06.12.2025 12:49 πŸ‘ 37 πŸ” 11 πŸ’¬ 1 πŸ“Œ 0
ARM's barrel shifter tricks β€” Matt Godbolt’s blog The ARM architecture has a cool feature, and compilers know how to use it

Day 5 of Advent of Compiler Optimisations! x86 has LEA, but ARM has the barrel shifterβ€”instructions can shift operands cheaply. The compiler uses this to multiply without multiplying!

xania.org/202512/05-ba...
youtu.be/TZubUyr2UEY

#AoCO2025

05.12.2025 12:05 πŸ‘ 29 πŸ” 6 πŸ’¬ 2 πŸ“Œ 0
Preview
Tsonnet #28 - Debugging gets pretty (printed) Welcome to the Tsonnet series! If you're not following along, check out how it all started in the...

Also available on dev.to/bitmaybewise...

11.12.2025 11:09 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet #28 - Debugging gets pretty (printed) derive show; // compiler does the rest

Tsonnet #28 - Debugging gets pretty (printed)
bitmaybewise.substack.com/p/tsonnet-28...

10.12.2025 08:26 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Day 4 of Advent of Compiler Optimisations! Multiply by constantsβ€”which ones use actual multiply? The compiler has tricks to avoid it, then saves you from your own clever hacks.

xania.org/202512/04-mu...
youtu.be/1X88od0miHs

#AoCO2025

04.12.2025 12:07 πŸ‘ 48 πŸ” 9 πŸ’¬ 7 πŸ“Œ 0
You can't fool the optimiser β€” Matt Godbolt’s blog Pattern recognition can see through obfuscated code to find the right instruction

Day 3 of Advent of Compiler Optimisations! A while loop, recursion, direct additionβ€”all compile to one instruction. The compiler sees the pattern beneath the code.

xania.org/202512/03-mo...
youtu.be/wHg9lYPMvvE

#AoCO2025

03.12.2025 12:00 πŸ‘ 46 πŸ” 7 πŸ’¬ 0 πŸ“Œ 0
Addressing the adding situation β€” Matt Godbolt’s blog We learn why adding on x86 isn't as obvious as you might think

Day 2: Adding two integers on x86? Not with `add`! The compiler uses a completely different instructionβ€”one designed for memory addressing. Why? xania.org/202512/02-ad... youtu.be/BOvg0sGJnes #AoCO2025

02.12.2025 11:28 πŸ‘ 77 πŸ” 18 πŸ’¬ 4 πŸ“Œ 0
Why xor eax, eax? β€” Matt Godbolt’s blog Why do compilers love xor-ing registers so much?

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

01.12.2025 12:12 πŸ‘ 137 πŸ” 26 πŸ’¬ 6 πŸ“Œ 4
Preview
Science e-Books - NASA Science From Earth and the other planets in our solar system, to supermassive black holes and the distant galaxies that contain them, explore NASA science and imagery through our library of e-books.

Today I learned that NASA has a collection of free ebooks that can be downloaded as pdfs or ebub format.

The science books even include a children’s section with fun activites and coloring books!

science.nasa.gov/multimedia/s...

04.12.2025 14:43 πŸ‘ 520 πŸ” 302 πŸ’¬ 13 πŸ“Œ 10
Preview
ABEND dump #23 Welcome to the ABEND dump #23. If you wanna know what is the "ABEND dump", I've got you...

Also available on dev.to/bitmaybewise...

10.11.2025 22:00 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
ABEND dump #23 Book reading philosophy, browser trust issues, career pendulums, and space BBQ.

Bit Maybe Wise - ABEND dump #23
bitmaybewise.substack.com/p/abend-dump...

10.11.2025 21:58 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Tsonnet #27 - Consistency, consistency, consistency Welcome to the Tsonnet series! If you're not following the series so far, you can check out how it...

Also available on dev.to/bitmaybewise...

04.11.2025 22:06 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
All The Rage Back Home - Live Interpol Β· Live at Third Man Records Β· Song Β· 2024

open.spotify.com/track/0aTZCg... -- eu escuto essa mΓΊsica gravada ao vivo, e ouΓ§o o FalcΓ£o cantando hahahaha

03.11.2025 15:13 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Tsonnet #27 - Consistency, consistency, consistency The one where I reorganize function parameters and feel weirdly accomplished.

Bit Maybe Wise - Tsonnet #27 - Consistency, consistency, consistency
bitmaybewise.substack.com/p/tsonnet-27...

03.11.2025 09:38 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0