Re: [Jprogramming] Removing n occurences

2012-09-11 Thread R.E. Boss
Correction: 3 (4 : 'y{~<< -Oorspronkelijk bericht- > Van: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] Namens R.E. Boss > Verzonden: woensdag 12 september 2012 8:34 > Aan: programm...@jsoftware.com > Onderwerp: Re: [Jprogramming] Removin

Re: [Jprogramming] Removing n occurences

2012-09-11 Thread R.E. Boss
3 (4 : '({.y) (] {~ [:<^:3 i.~)^:x y') 1 1 2 3 1 9 10 8 1 2 3 9 10 8 1 3 (4 : 'y{~<<<3{.I.(={.)y') 1 1 2 3 1 9 10 8 1 2 3 9 10 8 1 R.E. Boss > -Oorspronkelijk bericht- > Van: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] Namens Rog

Re: [Jprogramming] Removing n occurences

2012-09-11 Thread Roger Hui
If it's a general approach and (more importantly :-) it solves your problem, then take the general solution and simplify it for your specific problem. On Tue, Sep 11, 2012 at 10:49 PM, June Kim (김창준) wrote: > Hi Roger, > > Thanks, Roger, as always. I am aware of that wiki page, but I think it'

Re: [Jprogramming] Removing n occurences

2012-09-11 Thread 김창준
Hi Roger, Thanks, Roger, as always. I am aware of that wiki page, but I think it's a more general approach. How could I use that to make removen simpler and more elegant? Best regards June On Tue, Sep 11, 2012 at 3:42 PM, Roger Hui wrote: > You may want to look at > http://www.jsoftware.com/jw

Re: [Jprogramming] NYCJUG Tuesday, 9/11, 18:30 at ThomasNet (5 Penn Plaza - 8th Ave. between 33rd and 34th)

2012-09-11 Thread Kenneth Lettow
Hi All, Unfortunately, I was unable to get the video conference setup in time for tonight's NYCJUG meeting. Hopefully this will be rectified for the December meeting that we will host. Sorry for the late notice. Ken On Fri, Sep 7, 2012 at 12:14 PM, Devon McCormick wrote: > NYCJUG will meet a

Re: [Jprogramming] path variable in loop

2012-09-11 Thread Raul Miller
Several kinds of issues intersect here. One issue is of course the existing implementations of J. As we have seen, the implementation for imposing rank on a verb involves sequential processing. One issue is machine architecture. Historically, J has been implemented on a CPU architecture -- it's d

Re: [Jprogramming] path variable in loop

2012-09-11 Thread pascha
You were right It was my misunderstanding.. Done! Raul Miller-4 wrote: > > On Tue, Sep 11, 2012 at 12:50 PM, pascha wrote: >> Thanks.. "row_number" works >> But now the problem is I want the verb to iterate over one array at a >> time. >> for example if I do proccess"0(1+i.2) the resultant inp

Re: [Jprogramming] path variable in loop

2012-09-11 Thread Devon McCormick
An interesting and potentially useful ambiguity here is that process"0 (1+i.2) conceptually (as I understand it) processes the two arguments simultaneously but actually processes them serially as it is written in Raul's example. One reason this is interesting is that you could write "process"

Re: [Jprogramming] path variable in loop

2012-09-11 Thread bob therriault
Hi Pascha, If you haven't looked at Henry Rich's 'J for C Programmers', specifically Chapter 5 http://www.jsoftware.com/help/jforc/declarations.htm#_Toc191734319 and Chapter 6 http://www.jsoftware.com/help/jforc/loopless_code_i_verbs_have_r.htm#_Toc191734331 I think that is an excellent start

Re: [Jprogramming] path variable in loop

2012-09-11 Thread Raul Miller
On Tue, Sep 11, 2012 at 12:50 PM, pascha wrote: > Thanks.. "row_number" works > But now the problem is I want the verb to iterate over one array at a time. > for example if I do proccess"0(1+i.2) the resultant input is: > > /home/user/input/filename1.pgm > /home/user/input/filename2.pgm Not exact

Re: [Jprogramming] android j for armv7 with vfpv3-d16

2012-09-11 Thread bill lam
Thanks. It uses a constact in android 3.0 so that it failed in older android. A new apk has been uploaded, please test again and attach logcat to me if it failed again. Втр, 11 Сен 2012, Konrad Hinsen писал(а): > bill lam writes: > > > There should be another set of messages for "JJNI" which po

Re: [Jprogramming] path variable in loop

2012-09-11 Thread pascha
Thanks.. "row_number" works But now the problem is I want the verb to iterate over one array at a time. for example if I do proccess"0(1+i.2) the resultant input is: /home/user/input/filename1.pgm /home/user/input/filename2.pgm what I want is to "separately" process each array. In the first iter

Re: [Jprogramming] android j for armv7 with vfpv3-d16

2012-09-11 Thread Konrad Hinsen
bill lam writes: > There should be another set of messages for "JJNI" which polt used. There's tons of JJNI stuff but it doesn't seem related. I'll send you the full log by private mail. Konrad. -- For information about J forum

Re: [Jprogramming] android j for armv7 with vfpv3-d16

2012-09-11 Thread bill lam
There should be another set of messages for "JJNI" which polt used. Втр, 11 Сен 2012, Konrad Hinsen писал(а): > bill lam writes: > > > There might be some debug mesages in logcat showing how plot demo > > failed. Search with keyword "logcat" in google play. > > Here's the log, filtered by "j-i

Re: [Jprogramming] android j for armv7 with vfpv3-d16

2012-09-11 Thread Konrad Hinsen
bill lam writes: > There might be some debug mesages in logcat showing how plot demo > failed. Search with keyword "logcat" in google play. Here's the log, filtered by "j-interface". There's an error message but I don't understand what it means. Konrad. D/j-interface(11752): init called I/j-i

Re: [Jprogramming] path variable in loop

2012-09-11 Thread pascha
Right, the main problem for me is I've troubles to understand iteration of verbs over array dimension any suggestion for tutorial? aks_sba wrote: > > Pascha, > > The people who have been responding are trying to help you understand the > "j way" to get your problem addressed. In other words, t

Re: [Jprogramming] android j for armv7 with vfpv3-d16

2012-09-11 Thread bill lam
armv6 should not run at all. It might be an armv7 with vfp-lite. Втр, 11 Сен 2012, bill lam писал(а): > I guess galaxy s might use armv6 with vfp-lite which is only marginally > faster than software emulation. > > There might be some debug mesages in logcat showing how plot demo > failed. Search

Re: [Jprogramming] android j for armv7 with vfpv3-d16

2012-09-11 Thread bill lam
I guess galaxy s might use armv6 with vfp-lite which is only marginally faster than software emulation. There might be some debug mesages in logcat showing how plot demo failed. Search with keyword "logcat" in google play. Втр, 11 Сен 2012, Konrad Hinsen писал(а): > bill lam writes: > > > insta

Re: [Jprogramming] $:

2012-09-11 Thread Raul Miller
If the grand total verb is likely to need different definitions for different contexts, I think it makes even more sense to define it separately from the subtotal verb. -- Raul On Tue, Sep 11, 2012 at 9:54 AM, Robert Cyr wrote: > Thank you Raul. > > As for gt, there are often multiple levels o

Re: [Jprogramming] path variable in loop

2012-09-11 Thread Raul Miller
If I understand what you wrote, you want something like this: require'files' process=: 3 :0 row_number=. ":y input=: fread '/home/user/input/filename', row_number ,'.pgm' NB. insert here, some calculations which define output as a sequence of characters assert. 1=#$output assert. ' ' =

Re: [Jprogramming] $:

2012-09-11 Thread Robert Cyr
Thank you Raul. As for gt, there are often multiple levels of sub-totals, requiring a loop, , or perhaps a recusrsive form. Your point on reserved words is well taken. Robert On Mon, Sep 10, 2012 at 4:06 PM, Raul Miller wrote: >gt=: ([#_:), +/@:(}."1) >M=: mt,gt > > -- > Raul > > P.S

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-11 Thread Ian Clark
Me too. I originally had doublequotes around "beginner", but decided "self-identified" made the point well enough. On Tue, Sep 11, 2012 at 8:20 AM, Roger Hui wrote: >> For a self-identified beginner -- that's quite smart. > > I suspect this "beginner" has multiple advanced degrees in math, comp.

[Jprogramming] android j for armv7 with vfpv3-d16

2012-09-11 Thread Konrad Hinsen
bill lam writes: > installation: must first un-uninstall any previous android j. > > speed test: > timex '%. 500 500 ?@$ 1000' I just tested this on a Samsung Galaxy S. No problems, but not much of a speedup either: 1.0.5 (3 runs): 15.265 15.1584 14.9573 The test version (3 runs): 14.2

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-11 Thread Roger Hui
> For a self-identified beginner -- that's quite smart. I suspect this "beginner" has multiple advanced degrees in math, comp. sci., etc. On Mon, Sep 10, 2012 at 1:25 PM, Ian Clark wrote: > For a self-identified beginner -- that's quite smart. > > (;"_1) indeed! You've been reading the J Dict