News for hackers. Stuff that matters.
Re:Big Integers in Zig by cup-of-tea on Sunday May 13, 2018 @10:15AM (#17058978)
Copyright is viral and copyleft is the cure. But these are just religious issues these days and as such I couldn't convince you to think otherwise.

GMP is available under the LGPL.

Re:Big Integers in Zig by kazinator on Sunday May 13, 2018 @11:40AM (#17059446)
> GMP is available under the LGPL.

GMP is not a common system API like POSIX, so if you rely on it, you actually have to bundle GMP, or otherwise handle the dependency.

LGPL is fine for things like standard C and POSIX, because your program is not tied to that LGPL-ed implementation. The GPL itself recognizes "system library" as a special status. It is permissible for GNU programs to depend on proprietary libraries if they are system libraries. Under very similar reasoning, depending on LGPL-ed libraries is okay in an otherwise completely free program if those LGPL-ed libraries are system libraries.

LGPL limits you to dynamic linking, which is gross for this kind of thing. (Have you looked at a dynamic library function call lately?)

If you make a language depend on a LGPL library for numbers, that turns into GPL if you have to build a static image for an embedded system.

This is not a problem with malloc or printf which you just get from that system, rather than by carrying the GNU C Library into your program.

Legally you may be able to get away with adding a LGPLed library to a MIT or BSD program; in practice, licensing is not purely about "what can I legally get away with". What kind of hassles and restrictions will there be factors into it. Also philosophy factors into it: it's ideologically inappropriate for a liberally licensed (BSD, MIT) program to depend on special-purpose, non-system GNU libraries.

Re:Big Integers in Zig by librexpr on Sunday May 13, 2018 @12:33PM (#17059735)
You can statically link a LGPL'd library without releasing the whole under the LGPL, but you need to provide a way for the user to modify the library and re-link it. See: https://www.gnu.org/licenses/gpl-faq.html#LGPLStaticVsDynami...