Shafik Yaghmour
shafik.bsky.social
Shafik Yaghmour
@shafik.bsky.social
Compiler Engineer clang front end. Interests: C++, C, and undefined behavior. Martial Artist, Book Worm and Dad. he/him


Mastodon: https://hachyderm.io/@shafik
Blog: https://shafik.github.io/


#cplusplus #compilers
Pinned
Retro C++ quiz #46 Multiplying shorts C style

answer here: hachyderm.io/@shafik/1154...

#CppPolls
#Programming
October 31, 2025 at 4:44 PM
Retro C++ quiz #45 Multiplying shorts

Answer here: hachyderm.io/@shafik/1154...

#Cplusplus
#Cpppolls
October 31, 2025 at 4:42 PM
#23 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

Remember folks this is an ambiguous time of year for your programmer colleagues.

If you invite them to trick or treat and they come dressed up as Santa Claus, it actually works out but it is because

DEC 25 = OCT 31

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 31, 2025 at 3:47 PM
#22 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

Why does Yoda use -fno-exceptions

👻🎃👻🎃

because there is no try

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 30, 2025 at 4:55 PM
#21 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

Why are C++ devs so bad at Halloween

👻🎃👻🎃

Because they do short-circuit evaluation of Trick or Treat

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 27, 2025 at 5:32 PM
I am just reading an article trying to convince folks that data centers are not causing the rapid rise in power prices and this is ludicrous claim to make: www.bloomberg.com/graphics/202...
October 25, 2025 at 11:42 PM
Apparently today is Mole Day: en.wikipedia.org/wiki/Mole_Day

Happy Mole Day!

This seems like a apropos time to share "A Mole of Moles": what-if.xkcd.com/4/

While it sounds quite amusing it gets very grim very quickly.
October 23, 2025 at 2:50 PM
#20 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

How do you find your black cat?

🐈‍⬛🐈‍⬛

You have to follow the void pointer

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 23, 2025 at 2:27 PM
Reposted by Shafik Yaghmour
#19 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

int f() {
int indeterminate_value;

return /*of the*/
indeterminate_value;
}

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 31, 2024 at 3:27 PM
October 22, 2025 at 2:59 PM
Just finished read "The Three Stigmata of Palmer Eldritch" and 🤯

The book started out one way and ended up someplace I could not have predicted.
October 22, 2025 at 5:01 AM
"Your diet’s impact on the planet depends on where you live. Look up your city.": wapo.st/4ocwoy8

I get a lot of pushback from people when I say cutting beef is the best thing you can do. Apparently there are a lot of influencers who say beef is not that bad.
October 21, 2025 at 4:36 PM
Reposted by Shafik Yaghmour
#18 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

What is a dragons favorite algorithm

🐲🐲

std::accumulate

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 31, 2024 at 3:26 PM
Reposted by Shafik Yaghmour
#17 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

Why did the scarecrow make such a good C++ dev?

🌾
🌾

Because they were always outstanding in their field.

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 30, 2024 at 4:40 PM
Reposted by Shafik Yaghmour
Cursed diff highlighting here.

How can github be so bad.

#programming
October 20, 2025 at 3:07 AM
Cursed diff highlighting here.

How can github be so bad.

#programming
October 20, 2025 at 3:07 AM
First Stollen Bread of the year from my local bakery 😋
October 17, 2025 at 4:13 PM
#16 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

Who called it a ghost when we had temporary materialization right there?

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 17, 2025 at 3:46 PM
October 16, 2025 at 4:48 PM
Reposted by Shafik Yaghmour
#15 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

On Halloween a parent ask their child what their favorite character in class was today

🐢
🐢

The kid said "char mutable teenage_ninja_turtle;"

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 30, 2024 at 4:40 PM
Reposted by Shafik Yaghmour
#14 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

How do you scare a C++ dev who is also an environmentalist

🚗
🚙

Almost Always Auto

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 29, 2024 at 6:54 PM
Reposted by Shafik Yaghmour
#13 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

What was the werewolf's favorite feature?

🐺
🐺

pack expansions

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 29, 2024 at 6:53 PM
Reposted by Shafik Yaghmour
#12 Spooky Halloween C++

👻🎃👻🎃👻🎃👻🎃👻🎃

What was the werewolf's least favorite storage class?

🐺
🐺

static

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 25, 2024 at 10:47 PM
Retro C++ quiz #42 vector cast?

Answer here: hachyderm.io/@shafik/1153...

#CppPolls
#cplusplus
October 10, 2025 at 5:13 PM
Reposted by Shafik Yaghmour
#10 Spooky Halloween C++.

👻🎃👻🎃👻🎃👻🎃👻🎃

What C++ features are devils and demons looking forward to the most?

👹
👺

Contracts and assumptions

👻🎃👻🎃👻🎃👻🎃👻🎃

#cplusplus
October 25, 2024 at 4:06 PM