Mite: an OO compiler for Perl
Moose is great, but it does introduce a slight performance hit to your code. In the more than 15 years since it was first released, hardware improvements have made this less of a problem than it once was. Even…
Moose is great, but it does introduce a slight performance hit to your code. In the more than 15 years since it was first released, hardware improvements have made this less of a problem than it once was. Even…
Recently ordered a new Lenovo IdeaPad 3i laptop. Twice as much disk space as my old laptop. 50% more memory. 4 cm bigger screen. WiFi 6. Fuller keyboard. Paid extra for a backlit keyboard as I loved that in my old laptop. Uses the same charger as my old one, which I already had two … Continued
So my email client has been giving me warnings for a few weeks about my mail server’s certificate having expired. I trust the server, so I assumed something had gone wrong with certbot and the renewal process hadn’t worked. I put fixing it on my todo list. Today I finally got a chance to look … Continued
Age is a spectrum. People don’t divide up into little boxes like that. Someone at the end of the “green box” in the diagram above, probably has more shared experiences in common with someone at the start of the “orange box” than they do in common with someone at the start of the “green box”. … Continued
Seems I’m late to the party and it was released about two weeks ago. I’ve already been using the betas for a while though. Switching from using l/r (left/right) to s/e (start/end) for all the margin and padding utilities was a somewhat painful change. Bootstrap 4 → 5 Compatibility Shim I created this SCSS file … Continued
So I had the first dose of the Oxford/AstraZeneca COVID-19 vaccination on Tuesday. No noticeable side-effects apart from a slight bruise-like pain at the injection site. I’ve had a cold (mild tonsillitis?) since Monday though which could have masked other side-effects.
The lighting in my bedroom uses Philips Hue bulbs — specifically, the coloured ones. Last night, I decided it would be nice to set the three lights in my bedroom to cycle slowly through a set of warm colours using…
Happy New Year! Now it’s 2021, and all our .EU domain names can stop working. The only one I own is tmpdir.eu and I only use it as a placeholder domain name when I’m working on a new website. There’s a couple of in-progress websites and a staging site or two that will be affected … Continued
Recently I’ve mostly been using Understrap as a theme for WordPress, however the Understrap GitHub repository has shown a disturbing lack of maintenance for the last year or so. With Bootstrap 5 on the horizon, and WordPress and PHP constantly moving forward, I don’t want to be stuck in a potential development dead-end using Understrap. … Continued
I’ve previously blogged about creating keyboard shortcuts in WordPress. Now I’ve bundled that up into a plugin. It’s available on GitHub. https://github.com/tobyink/php-wp-ctrl-semicolon
For letting me know my test coverage has increased by 0.00006%. (Seriously it’s a pretty cool service though.)…
I don’t usually take part in the Perl Weekly Challenge but one of this week’s challenges caught my eye. I thought it could be a fun thing to attempt and decided to use Zydeco to help solve it. The problem…
In algebra, there’s this pretty funky concept: And I was thinking if $f and $g were coderefs, what could $f + $g be?…
Usually when I blog about programming, it’s Perl stuff, but here’s something that’s mostly Javascript (with a little PHP to act as a shim for WordPress). It’s a script to use Tempus Dominus as a date/time picker for HTML 5 date and time form inputs on Bootstrap/jQuery-based sites. It lets you do stuff like this: … Continued
Today I released Zydeco::Lite, a re-implementation of Zydeco but just using standard Perl syntax. So for example, class { … } becomes class(sub { …});. This has the advantage of much faster compile time, similar run time speed, fewer dependencies,…
So I like to keep local copies of my blogs.perl.org blog posts as Atom entries, but noticed yesterday that I had a few gaps in my collection. The Atom feeds offered by blogs.perl.org only have the most recent articles though,…
Prompted by a recent question on PerlMonks, I’ve been thinking a bit recently on marshalling and unmarshalling Perl objects. If you’re happy using Data::Dumper’s format, then it’s trivial, but today we’re looking at JSON. If you just want to encode…
Mom is a shortcut for creating Moo classes (and roles). It allows you to define a Moo class with the brevity of Class::Tiny. (In fact, Mom is even briefer.) A simple example:…
Overall, I think the Perl 7 announcement is great news. I only have one small objection:…
I was recently shown this puzzle: There are some things I found a little unclear about it. For example, should the following two circles count as being connected? There is a line between them, even if it’s interrupted by a circle. And what about these two circles? Are they connected? Again, there’s a diagonal line … Continued