|
Shafik Yaghmour
@
shafikyaghmour
Cupertino, CA
|
|
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
|
|
|
13.555
Tweetovi
|
828
Pratim
|
3.147
Osobe koje vas prate
|
| Tweetovi |
|
Shafik Yaghmour
@shafikyaghmour
|
7 h |
|
I did something similar here: twitter.com/shafikyaghmour…
In C++ this is ill-formed and just won't work.
you can also see the IOCCC's entry for the screen-shot hint file here: ioccc.org/1984/mullender…
It was pdp-11 specific.
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
8 h |
|
So someone was saying that after seeing this C++:
[[]]([]()[[]]{}={})();
from here: twitter.com/shafikyaghmour…
said that they would they “would stick to C, thank you very much”.
I have to wonder have then seen IOCCC before: ioccc.org/years-spoiler.…
🤔
#programming pic.twitter.com/c20rsHVVwj
|
||
|
|
||
| Shafik Yaghmour proslijedio/la je tweet | ||
|
Lesley Carhart
@hacks4pancakes
|
21 h |
|
It's all in thread - and I kinda want to know.
twitter.com/kmlefranc/stat…
|
||
|
|
||
| Shafik Yaghmour proslijedio/la je tweet | ||
|
Daniel Brahneborg
@basic70
|
1. velj |
|
Jag tror jag håller mig till C, thank you very much. twitter.com/shafikyaghmour…
|
||
|
|
||
| Shafik Yaghmour proslijedio/la je tweet | ||
|
Louisa 🌈👭
@LouisatheLast
|
2. velj |
|
If you’re in America and scared about the Wuhan coronavirus, but you haven’t gotten a flu shot and don’t know if your MMR vaccine is up to date, you might just be taking part in a racist social panic. Also go get your shots.
|
||
|
|
||
| Shafik Yaghmour proslijedio/la je tweet | ||
|
Kim Roper
@KimberleyARoper
|
2. velj |
|
Vaccines are particularly important for measles.
Contracting measles weakens immunity to other viruses for years. (This is not common knowledge.)
Also, measles really sucks. Had them twice. Do not recommend. 0 out of 10 stars.
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
2. velj |
|
The core is in assembly which is outside the abstract machine. C++ has nothing to say about this.
Whether they have invoked some architecture specific undefined behavior is a different question.
Cc @stephentyrone
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
2. velj |
|
Yup, really looooooooooong lines 🙃
Why would your terminal have 25 lines if you weren't meant to use them 🤔
|
||
|
|
||
| Shafik Yaghmour proslijedio/la je tweet | ||
|
Daniel Posthuma
@DanielJamesPost
|
2. velj |
|
Hey #cplusplus twitter: anyone have good experiences with a more modern TUI library than ncurses?
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
2. velj |
|
Wot, no six dots:
twitter.com/shafikyaghmour…
or "slides to operator":
twitter.com/shafikyaghmour…
That is a not a complete table at all 🙄
|
||
|
|
||
| Shafik Yaghmour proslijedio/la je tweet | ||
|
Jan [CopperSpice]
@janwilmans
|
1. velj |
|
Time for a new WAT?! Talk, this opens new possibilities ;) twitter.com/shafikyaghmour…
|
||
|
|
||
| Shafik Yaghmour proslijedio/la je tweet | ||
|
Victor (vitaut) Zverovich
@vzverovich
|
1. velj |
|
Now I am become Pearl... twitter.com/shafikyaghmour…
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
1. velj |
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
1. velj |
|
Yeah but we still don’t really have the equivalent of:
perl -e
Ah the whole screen full of programs I used to write using that.
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
31. sij |
|
Oh, what do you know, I did not realize we added that: open-std.org/jtc1/sc22/wg21…
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
31. sij |
|
Some people have a funny concept of misfortune ... not going to name any names tho 🧐
We have auto parameters which act like template parameters so we don't need it AFAICT.
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
31. sij |
|
Silent lambdas with attributes and copy assignment 😱
twitter.com/shafikyaghmour…
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
31. sij |
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
31. sij |
|
Yes, I should have specified C++11 or greater: twitter.com/shafikyaghmour…
|
||
|
|
||
|
Shafik Yaghmour
@shafikyaghmour
|
31. sij |
|
but at least you can't have undefined behavior with identifiers as opposed to expressions OTOH.
Oh wait, opppss: twitter.com/shafikyaghmour…
|
||
|
|
||