RogerBW, The Weekly Challenge 271: Sort the Maximum One #Perl #RakuLang #RustLang #Postscript #CrystalLang #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/06/The_Weekly_Challenge_271__Sort_the_Maximum_One.html
RogerBW, The Weekly Challenge 270: Special Distribtions Position the Elements #Perl #RakuLang #RustLang #Postscript #CrystalLang #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/05/The_Weekly_Challenge_270__Special_Distribtions_Position_the_Elements.html
RogerBW, The Weekly Challenge 269: The Bitwise Elements #Perl #RakuLang #RustLang #Postscript #CrystalLang #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/05/The_Weekly_Challenge_269__The_Bitwise_Elements.html
RogerBW, The Weekly Challenge 268: If the Game is Magic, Where's My Number? #Perl #RakuLang #RustLang #Postscript #CrystalLang #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/05/The_Weekly_Challenge_268__If_the_Game_is_Magic__Where_s_My_Number_.html
RL_Dane, Lol, #perl and #raku folks, I made a funny (in bash!)
#!/usr/bin/env bash
#Smart CD - uses my ulocate script and fzf to jump to any directory found within my home directory
set -u #treat undeclared variables as errors
function warn {
echo "$" >&2
}
function swoon { # (something in between a warn and a die ;)
warn "$"
exit 0
}
function die {
warn "$*"
exit 1
}
RogerBW, The Weekly Challenge 267: The Line is the Sign That Your Product Counts #Perl #RakuLang #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/05/The_Weekly_Challenge_267__The_Line_is_the_Sign_That_Your_Product_Counts.html
RogerBW, The Weekly Challenge 266: X, the Uncommon #Perl #RakuLang #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/04/The_Weekly_Challenge_266__X__the_Uncommon.html
RogerBW, The Weekly Challenge 265: The Appearance of Completion #Perl #RakuLang #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/04/The_Weekly_Challenge_265__The_Appearance_of_Completion.html
profoundlynerdy,
RogerBW, The Weekly Challenge 264: Greatest English Array #Perl #RakuLang #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/04/The_Weekly_Challenge_264__Greatest_English_Array.html
RogerBW, The Weekly Challenge 263: Targets Merge #Perl #RakuLang #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/04/The_Weekly_Challenge_263__Targets_Merge.html
RogerBW, The Weekly Challenge 262: Count Max, Type O Negative #Perl #RakuLang #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/03/The_Weekly_Challenge_262__Count_Max__Type_O_Negative.html
cnx, TFW rewriting the clipboard manager from #Raku to #Perl saved 20 times of memory :blobfoxnotlikethis: The service does literally nothing most of the time waiting for an event and keeps all states in the file system and Rakudo still manages to eat up a whooping 168 MB of RAM :floofWoozy: I really like the language but its reference (and now also only) implementation’s performance (or lack thereof) really stops me from keep using it.
BTW, fun fact: if you
chop
a string in Raku and Perl then concatenate their results together you get the original one :ym_rofl:
RogerBW, The Weekly Challenge 261: Two Elements Who Adore You #Perl #RakuLang #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/03/The_Weekly_Challenge_261__Two_Elements_Who_Adore_You.html
RogerBW, The Weekly Challenge 260: Uniquely Rank #Perl #Raku #RustLang #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/03/The_Weekly_Challenge_260__Uniquely_Rank.html
RogerBW, The Weekly Challenge 259: Banking Parser #Perl #Raku #Rust #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/03/The_Weekly_Challenge_259__Banking_Parser.html
alchemistsstudio, Yesterday I was daydreaming of spring and our gardens and these raku pottery pieces come to mind. What do these pieces remind you of?
Here's hoping my poor flower bulbs are not too confused (they started coming up in February.
#raku #pottery #handmade #MastoArt #art #spring
A multi-coloured raku pottery vase with various shades of blues, pinks and purples.
RogerBW, The Weekly Challenge 258: Valuing the Count #Perl #Raku #Rust #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/03/The_Weekly_Challenge_258__Valuing_the_Count.html
RogerBW, The Weekly Challenge 257: Smaller than Echelon #Perl #Raku #Rust #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/02/The_Weekly_Challenge_257__Smaller_than_Echelon.html
RogerBW, The Weekly Challenge 256: Maximum Strings #Perl #Raku #Rust #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/02/The_Weekly_Challenge_256__Maximum_Strings.html
samebchase, I want to try out https://www.morling.dev/blog/one-billion-row-challenge/ in #rakulang
The baseline solution in Java clocks in just under 5 seconds, so with Raku what should be a decent timing for a closest translation of that. The optimized solutions are less than 2 seconds.
What is a good time to target?
lizmat, my atomicint $i;
$path.IO.lines.race(batch => 10000).map({ ++⚛$i });would be a better benchmark. This will at least parallelize the work (incrementing $i). But that still needs serial decoding.
How fast would this be:
my $h = open $path;
Nil while $h.read;that would be the lower bound.
You could .list.grep(10, :k) on each Blob, and use that to decode async (10 being "\n".ord).
Is that a plan?
samebchase, @lizmat Let me try this out.
For comparision with single threaded
wc -l
i mplementation:
- Go takes 23 seconds.
- Common Lisp (SBCL) takes 70 seconds.
CL => 3x Go
Raku => 10x CLThe
Nil while read
thing that you've given runs in 20 seconds.The race and atomic increment thing, I killed it after 3 mins.
mjgardner, @Perl Per @PerlRakuFoundation's announcement yesterday,* The #Perl & #RakuLang Conference 2024 in Las Vegas is now accepting proposals for live in-person session talks! https://tprc.us/talks
Need ideas? That page also has previous conference schedules as well as a wiki link to request topics.
New this year: a peer-reviewed #science track with its own #CallForPapers process: https://science.PerlCommunity.org
ology, @mjgardner @Perl @PerlRakuFoundation Woo! I just submitted two: {Beginning,Advanced} Algorithmic Music with Perl - Thanks for announcing! :D
VZ, I really like #rakulang, in theory, and would like to use it more, but whenever I have something to write, I still often end up with using #perl for it.
Just the latest example: I had to write a simple text-wrangling script that needed UUID generation. With Perl, I used App::Fatpacker to embed UUID::Tiny to make the script runnable just about anywhere without any extra dependencies, but there is nothing like that for Raku AFAIK and it just didn't seem worth it to do something more complicated.
18+ mjgardner, @VZ “#RakuLang’s design all came from the question, ‘What could I build if I could basically start again from scratch? What ideas might I have? How do I build a coherent whole from this blank canvas?’
“#Perl’s ongoing design is all rooted in, ‘What would I use right now in this real code I am writing today? What features would I like to have that I currently do not?’”
— @leonerd (https://x.com/cpan_pevans/status/1596972022952779782)
mjgardner, @VZ @leonerd IMHO #RakuLang is great but it’s also a classic case of Fred Brooks’ “second-system effect”: https://archive.org/details/mythicalmanmonth00broo/page/53
RogerBW, The Weekly Challenge 255: Most Frequently Odd Character #Perl #Raku #Rust #Postscript #PerlWeeklyChallenge #BlogFiredrakeOrg https://blog.firedrake.org/archive/2024/02/The_Weekly_Challenge_255__Most_Frequently_Odd_Character.html
Greguti, J'ai réalisé un #hippopotame en terre cuite et puis je l'ai cui en #céramique et puis j'ai mis des émaux dessus et puis je l'ai cui en cuisson #raku. Le résultat est un mignon petit hippo qui est dans l'eau et dont seule la partie supérieure émerge, tête, dos, petite queue.