Waldek Hebisch <[EMAIL PROTECTED]> writes: > > > > Martin Rubey <[EMAIL PROTECTED]> writes: > > > > > 2 speed patch (see recent email with this subject) -- already tested > > > > > > 2 -- as I wrote in the past I feel that we should not hardcode safety > > > > to 0. > > > > If this patch is made into configure option, then it would be OK. > > > > > > Could you help me there? As I wrote, I think it would be best to have > > > something like, for example > > > > > > configure --with-speed > > > > > > or > > > > > > configure --with-library-speed > > > > > > But I do not know how configure and lisp can talk to each other. Oh, > > > yes, I > > > see a possibility: configure could create a file settings.lisp that > > > contains > > > defconstants, like > > > > > > (defconstant library-optimization '((safety 0) (speed 3))) > > > > > > or > > > > > > (defconstant library-optimization '()) > > > > > > depending on the configure option. > > > > I would prefer defparameter, to let user changes settings at runtime.
OK, I agree. I'll add an appropriate comment. > > I just saw that open-axiom uses sed to modify the sources. What do you > > prefer? > No strong preference. Ideally we should subsitute values from configure at > only one place, so the main difference would be how much quoting we need. > For simple values we can use configure substitutions (see AC_CONFIG_FILES in > configure.ac). For more complicated ones I would probably prefer echo for > configure (one level of quoting) to sed (two levels: shell and sed). I'll look into it, although I hate to do it. > > One more remark: I think I prefer to keep parameters in a separate > file (sed can substitue values in file containing real code). Yes, definitively. Could you please send me a patch for fricas-package.lisp or whatever is appropriate, that will load these constants? At the moment, I'll only need them in nlib.lisp, but I guess this is not unlikely to change. Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/fricas-devel?hl=en -~----------~----~----~----~------~----~------~--~---
