New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/issues/34849#issuecomment-1005176605 Comment: I had success with the following patch ``` --- a/src/init-cl.lisp 2021-05-15 20:20:53.000000000 -0300 +++ b/src/init-cl.lisp 2022-01-04 17:45:03.838273626 -0300 @@ -574,8 +574,13 @@ (delete-file file))))) *temp-files-list*)) +#+sbcl +(eval-when (:compile-toplevel :load-toplevel :execute) + (require 'sb-gmp)) + (defun cl-user::run () "Run Maxima in its own package." + #+sbcl (sb-gmp:install-gmp-funs) (in-package :maxima) (initialize-runtime-globals) (let ((input-stream *standard-input*) ``` Now maxima is automatically initialized using sb-gmp and arithmetic is fast: ``` $ rmaxima Maxima 5.45.1 https://maxima.sourceforge.io 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) showtime : true $ Evaluation took 0.0001 seconds (0.0000 elapsed) using 0 bytes. (%i2) a : 10^(10^5) $ Evaluation took 0.0017 seconds (0.0020 elapsed) using 13.516 KB. (%i3) b : a^1280 $ Evaluation took 1.5245 seconds (1.5270 elapsed) using 50.689 MB. (%i4) ``` I want to try to fix an (unrelated) bug with the heap on maxima-ecl (https://github.com/void-linux/void-packages/pull/34030#issuecomment-1005080267); I'll make a single PR with both.