mjgardner, to raku
@mjgardner@social.sdf.org avatar
gd, to raku
@gd@ruby.social avatar

Do these code examples look correct? Anything you'd change to improve them?

https://gregdonald.com/pages/metaprogramming-a-dynamic-method-inside-a-dynamic-class-in-raku-and-ruby

profoundlynerdy, to RaspberryPi
@profoundlynerdy@bitbang.social avatar

I want to replace my existing wall thermostat with something smarter but NOT connected to "the Cloud" for security reasons. The more open the the better.

My goals are to be able to deploy wireless temperature sensors in every room of the house and be able to script things from a with API calls to the device. Any suggestions?

masukomi, to raku
@masukomi@connectified.com avatar

I've been asked to write an article for the advent calendar this year. I have a simple tutorial idea that I think will be good for beginners, and I swear to god I spent half the effing day yesterday fighting with ORM libraries and now I'm thinking "Fuck-it. I'll just write raw SQL."

Personally, I love SQL, but it feels kinda bullshit that that's where I ended up, and it's terrible for a beginner tutorial. Never-mind the fact that dramatically complicates the amount of code I'll need.

sjn, to raku
@sjn@chaos.social avatar

and are the 35mm focal length of languages. Only one of them is O(fun), though. 😁

https://www.youtube.com/watch?v=mmDWYGUM77Y

mjgardner, to raku
@mjgardner@social.sdf.org avatar

Call For Papers deadline is March 31! Have anything you want to present at this summer’s @Perl and Conference?

We’re definitely looking for anything about , the friendly framework for implemented in . See this post: https://fosstodon.org/@ferki/110040148424021278

samebchase, to raku
@samebchase@fantastic.earth avatar

I want to try out https://www.morling.dev/blog/one-billion-row-challenge/ in

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?

massa, to raku
@massa@hachyderm.io avatar

235/01:

You are given an array of integers.

Write a script to find out if removing ONLY one integer makes it strictly increasing order.

my answer:

sub remove-one(@_@hachyderm.io) {  
 (^+@_@hachyderm.io).map({[<] @_@hachyderm.io[|(^$_), |($_+1 ..^ +@_@hachyderm.io)]}).any.so  
}  
nobodyinperson, to raku
@nobodyinperson@fosstodon.org avatar

Can we please have an alias 'but' for the 'and' binary operator in programming languages?

if outside and moving_slowly ⇒ if outside but moving_slowly
if online and not connected ⇒ if online but not connected

Such semantics made :perl: a bliss to write in some cases (if not ⇒ unless), although Perl doesn't have this 'but' alias. Probably can change itself at runtime to add this alias 😅

sjn, to raku
@sjn@chaos.social avatar

@raku Thinking about content on a fediverse-replacement for reddit.

Then I see https://kbin.social/m/raku exists! Sweet!

Anyone around who wants to hang out there? 🙂

masukomi, (edited ) to raku
@masukomi@connectified.com avatar

As I continue to use my CLI time tracking app, I find myself thankful that makes it so easy to make sentence-like command interactions.

At the same time, I'm finding that I want to support more ways to say the same thing. I.e. other sentence structures and ordering that convey the same details.

Fortunately has great built-in support for custom grammars, AND this would be nice limited-scope thing to learn how with.

UNfortunately i just haven't the time to dive into that 😿

lizmat, to random
@lizmat@mastodon.social avatar

Many new releases, quite a few blog posts, and sadly the news of breakage. And of course the usual assortment of goodies in this week's Rakudo Weekly News about the Raku Programming Language.

https://rakudoweekly.blog/2023/04/24/2023-17-releaseperiod/

Check it out!

ovid, to javascript
@ovid@fosstodon.org avatar

I started programming in 1982. Though I'm known as a developer, I tried to remember every other languages I've programmed in.

, #C, 6809 Assembler, , VBScript (and its many variants), , , , , , , Easytrieve, and probably a few others.

I wish I had gotten a job in Prolog, primarily because I loved what I could create with it. I don't love programming; I love creating.

What are you languages?

samebchase, to raku
@samebchase@fantastic.earth avatar

As programmers we may have have our pet favourite languages for:

  1. Productivity.
  2. Expressive power, features.
  3. Performance.
  4. Debuggability (something you can use at work).

/ for 1 and 2 right now, someday Raku / .

Go for 3 and 4 at the moment, someday Rust/C++ for 3.

I honestly don't care about 4. I'm open to using whatever.

Let me know about yours in the replies!

goldstein, to raku

I solved this day of in , which still looks fun, until I try to actually write it and discover once again that basically every operation has some weird footguny semantics. nevertheless, I’m quite happy with the final result, which looks nice and concise.

https://github.com/GoldsteinE/aoc2023/blob/master/day13/code/main.raku

VZ, to raku
@VZ@fosstodon.org avatar

I really like , in theory, and would like to use it more, but whenever I have something to write, I still often end up with using 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.

leonerd, to raku
@leonerd@fosstodon.org avatar

This thread highlights one of the key differences between the design processes behind and .

Raku'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?"

https://fosstodon.org/@leonerd/109417700811336648

masukomi, to random
@masukomi@connectified.com avatar

After having used 's way of nesting ternary operators and having it be completely readable and non-evil I just went to do it in and 🤢 i feel dirty now.

RogerBW, to raku
@RogerBW@emacs.ch avatar

people: I have a class which must be initialised before use, but that initialisation is more complex than simply setting field values. I can do this right now with my $foo = MyClass.new; $foo.init(stuff); but I find that ugly. I haven't found any examples of a new method that will do the standard object setup and then run my initialisation code on this new instance of it. Is this a thing? Pointers welcome.

lizmat, to raku
@lizmat@mastodon.social avatar

Some cool video presentations about DSLs and ASTs, but also more basic subjects. And some cool blog posts. And the usual assortment of goodies in this week's Rakudo Weekly News for the Raku Programming Language.

https://rakudoweekly.blog/2023/07/17/2023-29-dsls-and-asts/

Check it out!

masukomi, to raku
@masukomi@connectified.com avatar

Just realized it's If you're looking for a small task to help with this month maybe check out one of these:


a tiny command line widget to show your progress through the day.
https://github.com/masukomi/days_progress


a library for making pretty tables on the command line.
https://github.com/masukomi/Prettier-Table

a library for making bar charts
https://github.com/masukomi/Terminal-Graphing-BarChart

CLI time tracking (many "good first issue" issues)
https://github.com/masukomi/hey_3

mjgardner, (edited ) to raku
@mjgardner@social.sdf.org avatar

@Perl Well-deserved congratulations to @manwar for receiving the @PerlRakuFoundation White Camel Award 2022! https://news.PerlFoundation.org/post/white-camel-2022-manwar

Mohammad runs the and Weekly Challenge at https://TheWeeklyChallenge.org and is co-editor of the newsletter: https://PerlWeekly.com. Sign up for both!

He’s also a prolific Perl developer with over 100 module distributions. You may be using his code right now! https://MetaCPAN.org/author/MANWAR

opoku, to raku

I've completed "Pipe Maze" - Day 10 - Advent of Code 2023 https://adventofcode.com/2023/day/10

As I suspected, day 10 was a doozy (especially part 2). I've always had trouble with these enclosed spaces algorithms.

https://git.sr.ht/~opoku/aoc2023/tree/main/item/day10.raku

mjgardner, to raku
@mjgardner@social.sdf.org avatar

@Perl Per @PerlRakuFoundation's announcement yesterday,* The & 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 track with its own process: https://science.PerlCommunity.org

WGAvanDijk, to raku
@WGAvanDijk@mastodon.social avatar

@lizmat just made another Rakudo Weekly Newsletter, and starts with a long introduction by Vadim Belman about types and objects.

Several core and RakuAST developments, 1 new problem solving issue, 1 new pull request, 2 new modules, and 27 updated modules.

Several other blogs, a few toots and tweets, questions and comments.

Enjoy!

https://rakudoweekly.blog/2023/07/10/2023-28-composition/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines