Re: [Jprogramming] Odd

2023-02-18 Thread Jan-Pieter Jacobs
Hi Bill, Your sentence does not crash (once JE is updated). Before updating the JE, with the beta-k install package from the website, it does crash: JVERSION Engine: j904/j64/linux Beta-k: commercial/2023-01-24T04:43:19 Library: 9.04.11 Platform: Linux 64 Installer: J904 install InstallPath: /h

Re: [Jprogramming] Odd

2023-02-17 Thread bill lam
Can you also confirm this will crash or not (-/ .*)x: 4 4$_ __ 0 0 1 1 0 0 0 0 1 0 0 0 0 1 On Fri, 17 Feb 2023 at 6:36 PM Jan-Pieter Jacobs wrote: > I recently had problems with GMP too on my AVX (not AVX2) laptop. > They seem to be solved with the most recent beta. > With a fresh install from

Re: [Jprogramming] Odd

2023-02-17 Thread Jan-Pieter Jacobs
I recently had problems with GMP too on my AVX (not AVX2) laptop. They seem to be solved with the most recent beta. With a fresh install from the install package "j904_linux64.tar.gz 2023-01-24 17:44 3.4M j904 linux 64-bit" from http://www.jsoftware.com/download/j904/install/ , I initially got a

Re: [Jprogramming] Odd

2023-02-16 Thread Devon McCormick
If it's the GMP that tripped me up by giving a nonce error on "x:" last month, you need to load 'pacman' install'gmp' On Fri, Feb 17, 2023 at 12:26 AM 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > > > There is also a numeric library install required (forget which on

Re: [Jprogramming] Odd

2023-02-16 Thread 'Pascal Jasmin' via Programming
There is also a numeric library install required (forget which one) that while it shouldn't crash without it, will not produce extended results. On Thursday, February 16, 2023 at 10:31:45 p.m. EST, bill lam wrote: We have received reports on the crash but can't reproduce by ourselves

Re: [Jprogramming] Odd

2023-02-16 Thread bill lam
We have received reports on the crash but can't reproduce by ourselves. Would you give detail of the 2 computers such linux distro name and version, and version of glibc ( ldd --version) On Fri, Feb 17, 2023 at 11:22 AM Omar Antolín Camarena < omar.anto...@gmail.com> wrote: > > And it no longer

Re: [Jprogramming] Odd

2023-02-16 Thread Omar Antolín Camarena
> And it no longer crashes. There's a little bit of luck involved in that. I use J on two computers, on one j904 works just fine but on the other doing anything at all using extended integers makes it crash. On Thu, Feb 16, 2023 at 9:19 PM Mike Duvos wrote: > Thanks. I got j904 installed fro

Re: [Jprogramming] Odd

2023-02-16 Thread Mike Duvos
Thanks. I got j904 installed from the zips. Surprisingly, it is up to 58 times faster doing modular exponentiation on large extended precision integers. And it no longer crashes. On Thu, Feb 16, 2023 at 6:24 PM Devon McCormick wrote: > It's probably blank because there is no all-in-one instal

Re: [Jprogramming] Odd

2023-02-16 Thread Devon McCormick
It's probably blank because there is no all-in-one installer for 9.04. Raul is correct that you have to install it from zips. On Thu, Feb 16, 2023 at 8:24 PM Raul Miller wrote: > I don't know why there's a link to a non-existent all in one page. > > For now, I think you have to install it from a

Re: [Jprogramming] Odd

2023-02-16 Thread Raul Miller
I don't know why there's a link to a non-existent all in one page. For now, I think you have to install it from a zip archive: https://code.jsoftware.com/wiki/System/Installation/J904/Zips I hope this helps, -- Raul On Thu, Feb 16, 2023 at 7:50 PM Mike Duvos wrote: > > I went to the Wiki page

Re: [Jprogramming] Odd

2023-02-16 Thread Mike Duvos
I went to the Wiki page for j904 and clicked on the all-in-one installer for Windows, and it took me to a Wiki page with nothing on it. Do I have to install it some other way? On Thu, Feb 16, 2023 at 3:32 PM Raul Miller wrote: > When I run (genkey 32) under j903, I get a crash. > > When I run

Re: [Jprogramming] Odd

2023-02-16 Thread Raul Miller
When I run (genkey 32) under j903, I get a crash. When I run (genkey 32) under j904, it works fine. A number of issues have been addressed in j904 (and it's almost ready for release). It might be worth upgrading. -- Raul On Thu, Feb 16, 2023 at 6:21 PM Mike Duvos wrote: > > I installed it a f

Re: [Jprogramming] Odd

2023-02-16 Thread Mike Duvos
I installed it a few weeks ago from the link in the wiki to the most recent stable version. If I click on “about” in jqt , it says… Engine: j903/j64avx2/windows It said the beta was for “adventurous users.” Should I be running a different one? On Thu, Feb 16, 2023 at 3:01 PM Elijah Stone wr

Re: [Jprogramming] Odd

2023-02-16 Thread Elijah Stone
What version of je are you running? I get innocuous results: genkey 32 15970092203996114281 4061548213 3932020837 genkey 32 14979749644274477941 4038627851 3709118591 genkey 32 15125320685289546439 3974107847 3805966337 If you are not running the latest beta, I suggest doing so; among

[Jprogramming] Odd

2023-02-16 Thread Mike Duvos
I wrote a brief J script to generate random RSA keys in various lengths. I put a copy in my Dropbox at the following URL… https://www.dropbox.com/s/0y0tpgtjtv4vvd2/rsakeys.ijs In this script is a function called “genkey” which crashes J. genkey =: 3 : 0"0 q =. p =. randprime y while. q = p d

Re: [Jprogramming] Odd behaviour in direct definition of a noun in “Jios” (J903 beta-k)

2022-10-30 Thread 'Mike Day' via Programming
Henry’s reply is relevant. There was a space following )n … I forget the details of the discussion about this when noun ddefs were introduced. So back to the jios release, as this occurred in a script copied over from my Windows environment. The toy example was a cover for slightly more compl

Re: [Jprogramming] Odd behaviour in direct definition of a noun in “Jios” (J903 beta-k)

2022-10-30 Thread Raul Miller
What's in the small box? (Do you have 13{a. in foo?) Thanks, -- Raul On Sun, Oct 30, 2022 at 1:32 PM 'Mike Day' via Programming wrote: > > It’s a moot point whether this should be under programming or beta; it looks > as if it’s the j engine rather than Ian’s amazing new iOS implementation.

Re: [Jprogramming] Odd behaviour in direct definition of a noun in “Jios” (J903 beta-k)

2022-10-30 Thread Henry Rich
In your toy example there is a space after )n, which creates a row. Henry Rich On 10/30/2022 1:32 PM, 'Mike Day' via Programming wrote: It’s a moot point whether this should be under programming or beta; it looks as if it’s the j engine rather than Ian’s amazing new iOS implementation. In Jio

[Jprogramming] Odd behaviour in direct definition of a noun in “Jios” (J903 beta-k)

2022-10-30 Thread 'Mike Day' via Programming
It’s a moot point whether this should be under programming or beta; it looks as if it’s the j engine rather than Ian’s amazing new iOS implementation. In Jios for iPad: NB. A toy example foo =: {{)n abcd efgh }} foo NB. Expecting two rows… abcd efgh LF cut foo NB. And two boxes…

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Jon Quant
The android j902 release is also fixed (Linux in the previous mail). On Tue, 14 Sept 2021 at 16:10, Jon Quant wrote: > Thanks Mike. > > I've upgraded to j902 and the problem is fixed. Just starting to learn J, > so my mind was already being expanded. Glad it's fixed and not my > understanding...

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Jon Quant
Thanks Mike. I've upgraded to j902 and the problem is fixed. Just starting to learn J, so my mind was already being expanded. Glad it's fixed and not my understanding... ;) On Tue, 14 Sept 2021 at 16:05, 'Mike Day' via Programming < programm...@jsoftware.com> wrote: > This rings a bell ... I thi

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread 'Mike Day' via Programming
This rings a bell ... I think this might have been a problem with an early beta, forget which version. Later correspondence shows you’re in release beta 901-a, so likely to have been buggy, perhaps. Cheers, Mike Sent from my iPad > On 14 Sep 2021, at 14:59, Jon Quant wrote: > > Dear all,

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Jon Quant
Hi bill, On Linux: Engine: j901/j64/linux Release-a: commercial/2019-12-12T12:42:27 Library: 9.01.20 Platform: Linux 64 Installer: unknown InstallPath: /usr/share/j/9.01 Contact: www.jsoftware.com On Android: Engine: j901/j64/android Release-a: commercial/2019-12-21T13:04:08 Library: 9.01.18 J

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Michael Dykman
On my android, I get what you would expect. kk=.i.5 kk 0 1 2 3 4 ] kk=.>:kk 1 2 3 4 5 i.5 0 1 2 3 4 JVERSION Engine: j902/j64/android Release-a: commercial/2020-12-10T11:16:47 Library: 9.02.08 J Android: 1.4.12/11/30 Platform: Android 64 (arm64-v8a) Installer: unknown InstallPath: /

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Michal Wallace
Are you using the beta version (j903)? please type JVERSION inside J and show us the output. If this is actually happening, then it's a bug. Could be something to do with this: https://code.jsoftware.com/wiki/Vocabulary/SpecialCombinations#Pre-Parsed_Parenthesized_Primitives_.28.29 On Tue,

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread bill lam
What's the version you tested? JVERSION This is bug if you reproduce it. On Tue, Sep 14, 2021, 9:59 PM Jon Quant wrote: > Dear all, > > I have tried the following code and get unexpected results and wanted your > seasoned advice. > >kk=.i.5 >kk > 0 1 2 3 4 >kk=.>:kk >kk > 1 2 3

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Jon Quant
Thanks Pablo and Devon, I was expecting both your results. However my Linux j901 and android phone both give the same odd behaviour. If I keep reassigning kk=.>:kk then i.5 advances also!!! On Tue, 14 Sept 2021 at 15:21, Devon McCormick wrote: > I get nothing like this, only what one would exp

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Devon McCormick
I get nothing like this, only what one would expect: kk=.i.5 kk 0 1 2 3 4 kk=.>:kk kk 1 2 3 4 5 i.5 0 1 2 3 4 You must have done something else too but I can't think what it might be as I don't think re-assignment of J primitive is possible (in J). On Tue, Sep 14, 2021 at 10:03 A

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Pablo Landherr
No. I get: kk=.i.5 kk 0 1 2 3 4 kk=.>:kk kk 1 2 3 4 5 i.5 0 1 2 3 4 On Tue, Sep 14, 2021 at 3:59 PM Jon Quant wrote: > Dear all, > > I have tried the following code and get unexpected results and wanted your > seasoned advice. > >kk=.i.5 >kk > 0 1 2 3 4 >kk=.>:kk >kk > 1

[Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Jon Quant
Dear all, I have tried the following code and get unexpected results and wanted your seasoned advice. kk=.i.5 kk 0 1 2 3 4 kk=.>:kk kk 1 2 3 4 5 i.5 1 2 3 4 5 kk=.>:kk i.5 2 3 4 5 6 So this modifies the behaviour of the 'i.' verb! Is there a (functional programming) grammar

Re: [Jprogramming] Odd timings for dyadic not (-.)

2013-10-13 Thread Henry Rich
I confirm this: m -. n and m&-. n and even n&(-.~) m are about 5x faster than -.&n m . I can't imagine a reason why; I suppose I would need to look at the source code to see. Henry Rich On 10/13/2013 12:52 PM, Brian Schott wrote: 10 ts 'm -. n' 0.0899539 5.24346e6 g=:m&-. 1

Re: [Jprogramming] Odd timings for dyadic not (-.)

2013-10-13 Thread Pascal Jasmin
k n from -.&n before applying it to both.  Of course it would be nice if it were faster. - Original Message - From: Brian Schott To: "programm...@jsoftware.com" Cc: Sent: Sunday, October 13, 2013 12:52:50 PM Subject: Re: [Jprogramming] Odd timings for dyadic not (-.)   10

Re: [Jprogramming] Odd timings for dyadic not (-.)

2013-10-13 Thread Brian Schott
10 ts 'm -. n' 0.0899539 5.24346e6 g=:m&-. 10 ts 'g n' 0.0908445 5.24365e6 Is the above relevant? Used iPad, pre OS7. --- (B=) On Oct 13, 2013, at 12:07 AM, Ganesh Rapolu wrote: > m =. 1e6 ?@$ 1e6 > n =. 5 ?@$ 1e6 > f =. -.&n > 10 ts 'm -. n' > 0.0261088 9.43834e6 > 10

[Jprogramming] Odd timings for dyadic not (-.)

2013-10-12 Thread Ganesh Rapolu
m =. 1e6 ?@$ 1e6 n =. 5 ?@$ 1e6 f =. -.&n 10 ts 'm -. n' 0.0261088 9.43834e6 10 ts 'f m' 0.115288 8.39014e6 -- For information about J forums see http://www.jsoftware.com/forums.htm