You might like
Here's some C code that prints "Math works" at compile time: ``` #if ((eight + 4) * 12) / (2 + four) == 24 #warning Math works #else #error Math does not work #endif ``` godbolt.org/z/WojM7jbda
I wish I could filter out all serious tweet responses that begin with any variant of "ChatGPT / Grok / Claude thinks..."
Please stop making json formats that look like ``` { "key": "asdf", "value": "qwerty" } ``` Just do `{ "asdf": "qwerty" }`
Just saw this in ChatGPT's "memory" for me: Prefers not to receive repeated or incorrect answers.
The first version of Catch is "catch". Fedora calls this package "catch". The second version is "catch2". Fedora calls this package "catch2". Fedora then removed support for version 1. The third version is "catch2-v3". Fedora calls this "catch".
Consistency: the idea that if we are mostly wrong about something, we have to keep being wrong about it. The alternative model is the belief that the first step to getting out of a hole is to stop digging a hole.
Strangest optimization bug I've seen in a long time: github.com/llvm/llvm-proj… `s()` generates bad code. `s{}`, `s(0)`, and `s(0, 0)` all generate the same good code. All of them initialize the struct containing two longs to the same 0 values.
github.com
[clang] Worse code gen when default constructing with `()` than `{}` · Issue #122560 · llvm/llvm-...
The following translation unit long get(); void unused() noexcept; struct s { ~s() { if (m0 != 0) { unused(); } } long m0 = 0; long m1 = 0; }; s f() { #if defined USE_BRACES auto x = s{}; #else aut...
A website has "Not finding what you're looking for?" with a link to contact them. The link is a 404.
When I paste a document into ChatGPT and ask for feedback it usually focuses on the content. If I first say "I pasted this from a Google doc so the formatting got messed up. Don't comment on that" half of its comments are about the formatting.
Consider the superhero "Percentile Man". He can perform any skill at the Nth percentile of human ability (no better, no worse), and he has a sense for what that means for any skill. How good does he have to be for this to be a superpower?
Is there a site or paper that gives examples of macros that interfere with refactoring tools? Or just drop them in here.
`std::pair` should never be used if `first` and `second` are not the best names for your data members.
In C++ if I have a range of ranges and I flatten them (for instance, `join_view`), how do I efficiently expose the size of the resulting range? If each inner range is sized, getting the size is O(n) in the number of inner ranges but O(?) in the number of elements
Given an input iterator `it`, is it well-defined to do `*it; *it;`? If so, is there an even weaker iterator category that disallows it? If not, is there an even stronger iterator category that allows it without also allowing increment?
United States Trends
- 1. South Carolina 31.2K posts
- 2. #EubankBenn2 25.3K posts
- 3. Bama 10K posts
- 4. Texas A&M 30.7K posts
- 5. Beamer 9,010 posts
- 6. Ryan Williams 1,465 posts
- 7. Ty Simpson 2,102 posts
- 8. Mateer 1,908 posts
- 9. Daniel Hill N/A
- 10. Makai Lemon N/A
- 11. Arbuckle N/A
- 12. Heisman 8,659 posts
- 13. Oklahoma 18.3K posts
- 14. Michigan 42.7K posts
- 15. Aggies 9,036 posts
- 16. Sellers 13.8K posts
- 17. Cuevas 6,316 posts
- 18. Gio Reyna N/A
- 19. #UFC322 22.9K posts
- 20. Northwestern 7,472 posts
You might like
-
Barry Revzin
@BarryRevzin -
Craig Scott
@crascit -
Core C++
@corecpp -
Richard Smith
@zygoloid -
Daisy Hollman
@The_Whole_Daisy -
David Sankel
@david_sankel -
Andreas Fertig
@Andreas__Fertig -
Tristan Brindle
@tristanbrindle -
Boost
@Boost_Libraries -
Yacob (Kobi) Cohen-Arazi ✡️🇺🇲
@kobi_ca -
Gor Nishanov
@GorNishanov -
Miro Knejp
@mknejp
Something went wrong.
Something went wrong.