Linked by Thom Holwerda on Wed 9th Nov 2011 21:26 UTC, submitted by edwin
Thread beginning with comment 496978
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[6]: binary for windows....
by jabjoe on Fri 11th Nov 2011 21:39
in reply to "RE[5]: binary for windows.... "
The difference is that the kernel is kept simple.The complexity is handled by a package manager or similar instead. No dynamic linker to exploit or carefully harden.
Not really a kernel problem as the dynamic linker isn't really in the kernel.
http://en.wikipedia.org/wiki/Dynamic_linker#ELF-based_Unix-like_sys...
What do you mean by this?
When something is statically linked, the library is dissolved, what is not used the dead stripper should remove. Your system is not like static linking. It's like baking dynamic linking.
This package depends on library packages, just like today, but those packages contain static rather than shared libraries. The install process then links the program.
Then you kind of loose some of the gains. You have to have dependencies sitting around waiting in case they are needed. Or you have a repository to pull them down from....
No, just the normal package manager dependency resolution.
That was my point.
No, to the contrary! App folders use dynamic linking for libraries included with the application.
Yes.
I'm talking about using static libraries even when delivering them separately.
As I said before, it's not really static, it's baked dynamic. Also if you have dependencies separate you either have loads kicking about in case they are need (Windows) or you have package management. If you have package management all you get out of this is baking dynamic linking. For no gain I can see.....
Zero-install is an alternative to package managers.
It's quite different as it's decentralized using these application folders. Application folders are often put forwards by some as a solution to dependencies.
RE[7]: binary for windows....
by bogomipz on Sat 12th Nov 2011 16:35
in reply to "RE[6]: binary for windows.... "
Not really a kernel problem as the dynamic linker isn't really in the kernel.
Sorry, I should have said that the process of loading the binary is kept simple.
When something is statically linked, the library is dissolved, what is not used the dead stripper should remove.
Yes, this is why dynamic linking does not necessarily result in lower memory usage.
Your system is not like static linking. It's like baking dynamic linking.
This is where I do not know what you are talking about.
Creating a static library results in a library archive. When linking a program, the necessary parts are copied from the archive into the final binary. My idea was simple to postpone this last compilation step until install time, so that the version of the static library that the package manager has made available on the system is the one being used.
This way, the modularity advantage of dynamic linking could have been implemented without introducing the load time complexity we have today.





Member since:
2005-07-11
The difference is that the kernel is kept simple. The complexity is handled by a package manager or similar instead. No dynamic linker to exploit or carefully harden.
If you don't see any difference, it means both models should work equally well, so no reason for all the complexity.
What do you mean by this? I'm talking about using normal static libraries, as they existed before dynamic linking, and still exist to this day. Some distros even include static libs together with shared objects in the same package (or together with headers in a -dev package).
I may have done a poor job of explaining properly. What I meant was that the program is delivered in a package with an object file that is not yet ready to run. This package depends on library packages, just like today, but those packages contain static rather than shared libraries. The install process then links the program.
No, just the normal package manager dependency resolution.
No, to the contrary! App folders use dynamic linking for libraries included with the application. I'm talking about using static libraries even when delivering them separately.
Zero-install is an alternative to package managers. My proposal could be implemented by either.