
Damian Conway
- Website: damian.conway.org
Recent Actions
-
Posted Coders In Cars Getting Chatty to Damian Conway
The last time I spoke at Craft Conference, I also took part in what is probably the most fun and unusual interview of my career: Ivette Ördög’s Morning Commute.
Bear in mind, howev…
-
Posted An existential threat (that <em>isn't</em> COVID-19) to Damian Conway
Many of you will know my good friend Peter Scott as a Perl luminary. More recently he has turned his attention and his considerable talents to focus on the future of AI, both as an unprecedented opportunity for our society...and as an unprecedented threat to our species.
A few years back, …
-
Posted Springtime in Switzerland to Damian Conway
For over a decade now, I've been running public training classes in both presentation skills
the University of Lausanne, and the École Polytechnique Fédérale de Lausanne.This year, in the week…
-
Posted <code>Itch.scratch()</code> to Damian Conway
.CODE_ALT_A { line-height: 130%; color: Crimson; } .CODE_ALT_B { line-height: 130%; color: MediumBlue; } .CODE_ALT_C { l…
-
Commented on Coding with a full toolset
One does still need ».Str But it can be written as a (60% shorter) prefix operator: ~«...
-
Posted To compute a constant of calculus</br><small>(A treatise on multiple ways)</small> to Damian Conway
-
Posted With friends like these... to Damian Conway
C-o-rr-a-ll-i-n-g d-i-tt-o-e-d l-e-tt-e-r-s
I was going to focus this week on the first task of the 20th Weekly Challenge...but what can I say? The task was a break a string specified on t…
-
Commented on Infinite work is less work
A prime that is equal to the mean of its two neighbour primes is not "weak", but "balanced". The challenge task did not request those, but they would have been trivial to add: sub balanced (\n) { n > 0...
-
Posted Greed is good, balance is better, beauty is best. to Damian Conway
Avidis, avidus natura parum est
One of my first forays into Perl programming, 20 years ago now, was a tool that takes a piece of plaintext, analyzes its structure, and formats it neatly for a given line width. It’s a mode…
-
Posted Chopping substrings to Damian Conway
The first task of the was to find the longest common substring(s) in a set of strings. That is, given a set of strings like “ABABC”, “BABCA” and “ABCBA”, print out “ABC”.
The…
-
Posted Six slices of pie to Damian Conway
The first task of the was to find the optimal position in the line for dessert.
This is a reformulation of the old conundrum of creating buggy whips or cowboy movies or physical book stores …
-
Posted Vigenère vs Vigenère to Damian Conway
The second task of the 15th Weekly Challenge was to implement
little more complicated than it seems, because the cipher that's named… -
Posted Infinite work is less work to Damian Conway
first ten strong and weak primes. A prime pn is "strong" if it's larger
than the average of its two neighbouring prim… -
Commented on As simple as possible...but no simpler
Yes indeed! Thanks for spotting that. I've corrected it in the text. Much appreciated!...
-
Posted As simple as possible...but no simpler to Damian Conway
The first task of last week's Weekly Challenge
0, 0, 1, 0, 2, 0, 2, 2, 1, 6, 0, 5, 0, 2, 6, 5, 4, 0,...
The first challenge is …
-
Posted Simplicity made easy to Damian Conway
The second task of last week's Weekly Challenge
Many of the participants went to ="https://perlweeklychallenge.org…
-
Commented on Coding with a full toolset
Yes, indeed. Thanks for pointing that out, Bert! I’ve corrected it now....
-
Posted Coding with an even fuller toolset to Damian Conway
Sigh. It's always the way, isn't it?
You no sooner get done writing about how having the right tools can make a particular coding task trivially easy...when you realize that, right next door, th…
-
Posted Coding with a full toolset to Damian Conway
A few years ago, I created a talk (and later an entire class) about "transparadigm programming" in Raku.
The basic premise was that while some langua…
-
Posted Why I love Raku to Damian Conway
and this week's first task was:
Write a script that finds the first square number that has at least 5 distinct digits.
The solution to that …
-
Posted New class in Berlin...this Friday to Damian Conway
Further information on my German speaking tour...
In addition to the talk I will be giving this Thursday evening, we will now also offer a free full-day training class in Berlin.
… -
Posted World Tour of Germany to Damian Conway
Thanks to the generous sponsorship of the Frankfurt Perl Mongers,
On Monday September 10th, I'll be kicking off in Frankfurt, talking about ="https://www.meetup.com/en-AU/Perl-User-Groups…
-
Commented on A widespread and broken Perl idiom
Sadly, this elegant approach doesn't solve the original problem. Localized assignment to a typeglob only localizes the slot being assigned to. The rest of the typeglob remains unlocalized, which means the magic <> still messes up the global $ARGV and...
- Posted A decade of classes in Lausanne to Damian Conway
-
Posted The Perl Conference in Amsterdam to Damian Conway
I'm delighted to be attending The Perl Conference in Amsterdam in just over a week's time.
We'll be kicking off the event with two days of public training courses. I'll be offering a full-day class on Perl 6's awesome regexes and grammars on Monday August 7, and then my popular Present…
-
Commented on __END__
I think if Damian had 1% of Obama's book deal, we'd have a kick ass Perl 6 book from him. Yes. No question about it. As brian indicates, it's simply a matter of ensuring the book earns enough to...
-
Posted Not your great-great-great-great-great-grandmother's Perl to Damian Conway
As I mentioned in my previous post, I'll be giving a free public lecture this week in Olso. It will be my "400 Years of Perl 6" talk, and will be held at Kulturhuset, Youngs gate 6, Oslo at 6pm on Wednesday 24 May.
… -
Posted Not your grandmother's Perl to Damian Conway
I will be back in Oslo next week, and we still have a few spaces available in the
… -
Commented on Learning from other/experienced speakers
I use PowerPoint 2011. Those code slides are produced by making a single original slide of the code (in yellow text on a black background), then copying it multiple times in a row, then stepping through the sequence with the...
-
Commented on How about separating dynamic world and static world?
First is normal subroutine. This is dynamic language feature. Last two are function overloading. This is static language feature. Function overloading is indeed a static language feature. But the multi keyword doesn't provide static function overloading. The multi keyword provides...

Comment Threads
-
simbabque commented on
__END__
Kids sit for hours watching **minecraft** or watching people **unwrap consumer electronics and clothes** - surely there is a gap there for someone to post perl?
There is a big difference between making a Let's Play video or an unboxing event and a proper tutorial.
The gamers often have quite substantial income from those streams and the related advertising, which gives them access to high-end recording software and editing tools, or even people who edit it for them. They need to invest a lot of time into research and building their brand. It might lo…
-
brian d foy commented on
__END__
Self publishing is easier than ever, but don't mistake what you see for people making money.
-
Aristotle commented on
A widespread and broken Perl idiom
Oh, wow.
I had to go all the way to
$_ = [ __FILE__ ] for local *ARGV;
to make it work in a single statement. Even something like
*{ \local *ARGV } = [ __FILE__ ];
wouldn’t work, despite the fact that circumfix deref is effectively a
do { }
block with a whole separate inner scope (e.g.*{ my $x = 'hi'; local \*ARGV } = [ __FILE__ ]; say $x;
is a strict vars violation).I don’t think
local
is that super-intelligent, which means what’s going on must be something like … -
pecan commented on
Coding with a full toolset
Perhaps it's the APLer in me, but I actually find the 30% shorter version considerably easier to understand. :-)
I'm curious, though, why one doesn't need ».Str in that version.
-
Piers Cawley commented on
Infinite work is less work
I didn't like the reliance on the index to do this calculation, so I came up with:
sub tails(Iterable \s) { s, *.skip(1) ...^ !* } my \strong = tails(^Inf .grep: &is-prime) \ .map({ $_.head(3) }) \ .map(-> (\pre, \p, \post) { ( p, (pre + post)/2 ) }) \ .grep(-> (\p, \target) { p > target } ) \ .map: *[0]
I'm sure there's a neater way of expressing the basic idea (
.map({$_.head(3)})
seems like it could be eliminated with a better destructuring signature on the next line, for instance), but I'm nowhere near fluent in Perl 6 yet and I could…

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.