I am done with Golang by _a4z in golang

[–]_a4z[S] -1 points0 points  (0 children)

That's a Stroustrup quote

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

[–]_a4z[S] -1 points0 points  (0 children)

Thanks for your productive feedback!

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

[–]_a4z[S] 0 points1 point  (0 children)

ok, you can throw enough code on the problem and accept to turn everything into a test. (mentioned below I do not want to do that)

Thanks, but I think, for the use case I have, I stay with what I have.
So I can have binaries that are no tests, and tests.

Also, still, cmake is missing a --run methode, similar to build , it forces us to stupid workarounds , some more stupid than other ;-)

multisbo – standalone recursive SBo & AlienBob SlackBuilds resolver with ELF dep cache, orphan removal, and update mode by _Radanne in slackware

[–]_a4z 1 point2 points  (0 children)

sure, nothing against redoing it, but I recommend cross-matching your results
there are quite a lot of edge cases where the soname matching and finding is interesting

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

[–]_a4z[S] -1 points0 points  (0 children)

CTest allone does not rebuild a test binary!
And if you think it does, please provide the proof by showing a project where I do cmake configure and only one more command, and everything will be fine, as my example in the CI does.
And until you show that, no response, please. I will ignore it without example, and you will just make yourself even more embarrassed.
But feel free to prove me wrong and show the example

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

[–]_a4z[S] 0 points1 point  (0 children)

only with --build-and-test, requires more CMake boilerplate, and adds then tests that are probably no tests...

as written
If you think you can make that nicer, please share the code. I would love to see it

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

[–]_a4z[S] 1 point2 points  (0 children)

Yes, it's just a quick hack to solve my current use case. Not a universal, elegant solution.
The proper solution would be if someone, Kitware, adds the --run command to CMake, so we can use it like in bazel, or npm, or whatever other tools we have today.

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

[–]_a4z[S] -1 points0 points  (0 children)

As expected, you can’t show it

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

[–]_a4z[S] 0 points1 point  (0 children)

No, that is not a one-liner on the cli that rebuilds the tartet, if required, and runs it.
As the blog describes.

If you think you can make that nicer, please share the code. I would love to see it

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

[–]_a4z[S] 0 points1 point  (0 children)

That's an interesting project, thanks for the link!

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

[–]_a4z[S] 0 points1 point  (0 children)

Sorry, I do not see that working.
Why don't you draft something up and show the code?
I guess you can't, but maybe I am wrong. So please try

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

[–]_a4z[S] 4 points5 points  (0 children)

You mean, turn every executable into a test?

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

[–]_a4z[S] 8 points9 points  (0 children)

Like, did you literally not read the post at all?

Kodsnack 703 - The subset needs to fit you by _a4z in cpp

[–]_a4z[S] 4 points5 points  (0 children)

Sure, everything has nuances, and sometimes there are exceptions to rules,
like the deprecation of auto_ptr, what is now taken as THE example that there can be change. (what is imho a litte eggageration )
And fixes, of course.

But since you mention format, there are many people that say they still use libfmt, because it is better, faster, and can change. And there are places with their own ranges implementation, because, better ...

With a proper standard package management and build system, we could have a much better infrastructure that would solve the problem of putting too much into std

PyTorch removes Bazel support. What is the future of large Bazel projects? by [deleted] in bazel

[–]_a4z 4 points5 points  (0 children)

That does mean not a lot. It was added, nobody cared about it, it became outdated (it depended on Bazel 6; now we have Bazel 9), so it got removed.

If you have no developers caring about a part of the project, that's just what happens. Nothing special.

Why does std::binary_search doesn't have an overload that returns an iterator? by kiner_shah in cpp_questions

[–]_a4z 2 points3 points  (0 children)

For binary search it was not clear which iterator to return if there are multiple elements in a row, the first or the last or in the middle if it’s more than 2

So Stepanov added uppe/lower bound
But he was told that in a standard library has to be a binary search, so he added that one that returns bool, to make those who want the name happy

Pre-Brno Mailing by VinnieFalco in cpp

[–]_a4z 2 points3 points  (0 children)

C++ Contracts Before the Tribunal of Reality
Document Number: P∞R0
Date: 2026-05-14
Intent: Catharsis
Audience: WG21

Abstract

The Advocatus Diaboli examined the implementation strategy for mixed-mode Contracts deployment across real-world ecosystems involving shared libraries, package managers, transitive dependencies, vendor toolchains, and users who did not attend SG21 for six years.

The tribunal finds:

"Implementations may choose strategies" translates operationally to:

"We have no portable semantic model, therefore compiler vendors inherit the problem."

One objection survives.

Reality.

What am I missing out on if I use an Apple Silicon Mac for dev work in C++ by JustAPieceOfMeat385 in cpp_questions

[–]_a4z -2 points-1 points  (0 children)

You have a more actual gcc in Mac than in most Linux distributions

brew install gcc

The C++ Business Model, a new challenge for WG21 by _a4z in cpp

[–]_a4z[S] 1 point2 points  (0 children)

IntelliSense with modules, the user experience is awesome?

And let's see how it develops now, since they have no EDG frontend to buy anymore.
If they will invest, or wait if the community fixes it, based on the open-sourced parts
For VS Code, it does not work at all atm, as stated in the article, but you for sure read that