Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Henry Rich
The argument for gerund"n is this: All partitioning modifiers (/. / ;.n etc,) support cyclic gerunds. The anomalous case is " which is the most basic partitioning modifier of all. It should have been defined to support cyclic gerunds. The proposal is to put it right without breaking any code. m

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread 'Pascal Jasmin' via Programming
the best solution I've seen, isgerund =: 0:`(0 -.@e. 3 : ('y (5!:0)';'1')"0)@.(0 < L.) :: 0: tests that each "box" can be passed to 5!:0 without error. From: Bill To: "programm...@jsoftware.com" Sent: Wednesday, August 2, 2017 9:01 PM Subject: Re: [Jprogramm

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Bill
A noun need not be a gerund. Sent from my iPhone On 3 Aug, 2017, at 9:19 AM, Don Guinn wrote: > A gerund is a noun. > > g=:+`- > g-:;:'+-' > 1 > > I don't know if others have taken advantage of building gerunds as boxed > lists, but I have. Can gerunds have rank greater than 1? So far I h

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Don Guinn
A gerund is a noun. g=:+`- g-:;:'+-' 1 I don't know if others have taken advantage of building gerunds as boxed lists, but I have. Can gerunds have rank greater than 1? So far I haven't found a use for that, but who knows? On Wed, Aug 2, 2017 at 7:01 PM, Bill wrote: > J interpreter must

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Bill
J interpreter must know when a noun is a gerund, so is it possible to add a new primitive to test for gerund? Or is there already J script to test for gerund? Sent from my iPhone On 3 Aug, 2017, at 3:36 AM, Henry Rich wrote: > I expect to make some more improvements to dyad u"n, and eventually

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Jose Mario Quintana
I also thought that it would be unlikely to brake any existing code [0]. It was implemented as " and broke an important code I had written! That is why it was reimplemented as ":: instead. [0] [Jprogramming] How m"n shoulda been defined Jose Mario Quintana http://www.jsoftware.com/piperm

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Raul Miller
Oh, wait, I missed the cyclic part. I still think it could be done differently. Why don't we have a cyclic gerund invocation which does not involve " ? For example, we could add an n value for g`:n which creates a rank _ verb which has an effective rank of -#$g Anyways, I really don't like the i

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Thomas Costigliola
"where n is not _" That is a good idea. We tried trying to detect a gerund for any n but it didn't make it past the standard library. Ignoring the gerund case for rank _ might get further. I don't remember if I tested for stuff like (<'const')"0. I will check that when I get a chance. On 08/

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Raul Miller
In other words, this seems to be the proposal: G=: mean`'' G"0 i. 2 ┌┐ │mean│ ├┤ │mean│ └┘ mean=:+/%# G"0 i.2 0 1 But we could already do this: G`:6"0 i.2 0 1 Personally, I do not feel comfortable agreeing that saving three characters is enough benefit for creating th

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread 'Pascal Jasmin' via Programming
m"n with gerund m seems valuable to me. From: Henry Rich To: Programming forum Sent: Wednesday, August 2, 2017 3:36 PM Subject: Re: [Jprogramming] Jx version 1.0 release I expect to make some more improvements to dyad u"n, and eventually to rewrite the mona

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Henry Rich
On Wed, Aug 2, 2017 at 5:19 PM, bill lam wrote: > IMO Clang does a good job here. And the following > can be compiled without warning. > *((volatile I*)0)=0; // scaf > > I think jx provides useful facilities but some of them are > incompatible with J dictionary. > > Ср, 02 авг 2017, Thomas Cos

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Henry Rich
I expect to make some more improvements to dyad u"n, and eventually to rewrite the monad to match the dyad. My availability to work on this will be intermittent for a while. The 8.06 code as is works, and fixes a long-standing bug reported by Martin Neitzel. I have suggested using m"n, where n i

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread bill lam
IMO Clang does a good job here. And the following can be compiled without warning. *((volatile I*)0)=0; // scaf I think jx provides useful facilities but some of them are incompatible with J dictionary. Ср, 02 авг 2017, Thomas Costigliola написал(а): > You can try removing the conditional stat

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Thomas Costigliola
You can try removing the conditional statement enclosing that line, but for now I would say the patch is broken under Clang. Since the rank code was completely rewritten in J805 and J806 and ":: is based on the J804 rank with some unfinished updates Henry was working on, the real solution is to

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread bill lam
Yes, I use Clang and have -Werror -Wextra in CFLAGS. Sometimes vs2013 is much less tolerant. Ср, 02 авг 2017, Thomas Costigliola написал(а): > That looks like Henry's code taken from cr.c at some older version. It > compiles fine for me in GCC and Visual Studio 2013. It is in the > implementation

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread Thomas Costigliola
That looks like Henry's code taken from cr.c at some older version. It compiles fine for me in GCC and Visual Studio 2013. It is in the implementation of "::, which seems to be working in my tests, so that code never gets hit. Are you using Clang? It's much less tolerant of code like that. Re

Re: [Jprogramming] Jx version 1.0 release

2017-08-02 Thread bill lam
When I tried to compile, but this line in best.c failed. *((I*)0)=0; // scaf and I can not understand its intention, access to memory address 0 should cause segfault. Вт, 01 авг 2017, Jose Mario Quintana написал(а): > A brief description of the Jx v1.0 extensions, together with links to a > W