Why do we need appimage when we can have single binary statically compiled executable?

Additionally, I can’t really understand why are dynamically linked libraries so popular and how on earth anyone who ever had a “.dll / .so not found” error thinks this is a good idea.

The main idea as far as I understand was to be able to share code which I think everyone knows work only in theory, besides would it not be easier to just recompile the executable from source with updated dependency statically linked?

Other idea behind dlls were that you could replace a dll with different dll as long as the api was compatible which is very unlikely scenario for average people.

Yet another possible advantage would be that the library code is shared so it takes less space on disk which might be true for some libraries which are very common but on the other hand static compilation only includes the part of library code that is used by the program so it takes less space anyway and is more optimized.

So the reasons to use the dlls can be easily dismissed.

About the disadvantages - if the dll is not present the program will not work. It’s quite simple and in my view if you create a program which does not work by itself then that’s a failure on your side.

The dlls are just nightmare most of the time, static compilation for the win. (pic for attention)

You are viewing a single thread.
View all comments View context
-34 points

if users compile the program on their computers (like AUR) then no need to download gigabytes, you just need the source code.

permalink
report
parent
reply
42 points

Let’s get grandma running Gentoo!

permalink
report
parent
reply
33 points
*

That route already exists today as “the web”, where the “latest” JavaScript source is downloaded and JIT-ed by browsers. That ecosystem is also not the greatest example of stable and secure software.

permalink
report
parent
reply
3 points

Mmmmmmm yes yes can I interest you in a big surprise piping hot dish of Log4J?

permalink
report
parent
reply
3 points

How is log4j related to what they said ? /genuine

permalink
report
parent
reply
8 points
*

Great idea. I’m sure Microsoft, Apple, Adobe, and almost every company that makes money with their software will be super happy to share their source code with me!

Edit: typo

permalink
report
parent
reply
8 points

Gentoo builds take a long time. Plus hard to use the computer during that time.

(I may be presuming as the comment above yours is about OS wide. And this was how Gentoo handled things.)

permalink
report
parent
reply
2 points

I use my machine all the time when its updating no problem. You can always configure portage to leave a core or two idle anyway.

permalink
report
parent
reply
3 points

Oh, thank you! I am realizing I have not used Gentoo in ages. It was the only option on the Xbox at the time, and that didn’t have many cores. I should give it another go.

permalink
report
parent
reply
3 points

But it’s a gigantic waste of energy and time when you could just download a 2mb package and be done with it.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.1K

    Monthly active users

  • 955

    Posts

  • 37K

    Comments