Muhammad Zahalqa (@tryfinally) profile picture
Joined May 2009
Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)Photo by Muhammad Zahalqa (@tryfinally)
Muhammad Zahalqa retweeted
Save the date: CPP Game Show episode #2 is coming live on June 23rd, 11am EDT: linkedin.com/events/cppgames… Three great contestants are going to beat again a C++ challenge in 25 minutes! @thewholedaisy @AmirKirsh @dascandy42 Don't miss it, mark your calendars! #cpp #cplusplus
1
10
9
Muhammad Zahalqa retweeted
Direct (ungated) link to watch the show: bit.ly/3wLiL1f Challenge: bit.ly/3Dr8QPS Solutions => Vittorio: vittorio.godbolt.org/z/fEcGj… Dima: dima.godbolt.org/z/qYvx6hKMx Kilian: kilian.godbolt.org/z/j19WzoK…
1
2
#154 Given the following in C++: int main() { int x; int y; auto f =[&x,&y]() {return x + y;}; auto [x1, y1] = f; // Can we decompose the lambda captures 🤔 } Without checking? A. Yes B. No C. Depends on standard version D. Show results #Cplusplus #Cpppolls
8%A
57%B
9%C
26%D
630 votes • Final results
11
14
135
Muhammad Zahalqa wraps up #corecpp2021 with some synchronization wrappers @corecpp
2
3
4
Muhammad Zahalqa retweeted
Gonna tell my grandchildren this was Guns N Roses
740
12,331
2,671
44,513
If you retweet (or like) the original tweet, I will CC you when I post the answer.
1
2
Muhammad Zahalqa retweeted
they forgot to turn up shadow quality at the capitol a little unprofessional imo
143
1,941
143
17,995
It’s gonna happen!
26
21
10
502
Really hits in the feelings. Anyway, I worship DFW.
This paragraph from David Foster Wallace is like an infinite thread and the more you pull on it, the crazier the places it takes you
4
1
19
Muhammad Zahalqa retweeted
Replying to @NihilistGhost
Read the article, it's all there and it's free to download! I've discovered at least 6 different manuscripts that make the distinction in a variety of different styles.
1
1
1
Given the following in C++: struct B { int x:4; }; void f(int &x); void b() { B b1{1}; auto &[y] = b1; // A y = 5; // B f(y); // C } Without checking, the code is ill-formed (requires a diagnostic) at point: #CppPolls #Cplusplus
42%A
15%B
24%C
19%All are well-formed
161 votes • Final results
9
5
9
Muhammad Zahalqa retweeted
"Javascript developers trying to keep dependencies up to date"
119
3,600
304
11,711
Given this C++ code, assume LP64 template <size_t N> void f(int i[2],char c[2],int (&)[N]){ printf("%zu,%zu,%zu",sizeof(c),sizeof(i),N); } int main(){ char c[2]; int i[2]; printf("%zu,%zu,",sizeof(c),sizeof(i)); f(i,c,i); } What is the output? #Cplusplus #Cpppolls
8%8,8,8,8,2
8%2,2,2,2,2
74%2,8,8,8,2
11%2,2,8,8,2
76 votes • Final results
2
5
8
Muhammad Zahalqa retweeted
I often recommend cppreference.com when you need reference material.
6
10
Given the following in C and C++ void foo(int i) { const int max=10; switch(i) { case max: break; } } This is, without checking: A. Valid C and C++ B. Valid C C. Valid C++ D. Neither Valid C or C++ #Cplusplus #Cpppolls #Programming
30%A
13%B
33%C
25%D
326 votes • Final results
4
6
1
16
Muhammad Zahalqa retweeted
Coffee calligraphy, or Java Script (pun intended) ¯\_(ツ)_/¯
41
1,327
128
4,052
Muhammad Zahalqa retweeted
ברוח החגים , אחים ואחיות יהודים וערבים בבי״ח העמק בעפולה( דווקא שם) משמחים את החולים במחלקת הדיאליזה עם שיר ערבי מפורסם "דיחייה".👏🏻👏🏻 אזהרת צפייה: לא מומלץ לגזענים (ומאוד מומלץ לכל היתר) #אפשרגםאחרת
127
98
35
1,337
First lecture in Category Theory for Programmers. Just motivation and philosophy. No math or programming needed. youtu.be/I8LbkfSSR58 – at Seattle, WA
10
124
6
265