Re:Dr.Mario 64's gzip implementation is taken almost verbati...
by duckerude on Monday October 19, 2020 @12:01PM
(#24827606)
Does gzip actually use zlib? zlib's implementation (https://github.com/madler/zlib/blob/v1.1.3/inflate.c) looks different at first glance, gzip predates it by three years, and I believe gzip is also noticeably slower.
Re:Dr.Mario 64's gzip implementation is taken almost verbati...
by masklinn on Monday October 19, 2020 @12:04PM
(#24827656)
> Does gzip actually use zlib?
If you go and download gzip 1.2.4a (the version mentioned) and open it, the first two lines state:
/* inflate.c -- Not copyrighted 1992 by Mark Adler
version c10p1, 10 January 1993 */
Note that the file you link to is copyrighted (rather than not-copyrighted) 1995-1998. Now maybe saying that it's zlib's is inexact because zlib did not actually exist at the time, but that doesn't really make a difference, it's basically the code to what would eventually become zlib, by zlib's author, under a hyper-permissive license.
Re:Dr.Mario 64's gzip implementation is taken almost verbati...
by duckerude on Monday October 19, 2020 @12:09PM
(#24827701)
Saying it's zlib's did confuse me. But I think I understand now, thank you.
Re:Dr.Mario 64's gzip implementation is taken almost verbati...
by gfodor on Monday October 19, 2020 @11:58AM
(#24827582)
That wasn't my question, my question was if the posted code is from gzip or zlib. It looks like it's probably zlib.
Re:Dr.Mario 64's gzip implementation is taken almost verbati...
by masklinn on Monday October 19, 2020 @11:59AM
(#24827596)
> That wasn't my question
But it's the answer.
> my question was if the posted code is from gzip or zlib. It looks like it's probably zlib.
It's zlib code living inside gzip, so it's not an either / or question.
Re:Dr.Mario 64's gzip implementation is taken almost verbati...
by gfodor on Monday October 19, 2020 @12:02PM
(#24827617)
The question I am asking is the code posted "zlib code living inside of gzip" or "gzip code that has nothing to do with zlib." The decompression code posted may be in gzip proper, but probably not. I haven't seen anyone post the zlib source in this thread proving so.
edit: I see you've answered this in another thread. Thanks.
That does not make it gzip code, the zlib code is not relicensed and it keeps its original license.
Furthermore, both gzip and DrMario64 having merged in zlib's code does not give gzip any claim upon DrMario64.