Pawel bbkr Pabian
Recent Actions
-
Commented on Perl Subroutine Signatures Opinion Blog
"Why we want subroutine signatures?" Because I'm lazy. I don't want to write separate instruction for args unpacking. I don't want to manually check for mandatory params presence. I don't want to implement named params validation. I need multi subs...
-
Commented on Cor - A proposal for core Perl OO
Who will have lazy attributes built into the core first? Raku or Perl? The race is on! As for the syntax - please, please drop this Moose-ish fat arrow abuse. It does not construct proper Pair object like in Raku...
-
Commented on Swiss Perl Workshop - Post Event & Future
I'd like to thank you for organization and all the effort you put to make this workshop happen. As for the future, here's my opinion: Length: No one will take the effort to travel to remote location for single day...
-
Commented on Perl 6 Colonpairoscopy
I consider colonpairs in method arguments THE BEST feature of Perl 6, hands down. It makes large codebase very consistent because it promotes genuine laziness when choosing variable names. Consider common P5ism like: my $name = 'John'; ... sub authenticate...
-
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…
Comment Threads
-
Dirk Deimeke commented on
Swiss Perl Workshop - Post Event & Future
In my opinion the (Swiss) Perl Workshop is about meeting people sharing the same mindset and sometimes very special sense of humour.
Having interesting talks and workshops is a perfect bonus.
So, it could be an option to search for a conference and ask the organizers for having a Perl/Raku Track.
This is how it works with dev rooms at FOSDEM.
-
domm commented on
Swiss Perl Workshop - Post Event & Future
One benefit of local / small events compared to big events is that they can and should be in the local language.
I know that this is a bit more complex in e.g. Switzerland than in e.g. Austria, but it is so much easier for especially new speakers to speak in their native language.
-
laurent_r commented on
Perl Subroutine Signatures Opinion Blog
Hi Yuki, I agree with you. When I started to use Perl, that must be 17 or 18 years ago, I found that using @_ or @ARGV was just fine.
And when subroutine signatures were introduced, I really didn't care that much about them. But having used Perl 6 (now known as Raku) for quite a few years by now, I realized how useful subroutine signatures can be. Sometimes, a subroutine will not even need to have a body, as the signature will do everything that you need. Now, of course, Raku (or P6) is much more type-oriented than P5, so that useful signatures are more difficult to implement in P5. …
-
Yuki Kimoto commented on
Perl Subroutine Signatures Opinion Blog
Because I'm lazy.
OK!
If I and you are lazy, we don't want to learn a lot of syntax.
It would be nice to add a grammar that is just the right size for convenience and less learning.
And
Perl have a history and Perl users on Unix/Linux and Text Processing have long convention.
I hope well balanced choice instead of all possible features.
-
Yuki Kimoto commented on
Perl Subroutine Signatures Opinion Blog
Raku have a lot of built-in types and type checking. This is Raku design.
These effect PHP, Python, TypeScript.
On the other hand, there are long time Perl users(which contain me) expect and feel attractive that Perl is pure dynamic language in core features.
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.