Book description
Perl 6 Essentials is a sneak-preview of Perl 6, the widely-anticipated rewrite of the Perl programming language. Still in development, the Perl 6 project is a community-based effort to keep Perl vibrant well into the 21st century. This book covers the development not only of Perl 6 syntax but also Parrot, the language-independent interpreter developed as part of the Perl 6 design strategy. Although Perl remains a vibrant language with a fiercely loyal following, it has undergone many changes to keep up with new technologies and applications that were not anticipated when Perl was first introduced in 1987. Through its community-based development model, Perl has kept up with changing times and remained fresh when other languages might have stagnated. Internally, however, there have remained kinks and stumbling blocks that developers have needed to sidestep, long-abandoned features that have been maintained only for backwards compatibility, misdirected phrasings that have hindered more intuitive syntax structures, and a cacophony of modules that sometimes work well together, but occasionally don't. Perl continues to have a strong following devoted to its development, but in the meantime, a group of core Perl developers have begun working on Perl 6, a complete rewrite of the Perl language. While Perl's creative philosophy and common-sense syntax are sure to remain in Perl 6, everything else in the language is being re-examined and recreated. Perl 6 Essentials provides an overview of the current state of Perl 6 for those who await its release. Written by members of the Perl 6 core development team, the book offers an explanation of the various stages of the project, with reference material for programmers who are interested in what changes are planned or who may want to contribute to the project. The book will satisfy their curiosity and show how changes in the language will make it more powerful and easier to use. Perl 6 Essentials is the first book that offers a peek into the next major version of the Perl language. This book is essential reading for anyone interested in the future of Perl.
Table of contents
-
Perl 6 Essentials
- Preface
- 1. Project Overview
- 2. Project Development
-
3. Design Philosophy
-
Linguistic and Cognitive Considerations
- The Waterbed Theory of Complexity
- The Principle of Simplicity
- The Principle of Adaptability
- The Principle of Prominence
- The Principle of End Weight
- The Principle of Context
- The Principle of DWIM
- The Principle of Reuse
- The Principle of Distinction
- Language Cannot Be Separated from Culture
- The Principle of Freedom
- The Principle of Borrowing
- Architectural Considerations
-
Linguistic and Cognitive Considerations
-
4. Syntax
- Variables
- Operators
- Control Structures
- Subroutines
- Classes and Objects
- Grammars and Rules
- 5. Parrot Internals
-
6. Parrot Assembly Language
- Getting Started
- Basics
- Working with PMCs
- Flow Control
- Stacks and Register Frames
- Lexicals and Globals
- Subroutines
- Writing Tests
-
PASM Quick Reference
- abs
- acos
- add
- and
- asin
- asec
- assign
- atan
- band
- bnot
- bor
- bounds
- branch
- branch_cs
- bsr
- bxor
- chopn
- chr
- clearX
- clone
- close
- cmod
- collect
- collectoff
- collecton
- compile
- compreg
- concat
- cos
- cosh
- debug
- dec
- defined
- delete
- delprop
- depth
- div
- dlfunc
- end
- entrytype
- eq
- err
- exchange
- exists
- exp
- exsec
- fact
- find_lex
- find_global
- find_method
- find_type
- getfile
- getline
- getpackage
- getprop
- gcd
- gc_debug
- ge
- gt
- hav
- if
- index
- inc
- intdepth
- interpinfo
- intrestore
- intsave
- invoke
- jump
- jsr
- lcm
- le
- length
- ln
- loadlib
- log2
- log10
- lookback
- lsr
- lt
- mul
- mod
- ne
- neg
- new
- new_pad
- newinterp
- noop
- not
- open
- or
- ord
- peek_pad
- pop
- pop_pad
- popX
- pow
- printerr
- profile
- prophash
- push
- push_pad
- pushX
- puts
- read
- repeat
- restore
- restoreall
- ret
- rotate_up
- runinterp
- save
- saveall
- savec
- sec
- sech
- seek
- set
- set_addr
- setprop
- shift
- shl
- shr
- sin
- sleep
- splice
- sprintf
- store_lex
- store_global
- stringinfo
- sub
- substr
- sweep
- sweepoff
- sweepon
- tan
- tanh
- time
- trace
- typeof
- unless
- unshift
- valid_type
- vers
- warningsoff
- warningson
- xor
- 7. The Intermediate Code Compiler
- Index
- Colophon
Product information
- Title: Perl 6 Essentials
- Author(s):
- Release date: June 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596004996
You might also like
book
Perl 6 Deep Dive
Learn Perl 6 effortlessly to solve everyday problems About This Book Filled with practical examples, this …
book
Learning Perl 6
f you’re ready to get started with Raku (formerly Perl 6), this is the book you …
book
Think Perl 6
Want to learn how to program and think like a computer scientist? This practical guide gets …
book
Beginning Perl for Bioinformatics
With its highly developed capacity to detect patterns in data, Perlhas become one of the most …