Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread Louis de Forcrand
I’d guess is that by “unstable” he meant “currently being modified". In any case, thanks for the link Jose (what should I call you? Pepe?). If there was one thing I could add to J it would be better support for first-class verbs (arrays of verbs, passing verbs as arguments), if only for the beauty

Re: [Jprogramming] multiple assignment

2017-07-17 Thread David Lambert
Catching up with mail, my use case for multiple assignment is to handle command line arguments for which I've invented a few solutions. Date: Tue, 4 Jul 2017 01:40:52 -0400 From: HenryRich To: Programming forum Subject: [Jprogramming] Request for comments: multiple assignment Message-ID:<75b95

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread HenryRich
Unstable? If you have a bug in J8.06, please post it at http://code.jsoftware.com/wiki/System/Interpreter/Bugs I don't see any bugs that are new in 8.06, and plenty that are fixed from previous versions. Henry Rich On 7/17/2017 7:06 PM, Jose Mario Quintana wrote: Louis, a Jx interpreter im

Re: [Jprogramming] Validation in Qt edit controls?

2017-07-17 Thread bill lam
examples in qt demo > edit demo. On Jul 15, 2017 1:20 AM, "HenryRich" wrote: > Oops, blunder my me, all is OK with validation. > > Henry Rich > > On 7/14/2017 1:01 PM, HenryRich wrote: > >> The description of the edit control at >> >> http://code.jsoftware.com/wiki/Guides/Window_Driver/ChildClas

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread bill lam
IIRC plot penstyle is not implemented using gl2 penstyle command. Those dash and dot are simulated using line segments. On Jul 17, 2017 9:13 PM, "Rudolf Sykora" wrote: > Hello, > > changing penstyle in a plot, I found it does not do the expected: > > --- > load 'plot numeric' > > nst

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread Raul Miller
Given is=:1 :'(m)=:y' if we claim that ('abc' is) is not a "pure tacit verb" because it contains a non-tacit adverb, that logic would suggest that +/ is not a pure tacit verb because it contains an adverb. We can certainly say that +/ is a tacit verb, but it's not purely made of pure tacit verbs..

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread Jose Mario Quintana
Louis, a Jx interpreter implements extensions to the language. It supports tacit programming full-heartedly and embraces first-class verbs. There are publicly available patches for Jx extensions, as well as, a pre-built 32 bit Windows dll and Pre-built 32 and 64 bit Linux libs at http://www.2bes

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread Jose Mario Quintana
Roger, at the address I mentioned ( http://www.2bestsystems.com/foundation/j/jx0/index.html ) you can find a link to the article J Functional Programming Extensions that you might find interesting. (There is also a J Cheatsheet.) On Mon, Jul 17, 2017 at 10:19 AM, roger stokes wrote: > Louis, I

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread Jose Mario Quintana
Exactly, you might have the right to say, " And yet, all of your verbs can be pure tacit. For example, you could use is=:1 :'(m)=:y' " but the verb, I_am_a_pure_tacit_verb=: '`u v' is fails, I_am_a_pure_tacit_verb +/`*: |domain error: I_am_a_pure_tacit_verb | (m)=:y because "

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread chris burke
There is no obvious workaround, so you might have to accept the current behaviour. The code needs fixing by someone reasonably familiar with J. I probably don't have time in the next few days, but perhaps someone else on the forum can jump in. On Mon, Jul 17, 2017 at 8:24 AM, Rudolf Sykora wrote

Re: [Jprogramming] reset colours in plot

2017-07-17 Thread chris burke
Plot just recycles colors as needed. You can reset the item colors anytime, but the colors are indexed by the current data item so this is not what you want. I don't think there is a built-in way to override this. However, the function that indexes the colors is just: getitemcolor_jzplot_ 3 :

Re: [Jprogramming] plot resolution problem

2017-07-17 Thread Raul Miller
We'll be here when you need. Thanks, -- Raul On Mon, Jul 17, 2017 at 9:28 AM, Arie van Wingerden wrote: > Hi David, Raul and Devon, > thx. for answering this! > I'll try to convert bits of Python and see how well that will go. > Thx. > /Arie > > 2017-07-16 16:57 GMT+02:00 Devon McCormick : >

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread Rudolf Sykora
On 17 July 2017 at 16:42, chris burke wrote: >> Should this behave this way? > > No, it really should not. However, the line pattern calculation is based on > numbers of points, so it will shrink the step size as the number of points > increases, see linepattern in > jsoftware.com/websvn/wsvn/publ

Re: [Jprogramming] reset colours in plot

2017-07-17 Thread Rudolf Sykora
On 17 July 2017 at 16:42, Tom Arneson wrote: > To get just 4 colors, redefine STDCLR > > STDCLR_jzplot_=: 4{. STDCLR_jzplot_ Say I do not know in advance how many graphs will be there. (I know I can always count them, but...) Say the number of plotted lines in the 1st and 2nd group (see below)

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread chris burke
> Should this behave this way? No, it really should not. However, the line pattern calculation is based on numbers of points, so it will shrink the step size as the number of points increases, see linepattern in jsoftware.com/websvn/wsvn/public/trunk/graphics/plot/source/base/util/putil.ijs . On

Re: [Jprogramming] reset colours in plot

2017-07-17 Thread Tom Arneson
STDCLR_jzplot_ 0 0 255 255 0 0 0 128 0 128 0 128 255 0 255 128 128 0 0 128 128 255 255 0 210 180 140 0 255 255 165 42 42 128 128 128 To get just 4 colors, redefine STDCLR STDCLR_jzplot_=: 4{. STDCLR_jzplot_ Sent from Mail for Windows 10 From: Rudolf Sykora Sent: Monday, July 17, 2017 09:33 To:

Re: [Jprogramming] reset colours in plot

2017-07-17 Thread Rudolf Sykora
> Do you have an example where colors are not reused? I mean reuse = restart, i.e. not necessarily cycle (though possibly also). Example: - load 'plot' pd 'reset' pd 'type line' pd i.3 NB. pd 3+i.3 pd 'show' - The question is: what should I write at the place, so that the sec

Re: [Jprogramming] reset colours in plot

2017-07-17 Thread chris burke
Plot should automatically reuse colors. For example STDCLR has 12 entries, so the following will show the first few colors being reused: load 'plot' plot i.15 5 Do you have an example where colors are not reused? On Mon, Jul 17, 2017 at 6:28 AM, Rudolf Sykora wrote: > Hello, > > when

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread roger stokes
Louis, I am with you on this. Pepe, I would be very interested to see some introductory documentation of your project Regards Roger On Mon, Jul 17, 2017 at 12:40 PM, Louis de Forcrand wrote: > A lot has been said on these forums about Jx and Unbox. > They are unofficial J interpreters (

Re: [Jprogramming] reset colours in plot

2017-07-17 Thread Rudolf Sykora
> Can I do that easily? I tried to add: pd 'itemcolor STDCLR_jwplot_' at the place where I want to start over with colours, but it doesn't help. Thanks Ruda -- For information about J forums see http://www.jsoftware.com/forums.

[Jprogramming] reset colours in plot

2017-07-17 Thread Rudolf Sykora
Hello, when plotting, the colours are by default taken from the STDCLR list. After plotting a few lines of a figure, I want to reuse the colours from that list, starting again from its beginning. Can I do that easily? Thanks Ruda -

Re: [Jprogramming] plot resolution problem

2017-07-17 Thread Arie van Wingerden
Hi David, Raul and Devon, thx. for answering this! I'll try to convert bits of Python and see how well that will go. Thx. /Arie 2017-07-16 16:57 GMT+02:00 Devon McCormick : > I use J all the time for basic data extraction, manipulation and analysis. > A lot of this is documented on the wiki in th

[Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread Rudolf Sykora
Hello, changing penstyle in a plot, I found it does not do the expected: --- load 'plot numeric' nsteps =. 50 xs =. steps _2 2, nsteps pd 'reset' pd 'type line' pd 'penstyle 0' pd xs pd 'penstyle 1' pd -xs pd 'show' --- If nsteps is 5, you can see the second line is d

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-17 Thread Louis de Forcrand
A lot has been said on these forums about Jx and Unbox. They are unofficial J interpreters (with extensions to the language), are they not? Are they publicly available? I couldn't find anything about them on Google except older messages in the forum archives, but then again unfortunately this la