Docendo discimus

$self->explain

  • Calendar

    November 2017
    M T W T F S S
    « Sep    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • Archives

  • Recent Posts

  • Bling

Archive for the ‘Perl’ Category

YAPC::EU 2011 in Riga

Posted by brunorc on September 10, 2011

It’s almost one month after the conference… but anyway.

I liked everything, to start with Riga itself – it’s really beautiful and green city – the venue (although the contrast between the main auditory and other rooms was big) and the food, ending on the conference and its atmosphere and content. Since I went to give my MIDI related talk, I was lucky enough to participate in the Speakers’ Workshop by Damian Conway & Alex Kapranov. It definitely helped me to improve my presentation and the talk itself.

There is a lot of new stuff happening in the Perl Community – the language constantly evolves and a lot of new ideas from Perl 6 are backported to Perl 5, what I really like. What I don’t like, though, is that some people are actively dissing Perl 6 as “completely different language, not Perl”. That’s not the disadvantage by itself; moreover, Perl community constantly borrow (steal?) ideas from other languages – some talks in Riga were good example of this, presenting cute ideas taken from Lisp and Haskell.

I can understand that Perl 6 may not appeal to some users of Perl 5. What I cannot understand, is that some notable members of Perl community spend their time & effort on explaining, why Perl 6 is not what should be called “the next step in the evolution of Perl 5” and by no means can be attached to the name of Perl. This actually harms the progress of all the work around Perl 6, slowing it down and bittering it needlessly.

However, in Riga yet again we were able to see that Perl 6 has no choice after Duke Nukem Forever was released… there were many talks about what can be already done in Perl 6, and what will be possible once it gets finished. To be fair I have to admit that the presentation from Jesse Vincent about Perl 5.16 also brought many new ideas (like differently “tailored” releases of next versions of Perl 5 and the backward compatibility controlled by use VERSION – to name a few).

I also met my friends from Poland and from Spain, and – what was a huge surprise for me – one of them decided to apply for job at Booking.com; few days ago he informed me, that he was accepted. Good luck, Quim!

And last but not least – I was able to spend a lot of time with some completely crazy Perl folks from the whole world. I will remember the party at the balcony of Getty’s room for a long time…

Update: An article from Jesse Vincent “5.16 and beyond” – also just look at the second comment. *sigh*

Advertisements

Posted in Perl, Perl 6 | Tagged: , , , , | 1 Comment »

Perl & MIDI

Posted by brunorc on August 10, 2011

I thought it will never happen, but finally there is – the first post filed under both MIDI and Perl categories. This is the convergence of two threads that were running through this blog.

Right now it’s only an announcement, that after all those problems I found a way to connect my MIDI equipment to the Perl code. And I’m not talking about processing MIDI files with Perl and then sending them to my synths. I’m able to process what I play – and with process I mean filtering, transposing, multiplying and triggering arpeggios. I’ll be presenting a talk about this on YAPC::EU in Riga, so I’m not going to reveal all the aces hidden upon my sleeves yet ;-)

Thanks to ALSA and MIDI::ALSA module I can access my eMagic Unitor8 from Perl running on Linux. Even if I have two Unitors stacked together, ALSA sees only one; even if I can record from all eight inputs of my Unitor8, I can send to only one. But it still leaves me 16 MIDI channels and plenty of possibilities.

At the moment my code is very crappy – no modules (thus no API), just scripts that do stuff. After reaching some reasonable level of functionality I’m going to stop, clean it up and release some initial version on CPAN. My goal is to approach the idea of Zyklus, but we will see… Stay tuned!

Posted in MIDI, Music, Perl | Tagged: , , , , | 2 Comments »

Perl 6 – “shift @features”

Posted by brunorc on August 15, 2010

One thing I always liked in Perl was its flexibility and patience. While it may be difficult to start programming in Java without understanding the concepts of objects – or to start programming in C without the firm grasp of memory allocation – in case of Perl it’s enough to know how to use split, print and basic arithmetic operators, to be able to start writing useful programs. One can always reach for more, as Perl is able to provide the programmer with a lot of features.

That was true for Perl 5, and luckily it didn’t change with Perl 6 in regard to patience. What definitely changed, was the number of those features. Even when Rakudo Star is more a proof of concept and some features may not be implemented yet, it is a sheer joy to discover new aspects of this language (yes, some are already known to the users of other languages, but great artists steal, right?).

So, what will we get? Among many other things:

  • strong typing
  • function signatures
  • method overloading
  • new object model with roles and traits
  • grammars
  • new model of concurrency

The list is quite long and there will be a lot of items to shift from it. I’m really excited about strong typing, which along with function signatures makes it possible to overload the methods. Which I’m going to write about in the next post ;-)

Posted in Perl, Perl 6 | Tagged: , , , | Leave a Comment »