416
submitted 5 months ago* (last edited 5 months 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
[-] Dark_Arc@social.packetloss.gg 1 points 5 months ago* (last edited 5 months ago)

And then you look at real life and notice that code everywhere is slow, bloated and inefficient.

That's not true in practice. I mean, that code does exist. However, the vast majority of code is reasonably performant.

Not everyone is an expert at optimization and that's fine ... we'd have a lot less software in general if only the best of the best were allowed to author it.

It would be great if more things went back to native (or at least not "I need an entire web browser for my app to function") that to me is wasteful... But a few hundred MBs for a program as large, complicated, and feature rich as LibreOffice is not.

Terrible analogy. A better equivalent is someone renting a garage to store stuff inside and now, because they have so much space, there’s that urge to fill it, whether it makes sense to or not.

No, that's ... just wrong. It's not like people are just writing code and leaving it there to do nothing except increase code size or are actively trying to fill the drive.

It’s usually the other way around. As a rule of thumb, less code = smaller size = faster execution. In theory, 1k lines of code will require less computation, less processing, than 10k.

That's not inherently true, though it is a common misconception/oversimplification. When you do things like code inlining, you increase code size (because you're taking that functions code and having your compiler copy it around to a bunch of places) but the increased locality speeds things up. There's a reason -Os and -O3 are not the same option.

Now sure, if you execute fewer instructions that's better than executing more localized code (though even that can be wrong given process cache and relative instruction speed). Lots of programs have added features that you might not use, but that doesn't really "hurt you", that's not the source of your program or your computer's slowness, it's just some bytes on the drive.

We're a long way from the Unix style "everything is a small program that gets piped into other programs to do interesting things" days. That paradigm just doesn't work for GUI software. Nobody does that because ... normal folks would rather have one office program than have to go shop for 275 programs so that they can have separate programs to edit the document, print the document, convert the document to pdf, update calculations in their spreadsheet, run macros, etc (which if you use all/most of them would likely be more expensive in terms of disk space anyways).

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

Technology

59648 readers
1468 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