From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,43ae7f61992b3213 X-Google-Attributes: gid1025b4,public X-Google-Thread: 103376,faf964ea4531e6af X-Google-Attributes: gid103376,public From: David Starner Subject: Re: GPL and "free" software Date: 1999/04/29 Message-ID: <3728C588.D779258F@aasaa.ofe.org>#1/1 X-Deja-AN: 472466930 Content-Transfer-Encoding: 7bit References: <7fibd5$jc7$1@news2.tor.accglobal.net> <7g5cb2$bjn$1@netnews.upenn.edu> <7g7o6d$lrj$1@flotsam.uits.indiana.edu> <925402294.548.49@news.remarQ.com> <3728AAFA.FAD4A827@doc.ic.ac.uk> <3728B4BE.EE06316C@aasaa.ofe.org> <3728C535.4AFA09C2@doc.ic.ac.uk> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Oklahoma State University Mime-Version: 1.0 Newsgroups: comp.lang.ada,gnu.misc.discuss Date: 1999-04-29T00:00:00+00:00 List-Id: Ed Avis wrote: > > David Starner wrote: > > [why not distribute libraries under the GPL?] > > >Because with a template based library, it can be virtually impossible to > >sepearte the library and program in the way that the LGPL requires. The > >only way to permit relinking would be to include source files for the > >program, something not acceptable for proprietary programs. > > I don't understand what you mean. Surely the library can be stored in > a separate shared object or DLL, and loaded just before the program > starts running, which would be a strict separation of library code > from program code. In C terms, it would be similar to a "library" that was full of macros - for example: #define sqrt(a) ({int i; i = a/2; do {a = i/a;} \ while (a*a - i > .1); i}) You could write most of the C library that way. Now, that would embed a significant amount of code into the application in a way that dynamic linking wouldn't help. This is effectively what C++ templates and Ada generics do, but at a higher level. If you used LGPL, you would have to ship source code - no other way to allow someone to change the macros. With the GNAT-licensed code, you don't have to.