Jump to page: 1 2
Thread overview
pure D JPEG decoder, with progressive JPEG support, public domain
Jun 17, 2016
ketmar
Jun 17, 2016
John Colvin
Jun 17, 2016
Kagamin
Jun 17, 2016
ag0aep6g
Jun 17, 2016
ketmar
Jun 17, 2016
Rory McGuire
Jun 17, 2016
ketmar
Jun 17, 2016
ketmar
Jun 17, 2016
ketmar
Jun 17, 2016
Xinok
Jun 17, 2016
ketmar
Jun 17, 2016
ketmar
Jun 18, 2016
Observer
Jun 18, 2016
ketmar
Jun 19, 2016
Adam D. Ruppe
June 17, 2016
finally, the thing you all waited for years is here! pure D no-frills JPEG decoder with progressive JPEG support! Public Domain! one file! no Phobos or other external dependecies! it even has some DDoc! grab it[1] now while it's hot!

[1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/jpegd.d
June 17, 2016
On Friday, 17 June 2016 at 13:05:47 UTC, ketmar wrote:
> finally, the thing you all waited for years is here! pure D no-frills JPEG decoder with progressive JPEG support! Public Domain! one file! no Phobos or other external dependecies! it even has some DDoc! grab it[1] now while it's hot!
>
> [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/jpegd.d

awesome.

Without wanting to start a huge thing about this, see http://linuxmafia.com/faq/Licensing_and_Law/public-domain.html and http://www.rosenlaw.com/lj16.htm and please at least add an optional licencing under a traditional permissive open-source license (boost would be nice, who knows, maybe phobos should have jpeg support?).
June 17, 2016
On 06/17/2016 09:05 AM, ketmar wrote:
> finally, the thing you all waited for years is here! pure D no-frills
> JPEG decoder with progressive JPEG support! Public Domain! one file! no
> Phobos or other external dependecies! it even has some DDoc! grab it[1]
> now while it's hot!
>
> [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/jpegd.d

Nice, thanks for this work. I see it has 3213 lines. I take it the source is https://github.com/richgel999/jpeg-compressor. How many lines from there are reflected in the D code? -- Andrei
June 17, 2016
On Friday, 17 June 2016 at 13:35:58 UTC, John Colvin wrote:
> Without wanting to start a huge thing about this, see http://linuxmafia.com/faq/Licensing_and_Law/public-domain.html and http://www.rosenlaw.com/lj16.htm and please at least add an optional licencing under a traditional permissive open-source license (boost would be nice, who knows, maybe phobos should have jpeg support?).

Uh oh, a license is revokable? What happens when boost license is revoked?
June 17, 2016
On Friday, 17 June 2016 at 13:35:58 UTC, John Colvin wrote:
> Without wanting to start a huge thing about this, see http://linuxmafia.com/faq/Licensing_and_Law/public-domain.html and http://www.rosenlaw.com/lj16.htm and please at least add an optional licencing under a traditional permissive open-source license (boost would be nice, who knows, maybe phobos should have jpeg support?).

ah, i know about PD caveats. but the original source was PD, so i don't feel like adding any other license on top of it will be good. not that it is legally impossible, i just want to keep it as the original author intended. after all, anybody can just fork it and add any license he wants. it is unlikely that the thing will get extensive upgrades anyway. ;-)
June 17, 2016
On Friday, 17 June 2016 at 13:51:29 UTC, Andrei Alexandrescu wrote:
> Nice, thanks for this work. I see it has 3213 lines. I take it the source is https://github.com/richgel999/jpeg-compressor. How many lines from there are reflected in the D code? -- Andrei

it's a complete port of jpegd.h+jpegd.cpp (so, no encoder). it is almost 1:1 to c++ code, including fancy templated row/col decoders and 4x4 matrix mini-class. mostly sed work, and after i made it to compile (and fixed silly bug in CLAMP that i introduced) it "just works". i replaced stream reader class with delegate (we have such a great delegates in D, so let's use 'em! ;-), but otherwise the code is unmodified.

ah, i also put `.ptr` to array access to skip bounds checking -- i love to build my code with bounds checking on, and i don't feel that i need it in this decoder -- it should be fairly well-tested.

so you may assume that all of the lines there are came from c++ (sans some curly brackets).

of course, one can do much better work by writing "idiomatic" D code, i guess, but that would be much greater work -- not a "port", but "rewrite".
June 17, 2016
On Fri, Jun 17, 2016 at 3:35 PM, John Colvin via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote:

> On Friday, 17 June 2016 at 13:05:47 UTC, ketmar wrote:
>
>> finally, the thing you all waited for years is here! pure D no-frills
>> JPEG decoder with progressive JPEG support! Public Domain! one file! no
>> Phobos or other external dependecies! it even has some DDoc! grab it[1] now
>> while it's hot!
>>
>> [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/jpegd.d
>>
>
> awesome.
>
> Without wanting to start a huge thing about this, see http://linuxmafia.com/faq/Licensing_and_Law/public-domain.html and http://www.rosenlaw.com/lj16.htm and please at least add an optional licencing under a traditional permissive open-source license (boost would be nice, who knows, maybe phobos should have jpeg support?).
>

Thanks for that info. I don't think it would help if ketmar made it MIT / Boost licensed or any other, if the original authors relatives chose to dispute the license it the fact that the code is based on the PD code would make it hard to protect.

I think that source code under PD might get exception to the laws in those articles because of the way PD is used globally and what its intent is, and what our common understanding of it is. However that would probably go to court to settle.


June 17, 2016
On Friday, 17 June 2016 at 14:28:52 UTC, Rory McGuire wrote:
> Thanks for that info. I don't think it would help if ketmar made it MIT / Boost licensed or any other, if the original authors relatives chose to dispute the license it the fact that the code is based on the PD code would make it hard to protect.

ah, just fork it and slap Boost license on top! i myself have no objections, and i doubt that the original author will object too.
June 17, 2016
On Friday, 17 June 2016 at 14:33:41 UTC, ketmar wrote:
> ah, just fork it and slap Boost license on top! i myself have no objections, and i doubt that the original author will object too.

p.s. i'm pretty sure that somebody *will* fork it soon to get it to code.dlang.org. i won't do that myself, but again, i have no objections.
June 17, 2016
On 06/17/2016 09:05 AM, ketmar wrote:
> finally, the thing you all waited for years is here! pure D no-frills
> JPEG decoder with progressive JPEG support! Public Domain! one file! no
> Phobos or other external dependecies! it even has some DDoc! grab it[1]
> now while it's hot!
>
> [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/jpegd.d

https://www.reddit.com/r/programming/comments/4oj7ja/public_domain_jpeg_decoder_with_progressive/

Andrei
« First   ‹ Prev
1 2