Actions from Paul "LeoNerd" EvansMovable Type Pro 4.382016-07-06T12:40:04Zhttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=feed&_type=actions&blog_id=0&id=1273Commented on Perl 5 Porters Mailing List Summary: June 30th - July 5th in Sawyer Xtag:blogs.perl.org,2016:/users/sawyer_x//87.7568#17155592016-07-06T10:40:04ZPaul "LeoNerd" Evans
It's coroutine support effectively, yes. Coroutines organised by the use of Futures; in much the way that a lot of other languages, both static and dynamic, seem to be doing lately.

But it's not going in core, no. At least, not initially.

If it goes into core, then even if right now today I had the code 100% ready and working, it would make it into 5.25.something, and the first real release you could use it with would be 5.26.

No, I'm building this initially as an XS module to live on CPAN. With any luck I'll be able to implement it entirely with the custom keyword features added in 5.16, meaning you could install and then use it on any perl as far back as 5.16. This therefore makes it much more useful; as it means it can work just fine on existing perl installs from today, last year,.. even four years ago.

]]>
Commented on P6SGI: More of a Journey than a Destination in Sterling Hanenkamptag:blogs.perl.org,2015:/users/sterling_hanenkamp//444.7062#16169912015-09-28T19:35:48ZPaul "LeoNerd" Evans
Ooh that's looking much better now than last time we spoke :) Nice work.

I wonder to what extent any of these things can be backported back to Perl 5, to allow P(5)SGI to handle the things you're newly adding to P6SGI.

]]>
Commented on P6SGI: Smack the Reference Implementation in Sterling Hanenkamptag:blogs.perl.org,2015:/users/sterling_hanenkamp//444.7035#16145502015-09-10T09:32:06ZPaul "LeoNerd" Evans
Please make sure not to forget all the async cornercases that Perl5's PSGI can't cope with currently. :)]]>
Commented on Logically And Yourself (&&=) in JT Smithtag:blogs.perl.org,2014:/users/jt_smith//242.6416#14202852014-09-22T11:54:45ZPaul "LeoNerd" Evans
Consider also `List::Util::all` or `::any`, which have similar shortcircuiting logic in them]]>
Commented on vec is slow, little-endian and limited in Reini Urbantag:blogs.perl.org,2014:/users/rurban//39.6273#14136312014-08-07T14:07:18ZPaul "LeoNerd" Evans
I've never actually found a use-case for vec() to do anything other than maintaining the bitvectors for a select() system call.]]>
Commented on Metabase down? in gvltag:blogs.perl.org,2014:/users/gvl//2144.6205#14121022014-07-09T10:28:09ZPaul "LeoNerd" Evans
Are you using IO::Socket::IP 0.30?

]]>
Commented on mop problem 4 - mop is misleading name in Yuki Kimoto Perl Blogtag:blogs.perl.org,2014:/users/yuki_kimoto//2020.6150#14084442014-06-24T12:36:59ZPaul "LeoNerd" Evans
I have often thought about making a truely first-class "CLASS" type in Perl, references to which are returned by the ref() operator on "normal" objects.

foreach my $mth ( ref($self)->methods ) {
...
}

e.g..

Or failing that, we steal some new syntax out of Perl6 - the meta ear maybe?

foreach my $mth ( $self^->methods ) {
...
}

]]>
Commented on Math::Prime::Util, May update in Dana Jacobsentag:blogs.perl.org,2014:/users/dana_jacobsen//935.6025#13874852014-05-20T13:04:44ZPaul "LeoNerd" Evans
Ooh, I wasn't aware of the trouble of using List::Util::sum like that. Can you report it as a bug and I'll take a look into fixing it.]]>
Commented on Detecting JSON/YAML/Perl/CSV/TSV/LTSV in Of course I still use Perltag:blogs.perl.org,2014:/users/steven_haryanto//197.5957#13641832014-04-29T19:39:38ZPaul "LeoNerd" Evans
You may want to take a two-step approach of first rejecting the guaranteed negatives, then taking the remaining set and piecewise comparing, of the given remaining formats it might be, find a test that would suggest which it is more likely to be.]]>
Commented on Python's decorators in Perl in Piotr Roszatyckitag:blogs.perl.org,2014:/users/piotr_roszatycki//535.5867#13407712014-03-29T22:50:26ZPaul "LeoNerd" Evans
Or you could use an attribute

sub p :bold :div_id("testid") {
my ($str) = @_;
return "

$str

";
}

Attributes can modify the code in-place, and replace it with a wrapped version

]]>
Commented on Inheritance is Bad: Code Reuse Part I in Sid Burntag:blogs.perl.org,2014:/users/sid_burn//2333.5842#13372902014-03-23T18:54:11ZPaul "LeoNerd" Evans
Your comparison with IO::Seekable as a role is somewhat of a red herring here.

The IO::Seekable class exists, not because it's a sensible split in code structure, but purely for social reasons, as it was easier to create a new class than to try to get the seeking methods into IO::Handle itself, where they really ought to live.

It's a historical anomaly that exists because of spurious human reasons, not technical design ones.

]]>
Commented on Extracting values from a list of (key, value) pairs in Diab Jeriustag:blogs.perl.org,2014:/users/diab_jerius//956.5750#13284422014-03-06T02:03:39ZPaul "LeoNerd" Evans
It's nice to see that pairkeys() is fastest there. As I'd hope it would be, because it's written in XS. It's available on CPAN for current perls and will be in 5.20, so it should be available to anyone other than those needing to remain pure-perl on pre-5.20.]]>
Commented on Getting a progress report from a running program in Of course I still use Perltag:blogs.perl.org,2014:/users/steven_haryanto//197.5695#13237522014-02-21T15:02:30ZPaul "LeoNerd" Evans
I often use SIGQUIT for this purpose, because by default it's even bound to a key on the terminal - Ctrl-\. This means you can send it to a foreground process without having to kill or pkill from another terminal.]]>
Commented on Things we don't have #2 in Of course I still use Perltag:blogs.perl.org,2014:/users/steven_haryanto//197.5680#13232362014-02-20T19:09:13ZPaul "LeoNerd" Evans
Given the existence of Net::Async::HTTP, Net::Async::FTP, Net::Async::IMAP::Client, etc.. it should be fairly easily possible to write a universal URL-driven async fetching wrapper, similar to the idea that LWP has of a centralised controller with handlers for various URL schemes.

In principle this is fairly easy to write, just needs someone to actually write it.

Ohyes, and pick the name. That's the most important bit. ;)

]]>
Commented on Great Mystic Mystery Revealed in byterocktag:blogs.perl.org,2014:/users/byterock//2165.5513#13084392014-01-10T00:55:20ZPaul "LeoNerd" Evans
It was originally a quick, a limit of the parser used to pull out the package names. But so many people have now relied on it, that it's become a feature that won't be fixed.]]>