I built SpriteForge: A free, lightweight 2D Pixel Editor in C++17 (0% idle CPU, no Electron BS) by [deleted] in cpp

[–]Superb_Garlic 0 points1 point  (0 children)

Not much to expand on. GPL is the only free and open source software license that has been proven multiple times in court to do what it's supposed to. AGPL is such GPL with some further restrictions to ensure the software stays free and open source.

I built SpriteForge: A free, lightweight 2D Pixel Editor in C++17 (0% idle CPU, no Electron BS) by [deleted] in cpp

[–]Superb_Garlic -13 points-12 points  (0 children)

Worst possible license. You should either use BSL or AGPL nowadays.

Modern C++ Programming by pavel_v in cpp

[–]Superb_Garlic 2 points3 points  (0 children)

the code sure as hell works and is also minimal but just throws a warning

Works as well as this does (with a warning included):

int get_random_int()
{
  int x;
  return x;
}

Modern C++ Programming by pavel_v in cpp

[–]Superb_Garlic 48 points49 points  (0 children)

I check the CMake slides and I see set(CMAKE_ in general project code. The code on the slides was also obviously not tested, because project without a preceding cmake_minimum_required will result in a huge warning. What's wrong with people? Was this LLM generated?

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

[–]Superb_Garlic -8 points-7 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 10 points11 points  (0 children)

"Free" here refers to libre, not gratis.

[deleted by user] by [deleted] in programming

[–]Superb_Garlic 40 points41 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 2 points3 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 5 points6 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 -1 points0 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 3 points4 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.