user-pic

Pawel bbkr Pabian

  • Commented on 6lang: The Naming Discussion Update
    Slang is a term for describing informal language used in some environment because it is NOT easily understandable by common people. And because of prison slang this term still means 'the vocabulary of "low or disreputable" people' (Wikipedia quote). That's...
  • Commented on Writing Declarative Perl
    Personally I find declarative programming very obfuscated for two reasons: Call to attempt() is outside Steps(). That is the very core of declarative programming - to separate process definition from its execution. But this leads to: Unclear SUCCESS/FAILURE triggering. "If...
  • Commented on Dependency phases in CPAN distribution metadata
    Excellent article! Can you briefly describe how do you package Perl 5 ecosystem for _production_ environment? In my case it goes like this: 1. Build Perl itself. Holy cow, 55MB! Worst bundle ever for slim Docker containers, because it throws...
  • Posted Your own template engine in 4 flavors. With Benchmarks! to Pawel bbkr Pabian

    This time on blog I'll show you how to write your own template engine - with syntax and behavior tailored for your needs. And we'll do it in four different ways to analyze pros and cons of each approach as well as code speed and complexity. Our sample task for today is to compose password…

  • Commented on Else Clauses on Loops
    for (@x) { last } else { ... } say 123; It has too much "goto" smell for my taste, where inner block flow control can jump over outer scope block. Also "else" is a boolean word. And this...
  • Posted Let the fake times roll... to Pawel bbkr Pabian

    In my $dayjob at GetResponse I have to deal constantly with time dependent features. For example this email marketing platform allows you to use something called 'Time Travel', which is sending messages to your contacts at desired hour in their time…

  • Commented on FASTA splitter
    My mistake, should be: $out.print('>', $_); for @seqs;...
  • Commented on FASTA splitter
    Thanks for sharing your knowledge. I've learned about $*SPEC from your post :) I'm not FASTA expert, but my approach would be to use ">" as input separator instead of "\n". And then simply push 100 lines (=sequences) into each...
  • Posted Oh column, where art thou? to Pawel bbkr Pabian

    When ramiroencinas added FileSystem::Capacity::VolumesInfo to Perl 6 ecosystem I've spotted that it has no macOS support. And while trying to contribute to this module I've…

  • Commented on Cleaning up the IDs in a FASTA file
    Does split produce lazy list in Perl 6? split('|')[1] Will it read all fields in memory or just stop after finding second? BTW: How did you start your career in bioinformatics? Was your primary education biology/genetics and you used Perl...
  • Commented on Base conversion
    For Perl 6 you can use https://github.com/bbkr/TinyID/blob/master/README.md to convert to any base using provided alphabet....
  • Posted Comprehensive guide and tools to split monolithic database into shards using Perl to Pawel bbkr Pabian

    You can find the most recent version of this tutorial here.

    Intro

    When you suddenly get this brilliant idea, the revolutionary game-changer, all you want to do is to immediately hack some proof of concept to start small project flame f…

  • Commented on Brutally Solving a Logic Puzzle with Perl 6
    I got some weird results when using multiple cores. Your code ran on my machine in 4 minutes 43 seconds. I've added slight modification: for @primes.combinations(4).race() { check(|$_) for |.permutations; } And it ran on 4 cores (default parallelism degree)...
  • Commented on Perl 6: Comb It!
    Maybe Hash assignment can detect Match object and flatten it to preserve my %things = $text =~ m:g/(key)...(value)/; idiom? It is too useful to be removed....
  • Posted Running mixed Perl 5 and Perl 6 tests. to Pawel bbkr Pabian

    Those two tricks are especially useful when refactoring big codebase from Perl 5 to Perl 6. Such process may take weeks or even a months, and you will encounter two cases:
    1. Some features are still in Perl 5, some are fully refactored to Perl 6. So you want to

  • Commented on Concurrency Weirdness
    Liz: that is expected, quote from mkfifo manpage: "Opening a FIFO for reading normally blocks until some other process opens the same FIFO for writing, and vice versa."...
  • Commented on Asynchronous, parallel and... dead. My Perl 6 daily bread.
    cdc on #perl6 wrote that: "I think you wouldn't exhaust the thread pool if you move the start block after the recursive call" It also looked like the obvious solution for me and I've tried this at first. But running...
  • Posted Asynchronous, parallel and... dead. My Perl 6 daily bread. to Pawel bbkr Pabian

    I love Perl 6 asynchronous features. They are so easy to use and can give instant boost by changing few lines of code that I got addicted to them. I became asynchronous junkie. And finally overdosed. Here is my story...

    I was processing a document that was divided into chapters, sub-chapte…

  • Posted Perl 6 meets JSON-RPC to Pawel bbkr Pabian

    But he forgot one thing - that cats own the Internet and they want to browse and reserve rooms online!
    I will pick up where he left off and show you…

Subscribe to feed Recent Actions from Pawel bbkr Pabian

Subscribe to feed Responses to Comments from Pawel bbkr Pabian

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.