Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

  • Book
  • © 2020

Raku Fundamentals

A Primer with Examples, Projects, and Case Studies

Apress

Authors:

(view affiliations)
  • Helps you begin coding with Raku using hands-on examples

  • Shows how to work with persistent storage

  • Teaches you how to write applications such as a Unicode search tool and usage graph

Buying options

eBook
USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-6109-5
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD 49.99
Price excludes VAT (USA)

This is a preview of subscription content, access via your institution.

Table of contents (13 chapters)

  1. Front Matter

    Pages i-xvii
  2. What Is Raku?

    • Moritz Lenz
    Pages 1-6
  3. Running Rakudo

    • Moritz Lenz
    Pages 7-12
  4. Formatting a Sudoku Puzzle

    • Moritz Lenz
    Pages 13-29
  5. Testing say( )

    • Moritz Lenz
    Pages 53-57
  6. Silent-Cron: A Cron Wrapper

    • Moritz Lenz
    Pages 59-80
  7. Stateful Silent-Cron

    • Moritz Lenz
    Pages 81-89
  8. Review of the Raku Basics

    • Moritz Lenz
    Pages 91-97
  9. A File and Directory Usage Graph

    • Moritz Lenz
    Pages 129-152
  10. A Unicode Search Tool

    • Moritz Lenz
    Pages 153-160
  11. What’s Next?

    • Moritz Lenz
    Pages 177-181
  12. Back Matter

    Pages 183-186

About this book

Gain the skills to begin developing Raku applications from the ground up in this hands-on compact book, which includes a foreword from Larry Wall, creator of Perl. You’ll learn enough to get started building with Raku, using Raku's gradual typing, handy object-orientated features, powerful parsing capabilities, and human-usable concurrency. This book has been updated to include the latest version of Raku based upon the Perl 6.d major version which includes over 3,400 new commits in its specification.  

After a short introduction, each chapter develops a small example project, explaining the Raku features used. When the example is done, you’ll explore another aspect, such as optimizing further for readability or testing the code. Along the way you’ll see Raku basics, such as variables and scoping; subroutines; classes and objects; regexes; and code testing.  

When you’ve mastered the basics, Raku Fundamentals moves onto more advanced topics to give you a deeper understanding of the language. You’ll learn, amongst other things, how to work with persistent storage, how to generate good error messages, and how to write tricky applications such as a file and directory usage graph and a Unicode search tool. 

You will:

  • Get coding with latest version of Raku
  • Work on several hands-on examples and projects
  • Integrate Python libraries into your Raku-based programs
  • Parse INI files using regexes and grammars
  • Build a date-time converter 
  • Carry out refactoring and other automated tests

Keywords

  • Raku
  • Perl 6
  • Perl
  • example
  • programming
  • coding
  • software
  • open source
  • fundamentals
  • source
  • development
  • code
  • Moritz Lenz

Authors and Affiliations

  • Fürth, Germany

    Moritz Lenz

About the author

Moritz Lenz is a Perl 6, now Raku, core developer. He has contributed significantly to the official test suite, the Rakudo Perl compiler, and is the initiator of the official Raku documentation project. He has also authored several modules, and runs infrastructure for the Raku community. In his day job, he develops Perl 5 and Python code, and maintains a continuous delivery system for his employer.

Bibliographic Information

Buying options

eBook
USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-6109-5
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD 49.99
Price excludes VAT (USA)