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.
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.
I created my first mobile app in #Golang using #Fyne . It's a very simple app for logging small ideas and to do tasks on my Android phone into simple text files. These are synced w/ #Syncthing to my Laptop. From there, a #RakuLang glue script adds them to my #Taskwarrior DB. I know, weird workflow. But I wanted to highlight how easy it is to build cross-platform mobile apps in Go now. Dont have to use the Android SDK.
I solved this day of #AdventOfCode in #Rakulang, 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.
I've been asked to write an article for the #RakuLang 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.
I just submitted a talk to the #Perl and #RakuLang track at #FOSDEM. Deadline for submission is tomorrow (Friday Dec 1st), and it's not too late to share! 😄
TPRF (The Perl and Raku Foundation) is organising a Raku & perl devroom at FOSDEM. Sadly, no booth for Raku & Perl. Still, plenty of interesting stands.
As I continue to use my CLI time tracking app, I find myself thankful that #RakuLang 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 #RakuLang 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 😿
#Raku#RakuLang 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.
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: #Perl a bliss to write in some cases (if not ⇒ unless), although Perl doesn't have this 'but' alias. Probably #rakuLang can change itself at runtime to add this alias 😅
I want to replace my existing wall thermostat with something smarter but NOT connected to "the Cloud" for security reasons. The more open the #firmware 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 #raspberrypi with API calls to the device. Any suggestions?