Re: [Jprogramming] Problem in test/g13x

2018-07-24 Thread Henry Rich
Adverse (u :: v) properly passes THROW up to higher levels to be caught.  In the test, nothing caught it.  It's a test error. I have modified the test so it doesn't create EVTHROW. Fixed in the latest commit. Henry Rich On 7/24/2018 5:39 PM, Bill Heagy wrote: With the right starting random s

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Raul Miller
Does JDo work at all in this setup, that’s what I was wanting to see... Thanks, — Raul On Tuesday, July 24, 2018, Sergey Kamenev wrote: > On 24.07.2018 21:32, Raul Miller wrote: > >> On Tue, Jul 24, 2018 at 2:10 PM Sergey Kamenev >> wrote: >> >>> I working under Gentoo linux based distributiv

Re: [Jprogramming] Problem in test/g13x

2018-07-24 Thread Henry Rich
Some error codes are generated internally and shouldn't be used by 13!:8 .  I'll need to think about what to do if the user picks one of them. Thanks, Henry Rich On 7/24/2018 5:39 PM, Bill Heagy wrote: With the right starting random state: RUN1'g13x' 13!:8 :: 1: x=: >: ?255 |uncaught th

[Jprogramming] Problem in test/g13x

2018-07-24 Thread Bill Heagy
With the right starting random state: RUN1'g13x' 13!:8 :: 1: x=: >: ?255 |uncaught throw. This happens for x=35. linux 32bit or nonavx64. JVERSION Engine: j806/j32/linux Beta: GPL3/2018-07-19T22:48:16 Library: 8.05.14 Platform: Linux 32 Installer: unknown InstallPath: /home/wheagy/tmp/jbl

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Sergey Kamenev
On 24.07.2018 21:32, Raul Miller wrote: On Tue, Jul 24, 2018 at 2:10 PM Sergey Kamenev wrote: I working under Gentoo linux based distributive (Calculate Linux) I have not built any working examples of calling a j sub-process under linux. Can you point me at something illustrative and simple,

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Raul Miller
On Tue, Jul 24, 2018 at 2:10 PM Sergey Kamenev wrote: > I working under Gentoo linux based distributive (Calculate Linux) I have not built any working examples of calling a j sub-process under linux. Can you point me at something illustrative and simple, but complete? Thanks, -- Raul

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Sergey Kamenev
On 24.07.2018 19:27, Raul Miller wrote: On Tue, Jul 24, 2018 at 12:04 PM Sergey Kamenev wrote: But I not know how use use same address layout in all part of program. JDo allow only new session for J code Try it (pulling the id and sending it to another process) and see if that works for yo

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Raul Miller
On Tue, Jul 24, 2018 at 12:04 PM Sergey Kamenev wrote: > But I not know how use use same address layout in all part of program. > JDo allow only new session for J code Try it (pulling the id and sending it to another process) and see if that works for you? To go further, we'd have to know ab

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Joachim Hoffmann
We need to port J to the Transputer ... https://en.wikipedia.org/wiki/Transputer SCNR ;) On 24.07.2018 18:04, Sergey Kamenev wrote: On 24.07.2018 17:26, Raul Miller wrote: Have you considered using a initial J session to launch your “main script”? No. I using executable script file like: --

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Sergey Kamenev
On 24.07.2018 17:26, Raul Miller wrote: Have you considered using a initial J session to launch your “main script”? No. I using executable script file like: --- #!/usr/bin/env jconsole J-code --- Anyways, if all processes use the same address layout for the re

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Sergey Kamenev
On 24.07.2018 17:43, Henry Rich wrote: To amplify what Eric said: Two threads cannot have access to the same J namespaces.  There are currently no locking mechanisms to allow two tasks to modify the same tables.  Nor does the memory allocator work if one thread allocates a block and another th

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread bill lam
The J front-end knows about them. You can modify the j front-end to provide their values during booting up. On Tue, Jul 24, 2018, 9:45 PM Sergey Kamenev wrote: > Hi, Eric! > > > Why not just load your main script and then use the functions and > variables > > directly. > > You offer me using a t

Re: [Jprogramming] Catalogue

2018-07-24 Thread Raul Miller
Actually, my parenthetical suggestion should have been for {>{ A ${;{'a bc',&<&;:'def ghij' 1 3 1 4 2 3 2 4 ${>{'a bc',&<&;:'def ghij' 2 2 2 4 Thanks, -- Raul On Mon, Jul 23, 2018 at 7:13 PM Raul Miller wrote: > > What would a higher ranked catalogue do? How would this be useful? > > (T

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Henry Rich
To amplify what Eric said: Two threads cannot have access to the same J namespaces.  There are currently no locking mechanisms to allow two tasks to modify the same tables.  Nor does the memory allocator work if one thread allocates a block and another thread frees it. You could share data b

Re: [Jprogramming] Catalogue

2018-07-24 Thread Raul Miller
How would that work? Thanks, — Raul On Monday, July 23, 2018, Don Guinn wrote: > I'm not sure this is something to be investigated at this time. Because I > suspect that changing it's rank would not a trivial thing. All I asked is > why the rank was set to 1. It appears pretty useless to me. H

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Eric Iverson
You have an unusual, but interesting scenario. I apologize as I really do not have the time to think about this properly. Is this what you are trying to do: Main - normal J task - for example, in jconsole Main J task starts a sub task (which we will call A) with: p=. (libj,' JInit x') cd '' Th

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Raul Miller
Have you considered using a initial J session to launch your “main script”? (Which would then start jhs or whatever, for development purposes...) That said, virtual address randomization (or other anti-malware practices) might defeat this approach. (So you might also have to disable that.) Anywa

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Sergey Kamenev
Hi, Eric! Why not just load your main script and then use the functions and variables directly. You offer me using a trick. This trick make debug more complicated. Perhaps you could give a very simple example of exactly what you want to do. It is not clear what you meany by "return of a sess

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Eric Iverson
Sergey, I do not understand what you are asking for. Why not just load your main script and then use the functions and variables directly. Perhaps you could give a very simple example of exactly what you want to do. It is not clear what you meany by "return of a session of the main J script'. O

Re: [Jprogramming] Which session number I need using in JDo for current session?

2018-07-24 Thread Sergey Kamenev
On 24.07.2018 01:12, Eric Iverson wrote: Why not just run the expression you want to run? It is a pity. My expression need multiple function and variables from my main J script. It would be useful to add to libj.so function for return of a session of the main J script. Sergey. --