From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,962e5a34d5256704 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!news2.arglkargh.de!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 03 Jan 2009 01:34:01 +0100 From: Georg Bauhaus Reply-To: rm.tsoh-bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ANN: Ada bindings to PLplot plotting software References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <495eb27b$0$31334$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 03 Jan 2009 01:34:03 CET NNTP-Posting-Host: 365eeff9.newsspool4.arcor-online.net X-Trace: DXC=Nh3_\F_mYFnPKPPVf;4hUj4IUK Jerry wrote: > This is to announce the official availability of the Ada language > bindings to the plotting package PLplot as of version 5.9.1. See the > home page at http://plplot.sourceforge.net/. Available unofficially > for some time, the Ada bindings are now enabled by default. [...] > The Ada bindings offer a number of substantial improvements over the C > API, including a choice of binding, one using "traditional" PLplot > names such as plcol0(1) to set the pen color to red, the other using > "Ada-friendly" names such as Set_Color(Red). Skimming the PLplot examples, which are given for several languages (http://plplot.sourceforge.net/examples.php), I noticed that all examples mirror the fortranesque C library functions more or less directly. (6char names with a "pl" prefix making them 8char, tons of numeric parameters; I understand that "these examples also serve as a testbed for the bindings in Ada and other languages by checking the Postscript files that are generated by each example against those generated by the C versions.") However, authors of some bindings including this Ada one have added "a number of substantial improvements over the C API". (Set_Color(Red) seems so much better than plcol0(1), even when it does not name the thing that is turned red; I don't want to sound complaining, in particular having done nothing on this work). That's somewhat hidden from the web presentation, though, I think. Can I put an item on the Plplot binding wish list? That would be: show some examples that use the thick bindings, on the web pages. Maybe these examples using thick bindings will then help some demonstrate why they are using a language that offers more than Fortran 77 style C. I'm still looking for an alternative for some Perl-driven GNUplot command scripts, so I'm really happy to see PLplot growing into the post-70s era ;-)