From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public From: Bob Marcan Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/11 Message-ID: <37DA16EF.73EB205B@aster.si>#1/1 X-Deja-AN: 523707055 Content-Transfer-Encoding: 7bit References: <37D81FE1.E90C3B1F@winkinc.com> <37d93940.34897269@news.shore.net> <7ra5gg$cm1@dfw-ixnews15.ix.netcom.com> <0c2b02cf.f3e5b79a@usw-ex0106-043.remarq.com> <112cf6a7.19ca6b6d@usw-ex0106-043.remarq.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsadmin@siol.net X-Trace: news.siol.net 937039435 193.77.99.202 (Sat, 11 Sep 1999 10:43:55 MET DST) Organization: SiOL MIME-Version: 1.0 NNTP-Posting-Date: Sat, 11 Sep 1999 10:43:55 MET DST Newsgroups: comp.os.ms-windows.advocacy,comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss The Ghost In The Machine wrote: > > In comp.os.linux.advocacy, westprog > wrote on Fri, 10 Sep 1999 06:41:10 -0700 > <112cf6a7.19ca6b6d@usw-ex0106-043.remarq.com>: > >In article , > >jdege@jdege.visi.com (Jeffrey C. Dege) wrote: > >>On Fri, 10 Sep 1999 04:15:54 -0700, westprog > > wrote: > >>> > >>>What about when the library is application code shared > >>>among a number of applications? > >.. > >>It should be installed as it's own package, without > >>modifying the > >>OS, and separately from every application that might need > >>it. > > > >Exactly. It should not be possible to remove the library > >whan any of the applications using it are present in the > >system. It should be possible to overwrite it only with a > >newer version that supported the same interfaces. It should > >be possible for the applications using the library to > >access it independently of its location. > > > >It certainly should not be the case that when another, > >totally seperate application looks for a file, it > >automatically looks in the same directory as the library > >because the directory is on a global, shared path. The > >library should not be stored in a system directory or > >general purpose applications directory with hundreds of > >other unconnected files. > > > >I have heard of various Unix approaches to this problem, > >but I remain to be convinced that they aren't all kludges > >and workarounds. I would expect that a workable solution to > >the problem would apply to all libraries used by all > >applications. > > The problem transcends operating systems; simply put, how does one > guarantee that the functionality in Library Lib is available > for Program Prog? (Or, another library) > > One possible, but ugly, solution, might be the Dynamic Matching > approach. Every call is encoded into a packet, with arguments > that can be type-checked (e.g., they are derived from a common > base class and passed in as pointers or something); the callee > would be responsible for checking the arguments, matching > them against what it wants the arguments to be (supplying > defaults as required), and ultimately accepting the packet > and doing something reasonable with it, or rejecting it and throwing > an exception. As a software package evolves, the callee arguments > will change, but no callee or callee argument is ever deleted. > (It's ugly because it will yield dead code after awhile, and the > current C++ syntax can't handle defaults within the middle > of a call. Memory mangement might be a bit of a nightmare.) > > Another, slightly more reasonable, approach would be the inclusion > of a version number with the library, so that the loader of said > library can have some assurance of what version of the protocol > expected of that library is available. The library, of course, > would never be deleted in this case; subsequent versions > would be differently named, or available in some fashin that > may transcend traditional 8.3 file naming methods.; in other > words, someone might ask for the COMMDLG library, version > 32.8.A, and this version would be available, as well as 32.8.B, > 32.9.C, and 33. Or, the program may simply ask for version > 32 (which would be sloppy, because the changes between 32.1.A > and 32.9.C may involve significant, though not major, changes > in behavior). > > Or one can simply load...and hope. What about this? http://www.openvms.digital.com:8000/72final/4518/4518pro_006.html#4518_integ_chap Bob > > Ultimately, it all boils down to trust; do we have enough trust > in our libraries (and the include files shipped with them, in the > case of the developers seeking to build applications > using those libraries)? > > How would we engender such trust, both at the source code and > at the binary code level? (If one, for example, includes > a new virtual declaration within a C++ class, any class derived > therefrom will have to be recumpiled *except when the new virtual > is placed at the end of the class*. As you might see, this way > lies madness.) > > One nice issue about "free source code" is that one no longer has > to worry quite as much about binary code incompatibilities; one > recompiles everything and voila. > > > > >J (Looking Backward) > > > > > > > > > >* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network * > >The fastest and easiest way to search and participate in Usenet - Free! > > > > -- > ewill@aimnet.com -- for me, going mad is a short trip :-)