Skip to main content
codesections u/codesections avatar

codesections

u/codesections

Feed options
Hot
New
Top
View
Card
Compact

r/rakulang icon
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions
r/rakulang
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions

Day 10 – How to give a Raku talk at TPRC – and why you should

Eh, you're just saying that because your crazy slang talk got a shout out!

(thanks )


r/rakulang icon
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions
r/rakulang
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions

Submit Raku talks for The Perl & Raku Conference (June 27–29, 2025 in Greenville, SC)

codesections
commented

The Call for Presentations for The Perl & Raku Conference is now open – so everyone should start thinking about what Raku talks they'd like to give. Lets make this the year where more Raku talks are proposed than Perl talks! (#friendlyrivalry)

The conference website also has more info about TPRC in general. Hope to see you there!


Submit Raku talks for The Perl & Raku Conference (June 27–29, 2025 in Greenville, SC)
r/rakulang icon
r/rakulang
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions

r/rakulang icon
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions
r/rakulang
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions

Does anyone know the syntax colouring theme used in raku.land?

codesections
commented

It appears to be a custom, unnamed theme built for Chroma. Here are the css values it uses.


r/rakulang icon
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions
r/rakulang
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions

"The Best Regex Trick" in Raku

codesections
commented

Nice! Your answer inspired me to post my own. I went with

(\['"Tarzan"', 'Tarzan', '"Tarzan and Jane"'\] «\~\~» / '"Tarzan"' || ('Tarzan') /)»\[0\]

Or, for total overkill (and poor performance):

my &infix:<\~\~\[0\]> = \*\[0\] ∘ &\[\~\~\];  
('"Tarzan"', 'Tarzan', '"Tarzan and Jane"') «\~\~\[0\]» / '"Tarzan"' || ('Tarzan') /;

[edit: gosh, I don't post on Reddit for a little while, and they go and switch their default editor to a non-markdown version!]


Five Unusual Raku Features [Hillel Wayne blog post]
r/rakulang icon
r/rakulang
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions

r/rakulang icon
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions
r/rakulang
A banner for the subreddit

A place for all things related to the Raku® Programming Language—an open source, gradually typed, Unicode-ready, concurrency friendly programming language made for at least the next hundred years. Please join us, for programming should be optimized for Fun *and* Profit!


Weekly visitors Weekly contributions

Day 1 – Rocking Raku Meets Stodgy Debian - Tom Browder

codesections
commented

(Slightly meta: I just updated the link to the yearly archive S /2022/2023/ with "Full list of 2022 Raku Advent Blog Posts")


r/ProgrammingLanguages icon

This subreddit is dedicated to the theory, design and implementation of programming languages.


Weekly visitors Weekly contributions
r/ProgrammingLanguages

This subreddit is dedicated to the theory, design and implementation of programming languages.


Weekly visitors Weekly contributions

Infix repetition precedence

codesections
commented

Raku basically uses this approach with different spelling: && is high precedence whereas and is low precedence (and the same for ||/or and !/not, etc). So your last example could be written as:

a && b or c && !d

One observation from having lived with this system in real code: Although in theory it "eliminate[s] the need for brackets", in practice, Raku conditionals still end up using brackets somewhat often for added clarity. The two levels of precedence do reduce the number of brackets, though.