user-pic

Salvador Fandiño

  • About: yaph
  • Posted Help me test Net::SSH2 to Salvador Fandino

    Short story

    I have released a new development version of Net::SSH2.

    Help me test it, please!

    Really long story

    Some years ago, I started working on

  • Commented on PDL features I'd like to see in Perl 6
    In my perfect world, you don't need autoloop at all. The compiler should be able to infer the dimmensions mismatch and do the autoloop itself, and on the way, use multiple CPUs when available and vectorization extensions efficiently....
  • Commented on YAPC::EU 2015 from 2nd to 4th September
    In my case, I can seldom attend YAPC::Europe because of it happening during my kids holidays (that BTW, in Spain last until mid September!)...
  • Posted Granada Perl Workshop to Salvador Fandino

    Less than three weeks remain for the Granada Perl Workshop that will take place on the Friday 27th of June in Granada (Spain).

    The good news is that, thanks to our sponsors, finally, th…

  • Commented on On Giving Back
    Hi Alex, I really like and applaud your module-of-the-month initiative. I just hope more companies take you as an example and start doing the same!...
  • Commented on On Giving Back
    It is not my intention to get anybody to pay me, I was just using me as an example. My point is that if some company, uses somebody module and they help that somebody to get work done on that...
  • Posted On Giving Back to Salvador Fandino

    A few days ago I published Math::Vector::Real::Farthest, my 100th CPAN module. I got into CPAN in 1999 so it has been a long, mostly quiet, way.

    Some modules were a side effect of my paid work, done while contracting or, l…

  • Commented on Smoke testing on Windows
    AFAIK, Net::SFTP::Foreign, Net::SSH2 and Net::SSH::Any work on Windows....
  • Posted Finding my computer to Salvador Fandino

    A couple of days ago I replaced my computer at work with a new one. This morning, working from home, when I tried to log in, it didn't respond.

    I realized promptly that I had forgotten to ask the sys admin to update the MAC address on the DHCP server and so it just got some random IP from …

  • Commented on p5-MOP gets p6 style traits (sorta)
    The idea is that the "argument" to the trait actually points to an in-scope subroutine I would expect it to result in some metaclass method being called....
  • Commented on Perl 7 - Final Thoughts
    Pe(a)rl++ == Rhodochrosite Though, I would be more worried about who is going to make the successor of Perl 5 a reality than about its name!...
  • Commented on Perl 5, Perl 6, Perl 7, Perl 2013, whatever
    Ricardo, thank you for your detailed and thoughtful answer....
  • Commented on Perl 5, Perl 6, Perl 7, Perl 2013, whatever
    Ricardo, sorry if I didn't make it clear, but that sentence was mostly a joke. Well, just lets blame my limited English skills for that. In any case, now that you are here, and seeing all the people worried about...
  • Posted Perl 5, Perl 6, Perl 7, Perl 2013, whatever to Salvador Fandino

    It seems people outside our community sees Perl as an stalled language because we have not released a new mayor version for so many years. We have to do something to show them they are wrong, right?

    Well, no, maybe the problem is ours, unable to see what we don't want to see: They are righ…

  • Commented on Subroutine Signatures - my Plan (v.1)
    You are doing language design, this is not something that can start simple and then grow. It just doesn't work that way. You have to plan the the new feature on the whole, consider all the things you want to...
  • Commented on On CPAN Namespaces: Urban Namespace Planning
    I have never used Math::GSL, but know enough about SWIG* to know that writing good Perl modules using it is almost impossible. So, IMO, the GSL namespace should be untouched just in case somebody volunteers to make a full wrapper...
  • Posted Solving Carl Mäsak's "Counting t4 configurations" problem... in pure Perl 5 to Salvador Fandino

    The problem: Counting t4 configurations

    The solution:

    $ time perl t4.pl 
    total: 4783154184978
    
    real    0m0.185s
    user    0m0.176s
    sys     0m0.00…
  • Posted My English stinks, thank you for patching it! to Salvador Fandino

    As a non native English speaker, writing good documentation is a hard task for me and often grammatical and spelling errors slip into my modules pod causing me great embarrassment.

    I could use the spell checker more often*, but writing documentation is already a time consuming task, no fu…

  • Commented on A localizable interface to `select`
    FileHandle::Select...
  • Commented on What do we, Perl programmers, want?
    An almost complete and fast Perl 6 implementation....
  • Commented on The life and death (well, deprecation) of a wrapper module
    The idea about adding an autodie mode to Net::SFTP::Foreign had being in my mind for a long time, probably since soon after I attended Paul Fenwick talk about autodie at some YAPC::Europe (Lisbon 2009?), but my dislike for overbloating the...
  • Commented on Perl, Perl 5, Perl 6, and names
    Alberto, sorry, mi post was not really a direct reply to your post but mostly a dump of my thoughts after reading it. Probably centered around this thing about dropping the 5 and calling the next perl "Perl 16". That...
  • Commented on Perl, Perl 5, Perl 6, and names
    Maybe you don't like how Perl 6 has ended, but the reasons behind its inception are still valid. Quoting from the Perl wiki: At that time, the primary goals were to remove "historical warts" from the language; "easy things should...
  • Commented on Moose and Fatal Type Constraints
    Being less strict validating input in production that in testing is a very bad idea as it would cause your code to take untested paths! If you want to be permissive with the inputs from your providers, be so also...
  • Commented on Failing your way to success with A/B Testing
    Then, there is the time variable. The initial response from your users may not be the same as the response you could get after months or years of usage. For how long are you able to run A/B testing (or...
  • Commented on Suprisingly hard task of writing logs
    Don't wait forever, just a little bit!...
  • Commented on Suprisingly hard task of writing logs
    When the reader finds that some byte in the file is zero it should (busy) wait until it becomes non zero....
  • Commented on Suprisingly hard task of writing logs
    then replace the zeros by "\n" when the reserved space is not big enough: my $zeros = "\x00" x length $line; while (1) { my $bytes = syswrite $afh, $zeros; last if $bytes == length $line; if($bytes > 0) {...
  • Commented on Suprisingly hard task of writing logs
    oops, in my previous comment code, a s/seek/sysseek/g is required!...
  • Commented on Suprisingly hard task of writing logs
    A simple way to solve your problem without locks: open my $afh, '>>', $log_filename; open my $wfh, '>' , $log_filename; then, in order to write a line $line: my $zeros = "\x00" x length $line; 1 while (syswrite $afh, $zeros...
Subscribe to feed Recent Actions from Salvador Fandiño

  • 4fd0b91c-25fb-4682-8bfc-d986492c26cf [openid.stackexchange.com] commented on PDL features I'd like to see in Perl 6
    If you happen to assign to such a slice, you can overwrite the values.
    That's not exactly true:
    
    @data  = ('a' .. 'l');
    @slice = @data[2, 3, 5, 7, 11];
    print "@slice\n";
    $_++ for @slice;
    print "@slice\n@data <-- no change!\n";
    
  • David Mertens commented on PDL features I'd like to see in Perl 6

    @Salvador, I have written quite a bit of autolooping code for PDL using PDL::PP. While I agree that it might be nice for the compiler to automatically figure things out, I have seen many circumstances in which the autolooping behavior is ambiguous, and I needed some way to specify how to autoloop.

    As for the unnamed person talking about assigning to slices, you identify exactly what I want in Perl 6, but not what I meant we have in Perl 5. I was talking about using the slice itself as an lvalue, i.e.

    @data = ('a' .. 'l');
    # Assigning directly to the slice overwrites:
    @data…
  • 6ae7ba33-d12b-49cf-89f9-34434fe68707 [openid.stackexchange.com] commented on PDL features I'd like to see in Perl 6

    smls here. (Using stackexchange OpenID since logging in normally is borked right now for me.)

    Type checks against array dimensions/sizes

    This seems to be firmly planned, but not yet implemented:

    ➜ perl6 -e 'sub foo (@a($x, $y)) { ... };'
    ===SORRY!=== Error while compiling -e
    Shape declaration with () is reserved
    ...
    

    Aliasing slices

    The following already works in Perl 6 right now (with Rakudo on MoarVM):

    
    my int @a = 2, 4, 6, 8; # create a compact native array
    my @b := @a[1, 3];      # take a slice, and bind …
  • Aristotle commented on PDL features I'd like to see in Perl 6

    I think the new refaliasing feature (experimental in 5.22) will allow you to alias slices like so:

    \( @slice[ 0 .. 4 ] ) = \( @data[ 2, 3, 5, 7, 11 ] );

    Obviously it’s ugly to have to count out the LHS slice by hand:

    \( @slice[ 0 .. $#$_ ] ) = \( @data[ @$_ ] )
        for [2, 3, 5, 7, 11];

    That’s quite a mouthful, but at least you can package it up in a function:

    sub alias_slice {
        my ( $src, @dst ) = shift;
        \( @dst[ 0 .. $#_ ] ) = \( @$src[ @_ ] );
        \@dst;
    }
    
    

    \my @slice = al…

  • therflabs commented on PDL features I'd like to see in Perl 6

    Call me crazy, but I had a freelance gig converting Python numpy/scipy to Perl PDL... And barely knowing Python it was a lot easier to understand than PDL.

    I can see why numpy/scipy has gained a lot of traction.

    I'd like to see P6 PDL to be like numpy/scipy to ease crossover to Perl 6 and lower the entry level for beginners. In my opinion usability and clear documentation for the non-math scholar has hurt what PDL could have been and could be a lesson for PDL Perl 6.

Subscribe to feed Responses to Comments from Salvador Fandiño

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.