If you install zlib1.dll it will be much faster again.
On Windows (Paraphrasing the readme.txt)
Open a J session (run as Admin if need be)
load 'arc/zlib'
install_jzlib_''
load 'arc/zlib'
On Thu, Sep 25, 2014 at 11:51 AM, Devon McCormick
wrote:
> It seems to work when I use a slightly
It seems to work when I use a slightly more reasonable input, e.g.
t=. 1000$'Now is the time for all goode men to come to the aid of the
party '
6!:2 't -: (3!:2) zlib_uncompress zlib_compress (3!:1) t'
0.0140519
or even a less reasonable one:
$t=. a.{~1e5?@$$a.
10
6!:2 't -: (
I think the approach taken is great.
It "just works" in most instances because of the J fallback code.
Where performance is an issue, installing the dll is easy - just follow the
instructions in the readme.txt.
load 'arc/zlib'
t=: a. {~ 1e6 ?@$ 256
timespacex 't -: zlib_decode_j_jzlib_ zlib_encod
j code zlib was intended for writing png output for viewmat and
plot where data should be highly compressible and performance
will be acceptable.
t =. 1e4#a.
6!:2 't -: zlib_decode_j_jzlib_ zlib_encode_j_jzlib_ t'
54.398
t =. 1e6$a.
6!:2 't -: zlib_decode_j_jzlib_ zlib_encode_j_jzlib
;
>> > > > (<'install') jpkg&.>0{"1 'shownotinstalled' jpkg''
>> > > >
>> > > > works but it seems far from intuitive or simple.
>> > > >
>> > > > On Tue, Sep 23, 2014 at 10:07 PM, Devon McCormick <
>> devon...@gma
orks but it seems far from intuitive or simple.
> > > >
> > > > On Tue, Sep 23, 2014 at 10:07 PM, Devon McCormick <
> devon...@gmail.com>
> > > > wrote:
> > > >
> > > > > Yes = I've used package mana
I'm not at 8.03.
> > > I
> > > > did have a custom profile but removed it.
> > > >
> > > > On Tue, Sep 23, 2014 at 2:40 PM, 'Pascal Jasmin' via Programming <
> > > > programm...@jsoftware.com> wrote:
> > > >
> >
t;> From: Devon McCormick
> >>> > >> To: J-programming forum
> >>> > >> Cc:
> >>> > >> Sent: Tuesday, September 23, 2014 2:28 PM
> >>> > >> Subject: Re: [Jprogramming] zlib addon thanks
&g
t; > did have a custom profile but removed it.
> > >
> > > On Tue, Sep 23, 2014 at 2:40 PM, 'Pascal Jasmin' via Programming <
> > > programm...@jsoftware.com> wrote:
> > >
> > >> the addon is available through package manager... Perhaps y
I need to install other than making sure my J
> >> packages are up-to-date?
> >>
> >> I'm running on Windows 7 - should it be available for this OS?
> >>
> >> Thanks...
> >>
> >> On Tue, Sep 23, 2014 at 1:41 PM, 'Pascal Jasmin
e or simple.
>>> >
>>> > On Tue, Sep 23, 2014 at 10:07 PM, Devon McCormick
>>> > wrote:
>>> >
>>> > > Yes = I've used package manager to get all updates but I'm not at
>>> 8.03. I
>>> > > did have a
t; did have a custom profile but removed it.
>> > >
>> > > On Tue, Sep 23, 2014 at 2:40 PM, 'Pascal Jasmin' via Programming <
>> > > programm...@jsoftware.com> wrote:
>> > >
>> > >> the addon is available through package
ftware.com> wrote:
> > >
> > >> the addon is available through package manager... Perhaps you have a
> > >> custom profile that affects load?
> > >>
> > >> this is a j803 feature, btw.
> > >>
> > >>
> > >>
gt; > programm...@jsoftware.com> wrote:
> >
> >> the addon is available through package manager... Perhaps you have a
> >> custom profile that affects load?
> >>
> >> this is a j803 feature, btw.
> >>
> >>
> >> - Original Mess
>> the addon is available through package manager... Perhaps you have a
>> custom profile that affects load?
>>
>> this is a j803 feature, btw.
>>
>>
>> - Original Message -
>> From: Devon McCormick
>> To: J-programming forum
>>
manager... Perhaps you have a
> custom profile that affects load?
>
> this is a j803 feature, btw.
>
>
> - Original Message -
> From: Devon McCormick
> To: J-programming forum
> Cc:
> Sent: Tuesday, September 23, 2014 2:28 PM
> Subject: Re: [Jprogramming] zlib addo
'arc/zlib' NB. reload after first dl.
>
>
>
>
> - Original Message -
> From: Devon McCormick
> To: J-programming forum
> Cc:
> Sent: Tuesday, September 23, 2014 1:33 PM
> Subject: Re: [Jprogramming] zlib addon thanks
>
> How do I load this?
>
b' NB. reload after first dl.
>
>
>
>
> - Original Message -
> From: Devon McCormick
> To: J-programming forum
> Cc:
> Sent: Tuesday, September 23, 2014 1:33 PM
> Subject: Re: [Jprogramming] zlib addon thanks
>
> How do I load this?
>
> On
load 'arc/zlib'
install_zlib_ '' NB. downloads lib (just needs to be done once)
load 'arc/zlib' NB. reload after first dl.
- Original Message -
From: Devon McCormick
To: J-programming forum
Cc:
Sent: Tuesday, September 23, 2014 1:33 PM
Subject: Re: [J
How do I load this?
On Sat, Sep 20, 2014 at 9:25 PM, bill lam wrote:
> the windows zlib1.dll binary is actually copied from j701 gtk binary which
> was built by Norman Drinkwater.
>
> zlib_compress also supports an optional left argument between 0 and 9. 0 is
> uncompressed, 1 is the fastest, an
the windows zlib1.dll binary is actually copied from j701 gtk binary which
was built by Norman Drinkwater.
zlib_compress also supports an optional left argument between 0 and 9. 0 is
uncompressed, 1 is the fastest, and 9 slowest.
zlib_uncompress also supports an optional left argument which is th
The recently released zlib addon is a big plus for j64 users.
The compiled version is very effective on J text and might prove useful for
binary data as well.
The following is a worst case scenario - compressing and uncompressing a
million random numbers
t =. 100?100
ts' t -: (3!:2)
22 matches
Mail list logo