staple
With cedram.org

Search the site

Table of contents for this issue | Next article
Bill Allombert
A new interpretor for PARI/GP
Journal de théorie des nombres de Bordeaux, 20 no. 3 (2008), p. 531-541, doi: 10.5802/jtnb.640
Article PDF | Reviews MR 2523307 | Zbl pre05572691

Résumé - Abstract

When Henri Cohen and his coworkers set out to write PARI twenty years ago, GP was an afterthought. While GP has become the most commonly used interface to the PARI library by a large margin, both the gp interpretor and the GP language are primitive in design. Paradoxically, while gp allows to handle very high-level objects, GP itself is a low-level language coming straight from the seventies.

We rewrote GP as a compiler/evaluator pair, implementing several high-level features (statically scoped variables, anonymous functions, closures as first class objects) that should move GP into the nineties.

Bibliography

[1] B. Allombert, GP2C, the GP to C translator , http://pari.math.u-bordeaux.fr/pub/pari/GP2C/, version 0.0.5pl6, 2008.
[2] R. Corbett, R. Stallman, BISON, the GNU parser generator, http://www.gnu.org/software/bison/, version 2.3, 2006.
[3] T. Lindholm, F. Yellin, The Java Virtual Machine Specification , Second Edition, http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.html, 1999.
[4] the PARI Group, PARI/GP, http://pari.math.u-bordeaux.fr/ version 2.3.4, 2008.