IHeartBadCode
@IHeartBadCode@kbin.social
- Comment on Boston Creme 8 months ago:
I've submitted this before the International Criminal Court in The Hague. As to which protocol of the Geneva Convention this violates, all of them.
- Submitted 8 months ago to technology@lemmy.world | 111 comments
- Comment on Tipping culture npcs 11 months ago:
I guess my point is that we’re already talking about a hypothetical situation
Oh okay, fair enough. Yeah ideally that’s the direction it preferably should go in.
- Comment on Tipping culture npcs 11 months ago:
Why does everyone always assume that if minimum wage went up or if tipping went away that the customer would absorb the cost?
There’s no technical reason for why, just based on current evidence where 100% of the time producers shove any increase in cost to consumers.
You’re correct that there’s nothing technically preventing producers from eating the increase, it’s just that they’ve never done so, at least in the US.
Only real example where that has happen was with Nintendo and the WiiU. I’m sure there’s more but the fact I’m drawing blank past that but could name you over a thousand times when the cost was shoved off to consumers kind of is my point in a nutshell.
So that said, that’s why a lot of people just assume increase in cost of production equals increase in cost to consumers.
- Comment on Tipping culture npcs 11 months ago:
Someone drinking coffee like that seems to me like they’re trying to avoid tipping by going into cardiac arrest.
- Comment on Tomb Raider 1-3 Remastered has a warning about racial and ethnic stereotypes 11 months ago:
While Crystal Dynamics didn’t specify which content it’s referring to, it’s speculated that it could be the animalistic depiction of Pacific Island natives in Tomb Raider 3, who are implied to be cannibals.
- Comment on Introducing Sudo for Windows 11 months ago:
"Look what they need to mimic a fraction of our power!"
— something, something Arch BTW
- Comment on Women STEM students up to twice as likely as non-STEM students to have experienced sexism 11 months ago:
Interesting; you have to dig past the usual misandry sites to find an impartial source but Pew research found 53% of stem graduates female in 2018 and rising
I mean, at this point you're just cherry picking and not doing all that well with it. As indicated from, again YOUR source.
The gender dynamics in STEM degree attainment mirror many of those seen across STEM job clusters. For instance, women earned 85% of the bachelor’s degrees in health-related fields, but just 22% in engineering and 19% in computer science
That lines up with the whole thing I had mentioned here. You keep wishing otherwise, but you also keep providing evidence to the contrary.
So I mean at some point I guess you'll read your own sources OR you won't. But the sources you keep providing agree with the original statement that women are under represented in traditional STEM studies. So I mean you square that with yourself however you want.
- Comment on Women STEM students up to twice as likely as non-STEM students to have experienced sexism 11 months ago:
Nah you’re still being disingenuous. The stats don’t lie - even the stats you provided
- Comment on Women STEM students up to twice as likely as non-STEM students to have experienced sexism 11 months ago:
Well I mean, do you read the links you provide?
While women now account for 57% of bachelor's degrees across fields and 50% of bachelor's degrees in science and engineering broadly (including social and behavioral sciences), they account for only 38% of bachelor's degrees in traditional STEM fields (i.e., engineering, mathematics, computer science, and physical sciences; Table 1).
There's where your 50% comes from. And as you can see, your link also aligns with the 38.6% previously mentioned.
See? Now was that hard? See how once you explained yourself we could clear up the confusion you were having? Nothing wrong with that, easy to be confused by the various terms that are being tossed around.
- Comment on Women STEM students up to twice as likely as non-STEM students to have experienced sexism 11 months ago:
What are you even going on about? It literally says:
Women represent 57.3% of undergraduates but only 38.6% of STEM undergraduates
That means women are obtaining most of their degrees via non-STEM studies.
Women represent 52% of the college-educated workforce, but only 29% of the science and engineering workforce.
And that is reflected in the study's figures for employment as well.
I’d search for another but people shooting themselves in the foot amuses me to know end
Well let's look over the score here. Someone has provided two different links to back up their argument and you've provided… Oh look, none. You're making claims and pointing out things that clearly do not exist or are anecdotal. Nothing you have done in the last three comments indicates to anyone that any of us should take anything you have to say with any kind of value.
So I guess you are amused to know [sic] end, but a point or logical argument you have not made. But hey if you thinking you took the W here and that keeps you quiet, then good job you totally owned everyone here. Amazing wordsmithing.
- Comment on Hey, does this drink taste like quaaludes to you? 1 year ago:
He’s just tired from the pudding pop.
- Comment on YouTube can't stop showing me AI deepfake ads 1 year ago:
Most of the ads I've seen appear to be targeted at conservative Americans, as they're all latching onto a mistrust in U.S. President Biden and the federal government
LUL. Well at least they know their mark.
中華人民共和國政府僱員 A: 您认为我们应该针对谁?
中華人民共和國政府僱員 B: 那些买马膏来治病的人怎么样?
中華人民共和國政府僱員 A: 木瓦哈哈哈!!
- Comment on Mozilla decides Trusted Types is a worthy security feature 1 year ago:
- Comment on My hand are normal, and loook 1 year ago:
That’s what the AI wants you to think!
- Comment on 1-bit CPU for ‘super low-performance computer’ launched – sells out promptly 1 year ago:
Yeap, that's all it is plus the PCB and accessories. Looking at it, looks like a 74HC00 - quad NAND gates, 74HC14 - Schmitt trigger inverters, 74HC74 - A dual D flip-flop, and a 74HC153 - dual 4 input mux.
The clock isn't even a 555, just an RC circuit passed through the Schmitt trigger and the provided hardware XOR is where our NANDs come in.
It's a neat little project but I think good CPU lessons need to have a MAR/MDR/CIR and show the fetch, decode, and execute cycle. Because a lot of modern concepts derive from asking the question of "how do I optimize that?"
- Comment on 1-bit CPU for ‘super low-performance computer’ launched – sells out promptly 1 year ago:
IDK about Doom but someone is likely already working on a VLC port for it.
- Comment on HP raising Instant Ink subscription pricing significantly 1 year ago:
Jokes on you. HP is moving into the energy sector with their spinning bodies with magnets attached.
- Comment on 41% of fediverse instances have blocked threads so far!!! 1 year ago:
I appreciate your commitment to this meme. I don't exactly agree with you, but hilarious nonetheless.
- Comment on The state of the internet in 2023. 1 year ago:
That's just the Web at this point. Like IRC has it's bit of toxic, but there aren't Ads, and the niche stuff is fairly good. Gemini and gopher are seeing a pretty healthy resurgence, but clearly there's just dozens of us. Oh and there's always telnet MUDs out there, those are fun every so often.
The Internet is a lot more than just the web. Though the web is mostly the internet at this point. I think the upshot though is all this Fediverse stuff looks really promising. But we ought to support our instances otherwise they'll just start adding ads.
Also as an aside, I'd love for NNTP to make a comeback, but I also understand why it hasn't.
- Comment on Supercomputer that simulates entire human brain will switch on in 2024 1 year ago:
This also ignores that the brain is not wholly an electrical system. The are all kinds of chemical receptors within the brain that alter all kinds of neurological function. Kid of the reason why drugs are a thing. On small scales we have a pretty good idea how these work, at least for the receptors that we're aware of. On larger scales it's mostly guessing at this point. The brain has a knack of doing more than the sum of all parts on a pretty regular basis.
- Comment on Elon Musk’s Grok Twitter AI Is Actually ‘Woke,’ Hilarity Ensues 1 year ago:
AH! Silly me, I was thinking of "benefit to the customer"!! LOL. No idea what happened to me there, swear it won't happen again, at least for today.
- Comment on Elon Musk’s Grok Twitter AI Is Actually ‘Woke,’ Hilarity Ensues 1 year ago:
Now, Grok has been launched as a benefit to Twitter’s (now X’s) expensive X Premium Plus subscription tier
To the benefit of what exactly?! Instead of have conversations with the echo chamber, I can now have conversations with a spicy RNG autocorrect? I am clearly missing the part where that connects back to, what I would assume, the definition of benefit is.
- Comment on tube tester 1 year ago:
It tests vacuum tubes that would usually come from televisions. If a tube was bad you could hypothetically replace the tube and get your TV working again. The various holes are for the various tubes that were sold.
Vacuum tubes would eventually be replaced with transistor designs as transistors were more reliable and required way less power to operate. Also they were vastly smaller than tubes. Today most TVs are, in essence, a small computer packed into a single chip called a System on a Chip (SoC), so they are way less user repairable. But they're also vastly cheaper than the 1930s versions. In 1939 RCA's TV that they sold went for ~$600 or about $13,280 in today's money.
So there was a ton of incentive to make TVs as user repairable as possible. It's also why we used to have a lot of TV repair shops that we pretty much have zero of today. Putting that much investment into something, you'd want to make it run for as long as possible.
- Comment on ‘I don’t know what else to do’: Carnival Cruise customer spent 2K on trip. Now that she’s passed away, they want a $1,300 cancellation fee 1 year ago:
Why can’t they just do the right thing from the get-go?
Because like all nice things, people abuse them. Not to indicate that Carnival Cruise is some saint here, but the reason most companies don't just default to "benefit of the doubt" is because there are a ton of very bad people out there that abuse any inch a company will give them.
My step mother was one of those entitled ass people who thought the world owed her. One day she put on some act about a late fee and the person on the other side of the desk was saying "oh I'm sure there's something we can swing…" And having enough of her shit, I was basically, "Do not give this lady a wavier on that late fee, everything she just said is some massive warping of the actual truth!"
Maybe it's because of her, but I find it difficult to ding companies who don't default to "benefit of the doubt". I'm glad the lady got it sorted out. But shoot, I've got massive distrust of folks in general and my step-mother is a lot of the blame for that. Side note, that's likely unhealthy kind of stuff that I should one day sort out.
- Comment on Japanese Institute breaks optical fiber speed record with 22.9 petabits per second — 1,000 times faster than existing cables 1 year ago:
For those wanting a bit of a summary.
transmitting up to 22.9 petabits per second (Pb/s) through a single optic cable composed of multiple fibers
The breakthrough isn’t things moving faster but more fibers per cable. So you can transfer more bits in parallel.
That’s still a good breakthrough because, for lots of reasons, packing more fibers in isn’t as straight forward as one would think.
- Comment on Yes, you can have too many CPU cores - Ampere's 192-core chips break ARM64 Linux kernel in two-socket systems, company requests higher core count support 1 year ago:
+config NR_CPUS_RANGE_END + int + default 8192 if SMP && CPUMASK_OFFSTACK + default 512 if SMP && !CPUMASK_OFFSTACK + default 1 if !SMP +
It looks like it's doing and end range of 8192 but with the off stack flag set. And it seems that…
+ This is purely to save memory: each supported CPU adds about 8KB + to the kernel image.
Which looks like they're trying to save memory to avoid TLB stalling on the CPU's bitmap. I think if the chip maker is indicating that slab allocation is fine for more at the moment (which the patch looks to be coming from Christoph Lameter, who works at Ampere), it's best to assume they've tested it on their end. Or at least I would think so. If they felt that more on the stack was a fine option, I would think that, that's exactly what they would pitch to the KML. Them saying there's a need for offstack past 512, I'm guessing there's a reason and the one I can think of is TLB stalls.
- Comment on Yes, you can have too many CPU cores - Ampere's 192-core chips break ARM64 Linux kernel in two-socket systems, company requests higher core count support 1 year ago:
Well the issue at hand is that this is starting to get to the point that like the x86 arch, you cannot just move the NR_CPUS value upward and call it done. The kernel needs to keep some information on hand about the CPUs, it's usually about 8KB per CPU. That is usually allocated on the stack which is a bit of special memory that comes with some assurances like it being continuous and when things go out of scope they are automagically deallocated for you.
However, because of those special assurances, just simply increasing the size of the stack can create all kinds of issues. Namely TLB missing, which one of the things to make CPUs go faster is to move bits of RAM into some special RAM inside the CPU called cache (which there's different levels of cache and each level has different properties which is getting a bit too deep into details). The CPU attempts to make a guess as to the next bit of RAM that needs to move into cache before it's actually needed, this called prediction. Usually the CPU gets it right but sometimes it gets it wrong and the CPU must tell the actual core that it needs to wait while it goes and gets the correct bit of RAM, because the cores move way faster than the transfer of RAM to the cache, this is why the CPU needs to move the bits from RAM into cache before the core actually needs it.
So keeping the stack small pretty much ensures that you can fit the stack into one of the levels of cache on the CPU and allows the stack to be fast and have all that neat automagical stuff like deallocation when it goes out of scope. So you just cannot increase the NR_CPUS value because the stack will just get too large to nicely fit inside the cache, so it'll get broken up into "pages" with the current page in cache and the other one still in RAM and there will be swapping between the pages which can introduce TLB misses.
So the patch being submitted for particular configurations will set the CPUMASK_OFFSTACK flag. This moves that CPU information that's being maintained to be off of the stack. That is to be allocated with slab allocation. Slab allocation is a kernel allocation algorithm that's a bit different than if you did the usual C style
malloc
orcalloc
(which I will indicate that for any C programmers out there, you should usecalloc
first and if you have reasons usemalloc
. Butcalloc
should be your go to for security reasons but I don't want to paper over details here by just saying usecalloc
and never usemalloc
. There's a difference and that difference is important in some cases).Without deep diving into kernel slabs, slabs are a bit different in that they don't have some of those nice automagical things that come with the stack memory. So one must be a bit more careful with how they are used, but that's the nice thing about the slab allocator is that it's pretty smart about ensuring it's doing the right thing. This is for the 5.3 kernel, but I love the charts that give a overview of how the slab allocator works. It's pretty similar in 6.x kernels, but I don't have any nifty charts for that version, but if some does I will love you if you posted a link.
That said, it's a bit slower but a fair enough tradeoff until there's some change in ARM Cortex-X memory cache arrangement. Which going from memory I think Cortex-X4 has 32MB shared L3 cache, which if you have 8KB on the 8192 CPU max, you'll need 64MB just to hold the CPU bitmap in L3 which is slow compared to the other levels. And there's other stuff you're going to need in the cache at any given time so hogging it all is not ideal. Setting the limit for stack usage to 512 is good as that means the bitmap is just 4MB and you can schedule well ahead of time (the kernel has a prefetcher which things within the kernel can do all kinds of special stuff with it to indicate when a bit of RAM needs to be moved into cache, for us measly users we can only make a suggestion called a hint, to the prefetcher) when to move it all into cache or leave it in RAM. So it's a good balance for the moment.
But Server style ARM is making headway and so it makes sense to do a lot with it in the same way the kernel handles server style x86 and other server style archs like POWER and what not. But not mess with it too much for consumer style ARM, which hardly needs these massive bitmaps.
- Comment on Steam dropping support for macOS Mojave and by extension 32-bit games 1 year ago:
Yeah, this article is fucking shit. The support page at Steam literally clears the air on this.
Yes. You will still have access to your 32-bit Mac games in your Steam Library. We are not removing these games from your library and they will continue to work on macOS 10.14 Mojave and earlier, Windows and in many cases Linux as well.
I fucking hate people who write articles to stoke fear for clicks.
- Comment on Why is anti-cheat always client-side? 1 year ago:
Root kit by definition means software that grants root privileges to whoever controls it
That doesn't sound correct. That would mean
sudo
is a root kit, and I would be hard pressed to find people who agree with that statement.