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 <devon...@gmail.com> wrote:

> 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 <rauldmil...@gmail.com> 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 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 <mdu...@gmail.com> wrote:
> > >
> > > 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 <rauldmil...@gmail.com>
> > wrote:
> > >
> > > > 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 <mdu...@gmail.com> wrote:
> > > > >
> > > > > 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 <elro...@elronnd.net>
> > > > wrote:
> > > > >
> > > > > > 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
> > other
> > > > > > things, support for extended-precision numbers was much improved.
> > > > > >
> > > > > > On Thu, 16 Feb 2023, Mike Duvos wrote:
> > > > > >
> > > > > > > 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
> > > > > > >
> > > > > > > do.
> > > > > > >
> > > > > > > q =. randprime y
> > > > > > >
> > > > > > > end.
> > > > > > >
> > > > > > > if. p < q
> > > > > > >
> > > > > > > do.
> > > > > > >
> > > > > > > 'p q'=. q,p
> > > > > > >
> > > > > > > end.
> > > > > > >
> > > > > > > (p*q),p,q
> > > > > > >
> > > > > > > )
> > > > > > >
> > > > > > > randprime y returns a random prime of length y bits with the
> > upper
> > > > two
> > > > > > bits
> > > > > > > set as an extended precision integer.  It seems rock solid and
> > has
> > > > been
> > > > > > > called millions of times without issue.
> > > > > > >
> > > > > > > genkey picks a prime, p, and another prime not equal to it, q,
> > and
> > > > swaps
> > > > > > > them if necessary so p is the larger one.  It then returns a
> > vector
> > > > of
> > > > > > > length 3, consisting of p*q, p, and q.
> > > > > > >
> > > > > > > If you load this script, and type “genkey 32”, you get a “J has
> > > > stopped
> > > > > > > working, reporting to Microsoft” dialogue box immediately.
> > > > > > >
> > > > > > > If I write another function, “keygen” which does the same thing
> > as
> > > > > > genkey,
> > > > > > > but phrased slightly differently, it works perfectly.
> > > > > > >
> > > > > > > keygen =: 3 : 0"0
> > > > > > >
> > > > > > > z =. ''
> > > > > > >
> > > > > > > while. 2 > #z
> > > > > > >
> > > > > > > do.
> > > > > > >
> > > > > > > z =. ~. z , randprime y
> > > > > > >
> > > > > > > end.
> > > > > > >
> > > > > > > (*/z),\:~z
> > > > > > >
> > > > > > > )
> > > > > > >
> > > > > > > keygen 5#32
> > > > > > >
> > > > > > > 13636890702424146503 3697445573 3688192411
> > > > > > >
> > > > > > > 14042631972443509627 3975272443 3532495489
> > > > > > >
> > > > > > > 15856784938324374101 4290006247 3696214883
> > > > > > >
> > > > > > > 12482175669738327193 3743048207 3334762199
> > > > > > >
> > > > > > > 14012721502477771067 4146478969 3379426643
> > > > > > >
> > > > > > >
> > > > > > > I’m new to J programming, so I’m sure I’ve just done something
> > > > dumb.  Any
> > > > > > > insights would be appreciated.
> > > > > > >
> > > > > > > Thanks.
> > > > > > >
> > > >
> ----------------------------------------------------------------------
> > > > > > > For information about J forums see
> > > > http://www.jsoftware.com/forums.htm
> > > > > >
> > ----------------------------------------------------------------------
> > > > > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > > > > >
> > > > >
> > ----------------------------------------------------------------------
> > > > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > >
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to