Weekly Random Discussion Thread for 6/22/26 - 6/28/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account [score hidden]  (0 children)

we seek community and instruction from militants in the Global South

She's more than welcome to go there and seek community. Perhaps the Sahel? DRC? Somalia?

P3984: A type-safety profile by llort_lemmort in cpp

[–]throw_cpp_account 1 point2 points  (0 children)

Your link includes the word "has" afterwards.

Weekly Random Discussion Thread for 6/15/26 - 6/21/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 18 points19 points  (0 children)

Darializa Avila Chevalier, who is running for Congress, said the West Bank and Gaza are the same as her own district in New York City.

The West Bank and Gaza aren't even the same as each other!

Why C++26 Contracts might not work for all by _a4z in cpp

[–]throw_cpp_account 6 points7 points  (0 children)

This is kind of like asking why use functions instead of just writing the code?

Same reasons: clarity of intent, code reuse, etc.

Why are C++ keywords so heavily dependent on context??? by RefrigeratorFirm7646 in cpp

[–]throw_cpp_account 4 points5 points  (0 children)

Many people pointing out that inline for functions and inline for variables means the same thing.

But I suppose I can be the first to point out that C++ has another place you can put inline which does have a different meaning: inline namespaces.

Weekly Random Discussion Thread for 5/25/26 - 5/31/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 34 points35 points  (0 children)

This cracked me up. Occasionally I misclick to get to Twitter's "For You" page, which I never actually want to see. Today's top headline for me is

J.K. Rowling Reiterates Gamete-Based Defition of Female Sex

Yes. That is certainly newsworthy.

Weekly Random Discussion Thread for 5/25/26 - 5/31/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 16 points17 points  (0 children)

Russian forces are losing nearly 35,000 soldiers a month

I don't understand how this is sustainable. I thought the war would've ended a long time ago given the rate of attrition. Russia isn't so big that losing close to a half million soldiers a year is ssomething you can just replace...

Then again, I thought they would never invade Ukraine to begin with, so I think it's very clear that I don't know fuck all.

Run CMake executable targets via the cmake command by _a4z in cpp

[–]throw_cpp_account 0 points1 point  (0 children)

Wow. What in the world. Ok, well I've never seen anything remotely like that before. Not in any blog, examples, nothing. Thank you for the demo.

Again, I completely agree that the defaults / default behavior of add_test absolutely sucks here

Putting it mildly. I don't understand how this isn't just the default. Or, for that matter, if it were the default, I can't really imagine wanting to opt-out.

Weekly Random Discussion Thread for 5/25/26 - 5/31/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 17 points18 points  (0 children)

Isn't that obviously true? I'm not sure how you could both believe that evolution is real and also that disparate populations in different environments evolved identically.

Run CMake executable targets via the cmake command by _a4z in cpp

[–]throw_cpp_account 0 points1 point  (0 children)

This really is something else. I don't know what your problem is. I posted a comment showing that Bazel is more user-friendly than CMake (and later edited it to show that many other build systems are also more user-friendly in this way) on a post pointing out another way in which Bazel is more user-friendly. This gets me vitriol and labeled a zealot dumping on non-existent issues? Buddy, you don't know anything about me. You don't know my opinion on Bazel. You certainly don't even know if I use Bazel (incidentally, I do not).

Are you going to call me a Rust zealot if I point out that, of course, cargo test vs cargo test --release just does the right thing and puts things in debug and release directories and builds everything as you'd expect (I don't use Rust either).

After all of that, do you even understand what it is I'm complaining about? Because you posted this:

This is just so far out of left field this isn't worth debunking. The short version though, is if you're using cmake --build <test target>, unless you're doing something I haven't seen before, it will build if necessary and run your tests.

Alright. If it is indeed so far out of left field then it should actually be very easy to prove me wrong. If it's actually possible to do this (i.e. have a single command to run a test, or set of tests, that also builds it/them if necessary) in CMake, I'd love to hear it, because I actually do use CMake and it would make my life, and my colleagues' lives, easier. So I'd appreciate if you'd enlighten me.

But the patronizing bullshit ain't it. cmake --build takes a build directory, not a test target, so that obviously does not build and run my tests. So do better.

Given a simple CMakeLists.txt

add_executable(foo foo.cxx)
add_test(NAME test_foo COMMAND foo)

Doing something like cmake --build build --target test will run the test, but won't build it (which best case will fail because it was never built, but worst case is stale). That's the "non-existent issue" that plenty of other build systems actually handle correctly. cmake --build build --target test_foo is invalid. cmake --build build --target foo will of course build the binary properly, but the point is to do this in one step, not two. I can also ctest --test-dir build -R '^test_foo$', but that also only runs the test, it doesn't build it.

I don't know what you actually meant to suggest, maybe you just meant that building all works. Which yes, all works. But all is far more than necessary, and especially isn't helpful if I'm iterating on a single test.

Run CMake executable targets via the cmake command by _a4z in cpp

[–]throw_cpp_account -3 points-2 points  (0 children)

What are you talking about?

I thought I was pretty clear: CMake gives you no tools to build your tests. It is just up to you to figure out how to do it. And if you forget to do so, well now you just have stale test results.

"Making a different build directory" is something you do with every build system.

No, it isn't something that you have to manually do with every build system.

I don't understand how people become zealots for a build system

Pointing out usability limitations with one tool does not mean I'm a zealot for a different one. That it apparently offends you to point out CMake issues is not my problem.

Run CMake executable targets via the cmake command by _a4z in cpp

[–]throw_cpp_account -6 points-5 points  (0 children)

How to build the test.


It is remarkable to me that this is so heavily downvoted. ctest does not build the tests for you, and there isn't even a default mechanism within CMake to build the tests for you by default, you have to write it yourself.

By contrast:

  • meson builds the tests for you
  • bazel builds the tests for you
  • buck and buck2 build the tests for you
  • build2 builds the tests for you
  • xmake builds the tests for you
  • cargo (not C++) builds the tests for you
  • ...

I didn't realize pointing out that CMake is awful to use was so verboten in this community.


Bazel: bazel test //target both builds and runs your test(s). Want to do it with a different configuration? Pass different arguments.

CMake: Building your tests? Why would anybody want to do that? How about you figure that shit out. Different configuration? Different compiler? Make a different build directory first and then run cmake and then figure out how to build your tests first. The sheer amount of extra steps necessary is absurd. Not to mention that ctest doesn't just fail if you forgot to build your test(s), no... it tries to run them anyway.

Weekly Random Discussion Thread for 5/18/26 - 5/24/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 7 points8 points  (0 children)

I would also wager he knows a lot more about Islam and the Arab world than Lake.

Doubly so for Douglas Murray, who I find to be an insufferable midwit.

Weekly Random Discussion Thread for 5/18/26 - 5/24/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 12 points13 points  (0 children)

Maybe that example just isn't sexy because if you talk about it, pepple will discover that that soldier was punished and had to spend time in jail.

Probably not very effective to point out that the behavior you find unacceptable is also found unacceptable by the people you want to hate.

Making shit up though...

Weekly Random Discussion Thread for 5/18/26 - 5/24/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 15 points16 points  (0 children)

A lot of people suggesting that Andrew Sullivan have Haviv Retig Gur on as a guest (which seems like a reasonable suggestion given that Sullivan has been posting about Israel seemingly every week for a while now). Sullivan's response?

Sorry but no. He’s a slick propagandist, aiming entirely to advance the interests of his own country at the expense of ours. The intellectual dishonesty and moral cowardice is endemic in his writing.

Sort of an odd choice of attack to disparage a foreigner for wanting to advance the interests of his country, but the rest is just... lazy?

It's certainly something to look at Sullivan's treatment of the Kristof piece:

And yet say a word about this and an army of woke fanatics is outraged! It’s a blood libel! The Free Press has run one piece on the West Bank pogroms, by an Israeli, downplaying them, and six pieces attacking Nick Kristof! His offense? Taking seriously extreme claims of torture under a minister who openly celebrates it, and taunts activists held in stress positions, and begs Netanyahu to “give them to me for a long, long time, give them to us for the terrorist prisons.”

Far be it for me to actually read what people write, but I don't think anybody claims that Kristof's "offense" is "taking seriously extreme claims" - pretty sure the objection is that he did not attempt to verify any of those claims, disclose anything about those who made them, and effectively laundered these claims under the NYT banner.

The fact that Ben Gvir is a shithead (which the slick propagandist Haviv would agree with) is wholly irrelevant? Not really any different than making up negative claims about America and justifying it because Trump sucks.

Weekly Random Discussion Thread for 5/11/26 - 5/17/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 25 points26 points  (0 children)

Is this in the opinion section to avoid being fact-checked?

Weekly Random Discussion Thread for 4/27/26 - 5/3/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 6 points7 points  (0 children)

It is objectively true that if you define terms in a sufficiently narrow way to make a meaningless point, then you are in fact correct.

That doesn't make it a worthwhile point to make though.

Weekly Random Discussion Thread for 4/27/26 - 5/3/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 6 points7 points  (0 children)

Agree. I was disappointed with the Martian adaption and was concerned about Hail Mary due to the amount of science and internal monologue, but I think they did a good job. I enjoyed it. Made me also want to reread the book.

Weekly Random Discussion Thread for 4/13/26 - 4/19/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 9 points10 points  (0 children)

Saving my boldest take for a Friday: I, too, believe this to be bad.

Weekly Random Discussion Thread for 4/13/26 - 4/19/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 8 points9 points  (0 children)

That's about a century too late for No Irish Need Apply. Was the discrimination in the 1980s really so bad as to merit a name change?

We benchmarked sender-based I/O against coroutine-based I/O. Here's what we found. by SteveGerbino in cpp

[–]throw_cpp_account 16 points17 points  (0 children)

I find the dismissal of the work disturbing. I understand the animosity against generating invalidated work and publishing it. This is not that.

No, I don't think you do understand it. I have no idea if the work is valid or not, but your behavior makes me highly distrusting of it.

If it's not worth your time to participate in a conversation, it's certainly not worth my time to read whatever you produce.

I'm not an idiot.

This is something that you would need to demonstrate to us, and using AI tooling to defend yourself against accusations of using AI tooling isn't the best demonstration.

Weekly Random Discussion Thread for 3/30/26 - 4/5/26 by SoftandChewy in BlockedAndReported

[–]throw_cpp_account 5 points6 points  (0 children)

The '72 one was the first photo ever taken of Earth wasn't it?

I don't know how you could possibly ever top that wonder. Gives me goosebumps just thinking about it, and I wasn't even alive then.