Perl 6 and Parrot Essentials

Передняя обложка
"O'Reilly Media, Inc.", 2004 - Всего страниц: 279
Distilling many years of Perl experience--including an insiders look at Perl development (the authors are members of the Perl 6 core development team)--Perl 6 and Parrot Essentials, 2nd Edition is an unparalleled preview of major changes in the widely-anticipated Perl 6. This sneak peek of what's coming in Perl includes succinct but thorough coverage of groundbreaking new developments in Parrot--the language-independent interpreter engine that will execute code written in the new Perl 6 language. Designed to be language independent, Parrot can be used to interpret other dynamic languages such as Python, Tcl, Ruby, and even Java. Perl 6 and Parrot Essentials also uncovers the most revolutionary change in the language itself--Apocalypse 12 on objects. The Apocalypse design documents (in the sense of "revealing", not "end-of-the-world") explain significant changes in new Perl 6 features, numbered according to the chapters in O'Reilly's landmark Camel book , Programming Perl. Apocalypse 12 is the result of cutting-edge research in object-oriented languages and is guaranteed to grab the attention of any serious Perl programmer. Perl 6 and Parrot Essentials also includes expanded coverage of Apocalypse 5 (regular expressions) and Apocalypse 6 (subroutines). Perl 6 and Parrot Essentials is the only book available to chart the course of the long but fruitful voyage of Perl 6. It reveals all the ingenious developments that will make Perl 6 more powerful and easier to use. Perl gurus and programmers alike will rely on this slim but essential book for both a clear view of the Perl horizon and to ensure they hit the ground running once this important new version of Perl is released.
 

Избранные страницы

Содержание

Project Overview
1
In the Beginning
2
The Continuing Mission
3
Project Development
9
Parrot Development
11
Design Philosophy
16
Architectural Considerations
23
Basic Syntax
25
The Interpreter
105
IO Events and Threads
111
Objects
117
Advanced Features
120
Conclusion
124
Parrot Assembly Language
125
Basics
126
Working with PMCs
144

Operators
33
Control Structures
48
Subroutines
58
Parameters
59
Arguments
64
Subroutine Stubs
66
Anonymous Subroutines
68
Curried Subroutines
69
Wrapped Subroutines
70
Lvalue Subroutines
71
Objects
74
Classes
75
Roles
79
Delegation
82
Private and Public
83
Subroutines
84
Multiple Dispatch
85
Grammars and Rules
87
Building Blocks
89
Modifiers
94
Builtin Rules
96
Backtracking Control
97
Parrot Internals
99
Parrots Architecture
100
Flow Control
148
Stacks and Register Frames
151
Lexicals and Globals
155
Subroutines
159
Exceptions and Exception Handlers
168
Events
169
Threads
171
Loading Bytecode
174
Classes and Objects
175
Writing Tests
182
Parrot Intermediate Representation
185
Variables and Constants
186
Symbol Operators
190
Labels
191
Flow Control
192
Subroutines
194
Methods
201
Parrot Reference
203
PIR Directives
250
PIR Instructions
254
Parrot CommandLine Options
258
Index
263
Авторские права

Другие издания - Просмотреть все

Часто встречающиеся слова и выражения

Об авторе (2004)

Allison Randal is the assistant project manager of the Perl 6 core development team. She has been working closely with Damian Conway and Larry Wall on Perl 6 and has co written the "synopses" of Perl 6. She is dedicated to the success of the project and is one of the very first to learn about anything new that's proposed for Perl 6. Dan Sugalski is the chief architect for Parrot, the interpreter engine for Perl 6. He's been a Perl 5 core developer for years, writing more than a dozen modules in the process. He's been a contributor to The Perl Journal and The Perl Review, as well as the O'Reilly Network. Leopold Totsch hails from Austria where he first started working with computers in 1976. He is an independent software developer who has been exploring and developing open source software since 1991. He's a frequent contributor to isdnlog (an open source project for monitoring ISDN lines and optimizing telephone costs) and spends the majority of his free time working on Parrot, the language-independent interpreter developed as part of the Perl 6 design strategy. Leopold T tsch is the pumpking for Parrot.

Библиографические данные