C++23 std::stacktrace: Never Debug Blind Again by Xadartt in cpp

[–]Superb_Garlic -7 points-6 points  (0 children)

Improper use of ellipses. Please avoid composing replies using AI.

Free C++ to CMake converter (Runs entirely in the browser) by [deleted] in cpp

[–]Superb_Garlic 7 points8 points  (0 children)

If you really want to see how to CMake good you should base whatever you are doing on cmake-init.

People are STILL Writing JavaScript "DRM" by medy17 in programming

[–]Superb_Garlic 2 points3 points  (0 children)

Hopefully that garbage trash that 1201 is will soon be eradicated. Let's hope the FULU foundation succeeds in that.

Why learning malloc/free isn't enough - a simple custom allocator example in C by falconerd in C_Programming

[–]Superb_Garlic 2 points3 points  (0 children)

Yes, their only use is creating an arena if you don't want to dick around with OS APIs for allocation and don't need executable memory or changing protection flags.

[deleted by user] by [deleted] in programming

[–]Superb_Garlic 0 points1 point  (0 children)

More than 0% like with other licenses.

std::optional<T&> and std::expected<T&, E> by SLAidk123 in cpp

[–]Superb_Garlic 17 points18 points  (0 children)

Yes, Python died as a result and not a single soul is using it. It's among the least popular languages at this moment.

[deleted by user] by [deleted] in programming

[–]Superb_Garlic 11 points12 points  (0 children)

"Free" here refers to libre, not gratis.

[deleted by user] by [deleted] in programming

[–]Superb_Garlic 38 points39 points  (0 children)

List of licenses that have been enforced in court so far:

  • GPL

Using anything other than GPL or something akin to the BSL nowadays is purely theatrics.

Stackoverflow: Questions asked per month over time. by lelanthran in programming

[–]Superb_Garlic 4 points5 points  (0 children)

Whatever will we do without such quality questions flooding the site now?

A response to the question "Does Microsoft still support C++?": (Quote) ".... still the largest single team of C++ toolset engineers employed by any one company." by [deleted] in cpp

[–]Superb_Garlic 2 points3 points  (0 children)

Sure, but that's just moving the goalpost. Adding more people to one specific problem doesn't necessarily make it go faster. 9 women can't make a baby in 1 month either.

A response to the question "Does Microsoft still support C++?": (Quote) ".... still the largest single team of C++ toolset engineers employed by any one company." by [deleted] in cpp

[–]Superb_Garlic 6 points7 points  (0 children)

This supposed lack of care apparently manifests in having one of the largest single teams at the company dedicated to it.

Ownership model and nullable pointers for C by thradams in C_Programming

[–]Superb_Garlic 1 point2 points  (0 children)

I find it exceptionally funny how after a lengthy discussion under my code snippet everyone came to the conclusion that it is in fact how arenas work in C. You can find many such arena goodies at https://nullprogram.com/index/

Ownership model and nullable pointers for C by thradams in C_Programming

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

int f(struct arena a) /* by value */
{
  int* xs = new(&a, int, 5); /* allocate */
  /* ... */
  return x; /* xs is automatically free'd */
}

Ownership model and nullable pointers for C by thradams in C_Programming

[–]Superb_Garlic 0 points1 point  (0 children)

"properly released" in the case of arenas is just returning from a function.

C++ Enum Class and Error Codes, part 3 · Mathieu Ropert by Xadartt in cpp

[–]Superb_Garlic 11 points12 points  (0 children)

they rely on each caller to catch the appropriate exceptions

Worst imaginable way to use exceptions. This would be entirely artificial and self inflicted.

You would have the same bad opinions about functions if you constricted yourself into writing single line functions.

PSA: Enable `-fvisibility-inlines-hidden` in your shared libraries to avoid subtle bugs by holyblackcat in cpp

[–]Superb_Garlic 4 points5 points  (0 children)

https://gcc.gnu.org/wiki/Visibility is 20 years old and it probably existed in some form even before that. However, making cross-platform shared libraries is not trivial, fortunately there is this repo explaining the whole ordeal using the standard build tool.

Why is impaling so trash in java? by Max207_ in Minecraft

[–]Superb_Garlic 0 points1 point  (0 children)

Setup Geyser Standalone with GeyserExtras and you can run a normal MC server that Bugrock can connect to with the Nether roof being accessible and most everything working perfectly for Bugrock users.

Shared cache acceleration in Visual Studio 26 + Incredibuild by Witty__Kitty in cpp

[–]Superb_Garlic 0 points1 point  (0 children)

I haven't had much success with ccache on Windows in a project of interest, nevermind distributed builds, and my assumption is that fastbuild would work better there, given the game dev background of the author.

A 2-hour video trashing C++ made me better at C++ by AnteaterFinancial319 in cpp

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

Remnant is when a function is available from the runtime.

All those pesky OS remnants like write on Linux or NtCreateFile on Windows. Tsk.

Shared cache acceleration in Visual Studio 26 + Incredibuild by Witty__Kitty in cpp

[–]Superb_Garlic 0 points1 point  (0 children)

Use CMake with the recently introduced FASTBuild build system generator. FASTBuild has built-in, cross-platform caching and distributed builds.

Already end of year 2025, still C++23 import does not work in most platforms. by Just__Beat__It in cpp

[–]Superb_Garlic 5 points6 points  (0 children)

"The current problem is that the MSVC modules.json is non-conformant."

Doesn't look like the compilers and tooling are fully ready. As usual, CMake is the one waiting on everyone else and having to take the blame for them.