Re: [Jprogramming] zlib addon thanks

2014-09-25 Thread Tikkanz
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

Re: [Jprogramming] zlib addon thanks

2014-09-24 Thread Devon McCormick
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 -: (

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Tikkanz
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread bill lam
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Tikkanz
; >> > > > (<'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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Tikkanz
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread bill lam
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: > > > > > >

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread bill lam
t;> From: Devon McCormick > >>> > >> To: J-programming forum > >>> > >> Cc: > >>> > >> Sent: Tuesday, September 23, 2014 2:28 PM > >>> > >> Subject: Re: [Jprogramming] zlib addon thanks &g

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Tikkanz
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
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. > > >> > > >> > > >>

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread bill lam
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
>> 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 >>

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread 'Pascal Jasmin' via Programming
'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? >

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread 'Pascal Jasmin' via Programming
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

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
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

Re: [Jprogramming] zlib addon thanks

2014-09-20 Thread bill lam
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

[Jprogramming] zlib addon thanks

2014-09-20 Thread John Baker
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)