Perl 6 and Parrot Essentials, 2/e

Allison Randal, Dan Sugalski, Leopold Toetsch

  • 出版商: O'Reilly
  • 售價: $1,730
  • 貴賓價: 9.5$1,644
  • 語言: 英文
  • 頁數: 298
  • 裝訂: Paperback
  • ISBN: 059600737X
  • ISBN-13: 9780596007379
  • 相關分類: Perl 程式語言
  • 海外代購書籍(需單獨結帳)




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




《Perl 6 and Parrot Essentials》第二版是基於多年的Perl經驗編寫而成的,其中包含了對Perl 6核心開發團隊的內部觀察。這本書是對廣受期待的Perl 6主要變革的獨一無二的預覽。這個預覽包括了對Parrot的突破性新發展的簡潔但全面的介紹,Parrot是一個獨立於語言的解釋器引擎,可以執行使用新的Perl 6語言編寫的代碼。Parrot設計成語言無關,可以用於解釋其他動態語言,如Python、Tcl、Ruby,甚至Java。

《Perl 6 and Parrot Essentials》還揭示了語言本身最具革命性的變化——Apocalypse 12關於對象。Apocalypse設計文檔(在“揭示”而不是“世界末日”的意義上)解釋了新Perl 6功能的重大變化,按照O'Reilly的里程碑之作《Programming Perl》的章節編號進行編排。

Apocalypse 12是對面向對象語言的尖端研究的結果,絕對會引起任何嚴肅的Perl程序員的注意。《Perl 6 and Parrot Essentials》還擴展了對Apocalypse 5(正則表達式)和Apocalypse 6(子程序)的介紹。

《Perl 6 and Parrot Essentials》是唯一一本可以追蹤Perl 6漫長但豐富航程的書籍。它揭示了所有將使Perl 6更強大且更易於使用的巧妙發展。




1. 項目概述

     Perl 6的誕生



2. 項目開發



3. 設計哲學



4. 基本語法




5. 子程序












6. 對象









7. 語法和規則







8. Parrot內部








9. Parrot組合語言