CINXE.COM
Raku on Rosetta Code
<!DOCTYPE html> <!-- Hacking: see NOTES and TODO in this directory --> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Raku on Rosetta Code</title> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon"> <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet"> <link href="/style.css?v=1" rel="stylesheet"> </head> <body> <div class="bg"> <div class="container"> <nav class="navbar navbar-fixed-top navbar-inverse"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li id="nav-home" ><a href="/">Home</a></li> <li id="nav-downloads" ><a href="/downloads">Download</a></li> <li id="nav-community" class="active" ><a href="/community/">Community</a></li> <li id="nav-docs" ><a href="https://docs.raku.org">Documentation</a></li> <li id="nav-res" ><a href="/resources/">Resources</a></li> <li id="nav-modules" ><a href="https://modules.raku.org/">Modules</a></li> <li id="nav-whatever" ><a href="/whatever/">IDEs</a></li> <li id="nav-fun" ><a href="/fun/">Fun</a></li> <li id="nav-faq" ><a href="https://docs.raku.org/language/faq">FAQ</a></li> </ul> </div> </div> </nav> <header id="subpage-header" class="lead well"> <img src="/camelia-logo-small.png" width="140" height="130" alt="Camelia, the Raku bug" class="pull-right"> <h2>Raku on Rosetta Code</h2> <p> <a href="http://rosettacode.org/wiki/Rosetta_Code">Rosetta Code</a> is a community site that presents solutions to programming tasks in many different languages. It is an excellent place to see how various languages approach the same task, as well as to get a feel for the style and fluent use of each language across a variety of domains. </p> <p> Raku is well represented on Rosetta Code (though we always welcome new submissions!); there are well over a thousand Raku solutions as of early 2021. Here are a few ways to find what you're looking for: </p> </header> <div class="row equal-panels"> <div class="col-sm-7"> <div class="panel panel-default"> <div class="panel-body trim"> <h3 class="trim-top">By Task Name</h3> <p> Rosetta Code itself keeps an up-to-date alphabetical list of tasks already solved in Raku; you can find this in the lower section of the Rosetta Code <a href="http://rosettacode.org/wiki/Category:Raku">Raku category page</a>. </p> <h3>By Category</h3> <p> Rosetta Code's category collection is weighted towards language names, tasks whose solutions where too long and had to be split onto multiple pages, and so on. To make it easier to find the tasks you're interested in, here is a shorter category list, with links directly to the Raku solutions: </p> <dl id="by_category"> <dt>Cellular Automata</dt> <dd> <ul id="cellular_automata"> <li><a href="http://rosettacode.org/wiki/Conway%27s_Game_of_Life#Raku">Conway's Game of Life</a></li> <li><a href="http://rosettacode.org/wiki/Forest_fire#Raku">Forest Fire</a></li> <li><a href="http://rosettacode.org/wiki/Langton%27s_ant#Raku">Langton's Ant</a></li> <li><a href="http://rosettacode.org/wiki/One-dimensional_cellular_automata#Raku">One-Dimensional Cellular Automata</a></li> <li><a href="http://rosettacode.org/wiki/Wireworld#Raku">Wireworld</a> </ul> </dd> </dl> </div> </div> </div> <div class="col-sm-5"> <div class="panel panel-default"> <div class="panel-body"> <h3 class="trim-top">Community Favorites</h3> <p> These tasks and solutions were nominated by members of the Raku community as our favorites -- perhaps because the task fits our collective whimsy, or because the solution struck us as particularly beautiful. Here then, in no particular order, are the entries that -Ofun for us: </p> <dl id="favorites"> <dt><a href="http://rosettacode.org/wiki/Forest_fire#Raku">Forest Fire</a></dt> <dd> <p> A 2D cellular automaton simulating fires and forest growth, with 木 trees and a touch of color for the fires. </p> </dd> <dt><a href="http://rosettacode.org/wiki/Last_Fridays_of_year#Raku">Last Fridays of Year</a></dt> <dd> <p> A simple task of finding the last Friday in each month of the year, with two brief solutions: an imperative one in the style of several other dynamic languages, and an impressively short functional solution using <tt>classify</tt> and Whatever blocks. </p> </dd> </dl> </div> </div> </div> </div> </div> </div> <footer> <div class="container"> <div class="row"> <section class="col-sm-6 col-md-5ths"> <h4><a href="/community/">Community</a></h4> <ul class="shush-list"> <li><a href="/community/irc">#raku IRC channel</a>: <a href="irc://irc.libera.chat/#raku">system IRC client</a> or <a href="https://web.libera.chat/#raku">chat live in your browser</a></li> <li><a href="/community/rosettacode">Raku on Rosetta Code</a>, <a href="https://planet.raku.org/">Blogs</a></li> </ul> <a href="/community/" class="btn btn-success">More</a> </section> <section class="col-sm-6 col-md-5ths"> <h4><a href="/resources/">Resources</a></h4> <ul class="shush-list"> <li><a href="/getting-started/">Getting started</a></li> <li><a href="https://docs.raku.org/">Raku Documentation</a></li> <li><a href="https://docs.raku.org/language#Migration_guides">Other languages to Raku</a>, an introduction for programmers</li> </ul> <a href="/resources/" class="btn btn-success">More</a> </section> <section class="col-sm-6 col-md-5ths"> <h4><a href="https://modules.raku.org/">Modules</a></h4> <ul class="shush-list"> <li><a href="https://modules.raku.org/">Raku modules directory</a></li> <li><a href="https://raku.land/github:ugexe/zef">zef</a>: Raku module manager</li> </ul> <a href="https://modules.raku.org/" class="btn btn-success">More</a> </section> <section class="col-sm-6 col-md-5ths"> <h4><a href="/compilers/">Compilers</a></h4> <ul class="shush-list"> <li><a href="https://rakudo.org/">Rakudo</a>, a compiler running on <a href="https://moarvm.org/">MoarVM</a>, the JVM and other backends.</li> </ul> <a href="/compilers/" class="btn btn-success">More</a> </section> <section class="col-sm-6 col-md-5ths"> <h4><a href="/specification/">Language Design</a></h4> <ul class="shush-list"> <li><a href="https://github.com/Raku/roast">Specification</a> - Official Raku language specification test suite</li> <li><a href="https://design.raku.org/">Speculations</a> - historical language design documents</li> </ul> <a href="/specification/" class="btn btn-success">More</a> </section> <p class="col-sm-12 text-center" ><i class="glyphicon glyphicon-info-sign"></i> If you want to contribute to this page, <a href="/about/">look here for instructions</a>.<br/> The Raku® Programming Language </p> </div> </div> </footer> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="/bootstrap/js/bootstrap.min.js"></script> <script src="/js.js"></script> </body> </html>