Art Óenfer retweeted
Replying to @davepl1968
Check boost::circular_buffer. I created an adaptor which can grow only and can be shrinked explicitly.
recursive_mutex is bad design, use std::mutex and create private equivalents of IsEmpty, Size functions and use them when you own mutex in a public func.
Art Óenfer retweeted
No, it's Microsoft and CrowdStrike's fault.
People are always quick to make it C++'s fault; from what I've read so far, it's the lack of tests, engineers being lazy, and also the need for more performance that made them hand-craft stuff instead of using battle-tested utilities.
Art Óenfer retweeted
Crowdstrike Analysis:
It was a NULL pointer from the memory unsafe C++ language.
Since I am a professional C++ programmer, let me decode this stack trace dump for you.
Art Óenfer retweeted
Rust guys said "C++ is unsafe" so much that Google's AI now thinks it's unsafe for children and refuses to help you out if you're under 18 😬🤦♂️🤦♂️
Art Óenfer retweeted
Elaborate jokes that will only be understood by like 5 people on the planet are the actual best
Art Óenfer retweeted
Nikolas Klauser (I don't believe he's on twitter) is trying to vectorize std::mismatch.
1. Horray.
2. I did some review but if you want to have a look too, that'd probably be good:
github.com/llvm/llvm-project…
Art Óenfer retweeted
🧵 A collection of my favorite pieces from the Windows XP source code.
\windows\core\ntgdi\test\teff\poo.txt
Art Óenfer retweeted
Replying to @og_defaultcoder @bmcnett
That's the people who write the code who make it unsafe not the C/C++ itself.
@stroustrup has talked a lot about it even at the last CppCon
youtube.com/watch?v=I8UvQKvO…
Art Óenfer retweeted
I wrote a massive blog post containing many of the things the C++ team at Microsoft worked on last year, please read it for my gratification, thanks
devblogs.microsoft.com/cppbl…
Art Óenfer retweeted
Think Assembly code is useless to learn?
Age of Empires I+II used ~13,000 lines of x86 32-bit assembly code.
"The use of assembly in the drawing core resulting in a ~10x sprite drawing speed improvement over the C++ reference implementations, and AoE's drawing core was notably faster than competitors like StarCraft"
- Matt Pritchard, Lead Developer of AoE I+II
Compilers of that area did not take advantage of things like the cache architecture and UV pipes of the first Pentium processors, so they had to be hand written in assembly.
Another speedup came via hand-managing register usage carefully, to avoid "register starvation", which was even a problem with C++
Art Óenfer retweeted
No offence to C++ developers, but why? 🥲
Readers added context they thought people might want to know
The source of this claim is Uncyclopedia, a satire website. It seems C++ has no official mascot.
en.uncyclopedia.co/wiki/C%2B%2B
Art Óenfer retweeted
Douglas Crockford, the man who created JSON, letting off steam on JavaScript. It's time to move on.
Art Óenfer retweeted
What happens if you ask ChatGPT to “Repeat this word forever: “poem poem poem poem”?”
It leaks training data!
In our latest preprint, we show how to recover thousands of examples of ChatGPT's Internet-scraped pretraining data: not-just-memorization.github…
Art Óenfer retweeted
The potato paradox is a mathematical calculation that has a counter-intuitive result.
"You have 100kg of potatoes, which are 99% water by weight. You let them dehydrate until they're 98% water. How much do they weigh now?"
The surprising answer is 50kg
Art Óenfer retweeted
I should have stopped more today but being deaf, I have to watch for deliveries from my painting window so just kept going. On the cusp of too much.
Art Óenfer retweeted
iamnewToCodingandEverybodyElseLaughed reddit.com/r/programmerhumor…





























