home.social

#rakulang — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rakulang, aggregated by home.social.

  1. Until about 2022, I loved to program in Raku, the language formerly know as Perl 6. (Sadly, since then, genAI has ruined that for me.)

    Raku has neat feature called Junctions. A junction is a lazy expression of values of any type combined with Boolean-like operators `|`, `&` and `^`. When an operation is applied to a Junction, it is carried out for each junction element, and the result is the junction of the return values of the operations. You can optionally evaluate a Junction in a Boolean context using `so`.

    So you can do things like

    my \jj = 1&2;
    say so jj; # True
    say so (->\x {x-1})( jj ); # False

    Back in 2020 I pointed out an issue with Junctions, [The strange case of the greedy junction](limited.systems/articles/greed). Junctions are *greedy*, they turn anything they are combined with also into a Junction. This is not always desirable. I proposed an additional operation ("collapse") to undo this behaviour.

    In a second post [Reconstructing Raku's Junctions](limited.systems/articles/recon) I provided a proof for both the observed behaviour and the need for a "collapse" operation, by formalising Junction semantics in terms of polymorphic algebraic data types. I just re-read it and I still think it is very cool.

    The `collapse` method never made it into the language (github.com/rakudo/rakudo/pull/) but my implementation still works.

    What I think is neat is that my formalisation lets you implement Junctions in any language.

    #programming #programmingLanguages
    #rakulang

  2. Auf zum #perl / #rakulang Workshop in #berlin. Anreise mit #flixtrain ab #heidelberg bisher pünktlich. Ausser dem nicht funktionierenden/vorhandenen WLAN bisher alles top. Noch ne knappe Stunde. Da wird hoffentlich nichts mehr schief gehen.

  3. Auf zum #perl / #rakulang Workshop in #berlin. Anreise mit #flixtrain ab #heidelberg bisher pünktlich. Ausser dem nicht funktionierenden/vorhandenen WLAN bisher alles top. Noch ne knappe Stunde. Da wird hoffentlich nichts mehr schief gehen.

  4. Auf zum #perl / #rakulang Workshop in #berlin. Anreise mit #flixtrain ab #heidelberg bisher pünktlich. Ausser dem nicht funktionierenden/vorhandenen WLAN bisher alles top. Noch ne knappe Stunde. Da wird hoffentlich nichts mehr schief gehen.

  5. Auf zum #perl / #rakulang Workshop in #berlin. Anreise mit #flixtrain ab #heidelberg bisher pünktlich. Ausser dem nicht funktionierenden/vorhandenen WLAN bisher alles top. Noch ne knappe Stunde. Da wird hoffentlich nichts mehr schief gehen.

  6. @rvyhvn I really enjoyed #Nim few years ago, made my biggest project using it.
    Have you taken a look at #Raku (#rakulang) ? It’s my current fav language, I just wish that it could compile to binary (so that I can share to people now having Raku installed).

  7. The more I think about it, the more I want it.
    A #guix system and #nix system compatible package manager/distro but using #rakulang for the language. Not sure how hard it would be to make a Raku lib that understands Guix packages definitions, but for basics ones should be doable. Lisp syntax just stops me too much from being able to make packages or services (#shepherd) but except the syntax I just love Guix and Shepherd.

  8. Nice!

    Someone has begun an #HPMOR comic! 😄

    hpmorcomic.com/

    Who would have known that a JKR-free #rational fan fiction of #HarryPotter (love the work, don't care for the author) would be awesome enough to be made into both audiobooks, podcasts and a cartoon?

    I'm really happy more are exposed to this work. It's _really_ good! 😄

    (Triva: I learned of it in the #rakulang IRC channel, back when it was called #perl6 <3)

    Recommended!

    If you like the first chapters, you'll like it all!

  9. Raku: The match of a regex is automatically stored in $/, and this variable then also provides access to the text before ($/.prematch), to the text after ($/.postmatch), and to the match's position ($/.from and $/.to). Nice.

    docs.raku.org/language/regexes

    #raku #rakulang #regularexpressions #regex #regexes

  10. #Perl: older than some #programming careers, younger at heart than you think.

    It’s evolved a lot since 1999 — modern features, cleaner syntax — yet it still runs code you wrote decades ago.

    (And if you’re wondering: #Perl6 was renamed Raku in 2019 — it’s a sister language, not a successor.)

    Curious? Returning after a long break? @shiar’s cheat sheet is a perfect quick‑scan: sheet.shiar.nl/perl

    #coding #SoftwareDevelopment #SoftwareEngineering #RakuLang #Perl5

  11. Dear #OpenSource #Fediverse: Is it time to revive some of the good old parts of the #Perl and #RakuLang communities?

    I'm specifically thinking of the "fun-with-perl" mailing list...

    nntp.perl.org/group/perl.fwp/2

    (or maybe we already have enough #fun in our lives? 😅)

    #fwp #fwr

  12. @lemgandi @cstross The reputation was for being "write-only", and was propagated by people who didn't realize one does NOT have to know "every" way to code it in order to write something well.

    What one _does_ need is the ability to learn and teach, and to write code with a human audience in mind.

    Coding can be extremely fun, and especially with #Perl and #RakuLang - IF you allow yourself to play and share the joy.

    Don't be a #toolblamer, be a good colleague instead.

    #fwp #fwr

  13. @swaggboi @silberfuchs @AnarchoDoggo Fun fact 2: #YAPC officially and legally took up the name “The #Perl Conference” (and now “The Perl and Raku Conference”) *years* ago. The Perl and Raku Foundation (previously “The Perl Foundation”) is a “doing business as” name for Yet Another Society, which was formed for organizing past YAPCs.

    When (not if!) you donate to @PerlRakuFoundation it goes to YAS.

    #TPRC #RakuLang

  14. Useful things in #Linux lately: apt-clone, #emacs & #elisp, #rakulang, #smallbasic (github version), silver searcher (ag), htop, pal calendar, #gimp, #kolourpaint, #vlc, #doublecommander, #gambas3, #geany, and distros like #manjaro, #pclos, #almalinux, #kubuntu, and #q4os
    Pictured: An old photo of my #UbuntuStudio desktop from 2009, watching "The Cat From Outer Space".
    The same system ran WinXP and Win 7 inside of VMs, allowing use of Adobe software and other Windows apps.
    At the time I had been using Linux full-time at my business for about 4-5 years.
    Soon I would take a Linux netbook with me for working abroad (running Ubuntu's netbook distro), along with a Nokia n810 as media station. The years 2009-2012 were, in my work, the second big wave of Linux on the Desktop. It was extremely fun and I'm still trying to recapture some of the enjoyment of those days, which faded a bit with the rise of the cloud.

  15. @Perl Per @PerlRakuFoundation's announcement yesterday,* The #Perl & #RakuLang Conference 2024 in Las Vegas is now accepting proposals for live in-person session talks! 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: science.PerlCommunity.org

    * news.perlfoundation.org/post/c

    #TPRC #TPRC2024 #programming #coding

  16. @rq @0xabad1dea Throwback to #YAPC 19100: yapc.org/America/previous-year

    #Perl was always as “#Y2K compliant” as #C, but very naïve developers would sometimes use ` '19' . (localtime)[5] ` for the current year, thus the jokey name for the final #conference of the previous century.

    It’s now called “The Perl and #RakuLang Conference” by @PerlRakuFoundation and will be in #LasVegas next June: tprc.us/tprc-2024-las/. See you there!

  17. @mort You can get pretty far with #Perl 5* #RegularExpressions. Here's @perlancar’s #CPAN module based on @randalschwartz’s minimal #JSON parser as a single #regex: metacpan.org/pod/JSON::Decode:

    Full docs on conditional #regexes, including the special `(DEFINE)` form that merlyn used: perldoc.perl.org/perlre#condit

    * #RakuLang hasn't been called #Perl6 for four years now. You're deadnaming the language.

  18. @profoundlynerdy I don’t know anything about #Rakudo’s internals, but Is there any conceivable way for a language-neutral subset of #RakuLang #regexes to be based on or share its code rather than reimplement them?

    The subset might omit things like code interpolation. Or is it all-or-nothing?

    It would be a nice teaser for the full power of Raku grammars, kind of like how #iTunes for Windows was #SteveJobs’ offer of “a glass of water to somebody in hell.” a.co/5J0CTSL

  19. @profoundlynerdy I don’t think other languages *have* “ripped off” #RakuLang #regexes and grammars. The point of a notional “RCRE” library would be to enable that.

  20. Kijk 'Sorting *Whatever in $LANG - Bruce Gray - The Perl and Raku Conference 2023' op YouTube
    #tprc2023 #tprc #perl #rakulang
    youtu.be/sTB-blT9UnY

  21. @Perl Check out @talexb’s announcement of this year’s North American #Perl and #RakuLang #Conference coming up this summer! #Toronto sounds lovely!

    fosstodon.org/@talexb/10995126

    Also note the Call For Papers deadline is in *thirty days*. Submit those talks!

    #TPRC #programming #coding #SoftwareDevelopment

  22. @Perl Don’t fear #Perl’s grep and map functions! Here’s a lightning talk I gave at last year’s Perl & Raku Conference in Houston that will help you understand and know when and how to use them for list processing. Not everything should be a for/foreach loop!

    youtu.be/PHdq4QfSxrc

    More on my blog: phoenixtrap.com/tag/lists/

    And @lizmat has written no less than six articles on how #RakuLang does things: dev.to/lizmat/series/20328

    #TPRC #TPRCiH #TPRC2022 #programming #coding

  23. Having said all that, to ensure continued success with #Perl and #RakuLang you can donate to The Perl and Raku Foundation here: perlfoundation.org/donate.html

    To ensure continued access to high-quality search and online #documentation of the hundreds of thousands of #FOSS @Perl modules on #CPAN, please donate to #MetaCPAN via @opencollective here: opencollective.com/metacpan-co
    Or email [email protected] about joining the growing list of MetaCPAN sponsors (metacpan.org/about/sponsors)

  24. @Perl A few #Perl projects to follow in the #fediverse:
    @mojolicious: A real-time web framework for Perl and #NodeJS
    @opencage: Perl-powered #geocoding and #geosearch service with SDKs for dozens of other languages and environments. Also a #MetaCPAN sponsor!
    @PerlFFI: An interface for writing Perl extensions in C, C++, #GoLang, and #Rust

    And don’t forget our sister language, #RakuLang: @rakulang

    Any more to add?

  25. I don't know if #TheWeeklyChallenge has a Mastadon presence yet. If you're interested in fun coding challenges it can be worth a look.

    theweeklychallenge.org/

    The second of this weeks challenges is one of those fun O(2**n) ones where you want to come up with a plan beyond the obvious.

    I'm happy I got it down to 1.5 mins in #Rakulang. And it will take pretty much the same time to calculate 1 through 15 which is cool.

    (Of course that's on my 16 core dev box YMMV).

    #coding #CodingPuzzle

  26. [Ru] Библиотека модулей Raku: Зеркалируем репозитории
    [En] Raku Module Library: Mirroring repositories
    rakurs.atroxaper.net/2021-11-3
    #rakulang #zef #mirror