488
submitted 4 weeks ago* (last edited 4 weeks ago) by Xatolos@reddthat.com to c/technology@lemmy.world

You can play it in your browser here.

you are viewing a single comment's thread
view the rest of the comments
[-] mPony@lemmy.world 96 points 4 weeks ago

On another forum, I was complaining about how Microsoft was planning to remove WordPad from Win11. I was advised that installing OpenOffice or LibreOffice was an appropriate replacement. I replied that WordPad was only 3 megs large, as opposed to the recommended replacements, which are decidedly larger.

I guess not everybody appreciates tight code, but I surely do. Things like this are amazingly impressive.

[-] sugartits@lemmy.world 105 points 4 weeks ago

Appreciates tight code

Runs Windows 11

Pick a lane, son.

[-] MazonnaCara89@lemmy.ml 34 points 4 weeks ago

Appreciates tight code

Proceed to run a 13KB Javascript game in a browser.

[-] bruhduh@lemmy.world 20 points 4 weeks ago

Brother, look up kolibri os, then you'll see some TIGHT code

[-] sugartits@lemmy.world 13 points 4 weeks ago

AmigaOS 1.3 or bust.

I will die on this hill.

[-] SnipingNinja@slrpnk.net 4 points 4 weeks ago

Menuet OS it is for me

[-] MazonnaCara89@lemmy.ml 43 points 4 weeks ago

Anyway don't install OpenOffice for any reason, just pick libreoffice or onlyoffice. OpenOffice doesn't get a functional/security/compatibility update since 2014.

[-] Dark_Arc@social.packetloss.gg 22 points 4 weeks ago

I don't particularly care about code size as a user or as a programmer.

Hard drive space is the cheapest thing you've got on a computer.

You could always run gentoo and use -Os ... that can make things a lot smaller but also slower.

[-] ICastFist@programming.dev 24 points 4 weeks ago

Hard drive space is the cheapest thing you’ve got on a computer.

I hate this "storage is cheap" mentality, it's a cop out for being wasteful without a reason. "Gas is cheap" was common up to the early 1970s, until it wasn't anymore. "Freshwater is cheap", until it isn't anymore.

[-] Blackmist@feddit.uk 1 points 4 weeks ago

Resources are cheap and getting cheaper all the time.

Developers are expensive and getting more expensive all the time.

It's no wonder everything is a sprawling mess.

[-] frezik@midwest.social -2 points 4 weeks ago* (last edited 4 weeks ago)

Are you willing to give up 1080p screens and 16-bit/44.1kHz sampled music? Or how about languages that can't be represented in ASCII, much less Latin-1? Because handling those take up way more space than code.

[-] ICastFist@programming.dev 14 points 4 weeks ago

Let me quote myself:

I hate this “storage is cheap” mentality, it’s a cop out for being wasteful without a reason.

[-] frezik@midwest.social 4 points 4 weeks ago* (last edited 4 weeks ago)

And there's almost always a reason. Code size tends to be modest compared to supporting data around it.

[-] ICastFist@programming.dev 10 points 4 weeks ago

I see you've never dealt with a real life project that requires god knows how many different libraries off nodejs because 🤷‍♂️

Dependency hell takes a lot of space.

[-] frezik@midwest.social 6 points 4 weeks ago* (last edited 4 weeks ago)

I have. Still small compared to the images and such that are used in a user facing application.

Edit: just to bring in real numbers, I have an old TypeScript project that results in a 109M node_modules dir. Which I agree is absurd. I also have an old anime video, 21 minutes long, at only 560x432 resolution, 24fps, which takes 171M. And that's my point: even in really bad cases, code size tends to be swamped out by everything else in user-facing applications. If there's any kind of images, music, or video, the code size will be a small part of the complete picture.

[-] ICastFist@programming.dev 3 points 4 weeks ago

As a point of comparison, in the last place I worked, the main project had over 600MB of javascript dependencies it pulled from node. Plus 300MB of python libraries for Django and whatever else.

At my current job, preparing your environment for development of one "isolated" php system will need at least 3GB of dependencies. Even the main programmer behind it has no clue how it happened or why.

[-] Flipper@feddit.de 9 points 4 weeks ago

I'd rather have the audio compressed and decompress in realtime instead of a game taking 100Gb in size. Or maybe give me the option to only download languages I can use.

[-] frezik@midwest.social 3 points 4 weeks ago

It's almost always compressed in some way. Still takes up a lot of space. You can fit a lot of compiled code in the space of a 1 minute, 128kbps mp3.

[-] abbotsbury@lemmy.world 6 points 3 weeks ago

You present a false dichotomy. Yes, things like uncompressed audio and HD video take up more storage space, but that does not negate that modern commercial software is very inefficient with how it uses resources. You could improve the efficiency of the system while keeping HD video, it is not a mutually exclusive choice.

For example, booting up Windows and doing nothing takes up 4gb of RAM, while doing the same with a lean Linux installation would take up a quarter of that, despite both operating systems having identical functionality (run web browser, open applications, edit documents, play games, etc).

[-] frezik@midwest.social 3 points 3 weeks ago

Does Windows booting take up that much space because of code, or because of data that code is loading?

[-] abbotsbury@lemmy.world 3 points 3 weeks ago

4GB is what Windows idles at for me, after everything has loaded.

[-] stardreamer@lemmy.blahaj.zone 2 points 3 weeks ago

How much of that is cached state based on the percentage of ram available?

[-] Amir@lemmy.ml 2 points 3 weeks ago

Windows takes a percentage of your available RAM, you can boot it on 4GB RAM and it will use 1GB of so

[-] abbotsbury@lemmy.world 2 points 3 weeks ago

Sure, and there are some performance gains to be made from it I'm sure, but when my OS is doing that and my web browser is doing that and my browser based chat client and my browser based text editor are all doing that, it gets pretty sluggish.

This is why Linux is a godsend for older machines, even running the exact same applications (Firefox, Discord, and vscode) on the exact same hardware, it still feels more responsive on Linux because there is less overhead from the OS itself.

[-] lolcatnip@reddthat.com 5 points 4 weeks ago* (last edited 4 weeks ago)

Sometimes a program is slow to start up because it's so boated that just loading it from the disk takes multiple seconds. Wasting a few kB doesn't hurt anything, but if you're doing it thousands of times in one program, your users are gonna have a bad time.

[-] MonkderDritte@feddit.de 1 points 4 weeks ago* (last edited 4 weeks ago)

What was it again, 1 critical bug every 1000 loc?

That's why, code as much as needed but as less as possible.

Of course not measured in KB, because readable code takes a bit more space than clever hacks.

[-] Tanoh@lemmy.world 9 points 4 weeks ago

Counting in lines of code is the most stupid metric.

[-] frezik@midwest.social 3 points 4 weeks ago

Code is rarely the biggest thing in these programs. You want textures that don't look stretched and pixelated at 4K? That's going to cost you.

Look in any game directory. There's probably a one big file--sometimes a few big ones--in there that you can rename to .zip and unpack it as one. It will dump all the textures/sound effects/etc. in the game, but have zero code. It will be something like 70-90% of the game's entire space.

[-] MonkderDritte@feddit.de 1 points 4 weeks ago

I agree and disagree.

Yes, in Games. There, the longer the more, duplicated assets too (like, all the data in every level package, even though every level only needs 10% of the data). Because user storage is cheaper than optimization.
Sometimes in tools too, often crappy tools with abundance of animations. But usually it's cheaply made software in a framework dragging lots of boilerplate with it. There it's loc again.

No, not in office suites and Wordpad.

Btw, why is vector graphics so rarely used for simple icons?

[-] IllNess@infosec.pub 7 points 4 weeks ago

I just looked at how big LibreOffice Writer is, 210 MB as a portable app... Wow...

AbiWord Portable is probably the smallest and even that is 15 MB installed...

[-] HubertManne@moist.catsweat.com 2 points 1 day ago

I was gonna say notepad but I just looked and its 18mb. granted I have a few plugins installed though.

this post was submitted on 02 Jun 2024
488 points (97.7% liked)

Technology

55610 readers
2727 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS