[Jprogramming] JDo now seems to always return 17 (stack error?) on Windows

2022-03-05 Thread vadim
I'm considering to move a working program (which loads j.dll) from J version 8.07 to current 9.03, but JDo fails to execute any sentence. (1) No issues with the previous 8.07 version. (2) No issues on Linux. (3) No issues with JInit, JFree, JSetM, JGetM. (4) To confuse things more, no issues with

Re: [Jprogramming] JDo now seems to always return 17 (stack error?) on Windows

2022-03-05 Thread Henry Rich
Stack error means that the program's guess at the bottom of the stack was wrong and the stackpointer dipped below that guess. JInit() has to be called to begin with, and IIUC Jqt calls JSM() (in io.c) to set the stack pointer. Email me directly if you want help tracing through execution. Hen

Re: [Jprogramming] JDo now seems to always return 17 (stack error?) on Windows

2022-03-05 Thread bill lam
JE expected a minimum stack size of 16mb. Try Building your front end with that stack size. On Sun, Mar 6, 2022, 6:35 AM vadim wrote: > I'm considering to move a working program (which loads j.dll) from J > version 8.07 to current 9.03, but JDo fails to execute any sentence. > > (1) No issues wi

[Jprogramming] Power Conjunction

2022-03-05 Thread 'Skip Cave' via Programming
I have this series: 5 9 15 23 33 5+4 9 9+6 15 15+8 23 23+10 33 How can I use the power conjunction to generate this series? Is there a more concise method to generate this than the power conjunction? Skip Skip Cave Cave Consulting LLC ---

Re: [Jprogramming] JDo now seems to always return 17 (stack error?) on Windows

2022-03-05 Thread Henry Rich
You are right, but it wouldn't fail right away for that reason. Henry rich On 3/5/2022 8:32 PM, bill lam wrote: JE expected a minimum stack size of 16mb. Try Building your front end with that stack size. On Sun, Mar 6, 2022, 6:35 AM vadim wrote: I'm considering to move a working program (wh

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread Raul Miller
(, {: + 2 + 2 * #)^:9(5) 5 9 15 23 33 45 59 75 93 113 I hope this helps, -- Raul On Sat, Mar 5, 2022 at 8:55 PM 'Skip Cave' via Programming wrote: > > I have this series: > > 5 9 15 23 33 > > 5+4 > > 9 > > 9+6 > > 15 > > 15+8 > > 23 > > 23+10 > > 33 > > > How can I use the power conjun

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread 'Pascal Jasmin' via Programming
(+/ , 2 + {:)^:(i.8) 5 4 where your series is in first column. On Saturday, March 5, 2022, 08:55:37 p.m. EST, 'Skip Cave' via Programming wrote: I have this series: 5 9 15 23 33 5+4 9 9+6 15 15+8 23 23+10 33 How can I use the power conjunction to generate this series?

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread Raul Miller
I suppose I should also remind you that there's other ways to approach this. For example; (, 5 3 1 p. #)^:10'' 5 9 15 23 33 45 59 75 93 113 And I see that Pascal Jasmin has included another suggestion while I was composing this message... Take care, -- Raul On Sat, Mar 5, 2022 at 8:59 PM

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread David Pinchbeck
What about adding prefixes of the evens? 5+(0,+/\(2*2+i.10)) 5 9 15 23 33 45 59 75 93 113 135 On Sat, Mar 5, 2022 at 9:05 PM Raul Miller wrote: > I suppose I should also remind you that there's other ways to approach > this. > > For example; > >(, 5 3 1 p. #)^:10'' > 5 9 15 23 33 45 59 75

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread Elijah Stone
Here's how I would do it: 3++/\+:i.10 3 5 9 15 23 33 45 59 75 93 This preserves the 'missing' initial term of 3. If you don't want it, replace i.10 with >:i.10. -E On Sat, 5 Mar 2022, 'Skip Cave' via Programming wrote: I have this series: 5 9 15 23 33 5+4 9 9+6 15 15+8 23

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread Elijah Stone
Ah, David beat me to it! :) On Sat, 5 Mar 2022, Elijah Stone wrote: Here's how I would do it: 3++/\+:i.10 3 5 9 15 23 33 45 59 75 93 This preserves the 'missing' initial term of 3. If you don't want it, replace i.10 with >:i.10. -E On Sat, 5 Mar 2022, 'Skip Cave' via Programming wrot

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread Ian Clark
Let's cheat and look it up in oeis.org … Skip's sequence is A027688, dropping the first term A027688 is defined as: (n^2 + n + 3) but (n*n + n + 3) gives better results with (13 :) q=: 13 : '(y*y) + y + 3' q *~ + 3 + ] q >:i.10 5 9 15 23 33 45 59 75 93 113 Has anyone tried automating OEIS lo

Re: [Jprogramming] Power Conjunction

2022-03-05 Thread 'Skip Cave' via Programming
From Ian: q=.*~+3+] q i.10 3 5 9 15 23 33 45 59 75 93 Wow! even more concise! I would have never thought to look that sequence up on OEIS for the formula. Skip Skip Cave Cave Consulting LLC On Sun, Mar 6, 2022 at 12:37 AM Ian Clark wrote: > Let's cheat and look it up in oeis.org … > Sk