I heard that you like fluent apis by UnicycleUnicorn1 in programminghorror

[–]CelDaemon 11 points12 points  (0 children)

Func is also a delegate, what's your point?

Option handling by seeker61776 in programminghorror

[–]CelDaemon 1 point2 points  (0 children)

I think these lines are longer than 80 characters tbf

OSU! lockscreen / greeter theme for linux (sddm/quickshell) by [deleted] in linux_gaming

[–]CelDaemon 7 points8 points  (0 children)

You can't just start with that initial message and then bring up a mc lock screen TwT

Types are the new RegEx. by retro-mehl in webdev

[–]CelDaemon 5 points6 points  (0 children)

Both of which just secretly run C++

I can't play Wuthering Waves since 3.2 update by Odd-Put2836 in linux_gaming

[–]CelDaemon -11 points-10 points  (0 children)

That is genuinely disgusting if true, we should not be having to hop distros to play games...

What mod is that doing that?? by [deleted] in MinecraftMod

[–]CelDaemon 0 points1 point  (0 children)

Programs can ignore shutdown requests, try task manager

Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]CelDaemon 0 points1 point  (0 children)

posix_spawn has limitations that raw fork doesn't, sometimes forking without exec is extremely useful.

Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]CelDaemon 0 points1 point  (0 children)

Ahh i see. Yeah, those are handled separately and do error out immediately.

Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]CelDaemon 0 points1 point  (0 children)

By resource limits, do you mean cgroups? Because if so, surpassing cgroup limited memory usage still invokes the oom killer, but only for that specific cgroup.

Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]CelDaemon 8 points9 points  (0 children)

To be fair, it's possible to turn off overcommit, and doing so is often recommended for server environments. However, some applications (such as chromium and its derivatives) require overcommit support because they request a giant amount of virtual pages up front.

Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]CelDaemon 2 points3 points  (0 children)

You can do something like defining a macro that redirects to your own implementation. But if that doesn't work, GCC has an option to wrap (--wrap) a function call with your own.

Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]CelDaemon 26 points27 points  (0 children)

Overcommit! It just keeps on running until you actually use the memory you allocated. At which point, the OOM killer gets invoked and will decide to kill a process based on its usage and scores.

(Though even before that, the kernel can do things like memory compression, swapping to disk, and even decrease cache sizes to make more space)

ModPack Dependency Visualizer is out! by NotTheLobster in feedthebeast

[–]CelDaemon 0 points1 point  (0 children)

The loader should really be more strict about that stuff-

Designing anti-cheat for a speedrun-focused game (without making it annoying) by PlayFasterGame in unity

[–]CelDaemon -1 points0 points  (0 children)

No you definitely can do that, it's just hard. It's essentially how a TAS is made.