Karim Belabas on Tue, 24 Jan 2006 10:34:13 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Graphic support in CVS


* Karim Belabas [2006-01-23 10:20]:
> * Ilya Zakharevich [2006-01-21 22:44]:
>>>> 2.3?  Do we have all the usability stuff addressed?  E.g., can one
>>>> execute arbitrary GP code from .gprc (or at least a way to load a file
>>>> recognizing "~/foo.gp" notation)?
[...]
> > Are parameters EMACS READL VERSION PATHSEPARATOR pari_datadir
> > available from the read file?
> 
> The first 4 are not part of the GP language
[...]
> The last is just
> 
> (10:19) gp > default(datadir)
> %1 = "/home/a2x/belabas/PARI/GP/share/pari"

Actually, READL is (kind of) there also:

(10:01) gp > default(readline)
%1 = 4
A non-zero value says that readline is available (= compiled in) _and_ enabled.

Any amount of extra status information can easily be made available in this
way, e.g. 'have_emacs', 'have_texmacs', 'have_install', 'path_separator',
'version', 'version_code'). There are no read-only defaults so far but I
see no compelling reason to avoid them.


It's also very easy to add something like

  #eval
  {
    ... arbitrary GP code ...
  }

to the gprc's language. Buf if the above 'defaults' were made available, I
think the whole concept of a 'gprc language' should be dumped, since
existing gprc's could be rewritten in GP.

    Karim.
-- 
Karim Belabas                  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]