@rakulang Thanks, I'll tweak the tag for future posts. I tend not to use the sexier language features in favour of a portable polyglot approach (also because I find them hard to parse when I come back to the code later).
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.
@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?’”
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.
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.
@masukomi yes, you are right, that’s the reason. I really need to find a way to fix that. But if you are not going to use Postgres (and you are going to use SQLite) you could install it with —force…
@smokemachine a) thanks b) owing to time constraints I've gone off in another direction with what I'm working on, but I'll try that on the next personal project. Not really a fan of making a project for others when I have to tell them to force-install specific dependencies.
For the first day of #AdventOfCode living in UTC+0, I actually have to be up at stupid o'clock anyway. In the interests of speed, which I usually do not care about, given the opportunity I shall start day 1 in #perl in which the thing will take moments. I'll clean it up into #raku because, well, one ought to. I'll then start again in #Julia because that's what I want to learn this time around.
I see a lot of exotic things, or rust, or R. Where's my perl tribesfolk?!
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.