Re: help with dynamic-space-size
Stas Boukarev <[email protected]> Mon, 2 Feb 2026 21:47:06 +0300
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <CAF63=11qZ+i8WM2gjpq1hvnp_p=jQ8SvCXp-vA+sy3v6Obq3SA@mail.gmail.com> |
On Mon, Feb 2, 2026 at 9:04 PM André A. Gomes <[email protected]> wrote: > > Greg Bennett <[email protected]> writes: > > > Thanks for this Andre'. emacs tells me > > > > user-init-file is a variable defined in ‘C source code’. > > > > Its value is "/home/gwbennett/.emacs.d/init.el" > > > > Here are its current contents: > > (load (expand-file-name "~/quicklisp/slime-helper.el")) > > (setq inferior-lisp-program "sbcl --dynamic-space-size 3072") > > > > Starting emacs and evaluating (/ (dynamic-space-size) (expt 1024 3)) returns 1 > > rather than 3 > > Perhaps the issue is inferior-lisp-program doesn't handle CLI options > gracefully. > > Try setting slime-lisp-implementations as below: > > (setq slime-lisp-implementations `((my-sbcl ("sbcl" "--dynamic-space-size" "3072")))) > > Then you should be able to choose the my-sbcl implementation when > issuing the slime command from Emacs. The command may require a prefix > arg, I can't be precise since I use SLY instead of Slime (just use > Emacs' describe-symbol command to inspect the slime command). > > By the way, another way to achieve this goal is to add the following to > your .sbclrc file. > > --8<---------------cut here---------------start------------->8--- > ;; An alternative to starting sbcl via sbcl --dynamic-space-size <megabytes>. > > (sb-alien:define-alien-variable > ("dynamic_space_size" *sbcl%dynamic-space-size*) > sb-alien:unsigned) > > (defconstant +MB+ (expt 1024 2)) > > (setf *sbcl%dynamic-space-size* (* 3072 +MB+)) > --8<---------------cut here---------------end--------------->8--- That's the worst thing you can do. Not sure if you're actually joking. _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help