• Stars
    star
    296
  • Rank 140,435 (Top 3 %)
  • Language Raku
  • License
    Artistic License 2.0
  • Created over 15 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Many examples of Raku code

Raku Examples

Build Status

This is intended to be a repository for all kinds of Raku examples.

All examples should work on a recent compiler release of Rakudo.

If you want to contribute, just ask! The quicker choice is to use IRC: join #raku on irc.libera.chat and you'll be welcome.

Please use POD6 (mostly this template https://github.com/raku/examples/blob/master/doc/example-template.pl) when adding a new example.

Goals

  1. Compile a list of open source Raku examples
  2. Help different implementations of Raku test out their code in a less testy and more fun manner ;)

What you can find here

Directory Description
categories All example categories
bin Utility scripts
lib Utility modules
doc Out-of-script documentation

Categories

Directory Description
best-of-rosettacode The best of the rosettacode.org examples
99-problems Based on lisp 99 problems
cookbook Cookbook examples
euler Answers for Project Euler
games Games should go in here :)
interpreters Language or DSL interpreters
module-management Module management
other All other examples
parsers Example grammars
perlmonks Answers to perlmonks.org questions
rosalind Bioinformatics programming problems
shootout The Computer Language Benchmark Game
tutorial Tutorial examples
wsg Answers for Winter Scripting Games

Since you have a commit-bit (if not then talk to the folks at #raku on irc.libera.chat) feel free to commit your changes to the main repository. No need to submit a pull request!

Dependencies

To run all examples and tests, a number of modules need to be installed.

These are listed in META6.json.

They can be installed via zef:

$ zef --depsonly install .

Running the examples

To run most examples (all examples excluding those which take a very long time or are memory hogs) one can use the run-examples.pl script in the bin directory:

$ raku bin/run-examples.pl

or simply via the run-all target of the Makefle:

$ make run-all

If one wishes to run the examples for a given category, then one can simply use the --category=<category-dir> option specifying the desired category's directory name. For example, to run the examples for the cookbook category, use the following:

$ raku bin/run-examples.pl --category=cookbook

Building the examples documentation

To build the examples documentation web pages, simply run

$ make html

or you can run the htmlify.pl script in the base directory:

$ raku htmlify.pl

After the pages have been generated, you can view them on your local computer by starting the included app.pl program:

$ raku app.pl daemon

You can then view the examples documentation by pointing your web browser at http://localhost:3000.

License Information

"Raku Examples" is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

More Repositories

1

nqp

NQP
Raku
341
star
2

doc

🦋 Raku documentation
Raku
287
star
3

book

Using Raku – an unfinished book about Raku
Makefile
284
star
4

roast

🦋 Raku test suite
Raku
180
star
5

ecosystem

Raku ecosystem – modules and more
Perl
139
star
6

old-design-docs

Raku language design documents
Raku
124
star
7

raku.org

Source code for https://raku.org/
HTML
70
star
8

problem-solving

🦋 Problem Solving, a repo for handling problems that require review, deliberation and possibly debate
70
star
9

raku-mode

Emacs major mode for Raku
Emacs Lisp
61
star
10

mu

Universal Raku repository (formerly called "pugs repository")
Perl
60
star
11

docker

Docker files for Rakudo Star
Dockerfile
34
star
12

advent

Contains all data relating to the annual Raku Advent event held 1-25 December
Raku
28
star
13

App-Rakubrew

Raku environment manager
Perl
26
star
14

user-experience

Identifying issues in and improving the Raku user experience
25
star
15

atom-language

Atom/Github Raku Syntax Highlighting Support 🦋
Raku
24
star
16

whateverable

🤖 Different IRC bots that operate on a bunch of prebuilt Rakudo versions
Raku
18
star
17

evalbot

IRC bot for executing Raku code
Perl
17
star
18

marketing

Marketing resources for Raku language
JavaScript
15
star
19

z

Helper script for Rakudo core development
Raku
14
star
20

CCR

The Raku Programming Language Collect, Conserve and Remaster Project
HTML
14
star
21

features

Overview of implementation status of different features in Raku compilers
HTML
13
star
22

ake

A Raku make-a-like inspired by rake
Raku
12
star
23

Documentable

Documentation API: caching, parsing, indexing and generating documentation
Raku
11
star
24

Blin

🥞 Project Blin – Toasting Reinvented
Raku
10
star
25

Raku-Steering-Council

RSC Papers
Raku
9
star
26

intellij-ide-plugin

Source dump of the former Comma IDE.
Java
8
star
27

tap-harness6

A TAP harness for Raku
Raku
8
star
28

rakubrew.org

rakubrew.org website
Raku
8
star
29

doc-website

Tooling to build/run the documentation website
CSS
7
star
30

flycheck-raku

Raku support for Flycheck
Emacs Lisp
7
star
31

setup-raku

JavaScript
7
star
32

rakudoc

A tool for reading Raku documentation
Raku
6
star
33

6.d-prep

All The Things to prepare for 6.d language release
5
star
34

ecosystem-unbitrot

Which modules are not installable?
Perl 6
5
star
35

RakudoCIBot

🤖 🦋 I am the friendly Rakudo CI bot. Bzzt! ⚡ Beep beep boop.
Raku
5
star
36

github-workflow-examples

A collection of workflow files for Raku code testing on github
5
star
37

IRC-logs

Repository of Raku IRC channel logs over the years (2005-now)
5
star
38

nqp-configure

Configuration and build modules for NQP
Perl
4
star
39

toolchain-bikeshed

(ARCHIVE) Discussion area for the Raku toolchain
4
star
40

REA

Raku Programming Language Ecosystem Archive
4
star
41

pugs-perl-modules

Perl modules from the old Pugs repository
Perl
3
star
42

museum-items

Collection repo for Raku museum items
3
star
43

flymake-rakudo

Raku(do) support for Flymake
Emacs Lisp
3
star
44

geth

GitHub Push Updates to IRC Bot
Raku
2
star
45

rakudo-star

A user-friendly distribution of the Raku programming language.
Shell
2
star
46

hacktoberfest

Centralized repository for hacktoberfest issued in the Rakuverse
2
star
47

old-issue-tracker

Tickets from RT
2
star
48

survey

Results from Raku Surveys
HTML
2
star
49

vscode-dev-container

VSCode dev container
Shell
2
star
50

please-turn-off-the-autowatch-feature

A friendly reminder that by default github will autosubscribe you to all repos of this org
2
star
51

L10N

The home of supported localizations of the Raku Programming Language
Raku
2
star
52

synopsebot

synopsebot IRC bot
Perl 6
1
star
53

RakuDoc-GAMMA

Community review of the RakuDoc standard
HTML
1
star
54

Documentable-backup

Raku documentation CLI and API
Perl 6
1
star