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.


[1] B. Allombert, GP2C, the GP to C translator ,, version 0.0.5pl6, 2008.
[2] R. Corbett, R. Stallman, BISON, the GNU parser generator,, version 2.3, 2006.
[3] T. Lindholm, F. Yellin, The Java Virtual Machine Specification , Second Edition,, 1999.
[4] the PARI Group, PARI/GP, version 2.3.4, 2008.