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?
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.
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.
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 😅
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 😿
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.
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 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.
This thread highlights one of the key differences between the design processes behind #RakuLang and #Perl.
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?"
After having used #RakuLang's way of nesting ternary operators and having it be completely readable and non-evil I just went to do it in #Ruby and 🤢 i feel dirty now.
#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.
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.