Andrew Shitov: Sorting numbers in Raku with the help of ChatGPT
pl6anet - Steve Mynott
by Andrew Shitov
8M ago
In this post I will show you the solution to the Task 2 of this week’s Weekly Challenge 233. This time I was using the help of ChatGPT, which offered a very nice solution. Task 2: Frequency Sort You are given an array of integers. Write a script to sort the given array in increasing order based on the frequency of the values. If multiple values have the same frequency then sort them in decreasing order. Example 1 Input: @ints = (1,1,2,2,2,3) Ouput: (3,1,1,2,2,2) '3' has a frequency of 1 '1' has a frequency of 2 '2' has a frequency of 3 Example 2 Input: @ints = (2,3,1,3,2) Ouput: (1,3,3,2,2 ..read more
Visit website
Andrew Shitov: Working with words in the Raku programming language
pl6anet - Steve Mynott
by Andrew Shitov
8M ago
In this post, I will demonstrate my solution to another Task of The Weekly Challenge, week 233. Here’s how it reads: Similar words You are given an array of words made up of alphabets only. Write a script to find the number of pairs of similar words. Two words are similar if they consist of the same characters. Example 1 Input: @words = ("aba", "aabb", "abcd", "bac", "aabc") Output: 2 Pair 1: similar words ("aba", "aabb") Pair 2: similar words ("bac", "aabc") Example 2 Input: @words = ("aabb", "ab", "ba") Output: 3 Pair 1: similar words ("aabb", "ab") Pair 2: similar words ("aabb", "ba ..read more
Visit website
Elizabeth Mattijsen: Raku Blog Posts 2023.36
pl6anet - Steve Mynott
by Elizabeth Mattijsen
8M ago
Drax on Jupyter Steve Roe continues their Raku journey exploring the reasons to use the Raku Programming Language on Jupyter notebooks. Pheix Nomad Release 2023 Konstantin Narkhov is back with a blog post about their new release of the Pheix CMS. Jupyter::Chatbook Anton Antonov describes their new Raku module that brings the world of Large Language Models into the realm of Raku on Jupyter notebooks. Rakudo Weekly News 2023.36 Elizabeth Mattijsen reports on all recent developments around Rakudo, an implementation of the Raku Programming Language ..read more
Visit website
Rakudo Weekly News: 2023.36 Slimline September
pl6anet - Steve Mynott
by Elizabeth Mattijsen
8M ago
The Exercism people published a video about programming languages with terse, concise syntax, and the Raku Programming Language is one of them! If you don’t want too look at the whole hour-long video, these are the Raku related bits: Introduction A big language with gradual typing On junctions, parallelism, lazy evaluation and grammars Steve’s Corner Steve Roe continued their personal journey along the Raku path with “Drax on Jupyter“. Konstantin’s Corner After a long absence caused by different global, personal and subjective circumstances, Konstant Narkhov returns with a new release of the ..read more
Visit website
Anton Antonov: Jupyter::Chatbook
pl6anet - Steve Mynott
by Anton Antonov Antonov
8M ago
This blog post proclaims and describes the Raku package “Jupyter::Chatbook” that facilitates the incorporation of Large Language Models (LLMs) into notebooks of Jupyter framework. “Jupyter::Chatbook” is a fork of Brian Duggan’s “Jupyter::Kernel”. Here are the top opening statements of the README of “Jupyter::Kernel”: “Jupyter::Kernel” is a pure Raku implementation of a Raku kernel for Jupyter clients¹. Jupyter notebooks provide a web-based (or console-based) Read Eval Print Loop (REPL) for running code and serializing input and output. It is desirable to in ..read more
Visit website
Steve Roe: Drax on Jupyter
pl6anet - Steve Mynott
by librasteve
8M ago
As I continue my personal journey along the raku path, I am increasingly interested in “raku – what is it good for”. I will continue to interleave material on “raku – how does it work” and “raku – why I think it is better”. As in the last gripping episode, this post refers to a Jupyter Notebook that combines the interactive notebook style familiar to most Python coders with the raku Jupyter::Kernel written by Brian Duggan. Instructions on how to do this yourself are provided at the end of this post. raku on Jupyter There are some great reasons to use raku on Jupyter: By mixing markdown and co ..read more
Visit website
Rakudo Weekly News: 2023.35 October Conferencing
pl6anet - Steve Mynott
by Elizabeth Mattijsen
8M ago
It’s official! The Third Online Raku Conference will be held on 28 October 2023. Please register your presentation before 15 October! And/or get your online ticket, not only for immediate interactive access, but also to support this event! Rakudo Compiler Release 2023.08 Justin DeVuyst published the 2023.08 release of the Rakudo Compiler for the Raku programming Language. With some nice additions and (performance) fixes! Most binary packages have already been updated, as well as Rakudo Star. Paweł’s Corner Paweł bbkr Pabian continued their blog series about Unicode with “Fun with UTF-8: variab ..read more
Visit website
Elizabeth Mattijsen: Winding down
pl6anet - Steve Mynott
by Elizabeth Mattijsen
8M ago
I've been programming more or less professionally for a living since 1978. And I still am 45 years later, because it's something that I like to do a lot. You could argue I've never worked a day in my life, because I was able to turn my hobby into a living. And you wouldn't be very wrong! It all started for me when in the fall of 1977, two PLATO terminals were placed in the library of the Physics building where I was trying to study Astronomy. Having always been interested in computers, these new terminals (512x512 monochrome graphics, touch panel, instantaneous execution of programs) proved ir ..read more
Visit website
Elizabeth Mattijsen: Optimisation Considerations
pl6anet - Steve Mynott
by Elizabeth Mattijsen
8M ago
If you are an experienced Perl programmer, you have (perhaps inadvertently) learned a few tricks to make execution of your Perl program faster. Some of these idioms work counter-productively in Raku. This blog post deals with one of them and provides the alternative idioms in Raku. Hashes vs classes Objects in Perl generally consist of blessed hashes. As we’ve seen before, this implies that accessors need to be made for them. Which means an extra level of indirection and overhead. So many Perl programmers “know” that the object is basically a hash, and access keys in the blessed hash directly ..read more
Visit website
Elizabeth Mattijsen: Command-Line Scripts
pl6anet - Steve Mynott
by Elizabeth Mattijsen
8M ago
Historically, Perl has been used a lot for small utility scripts that take a number of parameters, process them and produce a result. The basic support for command-line argument parsing in the Perl core is really basic, but useful in its own way: especially the magic of shift can be very useful for very simple positional command line arguments. For more complex argument parsing, the Perl ecosystem provides the Getopt::Long module. Raku supplies similar, but extended features by default in its core. But for those of you wanting to have exactly the same command line argument parsing, there is al ..read more
Visit website

Follow pl6anet - Steve Mynott on FeedSpot

Continue with Google
Continue with Apple
OR