Keyboard and cards with coloured marks, illustrating a shared programming experiment

Audrey Tang and Pugs: Making Perl 6 a Language People Could Try

Sticker 018 · Back to Audrey Tang’s sticker · Leggi la versione italiana

In February 2005, Audrey Tang started Pugs, an experimental implementation of Perl 6 written in Haskell. Language proposals could now become programs people could try. Contributors could see which rules worked together and where the intended behaviour needed clarification. Tang dates the start of the project to 1 February 2005 in a report to the Haskell community. May 2005 report, Pugs section.

Perl 6, Pugs and Haskell

Perl 6 was a language project that grew out of the community around Larry Wall’s Perl. Pugs gave those ideas a working implementation. An interpreter reads a program, recognises its parts and evaluates them. Haskell was the language used to write the interpreter, while Perl 6 was the language people could try. In March 2006, Tang’s presentation at YAPC::Asia Tokyo also discussed the work on compiler backends for several targets. Tang’s presentation in Tokyo.

Tang’s original code from Pugs 6.0.0

This excerpt comes from src/Main.hs in the first Pugs distribution. The first line reads the command-line arguments and passes them to run. The next two lines recognise the code to execute whether it follows -e in the same argument or arrives as a separate one. Other cases, such as opening a file, are handled further down in the source. Pugs 6.0.0 CPAN archive with source and README · Tang’s historical GitHub archive.

main = getArgs >>= run

run (('-':'e':str@(_:_)):args) = doRun str args
run ("-e":str:args) = doRun str args

Copyright © 2005 Audrey Tang, credited as Autrijus Tang in the distribution. This excerpt is reproduced unchanged, without warranty, under the GNU GPL version 2. The release README also offers the Artistic License. Full GNU GPL v2 licence text.

From an experiment to present-day Raku

In May 2005 Tang reported that more than 60 contributors from the Perl and Haskell communities had commit access. Sharing code and examples brought to light choices that could remain implicit in a written proposal. In 2015 Rakudo 2015.12 implemented the stable v6.c specification, and the language took the name Raku in 2019. Pugs was an experimental implementation. Rakudo is the separate implementation under development today. Haskell community report · Official Raku FAQ.

Featured image. Original AI-generated editorial illustration for this sticker.

Nominate a programmer for the album

We welcome nominations for well-known and lesser-known programmers. Include the candidate’s name, a project or contribution, and sources we can check. Your email is optional. The editors review nominations before publication.

← Back

Thank you for your response. ✨







Posted

in

by

Tags:

Article read 0 times. Thanks for watching

Condividi questa pagina

Impronta carbonica: stima non disponibile.

Stima indicativa del solo trasferimento osservabile: 0,81 kWh/GB × 442 g CO₂e/kWh (ipotesi illustrative, non misura certificata). Cache e risorse non osservabili possono ridurre il dato. GestioneSocial.top
Il nostro impegno per un web responsabile

Crediamo in un web più leggero, accessibile e sostenibile. Progettiamo le nostre pagine cercando di ridurre il trasferimento di dati, il consumo energetico e l’utilizzo non necessario delle risorse informatiche. Una pagina leggera facilita la navigazione anche da dispositivi meno recenti e connessioni lente, e può contribuire a contenere l’impatto ambientale delle attività digitali. La stima visualizzata non è una certificazione ambientale.

Un progetto di GestioneSocial.top per un web più responsabile.