Re: [Jprogramming] paeth filter

2014-08-31 Thread Raul Miller
You wind up using a loop or something equivalent to a loop. A lot of rfcs specify looping algorithms. So... using loops when implementing support for those algorithms seems like the right choice. That said, /\. can be used to construct loop-like behavior, if you must. Thanks, -- Raul On Mon,

[Jprogramming] paeth filter

2014-08-31 Thread bill lam
Context for discussion, section 6.6 of this png rfc * http://tools.ietf.org/html/rfc2083 The forward filter seems trivial, but the backward filter seems tricky to me if not using loop. Any idea on a loop free solution? NB. Paeth Predictor paeth=: 3 : 0 p=. +/ 1 1 _1 * y y{~ (i.<./) |p-y ) for

Re: [Jprogramming] emacs & jconsole plots

2014-08-31 Thread bill lam
I guess fork_jtask_ is used in windows. I would prefer png to pdf output because pdf veiwers requie x-window running while png can be viewed under framebuffer. Вс, 31 авг 2014, Scott Locklin написал(а): > Thanks for the quick reply, Bill. > > I remember how to do it now. If you load the plot met

Re: [Jprogramming] emacs & jconsole plots

2014-08-31 Thread Scott Locklin
Thanks for the quick reply, Bill. I remember how to do it now. If you load the plot methods via require'plot' from emacs, and you're set up to use the pdf viewer, you have to change the following part of stdlb.ijs to include the extra ' &' to fork the PDF viewer. (aka change the "2!:1 cmd" li

Re: [Jprogramming] emacs & jconsole plots

2014-08-31 Thread bill lam
I know almost nothing about emacs. for J7 Jconsole , there is a cairo output which generates png image. at ~temp/plot.png IIRC. Вс, 31 авг 2014, Scott Locklin написал(а): > I know some of you are emacs types like me. I recall being able to call up > multiple plots in emacs using jconsole/J7.x/ema

[Jprogramming] emacs & jconsole plots

2014-08-31 Thread Scott Locklin
I know some of you are emacs types like me. I recall being able to call up multiple plots in emacs using jconsole/J7.x/emacs, but I can't for the life of me remember the configuration magic for achieving this. The symptom, just to be clear, is you need to kill the plot window to return to the

Re: [Jprogramming] Trampolining (was Adler-32)

2014-08-31 Thread Jose Mario Quintana
Thomas wrote: > Yes. It turns out that O. seems to acts as a "recursion scope" as in the > 103!:0 foreign documented in the link. That was unintentional but makes... Regarding the recursion scope, for many years I thought that it would be difficult to write an adverb, in the official version of t

Re: [Jprogramming] Need help with defining a verb

2014-08-31 Thread 'Pascal Jasmin' via Programming
never seen that (0&#) "trick" before, this may be more standard: definedwhere=: ((<'Not from script') ,~ [: 4!:3 ''"_) {~ 4!:4@boxopen - Original Message - From: Henry Rich To: programm...@jsoftware.com Cc: Sent: Sunday, August 31, 2014 11:46:00 AM Subject: Re: [Jprogramming] Need help

Re: [Jprogramming] Need help with defining a verb

2014-08-31 Thread Vijay Lulla
Nice. Thank you. On Sun, Aug 31, 2014 at 11:46 AM, Henry Rich wrote: > Apply 4!:3 to the result of a verb rather than a noun. This delays > execution. > > whichscript =: ((<'Not from script') ,~ 4!:3@(0&#)) {~ 4!:4@boxopen > > Henry Rich > > > On 8/31/2014 11:37 AM, Vijay Lulla wrote: > >> Dea

Re: [Jprogramming] Need help with defining a verb

2014-08-31 Thread Henry Rich
Apply 4!:3 to the result of a verb rather than a noun. This delays execution. whichscript =: ((<'Not from script') ,~ 4!:3@(0&#)) {~ 4!:4@boxopen Henry Rich On 8/31/2014 11:37 AM, Vijay Lulla wrote: Dear J-ers, How would I define a verb 'definedwhere' which finds out where a particular item

[Jprogramming] Need help with defining a verb

2014-08-31 Thread Vijay Lulla
Dear J-ers, How would I define a verb 'definedwhere' which finds out where a particular item got defined? I.e. using 4!:3 and 4!:4 utilities...but dynamically. For e.g., definedwhere 'nl' /Users/v/j64-802/system/main/stdlib.ijs NB. This is similar to (4!:4 <'nl') { 4!:3'' /Users/v/j64-8