Re: [Jprogramming] wait, what?

2014-09-12 Thread Don Guinn
Well it defined it in Windows 7 version of J, but couldn't access it. (152{a.)=: i.3 3 (152{a.) � names 0 aspect filler filter_size g gussian kernel_size m n r2 rho zks � � |spelling error | � | ^ It showed up as a b

Re: [Jprogramming] wait, what?

2014-09-12 Thread Don Guinn
Oh yes! This was in JQT 802. On Fri, Sep 12, 2014 at 8:09 PM, Raul Miller wrote: > I was using jqt 802 on desktop. > > FYI, > > -- > Raul > > > On Fri, Sep 12, 2014 at 9:09 PM, bill lam wrote: > > J implementation only allows 7 bit ascii alphabets for name. This is > > relaxed in the unofficial

Re: [Jprogramming] Beginner question

2014-09-25 Thread Don Guinn
Rotate (Left/Up) On Thu, Sep 25, 2014 at 4:21 PM, Henry Rich wrote: > Funny, but 'rotate up' feels like 'rotate toward higher numbers' to me, i. > e. rotate right. > > Henry Rich > > On 9/25/2014 6:16 PM, Raul Miller wrote: > >> Would "Rotate Up" work for you? >> >> Thanks, >> >> --

Re: [Jprogramming] conversions (3!:4) between platforms/android

2014-10-07 Thread Don Guinn
I checked IF64 on my phone and its value was zero. Help says that _3(3!:4) only is valid for J64 On Tue, Oct 7, 2014 at 6:00 AM, Joe Bogner wrote: > I have a android app that is logging sensor data to a text file using > java's DataInputStream.writeLong[1]. It is logging a timestamp each > time

Re: [Jprogramming] conversions (3!:4) between platforms/android

2014-10-07 Thread Don Guinn
> > The simplest change would be to have some mechanism to convert it on J32, > but it would need to be fairly performant as the file may easily have 1M+ > values. > > > > On Tue, Oct 7, 2014 at 9:34 AM, Don Guinn wrote: > > > I checked IF64 on my phone and its value w

Re: [Jprogramming] conversions (3!:4) between platforms/android

2014-10-07 Thread Don Guinn
I don't know if my phone is 32 or 64 bit. But J is 32 bit. On Oct 7, 2014 8:32 AM, "Don Guinn" wrote: > I took your numbers and did > >256#.0 0 1 72 224 139 75 119 > 1412516498295 > > on my laptop and phone and got the same answer. But it was an integer

Re: [Jprogramming] Installation on Android

2014-10-16 Thread Don Guinn
Select menu, Tools, Package Manager to install the addons which includes plot tools. On Thu, Oct 16, 2014 at 9:49 AM, Jerrold wrote: > As a relatively user of J, I have concentrated on my Windows desktop > system. Having had some success on Windows, I have been trying to load it > on my androi

Re: [Jprogramming] default font for jqt

2014-10-19 Thread Don Guinn
Menu/Edit/Session Font On Sun, Oct 19, 2014 at 12:20 AM, Chris Wright wrote: > Hi > > Is there a way to change the session for for the jq > > -- > A/Prof Chris Wright > MBBS, FRACP, FCICM, GradDipiSc(Physics) > Academic Coordinator, Years III - V Central MBBS > Intensive Care Specialist > Facult

[Jprogramming] wd's bin s question

2014-10-21 Thread Don Guinn
The actions of the bin s are still vague to me as to how and when widgets stretch or not. As I understand, bin h and bin v create bins or rectangular boxes in which other widgets can be placed either horizontally or vertically. The "s" parameter can modify how widgets within a bin are placed. But "

Re: [Jprogramming] wd's bin s question

2014-10-21 Thread Don Guinn
0 : 0 > pc B0HS1 closeok; pn B0HS1; > bin h; > bin h; > cc b00 button;cn B00; > cc b01 button;cn B01; > bin z; > bin h; > cc b10 button;cn B10; > bin s0; > cc b11 button;cn B11; > bin z; > bin z; > pmove 600 100 _1 _1; > pshow; > ) > >

Re: [Jprogramming] wd's bin s question

2014-10-21 Thread Don Guinn
only stretch out horizontally. So their behaviour > in bins depends on whether the bins are horizontal or vertical. If the > enclosing "bin h" is changed to "bin v", then the behaviour again seems > correct. > > On Tue, Oct 21, 2014 at 2:53 PM, Don Guinn wrote: >

Re: [Jprogramming] wd's bin s question

2014-10-21 Thread Don Guinn
uttons are not greedy and there is no spacer inside the > bin, therefore this bin will not participate in sharing the extra space. > > what you said: > But "s" should not affect how widgets outside the containing bin > are placed, other than changing the size of the bin. >

Re: [Jprogramming] During lulls in the games can you simplify this code?

2015-01-06 Thread Don Guinn
The whole problem can be avoided by supplying arguments that do not generate unwanted results. (11+i.10)-table 1+i.10 +--+-+ |- | 1 2 3 4 5 6 7 8 9 10| +--+-+ |11|10 9 8 7 6 5 4 3 2 1| |12|11 10 9 8 7 6 5 4 3 2| |1

Re: [Jprogramming] A striggle with "inverse"

2015-01-08 Thread Don Guinn
Obverse/inverse applies to the monadic use of a verb. So, + b._1 NB. Conjugate + - b._1 NB. Negation - * b._1 NB. Signum. Cannot undo this. |domain error | *b._1 % b._1 NB. Inverse % When applied to a dyadic use it is interpreted as the left argument bound to the verb making a m

Re: [Jprogramming] A striggle with "inverse"

2015-01-09 Thread Don Guinn
e! > > 4*inv 7 > 1.75 >4 * inv 7 > 1.75 >4%7 > 0.571429 >7%4 > 1.75 > > 4 + inv 7 > 3 >4-7 > _3 >7-4 > 3 > > Linda > > -Original Message- > From: programming-boun...@forums.jsoftware.com > [mailto:p

Re: [Jprogramming] Fwd: Hello all!

2015-02-17 Thread Don Guinn
2^^4 2.72697e16 ^4 54.5982 2^54.5982 2.72707e16 The second ^ raises e to 4 or 6 power. Not sure about your expressions. On Feb 17, 2015 10:12 AM, "Fausto Saporito" wrote: > HI! > > I'm a new J user with a little experience of APL and LISP. > > In these days I'm playing with big numbers...

Re: [Jprogramming] locale and prompt

2015-02-22 Thread Don Guinn
prompt should be modified to adding * to the "sm prompt" as follows: prompt=:3 : 0 '' prompt y : if. IFQT do. wd 'sm prompt *',y,x inp=. 1!:1 ] 1 len=. #y (len * y -: len {. inp) }. inp else. y 1!:2 (IFWIN+.IFJHS+.IFIOS) { 4 2 1!:1 ] 1 end. ) Without it prompt works rather strangely

Re: [Jprogramming] Window j-console and Intel i7

2015-02-27 Thread Don Guinn
As I understand it the I7 has 4 cores and each core has a pair of local caches. So a processor can switch back an forth between 2 threads and the cache does not have to be rebuilt. Cache memory can cause very interesting problems. It works very well when multiple caches map widey seperated main mem

Re: [Jprogramming] dissect

2015-03-10 Thread Don Guinn
to the final result is always boxes, which are compatible. > >>:&.> 1;'a';3 NB. error in >: > |domain error > | >:&.>1;'a';3 > > >#&.> 1;'a';3 NB. no error in # > +-+-+-+ > |1|1|1| > +-+-+-+ > > H

[Jprogramming] dissect

2015-03-12 Thread Don Guinn
Chapter 4 Section 1 - Diagnosing Errors The error is reported as a domain error; however, that is incorrect. The actual error is a framing error in (>). But because the (@) bindes the (>:) to the (>) The framing error is hidden. I would suggest changing the (>:@>) to (>:&.>) to avoid the framing e

Re: [Jprogramming] Fwd: Difference in failed tests

2015-06-22 Thread Don Guinn
What about the compiler used and the compiler options specified? On Jun 22, 2015 9:16 AM, "bill lam" wrote: > I guess the correct email address is > > source@jsoftware. com > > > the gpl source is ok, not sure why you got so many tests failed. > On Jun 22, 2015 10:48 PM, "Blake McBride" wrote:

Re: [Jprogramming] interesting unicode

2015-07-07 Thread Don Guinn
What is the problem you're trying to fix? On Tue, Jul 7, 2015 at 11:17 AM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > An interesting concept is base256 encoding that is visually useful. > > As a simple test > > u: 256 + i.8 32 > > ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğ > ĠġĢģ

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread Don Guinn
An excellent tool! A real opportunity to extend the lab concept. I question the "expert code" examples being all tacit. Nowhere in the lab is tacit explained. And the "J by Point and Click" Wiki page specifically recommends that tacit code should not be used as it could overwhelm the beginner. All

Re: [Jprogramming] Turning off KeepOnTop in Debug WAS: New visual teaching lab for J - contributors needed

2015-07-11 Thread Don Guinn
utta there. > > Henry Rich > > On 7/8/2015 11:52 AM, Don Guinn wrote: > >> An excellent tool! A real opportunity to extend the lab concept. >> >> I question the "expert code" examples being all tacit. Nowhere in the lab >> is tacit explained. And the

Re: [Jprogramming] insert column into tables

2015-07-20 Thread Don Guinn
t=.i.3 3 0 3 1 2{"1 t,.10 11 12 0 10 1 2 3 11 4 5 6 12 7 8 -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] J-x86 on Android

2015-07-20 Thread Don Guinn
Attempted to upgrade to latest. Got app not installed. This is on a Samsung S4. Rebooted and reinstalled. Still same problem. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] J-x86 on Android

2015-07-20 Thread Don Guinn
t;bill lam" wrote: > Did you mean qtide-x86.apk? It is intended to run a Atom based > android devices. > > Пн, 20 июл 2015, Don Guinn написал(а): > > Attempted to upgrade to latest. Got app not installed. This is on a > Samsung > > S4. Re

Re: [Jprogramming] Detecting special products

2015-08-08 Thread Don Guinn
​Using polynomials to solve this problem is really neat, but why does it work? I can't find anything on the internet explaining why it works. p._720 2 3 1 +-++ |1|_5.5j7.72981 _5.5j_7.72981 8| +-++ p.1;-8 9 10 720 242 27 1 Obviously th

Re: [Jprogramming] Detecting special products

2015-08-08 Thread Don Guinn
and their expansions are algebraic solutions to > special products. All the solutions posted used one of these 2 forms. > (your example uses the 2nd's expansion) > > > - Original Message - > From: Don Guinn > To: Programming forum > Cc: > Sent: Saturd

Re: [Jprogramming] How m"n shoulda been defined

2015-08-09 Thread Don Guinn
J verbs a noun when rank is applied. I always like that expression "Any noun can be verbed". v=.2 1 3"_ v +-+-+-+ |2 1 3|"|_| +-+-+-+ v 1 2 2 1 3 v0=.2 1 3"0 v0 +-+-+-+ |2 1 3|"|0| +-+-+-+ v0 1 2 2 1 3 2 1 3 On Sun, Aug 9, 2015 at 5:08 PM, Raul Miller wrote: > I

Re: [Jprogramming] Detecting special products

2015-08-10 Thread Don Guinn
Thanks. I was being a little dense in forgetting that it is solving for x, not for all values. My thinking gets a little muddled with grandkids around. I was just surprised at the neatness of the solution. I played with products of consecutive numbers greater than 3 (are those still special produc

Re: [Jprogramming] line numbers

2015-08-14 Thread Don Guinn
Is it easy to make line numbers set by form or tab? I like line numbers on the edit form but not often on the execute form. On Fri, Aug 14, 2015 at 9:07 AM, chris burke wrote: > There is no config for this, but I will add it to J804. > > On 14 August 2015 at 06:10, R.E. Boss wrote: > > > How ca

Re: [Jprogramming] line numbers

2015-08-14 Thread Don Guinn
how them in the terminal? > > On 14 August 2015 at 15:12, Don Guinn wrote: > > > Is it easy to make line numbers set by form or tab? I like line numbers > on > > the edit form but not often on the execute form. > > > > On Fri, Aug 14, 2015 at 9:07 AM, chris burke

[Jprogramming] Labs in jhs

2015-08-25 Thread Don Guinn
Selected Studio/Labs in jhs jijx tab and got the message: No labs installed. Do pacman labs/labs install and try again. The labs are installed. Verified that by looking at JAL list. Also they show and run in jqt. But why does it say to use pacman to install the labs? It's called "JAL" in jhs and

[Jprogramming] jhs demo5 plot

2015-08-25 Thread Don Guinn
Tried to plot the expression (1 o. 0.01*i.995) and got an error symbol in the plot area. Found an error message in the jijx tab but it didn't display until I pressed the enter key. First, the limit of less than 1000 data points seems a little small, but it seems to be more than just the number of

Re: [Jprogramming] Labs in jhs

2015-08-26 Thread Don Guinn
I was about to try to reinstall the labs when I tried running the labs under Microsoft Edge. There the labs were found. The failure I was experiencing earlier where the labs were not found was using Google Chrome. This is under Windows 10. Something funny about Chrome. JVERSION Engine: j803/201

Re: [Jprogramming] jhs demo5 plot

2015-08-26 Thread Don Guinn
ine for me, indeed plot 1 o. 0.01 * i.1 works fine. Why do > you think there is a 1000 data point limit? > > What is your JVERSION? > > On 25 August 2015 at 16:27, Don Guinn wrote: > > > Tried to plot the expression (1 o. 0.01*i.995) and got an error symbol in > &

Re: [Jprogramming] jhs demo5 plot

2015-08-26 Thread Don Guinn
is is not an error message from the usual plot, but sounds like google > charts. Can you give me a simple session to reproduce the error you have? > > On 26 August 2015 at 06:25, Don Guinn wrote: > > > Sorry. Should have supplied the version. This is under Windows 10 and get >

Re: [Jprogramming] jhs demo5 plot

2015-08-26 Thread Don Guinn
gt; load'pacman' > 'update'jpkg'' > 'install'jpkg'graphics/plot' > load'plot' > plot 1 o. 0.01*i.1 > > > Ср, 26 авг 2015, Don Guinn написал(а): > > Actually all I did was replace the 10$1000 in the input box in de

Re: [Jprogramming] Labs in jhs

2015-08-26 Thread Don Guinn
(ctrl and period) > > Ср, 26 авг 2015, Don Guinn написал(а): > > I was about to try to reinstall the labs when I tried running the labs > > under Microsoft Edge. There the labs were found. The failure I was > > experiencing earlier where the labs were not found was using Goog

Re: [Jprogramming] jhs demo5 plot

2015-08-26 Thread Don Guinn
Great! It is nice to be able develop an app and run it on either jqt or jfe without change On Wed, Aug 26, 2015 at 4:41 PM, chris burke wrote: > It is the same plot as in jqt, just output to a different device, so the > usual plot docs apply. > > On 26 August 2015 at 15:23, Don

[Jprogramming] Adverse Dictionary Error

2015-09-04 Thread Don Guinn
Looks like the dictionary entry for adverse got messed up. http://www.jsoftware.com/help/dictionary/d312.htm The examples are for permutation, not adverse. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Adverse Dictionary Error

2015-09-04 Thread Don Guinn
You're right. It just got lost in all the talk about permutations. On Fri, Sep 4, 2015 at 9:03 AM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > the example does use adverse though. > > > - Original Message - > From: Don

[Jprogramming] Android under Bluestacks

2015-09-19 Thread Don Guinn
Just installed the Android emulator Bluestacks. Installed J on it and it works well so far. Pretty fast compared to other Android emulators. I selected the Windows version and am running it under Windows 10. -- For information abou

Re: [Jprogramming] Arrayfire bindings

2015-09-28 Thread Don Guinn
How does this perform with small arrays? On Sun, Sep 27, 2015 at 11:32 PM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > these lists should tell you what supports double precision and what > doesn't. For nvidia, it might only be some of the 700 series cards > > https://en

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-09 Thread Don Guinn
You could write out pertinent data to a file before ending the J session to read back in when you run jconsole again. On Mon, Nov 9, 2015 at 1:20 PM, Ian Clark wrote: > > You should think of each terminal command line as simulating a separate > run of the program you are modeling. > > That is my

Re: [Jprogramming] dyadic J

2015-11-26 Thread Don Guinn
If you want to make unique names for the monad and dyad definitions. Shouldn't you also make it invalid to use the name for the wrong usage? m1=: ([ + +) : [: d1=: [: : ([ + +) 3 d1 4 10 3 m1 4 |domain error: m1 | 3 m1 4 On Wed, Nov 25, 2015 at 10:12 PM, bill lam wrote: > A l

Re: [Jprogramming] This year is one of a kind...

2015-12-28 Thread Don Guinn
Just wait until we get to the year 2048. On Dec 28, 2015 9:01 AM, "Jose Mario Quintana" < jose.mario.quint...@gmail.com> wrote: > Right, almost nobody writes, for example, 1023 as 1023 for obvious > reasons although you can see irrelevant leading zeros displayed, for > instance, by odometers.

Re: [Jprogramming] Roll (?) produces domain error on large input

2016-01-11 Thread Don Guinn
Roll does accept floating point as long as the value is integral. z=.16.5-3.5 3!:0 z 8 ?z 9 On Mon, Jan 11, 2016 at 10:46 AM, Raul Miller wrote: > On Mon, Jan 11, 2016 at 6:11 AM, Matthew Baulch > wrote: > > 2^.!21 is greater than 64 and 2^.!20 is less, so I'm guessing roll is not > >

Re: [Jprogramming] Round to nearest integer: harder than it seems

2016-01-14 Thread Don Guinn
I tried using x: on a floating point number to see what happens. The dictionary said that it produces a rational for floating point numbers. Well, it is a rational, but it rounded to the nearest integer. I expected it to give a rational with a denominator of 2. This was done on a 64 bit J. z=.0

Re: [Jprogramming] k programming challenge

2016-01-27 Thread Don Guinn
Replace periods with blanks then use 4!:0 to select words and eliminate numbers and punctuation. On Wed, Jan 27, 2016 at 5:33 AM, Henry Rich wrote: > That's clever. > > Henry Rich > > On 1/27/2016 12:15 AM, Raul Miller wrote: > >> I guess I'd be inclined to do it like this: >> >> require'web/get

Re: [Jprogramming] Joining lists

2016-02-01 Thread Don Guinn
?0 0.335442 100*?0 87.2033 On Sun, Jan 31, 2016 at 8:27 PM, Linda A Alvord wrote: > Is there a standard way to make random trationals? > > Linda > > -Original Message- > From: Programming [mailto:programming-boun...@forums.jsoftware.com] On > Behalf Of Henry Rich > Sent: Sunday,

[Jprogramming] pd get

2016-02-01 Thread Don Guinn
I am attempting to read a .png file into a plot window. I entered pd 'get png ',f |psel : command failed: psel : wd | (LF,~wd ::(''"_)'qer')(13!:8)3 but got an error. What is the format for the command? And is there an example of this somewhere? -

Re: [Jprogramming] pd get

2016-02-01 Thread Don Guinn
ented for that purpose. > > > Пн, 01 фев 2016, Don Guinn написал(а): > > I am attempting to read a .png file into a plot window. I entered > > > >pd 'get png ',f > > |psel : command failed: psel > > : wd > > | (LF,~wd ::(''"_)

Re: [Jprogramming] pd get

2016-02-01 Thread Don Guinn
wever, that the page you referenced says that this requires > media/platimg, and while > http://code.jsoftware.com/wiki/Addons/media/platimg claims that j804 > is supported, that does not seem to be the case. > > -- > Raul > > > On Mon, Feb 1, 2016 at 8:40 PM, Don Guinn wr

Re: [Jprogramming] pd get

2016-02-01 Thread Don Guinn
ound image, and implement that yourself (for example, replace > white on the plot image with your background image). But it should be > doable. > > -- > Raul > > > On Mon, Feb 1, 2016 at 9:24 PM, Don Guinn wrote: > > I was intending to use the picture as a background

Re: [Jprogramming] Am I understanding m/y ?

2016-02-23 Thread Don Guinn
Kind of a weird explicit version fn=. 4 : 'x&(4 : ''((>:#y)|.x)/y'')\.y' %`- fn 1 2 3 4 5 6 7 0.6 1.7 0.33 9 _5 _1 7 On Tue, Feb 23, 2016 at 8:51 PM, Pascal Jasmin wrote: > fn =: <@|.@[ (|.each@:|.@:($~ each 1 >. <:) 4 : 'x/ y' every <\.@]) ] > > > %`- fn 1 2 3 4 5 6 7 > 0.6 1.

Re: [Jprogramming] Numerator and Denominator

2016-03-09 Thread Don Guinn
How about rounding to a rational of some precision like pi rounded to 22r7 ? On Mar 9, 2016 8:52 AM, "Kip Murray" wrote: > Thanks, Roger and Raul. Not understanding GCD +. I had a Rube Goldberg > solution involving Format ": and Do ". --Kip > > On Wednesday, March 9, 2016, Roger Hui wrot

Re: [Jprogramming] Numerator and Denominator

2016-03-09 Thread Don Guinn
last search by > something near a factor of 1000). > > Anyways, if you can say a bit more about what you were aiming for, > maybe we could do a better job of getting there? > > Thanks, > > -- > Raul > > On Wed, Mar 9, 2016 at 11:18 AM, Don Guinn wrote: > > Ho

Re: [Jprogramming] Writing a dyadic verb

2016-03-28 Thread Don Guinn
When the same thing needs to be done to both the left and right arguments & and similar conjunctions can do the job. isRightTriangle =: =/&([:+/*:) 3 4 isRightTriangle 5 1 On Mon, Mar 28, 2016 at 2:26 PM, Adam Tornhill wrote: > I'm moving on to learn J and try to get some practical exerci

Re: [Jprogramming] Foreigns

2016-04-16 Thread Don Guinn
Perhaps defining mins as a verb would help. mins=:4{6!:0 mins '' 56 On Sat, Apr 16, 2016 at 4:49 AM, Martin Kreuzer wrote: > One of my teachers once told me "It's even sillier to not ask a silly > question" ... so here I go: > > Extracting SystemDateTime I do get a vector like this >]

Re: [Jprogramming] Foreigns

2016-04-17 Thread Don Guinn
"exit" is defined in 'system/main/stdlib.ijs' at line 226 in J804. J provides tools for timer events (see QT Demos/timer) but these timer events won't run until J is ready for input. So a noun like a current minute will not update while a long running script is running. If it is that you want a no

Re: [Jprogramming] Foreigns

2016-04-27 Thread Don Guinn
An example of a shared noun is in the break script. See verb break. bin/jbreak.bat uses it to interrupt a running program. This does it at the nuts and bolts level. The lab should give better examples, but this shows it can be done. On Wed, Apr 27, 2016 at 4:01 PM, Raul Miller wrote: > You might

Re: [Jprogramming] Project Euler 1

2016-05-05 Thread Don Guinn
That is a dot product, a scalar zero on the left and a matrix on the right. If you follow the rules of a dot product the scalar zero is treated as (1 2$0) giving the result. On Thu, May 5, 2016 at 3:54 PM, Geoff Canyon wrote: > So there are a few learning opportunities here -- euphemism for thin

Re: [Jprogramming] Even partitions

2016-05-20 Thread Don Guinn
Sounds like making sure that percentages add to 100%. Why people check that is curious. On May 20, 2016 1:11 PM, "'Pascal Jasmin' via Programming" < programm...@jsoftware.com> wrote: > Do you want an almost equal number of files in each group as well? > > A quick approach is to randomly split the

Re: [Jprogramming] Even partitions

2016-05-20 Thread Don Guinn
se ideas and see how they work. > > Thanks for everyone's input. > > On Fri, May 20, 2016 at 10:27 PM, Don Guinn wrote: > > > Sounds like making sure that percentages add to 100%. Why people check > that > > is curious. > > On May 20, 2016 1:11 PM, "&#x

Re: [Jprogramming] How to tell if all boxes in a row are empty?

2016-06-01 Thread Don Guinn
I'm not sure just how = goes about comparing boxed data, but opening the boxes can be avoided by: */"1 a:=a 0 1 0 On Tue, May 31, 2016 at 11:48 PM, bill lam wrote: > step by step example. > >] a=. a: (<1)} <"0 i. 3 5 > +--+--+--+--+--+ > |0 |1 |2 |3 |4 | > +--+--+--+--+--+ > | | | | |

Re: [Jprogramming] Debug Signal - comments requested

2016-06-01 Thread Don Guinn
Sorry about the sloppy message earlier. Things go wrong when hurrying to get ready to go shopping. My proposal: That (13!:8), instead of displaying the statement containing the signal (13!:8) which is the statement at the top of the stack that it display the next statement in the stack, the one us

Re: [Jprogramming] Debug Signal - comments requested

2016-06-01 Thread Don Guinn
I might add, this is simplified to show concept or what I think it should look like. If the next to top in the stack is a definition it's name and line number need to be adjusted also. If debug is turned on I don't know what the best way to do this is. Whether to display the next to top or the top

Re: [Jprogramming] Debug Signal - comments requested

2016-06-02 Thread Don Guinn
there. > > Thanks, > > -- > Raul > > On Thu, Jun 2, 2016 at 7:32 AM, Henry Rich wrote: > > I have not been able to follow the debug code all the way to the end, > but it > > appears to me that the stack doesn't exist except when debugging is > turned > > o

Re: [Jprogramming] Debug Signal - comments requested

2016-06-02 Thread Don Guinn
Then it should raise an error if debug is off. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Debug Signal - comments requested

2016-06-03 Thread Don Guinn
Rich wrote: > You could add that to the bug list. > > Henry Rich > > On 6/2/2016 1:46 PM, Don Guinn wrote: > >> Then it should raise an error if debug is off. >> -- >> For information ab

Re: [Jprogramming] J-like approach for merging numbers in a list

2016-06-07 Thread Don Guinn
Given a string 6 3 3. Should the result be 6 6, or should it be 12? On Jun 7, 2016 5:02 PM, "Ric Sherlock" wrote: > Thanks Marshall! > I really like this solution. Very clean and concise too. > Identify adjacent numbers, double them, compress out the even ones. > > My solution using rplc worked f

Re: [Jprogramming] Unicode string deconstruction

2016-06-16 Thread Don Guinn
You are not dealing with unicode. You have UTF8. ]s=. 7 u: 'ఝ' ,'a','ఝ' NB. s is converted to unicode. ఝaఝ $s 3 <"0 s +---+-+---+ |ఝ|a|ఝ| +---+-+---+ But the display still is messed up because the display first converts the unicode to UTF8. Then does a byte count to determine

Re: [Jprogramming] Unicode (UTF8) string deconstruction

2016-06-16 Thread Don Guinn
ou have a way to take a literal array in UTF8 and box the encodings > for each character? > > > > I have seen your posts in the past and they have helped as I work > through this process. Thank you. > > > > One of the ways that I am looking at dealing with

Re: [Jprogramming] Unicode (UTF8) string deconstruction

2016-06-16 Thread Don Guinn
Oops, I should have said I replace a.i. with 3 u: as 3 u: works just like a.i. for literal and UTF8 but does not fail with unicode. It actually w as one would expect. On Jun 16, 2016 1:45 PM, "Don Guinn" wrote: > If I have to do much processing of UTF8 I convert to unicode

Re: [Jprogramming] linear representation/ formatter recommended change

2016-06-17 Thread Don Guinn
Could using CTRL-SHIFT-V fix the formatting problem? On Jun 17, 2016 12:47 PM, "Brian Schott" wrote: > Thanks. I see. > So your main purpose to add this spacing "color" for easier human > readability? Right. > -- > For informatio

Re: [Jprogramming] How many years did each person live?

2016-06-29 Thread Don Guinn
v=:3 : 'y,.<"0-~/"1".&>0 2{"1 y' v E ++---++-+ |1809|Philip St. George Cooke|1895|86 | ++---++-+ |1836|Flora Cooke Stuart |1923|87 | ++---++-+ |1833|Jeb Stuart |1864|31 | +---

Re: [Jprogramming] Unicode (UTF8) string deconstruction

2016-07-04 Thread Don Guinn
t; One of the ways that I am looking at dealing with the width issue is to > have the character display display in a smaller font so that some of the > unicode display width issues can be resolved. > > Cheers, bob > > > On Jun 16, 2016, at 11:25 AM, Don Guinn wrote: > > &g

Re: [Jprogramming] An easy one

2016-07-04 Thread Don Guinn
^/__ q:4200 8 3 25 7 On Mon, Jul 4, 2016 at 3:48 PM, Ric Sherlock wrote: > How's this? >*//.~ q: 4200 > 8 3 25 7 > > On Tue, Jul 5, 2016 at 9:46 AM, Kip Murray wrote: > > > Consider > > > > q: 4200 > > 2 2 2 3 5 5 7 > > > > How would you "reduce" this to 8 3 25 7 ? > > Write the

Re: [Jprogramming] j805-beta-11 release candidates

2016-08-24 Thread Don Guinn
Problem with literal2 with reshape ($). Below is from Android but fails in Windows as well. z=. 8 u: 16b1f600 z 😀 3$z 😊 3 !:3 z |spelling error | 😊 3 !:3 z | ^ 3!:3 z e100 0200 0400 0100 0400 f09f9880 3!:3 ]3$z e100 0200 0300 0100

Re: [Jprogramming] Zig Zag problem

2016-09-27 Thread Don Guinn
How about brute force? zigzag=:[:,./[:((5 4$' ')(0 0;2 0;4 0;2 2)}~])"1[:]_4,\] zigzag 'PAYPALISHIRING' P A H N A P L S I I G Y I R On Tue, Sep 27, 2016 at 1:27 PM, Henry Rich wrote: >zzc =: (#@] $ ((] , -) i.)@<:@[) ;@:(3 zzc 'PAYPALISHIRING' > PAHNAPLSIIGYIR > > Henr

Re: [Jprogramming] Non-mutable arrays

2016-10-02 Thread Don Guinn
Scalar languages have a need for non-mutable arrays. Array languages do not. As Bill said, all arrays in J are non-mutable. But names are not. As I understand it, the in-place operations are allowed only for actions that cannot fail part-way through leaving an array half-modified. On Sun, Oct 2, 2

Re: [Jprogramming] Non-mutable arrays

2016-10-02 Thread Don Guinn
d and memory location are synonymous. So the issue of non-mutable arrays and non-mutable names are synonymous. In J they are not. On Oct 2, 2016 8:29 AM, "Raul Miller" wrote: > I don't think that scalar languages vs. array languages is the issue, here. > > Thanks, > &

Re: [Jprogramming] Non-mutable arrays

2016-10-02 Thread Don Guinn
ou work with unnamed memory. > > Thanks, > > -- > Raul > > > On Sun, Oct 2, 2016 at 12:45 PM, Don Guinn wrote: > > > > > > No it's not, but scalar thinking lets people get sloppy on keeping > > dependencies well defined. Thinking in arrays forces on

Re: [Jprogramming] assert and assert.

2016-10-04 Thread Don Guinn
assert. can only be used in an explicit definition. On Oct 4, 2016 3:59 PM, "Michael Berry" wrote: > It certainly does! I had no idea there were so many debugging facilities. > > On Tue, Oct 4, 2016 at 5:49 PM, Raul Miller wrote: > > > assert is based on 13!:8 http://www.jsoftware.com/help/ >

Re: [Jprogramming] Is tab not allowed in ". for convert numbers?

2016-10-12 Thread Don Guinn
It is allowed for monadic ". ".48 9 57{a.NB. 9 is TAB 0 9 TAB is supposed to be white space. On Wed, Oct 12, 2016 at 2:24 PM, Xiao-Yong Jin wrote: >_".48 9 57{a.NB. 9 is TAB > _ >_".48 32 57{a. NB. 32 is SPC > 0 9 > > -

Re: [Jprogramming] Is tab not allowed in ". for convert numbers?

2016-10-16 Thread Don Guinn
ist, & noticed that this has not been > reported. The bug list is at > > http://code.jsoftware.com/wiki/System/Interpreter/Bugs/Errors > > This is the list I work from. If you want to get something fixed, write > up a failing testcase and put it there. > > Henry Rich &

Re: [Jprogramming] 13 : '-:y+0 1 2=?3'

2016-11-03 Thread Don Guinn
Well, I wouldn't really consider it a bug, but normally given the same argument, a function returns the same result no matter how many times you run it. So when J evaluates a tacit expression it evaluates everything it can when defined. So the (? bind 3) is evaluated and is replaced with the consta

Re: [Jprogramming] 13 : '-:y+0 1 2=?3'

2016-11-03 Thread Don Guinn
I think that in mathematics it's called a "pure function" which ? is not. j assumes functions (verbs etc.) to be "pure functions". On Thu, Nov 3, 2016 at 7:54 AM, Don Guinn wrote: > Well, I wouldn't really consider it a bug, but normally given the same > a

Re: [Jprogramming] in function which beats the benchmark

2016-12-06 Thread Don Guinn
J has a verb "member" (e.) which gives true for if the item of the left argument is an item in the right argument. 1 3 2 5 6 e. 4 2 1 3 1 1 1 0 0 Is that what you are looking for? On Tue, Dec 6, 2016 at 5:11 AM, 'Jon Hough' via Programming < programm...@jsoftware.com> wrote: > Hi, Welcome to

Re: [Jprogramming] in function which beats the benchmark

2016-12-06 Thread Don Guinn
Tried binding list1 to e. to see what the time would be. This could make a difference where list1 doesn't change. 10 (6!:2) 'list2 e. list1' 0.0343888 e2=:e.&list1 10 (6!:2) 'e2 list2' 0.0160254 On Tue, Dec 6, 2016 at 2:29 PM, Ric Sherlock wrote: >list1=: (i. 10e6) > >list2=: (

Re: [Jprogramming] J805 - install it!

2016-12-19 Thread Don Guinn
I just installed J in the default "Program Files". When I start jqt.exe I get a security message asking if I really want to run it. jconsole.exe works with no message. I am running Windows 10 The message is - "Notify me when apps try to make changes to my computer (default)" I really don't think on

Re: [Jprogramming] J805 - install it!

2016-12-20 Thread Don Guinn
Try running jqt as administrator. On Tue, Dec 20, 2016 at 6:52 AM, 'Bo Jacoby' via Programming < programm...@jsoftware.com> wrote: > I get the message: "Unable to run Package Manager, as you do not have > access to the installation folder." > > Den 12:31 tirsdag den 20. december 2016 skrev 'B

Re: [Jprogramming] unmatched parenthesis

2016-12-26 Thread Don Guinn
I'm a little confused as to where this is going. If the number of "(" equals the number of ")" does that mean that they are matched? Not necessarily. The running sum of "(" minus ")" should never be negative. What about a parin being inside a quoted string? Then there is the more general problem wh

Re: [Jprogramming] u} vs m}

2016-12-27 Thread Don Guinn
I'm not really sure how to interpret your second example either. But (0 1"1) is a verb, where (0 1) is a noun. The dictionary doesn't say what happens if the selection for amend is a verb. On Tue, Dec 27, 2016 at 10:26 AM, David Koppenhoefer < david.koppenhoe...@iconmobile.com> wrote: > Hi, > > I

Re: [Jprogramming] u} vs m}

2016-12-27 Thread Don Guinn
ware.com/wiki/Vocabulary/curlyrtu#dyadic > > Henry Rich > > > On 12/27/2016 12:41 PM, Don Guinn wrote: > >> I'm not really sure how to interpret your second example either. But (0 >> 1"1) is a verb, where (0 1) is a noun. The dictionary doesn't say what >&g

Re: [Jprogramming] u} vs m}

2016-12-27 Thread Don Guinn
Just played with the original expression a little and got: 2 4 (0 2"_)}3 2$0 2 0 4 0 0 0 2 4 (0 3"_)}3 2$0 2 0 0 4 0 0 2 4 (0 4"_)}3 2$0 2 0 0 0 4 0 2 4 (0 5"_)}3 2$0 2 0 0 0 0 4 2 4 (0 6"_)}3 2$0 |index error | 2 4(0 6"_)}3 2$0 2 4 (0 _1"_)}3 2$0 2 0 0 0 0 4 On Tue, Dec 2

Re: [Jprogramming] u} vs m}

2016-12-28 Thread Don Guinn
gt; 0 1 > > 2 3 > > 4 5 > > Is it possible that x u}y is an artifact from that era? > > > > > On 12/27/2016 3:06 PM, Don Guinn wrote: > >> Just played with the original expression a little and got: >> >> 2 4 (0 2"_)}3 2$0 >> 2 0 >

Re: [Jprogramming] Rules for inversing a user defined verb

2016-12-30 Thread Don Guinn
Obverse (:.) allows one to define an obverse to a user defined verb. On Fri, Dec 30, 2016 at 7:08 AM, Adam Tornhill wrote: > After a few months off I'm back working through some problems in the > Daylog APL challenge as a way of learning J. One problem is to shorten a > message yet retain most r

  1   2   3   4   5   6   >