On Wed, Dec 21, 2022 at 12:38:15PM +0100, Grégory Vanuxem wrote:
> Hello Waldek, hello all,
>
> First of all Julia is essentially aimed at scientific computing (numerical)
> so not a real competitor.
> I continue to interface it and FriCAS with SBCL but I encounter an annoying
> bug. Maybe you will be able to help me here. At least explain to me how
> Domains and Packages are loaded and used.
>
> The base is done for me, but... The Julia library requires an
> initialisation and I can't figure out how to initialize its environment at
> startup, I always encounter a fatal error: ReadOnlyMemoryError
I have never seen such a message.
>
> See :
> ============================================================
> └─$ fricas -nosman -rl
> Checking for foreign routines
> FRICAS="/usr/local/lib/fricas/target/x86_64-linux-gnu"
> spad-lib="/usr/local/lib/fricas/target/x86_64-linux-gnu/lib/libspad.so"
> gmp-lib="/usr/local/lib/fricas/target/x86_64-linux-gnu/lib/gmp_wrap.so"
> julia-lib="/usr/local/lib/fricas/target/x86_64-linux-gnu/lib/julia_wrap.so"
> foreign routines found
> openServer result -2
> FriCAS Computer Algebra System
> Version: FriCAS 2022-07-16
> Timestamp: mer. 21 déc. 2022 10:35:13 CET
>
> (1) -> )lisp (init-julia-env)
Big question is what 'init-julia-env' is doing.
> Value = T
> (1) -> )lisp (jl-dbl-function "exp" 1.0)
>
> Value = 2.718281828459045
> (1) -> exp(1.0)
> fatal: error thrown and no exception handler available.
> ReadOnlyMemoryError()
> unknown function (ip: 0x52f7062f)
<snip>
> This is because above I begin by initializing Julia's env. So I can't even
> build FriCAS if I automatize at startup the Julia's env.
>
> But, apparently, and I don't even know if I am in the right thinking
> direction, if I "play" with different FriCAS's domains this does not
> happen. Sometimes in fact.
If you think that problem is related. would suggest trying:
)set messages autoload on
--
Waldek Hebisch
--
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/20221227022657.ypgx275453f43ai5%40fricas.math.uni.wroc.pl.