Re: [fricas-devel] questions on 'set-initial-parameters'

2024-01-03 Thread Waldek Hebisch
On Wed, Jan 03, 2024 at 06:47:19PM +0800, Qian Yun wrote: > 1. In fricas-lisp.lisp, why it is not run for sbcl? > > #-:sbcl > (eval-when (:execute :load-toplevel) > (set-initial-parameters)) Because it had no desired effect. > 2. This function modifies some global variables, but for some Lis

Re: [fricas-devel] PATCH: remove some warnings in src/lib

2024-01-03 Thread Waldek Hebisch
On Thu, Jan 04, 2024 at 12:44:30AM +0100, Grégory Vanuxem wrote: > Hello, > > Two little modifications. > 'val' is declared but not used in sockio-c.c. > In pixmap.c 'status' is declared, defined, but not used. I followed > the code from 'read_pixmap_file' but if the 'exit(1)' is not necessary > i

Re: [fricas-devel] [PATCH] misc cleanups

2024-01-03 Thread Waldek Hebisch
On Thu, Jan 04, 2024 at 08:28:45AM +0800, Qian Yun wrote: > Another batch of misc cleanups and fixes from last month. > > A short note on the change to "file-kind": its argument is > string, could not be nil. OK. -- Waldek Hebisch -- You received this message bec

[fricas-devel] [PATCH] misc cleanups

2024-01-03 Thread Qian Yun
Another batch of misc cleanups and fixes from last month. A short note on the change to "file-kind": its argument is string, could not be nil. - Qian diff --git a/contrib/load-fricas.lisp b/contrib/load-fricas.lisp index 5959a8c7..52df2808 100644 --- a/contrib/load-fricas.lisp +++ b/contrib/loa

Re: [fricas-devel] Funny ')lisp a' at startup

2024-01-03 Thread Grégory Vanuxem
Ok. Not harmless as you said of course, just uncommon. A, B, C, X, Y, Z are often used. But after all, using ')lisp' command is not intended to be used by FriCAS final users. Le mer. 3 janv. 2024 à 23:56, Waldek Hebisch a écrit : > > On Wed, Jan 03, 2024 at 10:40:29PM +0100, Grégory Vanuxem wrote

[fricas-devel] PATCH: remove some warnings in src/lib

2024-01-03 Thread Grégory Vanuxem
Hello, Two little modifications. 'val' is declared but not used in sockio-c.c. In pixmap.c 'status' is declared, defined, but not used. I followed the code from 'read_pixmap_file' but if the 'exit(1)' is not necessary it can be removed. = diff '--color=auto' -Naur fricas_old/s

Re: [fricas-devel] Funny ')lisp a' at startup

2024-01-03 Thread Waldek Hebisch
On Wed, Jan 03, 2024 at 10:40:29PM +0100, Grégory Vanuxem wrote: > Hello, > > You can test. This is not a bug, but since I use Lisp directly > sometimes for testing purposes I was surprised to see that 'a' is > bound at startup. 'a' is often used I think. Well, that is 'A' (and also 'X', 'Y', 'W'

Re: [fricas-devel] [PATCH] 'fricas_has_remove_directory', again

2024-01-03 Thread Dima Pasechnik
On 3 January 2024 12:42:23 WET, Waldek Hebisch wrote: >On Wed, Jan 03, 2024 at 07:07:47PM +0800, Qian Yun wrote: >> I suggest to check for symbol instead of "#+" feature testing. >> >> This will allow FFI-free pure-lisp build. > >IMO pure-lisp build is futile. We want to use GMP, blas, lapack

[fricas-devel] Funny ')lisp a' at startup

2024-01-03 Thread Grégory Vanuxem
Hello, You can test. This is not a bug, but since I use Lisp directly sometimes for testing purposes I was surprised to see that 'a' is bound at startup. 'a' is often used I think. └─$ jlfricas Checking for foreign routines FRICAS="/usr/local/lib/fricas/target/x86_64-linux-gnu" spad-lib="/usr/loc

Re: [fricas-devel] [PATCH] 'fricas_has_remove_directory', again

2024-01-03 Thread Waldek Hebisch
On Wed, Jan 03, 2024 at 07:07:47PM +0800, Qian Yun wrote: > I suggest to check for symbol instead of "#+" feature testing. > > This will allow FFI-free pure-lisp build. IMO pure-lisp build is futile. We want to use GMP, blas, lapack and possibly our own routines. Currently ECL and GCL use GMP f

Re: [fricas-devel] [PATCH] 'fricas_has_remove_directory', again

2024-01-03 Thread Dima Pasechnik
I don't see why an embedded ECL-based FriCAS must be pure lisp. ECL has its FFI just fine. In fact, one might consider developing a plain C library allowing calling FriCAS via libecl.so On 3 January 2024 11:07:47 WET, Qian Yun wrote: >I suggest to check for symbol instead of "#+" feature tes

[fricas-devel] [PATCH] 'fricas_has_remove_directory', again

2024-01-03 Thread Qian Yun
I suggest to check for symbol instead of "#+" feature testing. This will allow FFI-free pure-lisp build. To quote the FriCAS development goals: "make it easier for external programs to interface with FriCAS" I think that FFI-free pure-lisp build is one step toward this goal. fricas0 is on

[fricas-devel] questions on 'set-initial-parameters'

2024-01-03 Thread Qian Yun
1. In fricas-lisp.lisp, why it is not run for sbcl? #-:sbcl (eval-when (:execute :load-toplevel) (set-initial-parameters)) 2. This function modifies some global variables, but for some Lisps, the modification does not persist after dumping image. So some Lisps add 'set-initial-parameters' t