- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
It’s like Moore’s law. The number of bytes for a basic app doubles every 2.5 years.
When I was young, we’d get a few different games games on a single 1.4 Mb floppy disk. The games were simpler, sure, but exactly the same games now would be far bigger in bytes.
Games is the one example that actually makes sense though. The game code size hasn’t really increased tremendously, but the uncompressed assets have only gotten more detailed and more numerous.
At least games make sense, as the graphics get better. Though in some cases, the compression is also better. Like PS5 games are smaller on average than their PS4 versions, even though they have higher resolution textures in most cases, just because the PS5 has better compression/decompression tech.
Better than that, the lack of reliance on spinning disks means that asset duplication and data read order is less of a requirement to reduce load times. It can still be argued that there’s just too many polygons, since simply scaling things back would be plenty effective in reducing storage usage and load times.
The other problem for bigger GB games is texture resolution. Games don’t always need 8K or 4K textures. 2K is good enough.
My shitty eyes can’t detect any difference past 720p
Compression is mostly done in software.
uh, bad news for you.
All programming is done in software my guy.
Great! Your point?
Removed by mod
React
Why? Its libraries are a few kilobytes each.
https://bundlephobia.com/package/react@19.0.0 - 7.3 Kb
https://bundlephobia.com/package/react-dom@19.0.0 - 3.6 KbIs that the JS bundle only? I think you’re forgetting the need to ship a rendering engine, a JavaScript engine, and the rest of the JS you inevitably bring in if you’re using something like React.
Oh, I focus mainly on web. ‘Forgetting’ to ship engines is my bread & butter. lol I see you meant React (+Electron).
It’s the secret sauce, called unnecessary frameworks and user analytics modules.
With that in mind, I LOVE how lean and fast some FOSS apps/projects are. One of my motivations to go searching for FOSS alternatives is when something seems slow for no reason.
It’s not always the case, but it’s often the case
KDE Plasma has been getting so much more efficient with every release that you can almost recommend it for low-end systems.
I remeber using plasma on a weak 2016 160 usd laptop with no issue in 2018, I can only imagine how much better is now
lol my laptop is from 2011, i run gnome and kde easily. windows usually needs a round of debloating every update to be usable.
User analytics is such an innocent word for spyware.
Electron everywhere.
And analytics. And offloading as much computation to the client, because servers are expensive and inefficiency is not an issue if your users are the ones paying for it.
I saw an ad request with an inline 1.4 MB game. Like, you could fit Mario in there.
The Samsung shop hands out 1.4mb JSON responses for order tracking, with what I estimate 99% redundant information that is repeated many times in different parts of the structure.
Web “Apps” are also quite bad. Lots of and lots of stuff we’re downloading and it feels clunky.
Sometimes that’s bad coding, poor optimization, third party libraries, or sometimes just including trackers on the page.
Some devs will include a whole library for one thing instead of trying to learn another way to do that thing.
A whole library which was meant to to 10 things, but you only use one. And that for x libraries
from * import *
Nowadays libraries are built with tree-shaking in mind, so when it’s time to deploy the app only the code that’s actually used gets bundled.
I vaguely recall a recent-ish article that an average web page is 30mb. That’s right, thirty megabytes.
It’s amazing how much faster web browsing becomes when I run PiHole and block most of it.
Suddenly the TV is pretty snappy, and all browsers feel so much smoother.
That’s straight up not true. It’s not even remotely close to that.
And I’m sitting here uneasy thinking how the hell I’m going to compress my map data any further so that my entire web app is no bigger than 2 mb. 😥
No, you need to go further: https://512kb.club/
Oh god, I’m not ready for the trauma and the emotional scars… D:
Performance/optimisation wise is an environmental catastrophe…
Oh, they have new functionality. It’s all in the back end, detailing everything you do and sending it to the parent company so they can monetize your life.
Most resources are not consumed by wonky code or dependencies. Most resources are consumed by images and sounds.
Surely it depends on the specific software.
Every decent piece of software has crap loads of resources: icons, texts, translations, manuals, sounds, fonts, etc. Even hello world app contains at least one resource - “hello world” string and what’s funny is that executable meta data required by operating systems and the string take more space than the actual code to print this string.
I imagine the ability for an app to watch me take a shit consumes about the same resources regardless of platform.
Because the app stores keep adding new requirements that you have to add code to deal with and it gets worse every year and seemingly every day.
Isn’t it strange that a shop is demanding code?
Duh, it’s because more and more code is ran remotely. Wait…
Tap for spoiler
Get electroned
AHHH, please trigger warning
I’d rather have the Rickroll, please 😐
Did my husband made this meme? Because he is constantly saying this 😂😂😂😂
Lazy devs not removing old non functional commented code and background code additions ?
Though I do get it if they don’t want to remove the old code if their employer is an asshole
That’s not why. It’s the dependency trees that run a dozen layers deep and end up importing “isEven”. If you’re building a react app odds are good you’ll import way more code than you ever write yourself.
And no one should be leaving commented-out code in their app, that’s what source control is for.
The hp printer app says it needs your location to connect to WiFi. It says it needs your location all the time when not using the app, again to connect to WiFi
I think that’s to do with how permissions work.
Having wi-fi access can technically tell the app where you’re located so you need to give it location access
Which is stupid because it then also gets GPS access.
Can confirm.
Now, I just need to know why my calculator needs access to my contacts.
That’s because it gets lonely and needs someone to text.
It’s because one is the loneliest number.
You just reminded me of one particular calculator app which put “+” button behind a paywall
I just updated Epic Games Launcher. BEHOLD:
1st update
2nd update
Almost a gigabyte for a mostly blank interface, wtf.
i have a better one, corsair ICUE. 4gb for a fucking png simulator.
God, I hate Corsair. Not only do you need to download their garbage software to fucking turn off the RGB on a headset, you have to have it running or the RGB will turn on again!
OpenRGB was my solution to almost all my RBG woes. It doesn’t work for everything but they have a compatibility page and it’s like 5-10mb.
Thanks for sharing that. My device isn’t listed, but I’d be surprised if Corsair changed how their shit works that much between devices. I’ll give it a try (it supposedly even works on Linux <3)