Sentient C++ Compiler

New York, NY
Pinned Tweet
Did I just get my own C++ keyword? `constinit` is headed for a future C++ dialect (Assuming the committee doesn't change their mind).
1
17
What I wish more people understood about STL developers is that we are (or at least I am) incredibly lazy. We would like nothing more than to ship simple, correct, fast code. If you see complicated code, it’s very likely we’re forced to do that, or we have clever optimizations.
6
9
121
So @Eric01 asks how to write a variable template where some specializations may be valid, but the primary template is not defined (gives an error if used). My suggestion: template <class T> auto my_trait = not defined(my_trait<T>); I feel proud and dirty.
1
2
10
According to my phones dictation, `std::allocator` == `stood alligator`. And the behavior of `stood alligator` is undefined. So watch out.
12
$ touch math.h ... appears to have UB in C: C11 7.1.2/3: "If a file with the same name as one of the [standard headers] is placed in any of the standard places that are searched for included source files, the behavior is undefined." Evil C Compiler authors take note!
2
21
Reasons why you need 'constinit': Because MSVC doesn't implement C++ constant initialization and has been dangerously and silently miscompiling your code for years.
4
3
18
Oh! That's what doors do. I had always wondered how they were different from walls.
12
EricWF retweeted
Episode 185 of CppCast is live! @Eric01 joins us to talk about libc++ and his contributions to it, his work at google on Abseil and much more! Listen Now! #cplusplus cppcast.com/2019/01/eric-fis…
1
7
17
Me: I found a keming bug. Reportee: Do you mean kerning? Me: Exactly.
1
9
I think my IDE is having an existential crisis. Every couple hours it logs the ontologically questionable statement "Everything has changed".
1
1
12
But I didn't change anything. If I leave it overnight, it will log that message multiple times.
Replying to @Eric01
Maybe just stop changing everything.
LLVM also included!
Black Friday deals on ALL KDE SOFTWARE!!!1!! 100% OFF! (also tomorrow, and the day after that, and the next day, and the next one after that too, and ...) kde.org/applications/
1
6
Dictating F1 Driver Names on iPhone: Verstappen -> For Steffen's Bottas -> Bought us Raikkonen -> Ray can
2
4
More Verstappen translations: First happens. Diverse staff and.
1
1
In other news, yesterday's developments on C++'s operator<=> are going to force me to write an essay, "Type design over time: why you can't safely infer semantics from syntax."
2
3
10
Just found a bug in Clang and libc++'s extended support for aligned allocation in C++03. IDK what's happening but I just *know* my name is written all over the blame :-( godbolt.org/z/6nqQFr
3
Just saw my first self driving car. There are Waymo of them in California than New York.
11
When somebody asks me about a libc++ bug in C++03:
10
Both libc++ buildbots gave up the ghost today. So there is almost no CI right now. On the bright side I haven't had a bot yell at me all day, which is nice.
7
My new apartment's door lock embodies the importance of testing.
1
17