Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <>
Subject: Re: maxima (sbcl) arithmetic is very slow
Date: Tue, 04 Jan 2022 20:55:42 +0100	[thread overview]
Message-ID: <20220104195542.SAyxkFxHvXPe4eYdtfx9NuRDEu_Dghg_ijIkMRO9WX4@z> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]

New comment by tornaria on void-packages repository

$ rmaxima 
Maxima 5.45.1
using Lisp SBCL 2.2.0
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) :lisp (require :sb-gmp "/usr/lib/sbcl/contrib/sb-gmp.fasl")

(%i1) :lisp (sb-gmp:install-gmp-funs)

(%i1) showtime : true $
Evaluation took 0.0001 seconds (0.0000 elapsed) using 0 bytes.
(%i2) a : 10^(10^5) $
Evaluation took 0.0015 seconds (0.0010 elapsed) using 3.578 KB.
(%i3) b : a^1280 $
Evaluation took 1.5059 seconds (1.5080 elapsed) using 50.689 MB.

 - this only works if `sbcl` is installed (for the file "/usr/lib/sbcl/contrib/sb-gmp.fasl")
 - moreover the version of sbcl used to compile maxima has to match the version of sbcl used to compile `sb-gmp.fasl` (rn maxima was compiled with 2.1.11 but sbcl is at 2.2.0)
 - the "require" statement needs the full path to `sb-gmp.fasl` (not a real problem)

  parent reply	other threads:[~2022-01-04 19:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04 19:19 [ISSUE] " tornaria
2022-01-04 19:47 ` tornaria
2022-01-04 19:55 ` tornaria [this message]
2022-01-04 21:16 ` tornaria
2022-01-11 15:55 ` [ISSUE] [CLOSED] " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220104195542.SAyxkFxHvXPe4eYdtfx9NuRDEu_Dghg_ijIkMRO9WX4@z \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).