Hi Ralf, *,

This is just a shortcut to call Julia[1] directly. In fact this is
equivalent to the spad
routine 'jlEvalString' in an extension I develop.
I use it principally to set, for example, the number of threads used by
BLAS or
switch to MKL (Intel Math Kernel Library) instead of OpenBLAS.
>From src/doc/htext/ug16.htex:

******************************
(1) -> )help julia
====================================================================
A.14.  )julia
====================================================================

User Level Required:  interpreter

Command Syntax:

  -  )julia [juliaExpression]

Command Description:

This command is used to evaluate single expressions by the Julia system.
The juliaExpression is read by the Julia reader and evaluated.

)julia print(Base.VERSION)

If the LinearAlgebra package is loaded:

)julia using LinearAlgebra
)julia nthreads = BLAS.get_num_threads()
)julia BLAS.set_num_threads(8)

Its equivalent in Spad is jlEvalString.

The )ju abbreviation calls this system command.

Also See:
o )juliad
o )lisp
==============================================================

But this is not the point, sorry it was a bad example. I just checked what
I told you
yesterday and I think I have found a reproducible way to trigger the issue
mentioned.
If you ')read' in a FriCAS notebook src/input/bugs2008.input all is right
Bad things happen with bugs2009.input.

Regards,
__
Greg


[1] www.julialang.org
It's very easy to test if you want this Julia extension. Just clone the
jlfricas
branch from gvanuxem GitHub repositories:
$git clone -depth=1 -b jlfricas 1 https://github.com/gvanuxem/fricas.git

Not a lot of code is added and it should be up to date with official
FriCAS. At configure time, as far as the julia binary is in PATH and
libjulia.so in LD_LIBRARY_PATH (?) adding --enable-julia will do
necessary tricks. If SBCL or Clozure CL can load Hunchentoot
(Lisp require) you have an option to add it too. Otherwise hsbcl will help.
In fact even a FriCAS binary compiled with Julia extension support
can find libjulia.so I think.

See README for details on SBCL caveats.

Le dim. 23 juil. 2023, 00:35, Ralf Hemmecke <[email protected]> a écrit :

> On 22.07.23 20:54, Grégory Vanuxem wrote:> Attached is a picture showing
> the same commands, in Jupyter's notebook
>  > vs in a terminal.
>  > I do not expect a graphic in the notebook of course but as you can see
>  > with the 'star'
>  > in front of 'Entrée' (input), computation never ends.
>  > (I stopped the process after several minutes whereas that is not needed)
>  >
>  > The two first system commands, if executed via a spad routine
>  > 'jlEvalString', produce the same.
> In your picture I see a ")ju" system command. What is this? I don't find
> it in i-syscmd.boot.
>
> Ralf
>
> --
> You received this message because you are subscribed to the Google Groups
> "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/fricas-devel/737b8c43-9e60-a382-9feb-d6fffda8b323%40hemmecke.org
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/CAHnU2db%2BGdOebUuNfnHy6RozJwdWA-w4-MLmV-ycfwnXWoA0TA%40mail.gmail.com.

Reply via email to