Ævar Arnfjörð Bjarmason
- About: Blogging about anything Perl-related I get up to.
Recent Actions
-
Commented on Perl 5.19.x performance improvements
Thanks a lot for working on this. It's not clear from your post if the first optimization only applies to variables being tested by and/or operators, would it apply as well to e.g. (x() && y()) (although obviously there would...
-
Posted I've uploaded a major release of Constant::Export::Lazy to Ævar Arnfjörð Bjarmason
I created Constant::Export::Lazy a while ago to consolidate the main constant exporting module at work into something even better. I've just uploaded
-
Posted I would like to buy a Hailo to Ævar Arnfjörð Bjarmason
Myself and the other author of Hailo just got what looks to be very odd spam asking us whether someone could buy a copy of Hailo.
Here's an E-Mail that was sent to Hinrik:
I want to buy a Marklov pluggable …
-
Commented on Beginning Perl (Wrox) is now released
Fantastic, any idea if there will be a Kindle edition?...
-
Commented on New coding style?
I have a standup desk at my work, been using it for about a year (and I used one at the job before that). On any given day I'll spend some time sitting down and some time standing up, alternating...
-
Posted My blogs.perl.org profile image is now some other dude to Ævar Arnfjörð Bjarmason
I just filed a bug about my profile image being replaced by that of some other user on the site. I wonder if anyone else had had this issue.
-
Posted Tweaking what Moose does when a type constraint fails to Ævar Arnfjörð Bjarmason
Back when Curtis Poe was at Booking.com we were in the the first team to use Moose (actually Mouse at the time) for anything serious. While it saved us a lot of time overall that we'd otherwise have spend on writing boilerplate code we found the Moose support for type constraints to be fairly…
-
Commented on Why is this "use" a syntax error?
Normally .96 is parsed exactly the same as 0.96. But you're right that the reason it's like this is because the "use" statement accepts a more restrictive "version number", not any number that would otherwise in Perl map to a...
-
Commented on Why is this "use" a syntax error?
Update: I was right, check out S_tokenize_use() and S_force_version() in toke.c. They do their own manual numeric parsing....
-
Commented on Why is this "use" a syntax error?
I haven't looked at the parser yet, but what's almost certainly going on here is that the parser/tokenizer for the use statement has a mini ad-hoc parser to figure out whether the first parameter is a version number, and that...
- Posted qr/STRING/msixpodual or qr/STRING/mixuploads ? to Ævar Arnfjörð Bjarmason
-
Commented on Show Perl subname in vim statusline
In Emacs this is: M-x which-function-mode Which you can automatically load with a mode hook. It'll work with any programming mode that supports Imenu. Which is almost all of them....
-
Commented on Remove a Git Tag From Github When There is Also a Branch of the Same Name
To decipher some of the alchemy, the reason *why* this works is that git push takes the arguments: git push [options] <repository> <refspec> E.g. you can do: git checkout some-branch git push origin some-other-branch:yet-another-name To push your local some-other-branch to...
-
Commented on Moving to Amsterdam to work for Booking.com
"avar" :)...
-
Commented on Moving to Amsterdam to work for Booking.com
Thanks, and Todd Rinaldo has a much better chance at fixing RT #62083 than I do. He's been doing all the actual development on YAML::Syck recently. I just did some small bugfixes....
-
Posted Moving to Amsterdam to work for Booking.com to Ævar Arnfjörð Bjarmason
I thought I'd note here too as well as on my blog that I'll be moving to Amsterdam tomorrow to work for Booking.com. I'm looking forward to the new challenges and getting settled in a new city,…
-
Commented on
We could always make the best of it and turn this into a free-form discussion thread. (Perhaps your draft post had some funny HTML in it, I've seen MT break horribly with that)...
-
Commented on The CPAN client version-less dependency problem
The problem I'm describing has to do with people (including myself) who simply can't be bothered to supply at least "you need at least version X". Because doing so involves a lot more work than just coding up something that...
-
Posted The CPAN client version-less dependency problem to Ævar Arnfjörð Bjarmason
An interesting topic came up on
#distzilla
. Most modules depend on other modules, but some don't depend on an explicit version. So if you use the module with an ancient version of one of its dependencies it'll break, because the author never tested that… -
Commented on Why you should scrape HTML with regexes
You're right, when you add URI decoding into the mix Web::Scraper is much easier, actually it's easier even if you don't do that. I'll probably just use Web::Scraper instead of regexes now, even if I know the regexes work and...
-
Commented on Testing on demand on IRIX
What module is it and where's the failure report? Maybe people that don't have IRIX can help you out by going over your code and spotting something unportable that you've which might be tripping up IRIX and other systems....
-
Commented on Perl vs PHP (a bit of credit to PHP)
You should use mb_strlen($str, "utf-8"); if you want multibyte support....
-
Commented on qw() in list context deprecated
Here it is. This is a cleanup of the parser. E.g. you can't do for my $i q[foo] { say $i }, but you can do for my $i qw[foo] { say $i }. But the latter now warns, and...
-
Commented on Switching to Dist::Zilla - a usage report
Yes, that documentation should be on the CPAN, not just on the website. This has been pointed out a lot, and I think rjbs has some plan to move it there. In general the docs are confusing, at least they...
-
Commented on iCPAN: Now Bigger, Faster and with Syntax Highlighting
The #1 thing you're doing right that search.cpan.org isn't: Open Source....
-
Commented on Switching to Dist::Zilla - a usage report
You can't build and test without @Basic because Dist::Zilla is highly pluggable and does pretty much *nothing* by default. The basic plugin does things like gathering files in your directory, including MakeMaker etc. These things are required for having any...
-
Commented on Begin at the BEGIN and go on till you come to the END: then stop.
Playing with this I found that GitHub didn't highlight CHECK and INIT blocks. So I patched it....
- Posted Let's add Git userdiff defaults for Perl and Perl 6 to Ævar Arnfjörð Bjarmason
-
Commented on Memcached to the rescue
Why not use CHI::Driver::Memcached? That'd give you Memcached while using a general cache interface, which makes it easy to switch to different backends later, or for testing....
-
Commented on Modules and commands with same name
Well, have you filed a bug with perlbug(1) If HFS+ keeps case info like you say it shouldn't be that hard to do the right thing here. Perl 5`s Git is this way...
Comment Threads
-
Ovid commented on
Beginning Perl (Wrox) is now released
Duncan, thanks for the report. It looks like I'm going to have to try and write something up to fix that for the errata. Damn!
-
stu42j commented on
Perl 5.19.x performance improvements
Can you explain the "return at end of sub" thing a bit more? Why would an explicit return have more ops?
-
Andrew Rodland commented on
Perl 5.19.x performance improvements
"return" is a control flow operation, it has to arrange to *leave* the sub from wherever it is. That's additional work compared to just leaving a value on the stack.
-
Matthew Horsfall (alh) commented on
Perl 5.19.x performance improvements
Alright, I'll update the blog post when I get a chance and write another more detailed explanation of the changes.
Thanks.
-- Matthew Horsfall (alh)
-
Matthew Horsfall (alh) commented on
Perl 5.19.x performance improvements
Ævar/stu42j, I'll cover those when I write the other posts.
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.