Perl 6 and Parrot Essentials, 2/e

Allison Randal, Dan Sugalski, Leopold Toetsch

  • 出版商: O'Reilly
  • 售價: $1,460
  • 貴賓價: 9.5$1,387
  • 語言: 英文
  • 頁數: 298
  • 裝訂: Paperback
  • ISBN: 059600737X
  • ISBN-13: 9780596007379
  • 相關分類: Perl 程式語言
  • 下單後立即進貨 (約1週~2週)




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. 

Table of Contents:


1. Project Overview
     The Birth of Perl 6
     In the Beginning . . .
     The Continuing Mission

2. Project Development
     Language Development
     Parrot Development

3. Design Philosophy
     Linguistic and Cognitive Considerations
     Architectural Considerations

4. Basic Syntax
     Control Structures

5. Subroutines
     Using Subroutines
     Subroutine Stubs
     Subroutine Scope
     Anonymous Subroutines
     Multi Subroutines
     Curried Subroutines
     Wrapped Subroutines
     Lvalue Subroutines

6. Objects
     Using Objects
     Private and Public
     Multiple Dispatch

7. Grammars and Rules
     Using Rules
     Building Blocks
     Built-in Rules
     Backtracking Control
     Hypothetical Variables

8. Parrot Internals
     Core Design Principles
     Parrot's Architecture
     The Interpreter
     I/O, Events, and Threads
     Advanced Features

9. Parrot Assembly Language
     Getting Started
     Working with PMCs
     Flow Control
     Stacks and Register Frames
     Lexicals and Globals
     Exceptions and Exception Handlers
     Loading Bytecode
     Classes and Objects
     Writing Tests

10. Parrot Intermediate Representation
     Variables and Constants
     Symbol Operators
     Flow Control

11. Parrot Reference
     PASM Opcodes
     PIR Directives
     PIR Instructions
     Parrot Command-Line Options