Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Waldek Hebisch
On Mon, Jan 22, 2024 at 04:15:23PM +0100, Prof. Dr. Johannes Grabmeier wrote: > aha, this seems reasonable (but, who should know that?) > > But, nevertheless problem is not solved: I now added a new exported function > > init : () -> % > > BUT: same behaviour, AFAICS behaviour changes when you

Re: [fricas-devel] [PATCH] Store stat information in $timedNameStack instead of global, variables

2024-01-22 Thread Waldek Hebisch
On Wed, Jan 17, 2024 at 06:33:05PM +0800, Qian Yun wrote: > OK, here is an alternative way: > > Pack every variable that is related with stats to $statsInfo, > and make it a dynamic variable, along side with $timedNameStack. > (Otherwise we have to make 5 dynamic variables.) > > Basically move

Re: [fricas-devel] Re: FriCAS 1.3.10 is released

2024-01-22 Thread Waldek Hebisch
On Tue, Jan 16, 2024 at 06:08:35AM -0800, Aravindh Krishnamoorthy wrote: > 2. Updates to configure.ac to disable HyperDoc by default. I am not sure why you want this. If you do not have X, or do not want to use X, then there is '--with-x=no' option to 'configure'. I use this option on servers

Re: [fricas-devel] FriCAS 1.3.10 is released

2024-01-22 Thread Waldek Hebisch
On Thu, Jan 11, 2024 at 05:29:28PM +0700, Andrey G. Grozin wrote: > An alternative solution, which requires re-compiling sbcl with a larger > dynamic-space-size, is inconvenient for me. I'm the maintainer not only of > the fricas package, but also of the sbcl package in Gentoo. So, technically, >

Re: [fricas-devel] make build with sbcl-2.4.0 work out of box

2024-01-22 Thread Waldek Hebisch
On Wed, Jan 17, 2024 at 07:29:58PM +0800, Qian Yun wrote: > I think Dima gives a good advice, WDYT, Waldek? > > - Qian > > diff --git a/configure.ac b/configure.ac > index 073f3e96..99426fb1 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -190,13 +190,16 @@ if test -z "$fricas_lisp" ; then

Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Qian Yun
++ A class of objects which can be 'stepped through'. ++ Repeated applications of \spadfun{nextItem} is guaranteed never to ++ return duplicate items and only return "failed" after exhausting ++ all elements of the domain. ++ This assumes that the sequence starts with \spad{init()}. ++ For

Re: [fricas-devel] synonym not working

2024-01-22 Thread Waldek Hebisch
On Mon, Jan 22, 2024 at 07:38:10PM +0800, Qian Yun wrote: > I think this patch is much better. > > Remove "dropLeadingBlanks", it is only used once. > > Also removes manual loops, uses function instead. Looks OK. -- Waldek Hebisch -- You received this message

Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Prof. Dr. Johannes Grabmeier
aha, this seems reasonable (but, who should know that?) But, nevertheless problem is not solved: I now added a new exported function init : () -> % BUT: same behaviour, the code  init(): % ==    if mLP 0 then print hconcat [toOF "init() called using oneToN1 = ", oneToN1 :: OF]    per

Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Ralf Hemmecke
On 1/22/24 16:00, oldk1331 wrote: The "constant" can cause the compiler to cache the result and return it directly next time, IIRC. Oh... well... here it is documented. https://github.com/fricas/fricas/blob/master/src/doc/ht/gloss.text#L161 Since that appears only under src/doc/ht, I am sure

Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread oldk1331
The "constant" can cause the compiler to cache the result and return it directly next time, IIRC. - Qian On Mon, Jan 22, 2024, 10:39 PM Prof. Dr. Johannes Grabmeier < johan...@grabmeier.net> wrote: > thanks, the rare instance of code for init() in the system, e.g. in > QuotienFieldCategory is

Re: [fricas-devel] storing value of a constant function, want recall

2024-01-22 Thread Prof. Dr. Johannes Grabmeier
good suggestion, but I had that before and it does not help. You also see that init() is not called again, as it does not print out, that it is called. This is the problem, as it is not called, it neither can use a constant nor another function. Am 22.01.24 um 15:42 schrieb oldk1331: Because

Re: [fricas-devel] storing value of a constant function, want recall

2024-01-22 Thread oldk1331
Because init() uses oneToN1 which is a variable that is initialized only once when the Domain is created. Try to make oneToN1 into a function. - Qian On Mon, Jan 22, 2024, 10:11 PM Prof. Dr. Johannes Grabmeier < johan...@grabmeier.net> wrote: > example to 1.: > > after > > )co iml > > )co

Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Prof. Dr. Johannes Grabmeier
thanks, the rare instance of code for init() in the system, e.g. in QuotienFieldCategory is as follows:  if S has StepThrough then     init() == init()$S / 1$S my code says init(): % == changes to init: % == and init: == both compile, but both do not change the wrong behaviour Are there

Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Ralf Hemmecke
I am not quite sure what the "constant" in this line actually means (Is that documented somewhere?), but intuitively it might be the sources of your "problem". https://github.com/fricas/fricas/blob/master/src/algebra/catdef.spad#L1498 Ralf -- You received this message because you are

Re: [fricas-devel] storing value of a constant function, want recall

2024-01-22 Thread Prof. Dr. Johannes Grabmeier
example to 1.: after )co iml )co fidepermutationsINIT one gets (1) -> n1()$FideTransposition    (1)  1 Type: NonNegativeInteger (2) -> n2()$FideTransposition    (2)  1 Type: NonNegativeInteger (3) -> n()$FideTransposition    (3)  2 Type: NonNegativeInteger (4) -> init()$FideTransposition  

Re: [fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Qian Yun
On 1/22/24 20:46, Prof. Dr. Johannes Grabmeier wrote: Dear all, 1. following problem: I use Reference NNI to change internal values of a domain. A further constant function: init: () ->% depends of the changed values. It seems that FriCAS does not call the constant function again, but

[fricas-devel] storing value of a constant function, want recall / strange behaviour of Reference using a domain name like FIDETransposition

2024-01-22 Thread Prof. Dr. Johannes Grabmeier
Dear all, 1. following problem: I use Reference NNI to change internal values of a domain. A further constant function: init: () ->% depends of the changed values. It seems that FriCAS does not call the constant function again, but stores the old value of init(), then out of date. Non

Re: [fricas-devel] synonym not working

2024-01-22 Thread Qian Yun
I think this patch is much better. Remove "dropLeadingBlanks", it is only used once. Also removes manual loops, uses function instead. - Qian diff --git a/src/interp/g-util.boot b/src/interp/g-util.boot index bba51e02..42cf4171 100644 --- a/src/interp/g-util.boot +++ b/src/interp/g-util.boot