Started reading ‘Modern Perl’ on the train to work the other day. #Perl was the first programming language I learned, 20 years ago now, but I’ve hardly used it in probably 15 years now.
Not yet sure what I’d use it for, though. Better shell scripts? I’d normally choose Python/Ruby for that.
I work Cybersecurity, I mostly use #Perl for quick one-off scans when someone asks me, "are we vulnerable to XYZ?" when XYZ has a (mis)configuration element to it.
A lot of my hobby code is using #Rakulang these days as I really enjoy the language's mutability.
If you’re designing a programming language, please consider allowing hyphens in identifiers. Hyphen-separated text (kebab-case) is more readable than camelCase, and doesn’t require use of the shift key like camelCase and snake_case. There’s no ambiguity with subtraction if you require spaces around binary operators (which every style guide I’ve ever used requires anyway).
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.
No, I don't think we would have #Perl in our web browsers (and possibly everywhere else). But #JavaScript might have started less #Self-ish and a little more Perl-ish.
@mjgardner@Perl@BrendanEich There was a Mozilla project back in the day to migrate PHP, Python, and Perl to the browser at one point. It's a shame it didn't happen!
#Rakulang has some capability to do this with #WebASM but you don't get access to the DOM I don't think it's a maintained part of the Raku codebase. Also sad.
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.
Daughter seriously puzzled why one would create a programming language in which "almost spaces" are used to block statements. Apparently she experienced the #python FAFO during the coding class at middle school. I have no problem with this, after all #UDoU , but she is asking about #Java (introduced during the remote coding class during the first 2 years of the pandemic) & #javascript now. And this is NOT NORMAL OR OK.