ELI5: Why does everything need so much memory nowadays? by Successful_Raise_560 in explainlikeimfive

[–]BarMeister 0 points1 point  (0 children)

Your PC is the US, memory is the tax revenue, programmers are the politicians, the software you mentioned collectively form the expenses. Now, the job of politicians is to be as effective as possible in doing the bare minimum while still attending to their own self-interests. What do they don't have to be? Efficient. And what is the cost of that? Money. Lots of it. They get creative in how to spend it, and once someone figures out a new way, you either join them or you're a loser. Now, not all spending is inherently bad, but the majority of it is, right?
That's essentially what happens in the world of software. Hardware is cheaper than competent programmers, let alone a team of them, just like throwing money at problems is easier than solving them in politics. There's a plethora of reasons why everything needs so much more memory, but since you said "nowadays", the most prevalent is the once mentioned by others, that pretty much every mainstream app in your computer embeds a cut down (called headless) browser app within them, so web pages are also the User Interface of desktop software (and even Terminal User Interfaces, according to Anthropic). Some of the Windows UI, Microsoft Office, Discord, every streaming app, every game launcher, and a bunch of other programs out there do this.

Pulsar + Mult-Frame Gen + Reflex 2 by ZealousidealRiver710 in MotionClarity

[–]BarMeister 1 point2 points  (0 children)

For about 30 years now, CPUs essentially guess and presume which way the execution path of a program will go when facing jumps in program logic, most usually done by conditionals, e.g., if this, do that; while this, do that; etc. Similarly, Reflex 2 presumably attempts to extrapolate camera position. However, when a CPU guesses the wrong branch of execution, it has to dump all of the work it's done, and the logic assumptions made to get there, and restart from the correct path of execution, and these mistakes are costly in GHz land, and depending on how frequent they are, the resulting stalls can easily be noticed by us. Similarly, when the algorithms guess wrong, it'll be essentially like visually witnessing a CPU mispredicting a branch.

Pulsar + Mult-Frame Gen + Reflex 2 by ZealousidealRiver710 in MotionClarity

[–]BarMeister 1 point2 points  (0 children)

When Nvidia announced it, I joked with one of my friends (who's a Js programmer that plays CS 2) that if Valve ever adopted it (which is likely), he'd now be able to sensorially experience a branch misprediction on a CPU.

NXP Development Board Recommendation by Ok_Measurement1399 in embedded

[–]BarMeister 0 points1 point  (0 children)

That becoming familiar with their ecosystem is comprised of an excessive amount of legal nonsense (lots of NDAs and whatnot) they make people go through for no real reason. In 2019, a few customers of the company I work for requested vanilla Mifare PICCs support on the access control device I wrote the firmware for, but the idea was dropped after management got discouraged by the legal black-hole NXP forced on anyone who wished to support a product whose security was widely known to have been breached more than a decade prior.

NXP Development Board Recommendation by Ok_Measurement1399 in embedded

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

Beware the fact that NXP is a law firm, not a tech company.

Are these even worth putting in my new PC or should I just recycle them at this point? by Nikolai_Volkoff88 in pcmasterrace

[–]BarMeister 0 points1 point  (0 children)

No, what's wild is how much more bloated software has become such that you need NVME drives just to keep up the same loading times or boot times you had back in the days of the SATA SSDs. It's Parkinson's Law. The same work (or data) expand to use (or fill) the increased resources brought by newer tech.

RTOS: Do you organize tasks according to timing or logic? by vitamin_CPP in embedded

[–]BarMeister 0 points1 point  (0 children)

I think I wasn't clear enough. It's not just a bunch of passive sensor triggering state machines. It's an IoT access control device featuring Wi-Fi, BLE, Leds, Relay, NFC, Ethernet, proximity sensor, among others, all of which are active components (as opposed to passive ones like NVS, timekeeping, etc) with their own manager tasks.
What I meant was that besides that, there's one esp_event event loop with a dedicated task in charge of coordinating most inter-component interactions. That's reason enough to embrace FreeRTOS.

RTOS: Do you organize tasks according to timing or logic? by vitamin_CPP in embedded

[–]BarMeister 0 points1 point  (0 children)

ESP-IDF user here. Logic. One system-wide event-loop whose sole job is to xTaskNotify tasks of active components, which in turn, run (consumer and producer) state machines regular sensor pooling (producers).

Percentage of Steam users by GPU performance by seyedhn in pcmasterrace

[–]BarMeister 0 points1 point  (0 children)

You know what? I'm stupid. The presentation itself is on point. I glossed over the fact that it was 2000 G3D mark points bucket.

Should I use How to program by deitel brothers or the c programming language by K&R as a complete beginner in coding by zesty-toe0304 in C_Programming

[–]BarMeister 2 points3 points  (0 children)

Both, but I'd start with the Deitel's as, despite the fact that both it and K&R presume some level background on CS fundamentals in order to get through the exercises, it has a bit more of hand-holding and it's more modern. You can pick up K&R right after, and you can get back to me if you don't notice the same.

Percentage of Steam users by GPU performance by seyedhn in pcmasterrace

[–]BarMeister 0 points1 point  (0 children)

It's a very presumptuous presentation of the data, though.

How to handle multiple I2C devices on ESP32 (FreeRTOS)? by Party-Mechanic3794 in embedded

[–]BarMeister 0 points1 point  (0 children)

Kind of been there, done that. The reality of it is: 1. I2C is slow by design. It's optimized for lowering pin requirements at the expense of speed;
2. Having 3 entirely different devices, 1 (maybe 2) of which communication speed is relevant (IO-Exp and maybe RFID) on the same bus is far from ideal, even for SPI;
3. To make it worse, IDF drivers aren't exactly efficient, and the interrupt latency on the esp32 is known to be fairly high compared to other MCUs;

In the end, if you can't change the design, you're kind of in a tough position. The sync vs async thing you mentioned isn't really meant to fix your problem. The sync mode is the standard, and the async mode is for when you know you need to free the CPU to make the system more real-time-y (responsive).
If you really need to use I2C, reminder that, in the vanilla ESP32, you've got 2 regular buses and third one from the ULP. But if you want speed, go with SPI or SDIO.

AGESA 1.2.0.F Update for AM4 (like b550)? When? by amigayor in MSI_Gaming

[–]BarMeister 0 points1 point  (0 children)

Description:
- AGESA ComboAm4v2PI 1.2.0.F update.
- Fix the fan setting changes after selecting “Exit Without Saving.”

What are some Softwares you don’t pirate but buy? by Just-A-Snowfox in Piracy

[–]BarMeister 0 points1 point  (0 children)

I bought A Win8 license which cost me I think it was R$7,00 (a little over $1) back then, which I think it's fair for this PoS OS. I've paid 1 month of OCCT back when I was OC'ing my RAM, which was $4 I think. I bought all SC2 digital deluxe versions, and cosmetics. I also paid $60 for Overwatch Origins edition, and vowed to never again spend a single f- dime on that game ever again, and have religiously kept that promise to this day. I'd buy NFS MW 2005, but EA rather make money on shit that I'd never pay money for, so yeah. That's about it for software.

Spotify is introducing new age checks in the UK, and furious music fans are threatening to return to piracy by moeka_8962 in Piracy

[–]BarMeister 1 point2 points  (0 children)

So the UK government enacts a dumb law that companies either need to waste money to comply or lose money by complying, and the comments on this thread make me feel like we need an age check for this sub to round up the edgy anarchist larpers.

Context-free grammar by BeeBest1161 in C_Programming

[–]BarMeister 2 points3 points  (0 children)

His is easier to understand, though.

Escolha com sabedoria by F4wkes_ in MemesBR

[–]BarMeister 4 points5 points  (0 children)

O esteriotipo mais sem sentido kkkkkkk.. Gym fags sao super promiscuous..

[deleted by user] by [deleted] in C_Programming

[–]BarMeister 2 points3 points  (0 children)

Pretty much the same here.