Compiler Dev(LLDB) interests: C++, C, compilers and undefined behavior. Stackoverflow contributor in C++, C, Martial Artist, Book Worm and Dad. Ex-#ARKit he/him

Cupertino, CA
Joined October 2009
I added a new answer to the "What is the strict aliasing rule?" Stackoverflow question since I felt like the existing ones left a lot of be desired: stackoverflow.com/a/51228315… It is based on my Strict Aliasing write-up: nitter.net/shafikyaghmour/s… #cplusplus #programming
What is the Strict Aliasing Rule and Why do we care? Or Type Punning, Undefined Behavior and Alignment, Oh My! gist.github.com/shafik/848ae… #cplusplus #cpp17 #cprogramming #programming
Show this thread
1
7
50
Shafik Yaghmour retweeted
I want to get something off my chest. I’ve been spending today doing house chores while listening to technical videos and podcasts. After my Clubhouse experiment yesterday, I’m thinking critically about how we expect developers to learn and grow. And... it’s a mess y’all.
12
49
265
Show this thread
Schrödinger’s Riddle
0
0
5
Shafik Yaghmour retweeted
1
4
27
There are two types of C++ jokes 1. Initialization jokes 2. The jokes that get confused for ascii art [[]]([]()[[]]{}={})(); 0x80000000. Undefined behavior jokes 0x80000001. Code that no one understand and are ascii art #cplusplus
1
4
31
Shafik Yaghmour retweeted
Finally a question I can answer ❤️
#119 Given the following in C++20: using C=const char*; template<class T, T p> class X{}; X<C,"Hi"> x1;//A char p[]="Hi"; X<C,p> x2;//B struct A{constexpr A(C){};}; X<A,"Hi"> x3;//C W/o checking, which is invalid: A. A B. B C. C D. See results #Cplusplus #Cpppolls #Cpp20
Show this thread
2
1
24
Shafik Yaghmour retweeted
#119 Given the following in C++20: using C=const char*; template<class T, T p> class X{}; X<C,"Hi"> x1;//A char p[]="Hi"; X<C,p> x2;//B struct A{constexpr A(C){};}; X<A,"Hi"> x3;//C W/o checking, which is invalid: A. A B. B C. C D. See results #Cplusplus #Cpppolls #Cpp20
19% A
32% B
20% C
29% D
376 votes • 2 days
7
6
106
Show this thread
Shafik Yaghmour retweeted
Blattodeans are good mothers. Here's a Pseudoglomeris female carrying her soft newborn babies on the underside of her armored body for protection 🥰
はい嬉しい
0
6
30
Shafik Yaghmour retweeted
Another reveal.js newbie problem: How can I print/export slides with speaker notes? That will allow my online audience to follow my talk better, if there are audio problems. So far I got all notes clobbered together in a narrow column on the right.
0
1
1