Readit News logoReadit News
Chabsff commented on The Cost of a Closure in C   thephd.dev/the-cost-of-a-... · Posted by u/ingve
mananaysiempre · 3 months ago
I see exactly the same assembly from x86-64 GCC 15.2 with -O2 the first example in the article both as is and without `static`, which makes sense. The two do differ if you add -fPIC, as though you’re compiling a dynamic library, and do not add -fvisibility=hidden at the same time, but that’s because Linux dynamic linking is badly designed.
Chabsff · 3 months ago
TU-level concepts (mostly) dissolve during the linking stage. You need to compile with -c to generate an object file in order to see the distinction.

Also, the difference manifests in the symbols table, not the assembly.

Deleted Comment

Chabsff commented on Brent's Encapsulated C Programming Rules (2020)   retroscience.net/brents-c... · Posted by u/p2detar
f1shy · 3 months ago
> Make sure that you turn on warnings as errors

I’m seeing this way too often. It is a good idea to never ignore a warning, an developers without discipline may need it. But for god’s sake, there is a reason why there are warnings and errors ,and they are treated differently. I don’t think compiler writers and/or C standards will deprecate warnings and make them errors anytime soon, and for good reason. So IMHO is better to treat errors as errors and warnings as warnings. I have seen plenty of times this flag is mandatory, and to avoid the warning (error) the code is decorated with compiler pacifiers, which makes no sense!

So for some setups I understand the value, but doing it all the time shows some kind of lazyness.

Chabsff · 3 months ago
> and to avoid the warning (error) the code is decorated with compiler pacifiers, which makes no sense!

How is that a bad thing, exactly?

Think of it this way: The pacifiers don't just prevent the warnings. They embed the warnings within the code itself in a way where they are acknowledged by the developer.

Sure, just throwing in compiler pacifiers willy-nilly to squelch the warnings is terrible.

However, making developers explicitly write in the code "Yes, this block of code triggers a warning, and yes it's what I want to do because xyz" seems not only perfectly fine, but straight up desirable. Preventing them from pushing the code to the repo before doing so by enabling warnings-as-errors is a great way to get that done.

The only place where I've seen warnings-as-errors become a huge pain is when dealing with multiple platforms and multiple compilers that have different settings. This was a big issue in Gen7 game dev because getting the PS3's gcc, the Wii's CodeWarrior and the XBox360's MSVC to align on warnings was like herding cats, and not every dev had every devkit for obvious reason. And even then, warnings as errors was still very much worth it in the long run.

Chabsff commented on EU investigates Google over AI-generated summaries in search results   bbc.com/news/articles/crl... · Posted by u/hackerbeat
cubefox · 3 months ago
It seems highly unlikely that AI summaries violate European copyright law. Human summarization is perfectly legal.
Chabsff · 3 months ago
It's not just a pure matter of law, and looking at it from that perspective is naive.

Legacy publishers in general (and a few big ones in particular, like der Spiegel) have been lobbying hard for legislatures to redirect big tech revenue to their failing businesses.

The focus on AI here is really just the continuation of that ongoing fight that has been raging for over a decade now. If it wasn't that, it would be some other wedge.

I'm not saying Google is squeaky-clean here, far from it. However, it's important to keep in mind that the main drive here is to get publishers paid, not to force Google to be accountable to some specific standards.

Chabsff commented on LLM from scratch, part 28 – training a base model from scratch on an RTX 3090   gilesthomas.com/2025/12/l... · Posted by u/gpjt
victorbjorklund · 3 months ago
Totally. While the LLM:s today are amazing it is a bit sad that you can’t build SOTA models on your own (vs a few years ago where someone with the skills and access to a dataset could build a state of art models)
Chabsff · 3 months ago
In the grand scheme of things, we've only had about a quarter century where you needed a *very* specific kind of problem where prosumer hardware wasn't adequate across computer science as a whole.

It's kind of amazing we got that at all for a while.

Chabsff commented on Cognitive and mental health correlates of short-form video use   psycnet.apa.org/fulltext/... · Posted by u/smartmic
righthand · 4 months ago
This is a response to you and the other Y people that confuse short videos with autoplay and user engagement techniques.

There are people that autoplay long videos, in fact people stream random Simpson’s (or other favorite tv show, podcast, music, books on tape, etc) episodes in the background while they work. Classic TV has autoplay with no opportunity to decide. Autoplay is not an exclusive short form video feature. I can make a short video on my computer and it will not autoplay other content.

Chabsff · 4 months ago
There's no confusion here. It's pretty easy to make the argument that the combination of auto play and short form is orders of magnitude more problematic than the sum of their parts.
Chabsff commented on Cognitive and mental health correlates of short-form video use   psycnet.apa.org/fulltext/... · Posted by u/smartmic
righthand · 4 months ago
I don’t think it’s correct to say there are no implications. The only discernable difference between a short and long videos effects is that one of the videos is capped at 3 minutes. There could be plenty of implication and correlation to high intake watching videos of any length.
Chabsff · 4 months ago
There is a HUGE difference in that the combined short length with the fact that the video starts playing before you even have a chance to make a decision on whether to watch it or not leads you to a "heh! I'm here already, might as well just watch the thing".
Chabsff commented on Cognitive and mental health correlates of short-form video use   psycnet.apa.org/fulltext/... · Posted by u/smartmic
SlightlyLeftPad · 4 months ago
I hate that I can’t use youtube at all without being forced to fed short form video content. Or kids schools referencing youtube content for educational purposes and they are then force fed short form video content.
Chabsff · 4 months ago
Honestly, I don't mind the format in principle, and the process that goes from YT's homepage to watching a single one of them is not that bad to me. As long as I get to make a decision that I want to watch something, consciously go "I will click on this thing and watch it" and only then proceed to watch it, then it's _fine_.

It's the algorithmic loop that starts the moment you scroll to the next video that starts playing before you even have a chance to decide whether or not it's something that you want to watch that's abhorrent to me.

Chabsff commented on Heretic: Automatic censorship removal for language models   github.com/p-e-w/heretic... · Posted by u/melded
iso1631 · 4 months ago
Except LLMs provide this data all the time

https://theoutpost.ai/news-story/ai-chatbots-easily-manipula...

Chabsff · 4 months ago
If your argument is that the guardrails only provide a false sense of security, and removing them would ultimately be a good thing because it would force people to account for that, that's an interesting conversation to have

But it's clearly not the one at play here.

Chabsff commented on Hack Club: A story in three acts (a.k.a., the shit sandwich)   kys.llc/blog/my-hackclub-... · Posted by u/alexkrchff
edent · 4 months ago
It absolutely is their battle to fight. This organisation appears to be exploiting them and their data.
Chabsff · 4 months ago
Agreed.

DEATH handing out swords to kids as Santa in the Hogfather is a funny joke, not an example to follow.

u/Chabsff

KarmaCake day811April 27, 2020View Original