Pugs
Encyclopedia
|
| Tutorials | Encyclopedia | Dictionary | Directory |
|
Pugs
Pugs is a compiler and interpreter for the Perl 6 programming language, started on February 1 2005 by Audrey Tang.
OverviewThe Pugs project aims to bootstrap Perl 6 by implementing the full Perl 6 specification, as detailed in the Synopses. It is written in Haskell, specifically targeting the Glasgow Haskell Compiler. Pugs includes two main executables:
Pugs is free software, distributable under the terms of either the GNU General Public License or the Artistic License.[1] These are the same terms as Perl. Version numberingThe major/minor version numbers of Pugs converges to 2? (being reminiscent of TeX and METAFONT, which use similar scheme); each significant digit in the minor version represents a successfully completed milestone. The third digit is incremented for each release. The current milestones are:
Perl 5 compatibilityAs of version 6.2.6, Pugs also has the ability to embed Perl 5 and use CPAN modules installed on the system. The example below demonstrates the use of the popular Perl DBI module to manage a database: #!/usr/bin/pugs
use v6;
use perl5:DBI;
my $dbh = DBI.connect('dbi:SQLite:dbname=test.db');
$dbh.do("CREATE TABLE Test (Project, Pumpking)");
my $sth = $dbh.prepare("INSERT INTO Test VALUES (?, ?)");
$sth.execute(<PGE Patrick>);
$sth.execute(<Pugs Audrey>);
$sth.execute(<Parrot Leo>);
my $res = $dbh.selectall_hashref('SELECT * FROM Test', 'Pumpking');
# Just another Pugs hacker
say "Just another $res<Audrey><Project> hacker";
Development modelSeveral factors have been suggested as reasons for Pugs's progress:
Despite these factors, progress on Pugs itself stalled in 2006 as personal issues kept Audrey from devoting as much time to the project as she had in 2005. Though development continues, few contributors actively work on the Haskell-based interpreter, making its progress much slower than many people had hoped at the start of the project. ReferencesExternal links
de:Pugs es:Pugs fr:Pugs ja:Pugs Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article
|
|
top
©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement