Karim Belabas on Fri, 26 Nov 2004 18:57:04 +0100

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

gp2c-0.0.3pl3 released

Dear PARI enthousiast,                                                          

Bill has just released GP2C 0.0.3pl3.

GP2C is a tool to translate GP code to C code using libpari, which can load
the compiled routines transparently in a gp session. It can be used to
speed up gp, to look for bugs in GP scripts, or to learn libpari programming.

It is available from


section GP2C.
Sample session using a script from the examples/ directory in the PARI/GP

(18:43) knutange-kb% gp2c-run examples/lucas.gp 
Reading GPRC: ./gp2c_gprc ...Done.

         GP/PARI CALCULATOR Version 2.2.8 (development CHANGES-1.1060)
                i686 running linux (ix86 kernel) 32-bit version
     compiled: Nov 26 2004, gcc-2.96 20000731 (Red Hat Linux 7.3 2.96-113)
               (readline v4.2a enabled, extended help available)

                       Copyright (C) 2003 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and 

Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.

parisize = 10000000, primelimit = 500000
(18:43) gp > ?lucas 
lucas: installed function

(18:43) gp > for (i=1,10^4, lucas(31))
time = 160ms.

Using the native interpreter:

(18:43) knutange-kb% gp examples/lucas.gp
(18:44) gp > for (i=1,10^4, lucas(31))
time = 1,250 ms.


Features in this release:

  -- Mac OS X support

  -- [in combination with pari-2-2-8] forvec() support

Have fun,

Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dep. de Mathematiques, Bat. 425   Fax: (+33) (0)1 69 15 60 19
Universite Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://pari.math.u-bordeaux.fr/  [PARI/GP]