Patrick Böker has published a Raku module (called Rainbow) that parses Raku source code and provides a tokenised version of the code which can be used to provide syntax highlighting.
This now gives two ways of providing Raku syntax highlighting. The other one being RakuAST::Deparse::Highlight which has a finer granularity and also works on localized code, but requires the code to be compilable.
All in all, TIMTOWTDI!
London Workshop Schedule Published
Lee Johnson has published the schedule for the London Workshop on 26 October 2024. It has the following Raku related presentations:
- Red Migrations by Fernando Corrêa de Oliveira.
- Using new RakuDoc v2 by Richard Hainsworth.
- Coursework Design for Engineering Education by Yujia Zhai.
- HTML::Functional by Steve Roe.
Upwork Spotted
A job advert for a part-time coder for maintenance on a Raku website was spotted on Upwork. May it be the first of many!
Steve’s Corner
Steve Roe published the next episode in the series about Cro and HTMX: this week titled HTMX, Raku and Pico CSS (HackerNews, /r/rakulang, /r/htmx comments).
Anton’s Corner
Anton Antonov announced the support for the Obsidian flavor of markdown in their Grammar::Markdown
module on the Obsidian Forum (/r/rakulang comments).
Dr. Raku’s Corner
Dr Raku‘s beginner tutorial videos of the past week:
Weeklies
Weekly Challenge #286 is available for your perusal.
New Pull Requests
- subtest
Pair
can use any order - Reprotest tile compiler
- Try using “windows-latest” in the azure pipeline
Core Developments
- Timo Paulssen fixed an issue with the new “in-situ” strings on 32-bit systems in MoarVM, fixed a CVE in minilua that is unlikely to affect MoarVM, and brought nqp-configure up-to-date.
- Elizabeth Mattijsen (micro-)optimized the use of various adverbs on
[...]
and{...}
postcircumfixes, making some cases up to 7x as fast (but most of them only a few %).
In RakuAST developments this week:
- Elizabeth Mattijsen fixed various deparsing and highlighting issues and gave up on supporting Rakudoc markup in syntax highlighting.
- The number of passing test-files with the new Raku grammar are now 142/153 (
make test
+0) and 1158/1355 (make spectest
+0).
Meanwhile on Mastodon
- Say join faster than print by Julia.
Meanwhile still on Twitter 𝕏
- Obsidian Markdown by Anton Antonov.
Meanwhile on the mailing list
- Raku is removed from Debian by Dominique Dumont.
Questions about Raku
- Defining bareword operators by Atlas Sullivan.
- Bridge source code? by Profoundly Nerdy.
Comments
- More complex? by amano-kenji.
- Other than Raku? by J_Stach.
- On de-optimization by Ralph Mellor.
- Aggravating and economic by Ralph Mellor.
New Raku Modules
- Rainbow “Raku source code lexer” by Patrick Böker.
Updated Raku Modules
- Markdown::Grammar, ML::FindTextualAnswer, LLM::Functions, Data::Summarizers, Math::DistanceFunctions::Edit by Anton Antonov.
- YAMLScript by Ingy döt Net.
- CSS::Properties, PDF::Content, PDF::Class by David Warring.
- TOP by Tim Nelson.
Winding down
Syntax highlighting! Fast but incomplete. Or slow and precise. Both have their uses! Meanwhile, still: Слава Україні! Героям слава!
Please keep staying safe and healthy, and keep up the good work!
If you like what I’m doing, committing to a small sponsorship would mean a great deal!