Re: Theory In Town

2013-08-05 Thread Piers Cawley
Yeah science and natural history museums are both good fun (though possibly
vey busy on a summer Saturday)

On Monday, August 5, 2013, Dave Hodgkinson wrote:

> If you have all day, the museums in Kensington are good and free and have
> paid engaging cinema. Attenborough penguins in the natural history soon I
> believe...
>
> Sent from my iPhone
>
> On 5 Aug 2013, at 18:08, "David E. Wheeler" 
> >
> wrote:
>
> > On Aug 5, 2013, at 1:06 PM, Piers Cawley 
> > >
> wrote:
> >
> >> I shall be inTown on Saturday (flying to Kiev on Sunday morning). Maybe
> a
> >> family friendly social on Saturday afternoon would be a good thing?
> >
> > I’m down with that…
> >
> > David
> >
> >
>
>


Re: Theory In Town

2013-08-05 Thread Piers Cawley
I shall be inTown on Saturday (flying to Kiev on Sunday morning). Maybe a
family friendly social on Saturday afternoon would be a good thing?

On Monday, August 5, 2013, David E. Wheeler wrote:

> On Aug 5, 2013, at 12:23 AM, Peter Corlett >
> wrote:
>
> >> I haven't gone and booked a pub for us yet. I'll be doing that and
> making an announcement tomorrow. You (all) have until then to make
> requests, otherwise I'll just pick the next one out of my hat.
>
> Okay, let me know.
>
> > It's probably a bit short notice to arrange that, but maybe the
> organisers of the last tech meet might be able to rustle something up?
>
> Sorry for the late notice, I should have written sooner. Happy to do it,
> though, if a venue can be found. I’m especially excited about Sqitch these
> days, and ready to evangelize at the drop of a hat.
>
> (Sqitch elevator pitch: Think Git, but for database schema change
> management.)
>
> >> * I could come for a social some other night.
> >
> > Two socials in one week, I like the way you think!
>
> I’m a social guy.
>
> >> Unless I give a talk, my wife and 8yo daughter might come along, as
> well. Anyone got kids she could play with during our visit? (Not many in
> Arles, where we are spending the summer, and then there is the language
> issue…)
> >
> > Our social venues tend to be grown-ups decompressing after with with
> surprising quantities of beer. While we're all a well-behaved friendly
> bunch and we welcome all comers, an 8yo would probably feel somewhat out of
> place and get bored quickly.
>
> Right, understood. I am looking for other opportunities for Ms 8 to play
> with someone her own age sometime in the next week, though; email me direct
> if you have any ideas.
>
> > There is of course the possibility of finding a more family-friendly
> venue for a non-Thursday social, but I'm not sure where to suggest.
>
> My wife would sooner watch paint dry than spend an evening with geeks
> without their spouses/partners. :-) So no need for that, I think.
>
> Thanks!
>
> David
>
>
>


Re: Dim sum TODAY 12:30 at Pearl Liang

2013-01-28 Thread Piers Cawley
I'm marooned in Cornwall. Rather a long way from Pearl Liang. Or any decent
Chinese food, frankly.

On 28 January 2013 10:28, Dave Hodgkinson  wrote:

> Anyone else marooned in Stockley Park?
>
> On Mon, Jan 28, 2013 at 8:22 AM, Leon Brocard  wrote:
>
> > Yet again it's time for dim sum! This time Simon Wistow, our long-lost
> > ex-leader who is on this side of the pond for a change, wants dim sum so
> > we shall oblige. Come join us!
> >
> > Pearl Liang
> > 8 Sheldon Square, W2 6EZ
> > http://london.randomness.org.uk/wiki.cgi?Pearl_Liang%2C_W2_6EZ
> > http://www.pearlliang.co.uk/
> > Today, 12:30
> >
> > London.pm dim sum is a social event where we meet up every so often at
> > lunch at a different Chinese restaurant, spend about an hour (and about
> > £10 cash) eating tasty dim sum (steamed and fried dumplings), then go
> > our separate ways.
> >
> > PS It's quite hard to find unless you know where you are going. Check
> > the links.
> >
> > See you there, Léon
> >
>


Re: Hotels for the LPW

2012-10-26 Thread Piers Cawley
On 26 October 2012 12:20, Peter Corlett  wrote:

> On 25 Oct 2012, at 09:00, Mark Keating wrote:
> > I have been asked by a couple of people for hotel recommendations in and
> around the LPW for this year. Traditionally we have always left people to
> their own devices and the sites like TripAdvisor and Booking.com, but since
> I have been asked and i know there is a vast wealth of knowledge and
> experience on this list i thought I might throw the question to the masses.
>
> As noted elsethread, people living in London tend not to need hotels in
> London so are the least-qualified to say which are good.
>
> > I await, with anticipation, your gracious responses.
>
> I have a spare double bed and a sofa available in Shepherd's Bush, which
> obviates the need for two hotel rooms.
>

Or maybe even three.


Re: Brainbench perl test?

2012-09-04 Thread Piers Cawley
On 4 September 2012 17:18, David Hodgkinson  wrote:
>
> On 4 Sep 2012, at 16:07, Smylers  wrote:
>
>> Piers Cawley writes:
>>
>>> Tower of Hanoi is always a better example for solving with recursion
>>> than the fibobloodynacci sequence. If nothing else, the recursive
>>> solution isn't quite so immediately obvious from the problem, the
>>> terminating condition is obvious and an iterative solution isn't quite
>>> so hogwhimperingly more efficient.
>>
>> Yes, that's much better.
>
> When was the last time you recursed in day to day web type code?

The last time I walked an object tree to turn it into a bare hash of
hashes for turning into JSON.


Re: Brainbench perl test?

2012-09-04 Thread Piers Cawley
On 4 September 2012 14:41, Dominic Humphries  wrote:
> On Tue, 2012-09-04 at 14:31 +0100, Matt Freake wrote:
>> For that reason, I would have thought there were other, better, recursion
>> problems out there I could use.
>
> Tower of Hanoi? :)
>

Tower of Hanoi (with a proper description of what the problem _is_) is
always a better example for solving with recursion than the
fibobloodynacci sequence. If nothing else, the recursive solution
isn't quite so immediately obvious from the problem, the terminating
condition is obvious and an iterative solution isn't quite so
hogwhimperingly more efficient.

Though I'm sure Abigail will be along with a regular expression that
solves it through repeated substitution.


Re: Brainbench perl test?

2012-09-04 Thread Piers Cawley
On 4 September 2012 14:17, Dave Cross  wrote:
> Quoting Mr I :
>
>> Consider the example I gave. How will you approach that? I bet you'd
>> approach completely differently if you KNEW vedic mathematics.
>
>
> Your example said:
>
> "write a function ved(n, m) that implements the 16 sutras* and uses them to
> return the result"
>
> That's not a usable specification. The original question was:
>
>
> "Given that fib(n) is equal to fib(n-1) + fib(n-2) write a fib function in
> any language"
>
> Can you not see the difference? It doesn't matter that it's a well-known
> mathematical sequence. The required behaviour has been specified in the
> question. It could be rewritten as:
>
> "Given that blarg(n) is equal to blarg(n-1) + blarg(n-2) write a blarg
> function in any language"

Or, in an attempt to really drive it home:

blarg(n) is equal to blarg( n - 1 ) * 2  +  blarg( n - 2 )

There you go. Not the Fibonacci sequence, but still a recursive
definition, trivially implementable with a recursive condition given a
couple more bits of knowledge (the values of blarg(0) and blarg(1)).
Entirely defined within its own terms and less likely to have the
smart programmer supply a non-recursive or iterative function
involving the golden ratio.

> And it would still be solvable. Your question isn't a specification. It
> can't be solved without guesswork.

What Dave said.

> And besides, I don't think I'd really want to work with a programmer who
> didn't know what the Fibonacci sequence is :-)

I dunno. Think of the teaching opportunities :)


Re: Dim Sum?

2012-07-12 Thread Piers Cawley
Right. Gill and I shall almost definitely be at Tian Fu with hungry
expressions at around 1pmish tomorrow. It's Friday the 13th. What
could possible go wrong?

On 11 July 2012 20:20, Piers Cawley  wrote:
> For me? On Thursday? Hell yes. Much as I'd love not go into work
> tomorrow and take in a full London.pm dim sum meeting _and_ a tech
> meet, that's not really an option I'm afraid.
>
> On 11 July 2012 18:32, Dave Hodgkinson  wrote:
>> So dim sum in W1 is looking unlikely...
>>
>>
>> On 11 Jul 2012, at 17:35, Piers Cawley wrote:
>>
>>> On 11 July 2012 15:51, Peter Sergeant  wrote:
>>>> On Wed, Jul 11, 2012 at 1:10 PM, Dave Hodgkinson  
>>>> wrote:
>>>>
>>>>>
>>>>> Does anyone have a craving for Dim Sum in the West End tomorrow? A 100%
>>>>> Venda turn out
>>>>> again would count as a fail... :)
>>>>>
>>>>
>>>> There's tasty Szechuan food in West London ... Tian Fu is convenient for
>>>> people at the Beeb and at NAP...
>>>
>>> I know. You read my mind, in fact. I just need to make sure we can get
>>> there for a reasonable time.
>>
>>


Re: Dim Sum?

2012-07-11 Thread Piers Cawley
For me? On Thursday? Hell yes. Much as I'd love not go into work
tomorrow and take in a full London.pm dim sum meeting _and_ a tech
meet, that's not really an option I'm afraid.

On 11 July 2012 18:32, Dave Hodgkinson  wrote:
> So dim sum in W1 is looking unlikely...
>
>
> On 11 Jul 2012, at 17:35, Piers Cawley wrote:
>
>> On 11 July 2012 15:51, Peter Sergeant  wrote:
>>> On Wed, Jul 11, 2012 at 1:10 PM, Dave Hodgkinson  wrote:
>>>
>>>>
>>>> Does anyone have a craving for Dim Sum in the West End tomorrow? A 100%
>>>> Venda turn out
>>>> again would count as a fail... :)
>>>>
>>>
>>> There's tasty Szechuan food in West London ... Tian Fu is convenient for
>>> people at the Beeb and at NAP...
>>
>> I know. You read my mind, in fact. I just need to make sure we can get
>> there for a reasonable time.
>
>


Re: Dim Sum?

2012-07-11 Thread Piers Cawley
On 11 July 2012 15:51, Peter Sergeant  wrote:
> On Wed, Jul 11, 2012 at 1:10 PM, Dave Hodgkinson  wrote:
>
>>
>> Does anyone have a craving for Dim Sum in the West End tomorrow? A 100%
>> Venda turn out
>> again would count as a fail... :)
>>
>
> There's tasty Szechuan food in West London ... Tian Fu is convenient for
> people at the Beeb and at NAP...

I know. You read my mind, in fact. I just need to make sure we can get
there for a reasonable time.


Re: Dim Sum?

2012-07-11 Thread Piers Cawley
On 11 July 2012 13:58, Dominic Thoreau  wrote:
> On 11 July 2012 13:36, Will Crawford  wrote:
>> On 11 July 2012 13:10, Dave Hodgkinson  wrote:
>>>
>>> Does anyone have a craving for Dim Sum in the West End tomorrow? A 100% 
>>> Venda turn out
>>> again would count as a fail... :)
>>
>> If we could go to Pearl Liang again that might be reachable for us :)
>
> I do wonder, if someone organised one in E1* how many of my co-workers
> I could persuade to come out.
>
> * Are there any Dim Sum in E1? Aside from Ping Pong I mean..

There's a reasonable chance that Gill and I will be West Lunnon around
dim sum or delicious tasty Sichuan food time, but on Friday, not
Thursday.

Not necessarily very helpful, but if folk are about.


Re: Wanted: Speakers for London.pm Technical Meeting

2012-06-18 Thread Piers Cawley
Bugger. Make it the 13th and I can attempt a 20 minute version of a 40
minute OSCON talk: "YARR! Plunderin' Programmin' Paradigms Fer
Profit!" or "The Pirates! In an Adventure with Computer Scientists!"

On 18 June 2012 21:12, Leon Brocard  wrote:
> On Tue, Jun 12, 2012 at 04:26:25PM +0100, Leon Brocard wrote:
>> I'm trying to organise a technical meeting for the 2012-07-12 in east
>> London. I'm looking for a few speakers for 20 minute talks. Could you
>> email me offlist if you're interested?
>
> I'm looking for another talk. Anyone want to repeat a YAPC::NA talk or
> practice a YAPC::Europe one?
>
> Leon


Re: Perl 6 talk & tutorial in Bristol, 19 May

2012-04-27 Thread Piers Cawley
On 27 April 2012 17:32, Peter Haworth  wrote:
>
> Jonathan Worthington and Carl Masak are both flying over to Bristol next
> month to talk about Perl 6, as part of the first "IT MegaMeet" at UWE.
> They'll be giving a half hour talk and a 2 hour tutorial, but apart from
> an introduction to Bristol&Bath.pm, that's currently the only
> presentation of Perl in the schedule. There are still a few free talk,
> tutorial and lightning talk slots though, so I'm sure participation from
> outside Bristol would be welcome, even though the event is primarily
> aimed at local people. I'd be thinking about presenting something
> myself, but I'm going to be at Waltz on the Wye that weekend.


I'll be giving an early version of my OSCON talk "YAR! Plundering
Programming Paradigms for Profit!" and probably a lightning talk as
well. I realise that this may be off-putting.


Re: Programming Heresy

2012-04-01 Thread Piers Cawley
On 1 April 2012 01:14, Travis Basevi  wrote:

>
> On 31/03/2012 11:44, Aaron Trevena wrote:
>
>> Ummm this is london.pm.  People in London don't have sheds.
>>>
>>
>> I have a shed, also a nice garden and a 15 min commute to the office
>> (and 20 min drive to selection of best beaches in the country).. but
>> then I don't actually live in London :)
>>
>
> Congratulations.
>

What Aaron neglected to mention was that we're still hiring. At least, I
think we are.


Re: Emacs as a perl IDE

2012-01-26 Thread Piers Cawley
On 25 January 2012 22:17, Dave Hodgkinson  wrote:
>
> Pulled together some links and thoughts, and actually learned stuff:
>
> http://www.davehodgkinson.com/blog/2012/01/using-emacs-as-an-ide/
>
> Any other comments? Piers?

I shelved all work on a refactoring browser for emacs a long time ago.
More effort than I wanted to make to get things working. PerlySense,
that Dave Cross suggested in the comment sounds interesting though -
if that works as a framework for talking to Emacs that I don't have to
worry about, I might have a play, but that's dependent on tuit supply.

>
> Dave suggested Padre, comments on features and stuff welcome.
>
> Ta,
>


Re: London.pm Sichuan TianFu Buyi Thursday 1pm

2011-11-10 Thread Piers Cawley
On Thu, Nov 10, 2011 at 8:55 AM, Leon Brocard  wrote:
> On Mon, Nov 07, 2011 at 10:31:04AM +, Leon Brocard wrote:
>> It's time to have another Sichuan lunch meeting. This restaurant has
>> been mentioned on list before (it used to be called Bamboo House) - it
>> does amazing (sometimes spicy) Sichuan dishes.
>
> This is today!

And jolly good it was too. Thanks for organizing it Leon.


Re: Pre LPW social?

2011-11-08 Thread Piers Cawley
On Tue, Nov 8, 2011 at 4:38 PM, Abigail  wrote:
> On Tue, Nov 08, 2011 at 05:36:21PM +0200, Gabor Szabo wrote:
>> Hi,
>>
>> I am arriving in London on Thursday 12:30, unfortunately
>> missing the Sichuan TianFu lunch.
>>
>> I wonder if there is going to be a pre-conf social gathering?
>>
>
>
> I'll the in The Fat Duck, somewhat west of London (Maidenhead).

Bray. And I'm only slightly jealous. You'll have a fabulous meal.


Re: Perl Skills Test

2011-11-06 Thread Piers Cawley
On Saturday, November 5, 2011, Zbigniew Łukasiak  wrote:
> On Thu, Sep 22, 2011 at 3:14 PM, Dave Cross  wrote:
>> Interesting question from a training client:
>>
>> "Do you know of a general Perl skills test (on-line or paper) that we
could
>> give to our Perl developers before you turn up.
>>
>> The idea is that the output could feed into the training you are doing
for
>> us."
>>
>> I don't[1]. Does anyone else have any ideas? I suppose I could write
>> something. But I don't really have time.
>>
>> I don't want to get into the whole certification issue. That's not what
this
>> is about at all.
>>
>
> I guess it might be too late - but codility.com has among others also
> Perl tests.  These are on-line, automated tests where you write a
> short script and they run it against some precompiled input data and
> test for correctness and that they finish in some reasonable time.
> The tests are not meant to find the best candidate in the crowd - but
> only to filter out those that cannot code at all and I believe they
> are pretty efficient in that.
>
> For a full disclosure - I know the founder personally and I envy his
> business idea.

While I just wonder how good his sandbox is.


Re: Perl Skills Test

2011-09-29 Thread Piers Cawley
On Thu, Sep 29, 2011 at 1:45 PM, Aaron Trevena  wrote:
> On 29 September 2011 10:48, Victoria Conlan  wrote:
>>
>>> not in london, but very nice location ;)
>>
>> Not that I don't think everywhere is nicer than London, but ... could you be
>> more specific?
>
> Sunny Cornwall : http://www.headforwards.com/perl-jobs.html
>
> A couple of us just went for a nice run through some woods and along
> the stream along one of the mineral trails here.

I really should get my finger out and stick a CV in for that.


Re: Perl Skills Test

2011-09-22 Thread Piers Cawley
On Thursday, September 22, 2011, Jones, Christopher 
wrote:
> On 22 September 2011 14:14, Dave Cross  wrote:
>
>> Interesting question from a training client:
>>
>> "Do you know of a general Perl skills test (on-line or paper) that we
could
>> give to our Perl developers before you turn up.
>
> At an interview with Auntie a few years ago, they gave me a Perl script
and asked me to highlight all the problems/errors in it. Not sure if they
were flattering me, but I found quite a few they didn't seem to be aware
of..

I've been on the other side of that interview. I was astonished by how bad
the script was.


Re: London.pm Sichuan TianFu Buyi Thursday 1pm

2011-09-12 Thread Piers Cawley
Hmm... that would be on my birthday? Within walking distance of where
I work? I think it likely that I shall be there.

On Mon, Sep 12, 2011 at 9:36 AM, Léon Brocard  wrote:
> It's time to have another Sichuan lunch meeting. This restaurant has
> been mentioned on list before (it used to be called Bamboo House) - it
> does amazing (sometimes spicy) Sichuan dishes.
>
> London.pm Sichuan is a social event where we meet up every Thursday at
> 1pm at a different Sichuan restaurant, spend about an hour (and about
> £10 cash) eating tasty Sichuan food, then go our separate ways.
>
> TianFu Buyi
> Thursday 1pm
> 37-39 Bulwer Street
> W12 8AR
> Shephard's Bush Market,  Shephard's Bush Tube
> http://maps.google.co.uk/maps?q=W12+8AR
> http://london.randomness.org.uk/wiki.cgi?Tian_Fu%2C_W12_8AR
> https://secure.wikimedia.org/wikipedia/en/wiki/Szechuan_cuisine
>
> See you there! Léon
>
>



Re: Someone needs to take jwz aside...

2011-04-28 Thread Piers Cawley
On Thursday, April 28, 2011, Simon Cozens  wrote:
> On 27/04/2011 17:19, Avleen Vig wrote:
>> That's right. If you want OO, you can always use a real programming
>> language.
>
> Well, you're either using Smalltalk, or faking it.
>

Usually badly. Moose is faking CLOS though. Sort of.


Re: Xcode 4.0.2 and XS modules

2011-04-23 Thread Piers Cawley
On Saturday, April 23, 2011, Sue Spence  wrote:
> On 22 April 2011 22:20, Simon Wistow  wrote:
>> Apple, evil bastards that they are, don't ship with GCC installed. You
>> have to install Xcode to get it. And now, because apparently raping
>> puppies to death with nuns or whatever it is they do for fun, isn't
>> sufficiently evil you have to buy Xcode. True it's only $4 but it's
>> still a giant fuck you.
>
> Hmm, I think that's new.  Looks like I can get it without paying
> because I'm in their developer program (also not free, but $work paid
> for it).  I'm slightly surprised they are bothering to charge for it,
> but Apple are like that.  If you want everything to be free, linux is
> that way --->

They'll probably argue it's accounting rules. Xcode 4 is a
substantially different IDE from version 3, so they'll claim that they
are obliged to charge for it if you want to run it on OS versions
prior to Lion. Hence the (surely not meaningfully profitable) low
price. XCode 3 doesnt work on Lion, so I'm sure that the final discs
will ship with it included and upgrades (until XCode 5 at least) will
be free. I'm not saying it's right, but it is consistent with the
reasoning Apple have given for charging for iOS upgrades etc.

But yeah, build your own Perl. It's not like perlbrew makes it hard.



Re: Xcode 4.0.2 and XS modules

2011-04-22 Thread Piers Cawley
I'm using XCode 4 and things are fine. But I'm running the developer
preview of Lion which is entirely ppc free.

On Saturday, April 23, 2011, Jesse Vincent  wrote:
> Ah. So _this_ is what fucked jwz.
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
> Simon Wistow  wrote:
>
> Apple, evil bastards that they are, don't ship with GCC installed. You have 
> to install Xcode to get it. And now, because apparently raping puppies to 
> death with nuns or whatever it is they do for fun, isn't sufficiently evil 
> you have to buy Xcode. True it's only $4 but it's still a giant fuck you. 
> What's even worse is that apparently the version you can buy - 4.0.2 - 
> doesn't come with a PPC assembler. Which would be fine. Except that the 
> system Perl is built *with* arch ppc. So now no CPAN modules with XS will 
> build. Beyond installing my own Perl (which I can do but is kind of a ball 
> ache) what's the best solution to this. I've found an old copy of Xcode on 
> their site now after some poking around but saying "Install an old version of 
> software" is a less than ideal solution.
>
>



Re: Someone needs to take jwz aside...

2011-04-20 Thread Piers Cawley
On Wed, Apr 20, 2011 at 12:27 PM, Andy Armstrong  wrote:
> On 20 Apr 2011, at 12:05, Jason Clifford wrote:
>> So how are you handling the requirement to maintain the code doing what
>> those many modules do?
>>
>> If you are not using a modular approach does that have any impact upon
>> the TCO of maintaining the systems you are deploying?
>
> Short answer: we're writing most of our new services in Java with a toolchain 
> that makes a lot of dependency management problems go away :)

Well, they go to the java team, if that's what you mean. Meanwhile,
those of us working with perl work on an appropriate solution to the
problem for our stuff.


Re: iPhone Barcode Readers

2011-03-01 Thread Piers Cawley
On Tue, Mar 1, 2011 at 11:15 AM, Kieren Diment  wrote:
>
> On 01/03/2011, at 10:05 PM, Christopher Jones wrote:
>
>> On 1 March 2011 09:49, Dave Cross  wrote:
>>>
>>> Need some advice on iPhone Barcode reading apps - so I turn to london.pm, my
>>> favourite group of iGeeks.
>>>
>>> My wife is a teacher and they're about to start a stocktake of all of the
>>> books in the English department. Rather than count them all, she wondered if
>>> there was an iPhone app that could help them.
>>
>>
>> I'm fascinated to know how you could use an iPhone to scan a barcode - can 
>> someone explain?
>
> With the camera ;)  Scanning high contrast images for information is a 
> reasonably well solved problem.  Get rid of noise and highlight edges with a 
> LoG (laplacian of gaussian filter - could be wrong here my knowledge is 
> ancient and theoretical), then seeing as a barcode is basically a 2d image, 
> use the barcode spec to get the information out of it by walking along the 
> line measuring the thickness of the bars.

There's a rather nice worked example of implementing barcode scanning
in 'Real World Haskell'.



Re: [ANNOUNCE] Speakers at a conference

2011-02-08 Thread Piers Cawley
On Tue, Feb 8, 2011 at 7:34 PM, Dave Cross  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 02/08/2011 12:42 PM, Piers Cawley wrote:
>> Can we have Kirsty McColl doing a gig in the evening as well?
>
> Unfortunately, she was always rather disappointing live. Terrible stage
> fright, I believe.

I'd heard that she was overcoming that with the Tropical Brainstorm
stuff. Apparently having her husband on stage was a huge help. And
anyway, I'd rather have her alive to disappoint me, with all the back
catalogue she'd up built up in the last ten years than dead under a
fuckwit's speedboat in Mexico.


Re: [ANNOUNCE] Speakers at a conference

2011-02-08 Thread Piers Cawley
Can we have Kirsty McColl doing a gig in the evening as well?

On Tue, Feb 8, 2011 at 10:50 AM, Sue Spence  wrote:
> In that vein, I'd like to hear from Alan J Perlis.
>
> On 8 February 2011 08:35, Paul Makepeace  wrote:
>> Alan Turing
>>
>> On Feb 7, 2011 5:05 PM, "Piers Cawley" 
>> wrote:
>>
>> Alan Kay
>>
>>
>> On Mon, Feb 7, 2011 at 3:31 PM, Mark Keating 
>> wrote:
>>> **Firstly let me ...
>>
>


Re: [ANNOUNCE] Speakers at a conference

2011-02-07 Thread Piers Cawley
On Mon, Feb 7, 2011 at 4:48 PM, Dave Hodgkinson  wrote:
>
> On 7 Feb 2011, at 15:47, Piers Cawley wrote:
>
>> Alan Kay
>
> Brian Stroustrup and make him apoligise.

Hah!


Re: [ANNOUNCE] Speakers at a conference

2011-02-07 Thread Piers Cawley
Alan Kay

On Mon, Feb 7, 2011 at 3:31 PM, Mark Keating  wrote:
> **Firstly let me apologise in advance if you see multiple copies of this
>  email as it is posted to more than one list**
>
> I am seeking to poll the collective geekverse with this question:
>
> "If you could see one speaker at a dynamic languages conference who would it
> be?"
>
> The speaker can be from any dynamic language (such as Perl/Python/Ruby/PhP
> and even languages such as Lisp/OCaml/Haskell/Erlang) and doesn't have to be
> the language creator  (for instance you may choose Audrey instead of Larry
> Wall for Perl) and  you can answer your favourite for more than one language
> if you wish.
>
> Just reply to m.keating(at)shadowcat.co.uk with your answer stating:
>
> language, name of speaker
>
> Thanks in advance.
>
> -Mark (mdk)
>
> --
> Mark Keating BA (Hons)          |  Writer, Photographer, Cat-Herder
> Managing Director               |  Shadowcat Systems Limited
> Director/Secretary              |  Enlightened Perl Organisation
> co-Leader                       |  North West England Perl Mongers
> http://www.shadowcat.co.uk      |  http://www.enlightenedperl.org
> http://northwestengland.pm.org  |  http://linkedin.com/in/markkeating
>
>



Re: [ANNOUNCE] London Perl Mongers Technical Meeting 12th April 2010

2010-03-27 Thread Piers Cawley
On Sat, Mar 27, 2010 at 5:14 AM, Damian Conway  wrote:
> Paul Makepeace wrote:
>
>> First or last line of a haiku...
>
> "Damian Conway":
> dactyl-trochee. The winter
> of Piers' discontent.
>
>
> Con Wei
>

Damian made me post this. Don't blame me. In the absence of a string
quartet and backing singers, this will remain on the page.

Ah, look at all the boggled mongers
Ah, look at all the boggled mongers

Damian Conway, talked about Selfgol, a program that shouldn't be seen
It's a bad dream
Look at the mongers, are they all jarred by the code so obscure?
What is it for?

All the boggled mongers
Where do they all come from?
All the boggled mongers
Where do they all belong?

There's Piers Cawley, writing a song about Selfgol in time for the show
How will it go?
Look at him working, trying to fit Damy'n's name into some Beatles song
Will it go wrong?

All the boggled mongers
Where do they all come from?
All the boggled mongers
Where do they all belong?

Ah, look at all the boggled mongers
Ah, look at all the boggled mongers

Damian Conway gave a great talk and as usual lived up to his name
Everyone came
Damian Conway, once more filled minds with ideas that are truly depraved
No one was saved

All the boggled mongers
Where do they all come from?
All the boggled mongers
Where do they all belong?


Re: [ANNOUNCE] London Perl Mongers Technical Meeting 12th April 2010

2010-03-26 Thread Piers Cawley
On Sat, Mar 27, 2010 at 1:02 AM, Chris Devers  wrote:
>
>
> On Mar 26, 2010, at 8:36 PM, Piers Cawley
>  wrote:
>
>> On Fri, Mar 26, 2010 at 8:03 PM, Jesse Vincent  wrote:
>>>
>>>
>>>
>>> On Sat, Mar 27, 2010 at 06:41:01AM +1100, Damian Conway wrote:
>>>>
>>>> [Various all-too-easily-copied archival format suggestions discarded]
>>>>
>>>> Look, if we *really* want to preserve and protect this extremely
>>>> valuable intellectual property, I propose that we don't film it at all.
>>>> Instead, let us commission Piers to record and commemorate the great
>>>> event in the form of an epic ballad of several hundred stanzas in iambic
>>>> pentameter that can be passed down for all eternity as part of the rich
>>>> and confusing tapestry that is the oral history of London.pm, to be sung
>>>> only on occasions of particular solemnity and alcoholism.
>>>
>>> ...wow. I'd donate several hundred dollars to $PERL_CHARITY to see that
>>> happen. Not that I expect to get taken up on this offer.
>>
>> Hmm... the tricky bit is finding a tune where 'Damian Conway' will scan...
>
> How about the bass line from the Doctor Who theme?
>
> Da-da-da-dahh-dah,
> Da-da-da-dahh-dah...
>
> Seems close, no?

La la la, I can't hear you! And... not really, no.


Re: [ANNOUNCE] London Perl Mongers Technical Meeting 12th April 2010

2010-03-26 Thread Piers Cawley
On Sat, Mar 27, 2010 at 1:06 AM, Piers Cawley
 wrote:
> On Sat, Mar 27, 2010 at 12:58 AM, Paul Makepeace  wrote:
>> On Fri, Mar 26, 2010 at 17:36, Piers Cawley
>>  wrote:
>>> On Fri, Mar 26, 2010 at 8:03 PM, Jesse Vincent  wrote:
>>>>
>>>>
>>>>
>>>> On Sat, Mar 27, 2010 at 06:41:01AM +1100, Damian Conway wrote:
>>>>> [Various all-too-easily-copied archival format suggestions discarded]
>>>>>
>>>>> Look, if we *really* want to preserve and protect this extremely
>>>>> valuable intellectual property, I propose that we don't film it at all.
>>>>> Instead, let us commission Piers to record and commemorate the great
>>>>> event in the form of an epic ballad of several hundred stanzas in iambic
>>>>> pentameter that can be passed down for all eternity as part of the rich
>>>>> and confusing tapestry that is the oral history of London.pm, to be sung
>>>>> only on occasions of particular solemnity and alcoholism.
>>>>
>>>> ...wow. I'd donate several hundred dollars to $PERL_CHARITY to see that 
>>>> happen. Not that I expect to get taken up on this offer.
>>>
>>> Hmm... the tricky bit is finding a tune where 'Damian Conway' will scan...
>>
>> First or last line of a haiku... I'm sure something will Spring to mind.
>
> Haiku's are pretty unsingable. Besides, Damian's already done haiku with 
> Coy.pm
>

Oh god, oh god, oh god. I can't believe I'm even bloody discussing this. Oh god.


Re: [ANNOUNCE] London Perl Mongers Technical Meeting 12th April 2010

2010-03-26 Thread Piers Cawley
On Sat, Mar 27, 2010 at 12:58 AM, Paul Makepeace  wrote:
> On Fri, Mar 26, 2010 at 17:36, Piers Cawley
>  wrote:
>> On Fri, Mar 26, 2010 at 8:03 PM, Jesse Vincent  wrote:
>>>
>>>
>>>
>>> On Sat, Mar 27, 2010 at 06:41:01AM +1100, Damian Conway wrote:
>>>> [Various all-too-easily-copied archival format suggestions discarded]
>>>>
>>>> Look, if we *really* want to preserve and protect this extremely
>>>> valuable intellectual property, I propose that we don't film it at all.
>>>> Instead, let us commission Piers to record and commemorate the great
>>>> event in the form of an epic ballad of several hundred stanzas in iambic
>>>> pentameter that can be passed down for all eternity as part of the rich
>>>> and confusing tapestry that is the oral history of London.pm, to be sung
>>>> only on occasions of particular solemnity and alcoholism.
>>>
>>> ...wow. I'd donate several hundred dollars to $PERL_CHARITY to see that 
>>> happen. Not that I expect to get taken up on this offer.
>>
>> Hmm... the tricky bit is finding a tune where 'Damian Conway' will scan...
>
> First or last line of a haiku... I'm sure something will Spring to mind.

Haiku's are pretty unsingable. Besides, Damian's already done haiku with Coy.pm


Re: [ANNOUNCE] London Perl Mongers Technical Meeting 12th April 2010

2010-03-26 Thread Piers Cawley
On Fri, Mar 26, 2010 at 8:03 PM, Jesse Vincent  wrote:
>
>
>
> On Sat, Mar 27, 2010 at 06:41:01AM +1100, Damian Conway wrote:
>> [Various all-too-easily-copied archival format suggestions discarded]
>>
>> Look, if we *really* want to preserve and protect this extremely
>> valuable intellectual property, I propose that we don't film it at all.
>> Instead, let us commission Piers to record and commemorate the great
>> event in the form of an epic ballad of several hundred stanzas in iambic
>> pentameter that can be passed down for all eternity as part of the rich
>> and confusing tapestry that is the oral history of London.pm, to be sung
>> only on occasions of particular solemnity and alcoholism.
>
> ...wow. I'd donate several hundred dollars to $PERL_CHARITY to see that 
> happen. Not that I expect to get taken up on this offer.

Hmm... the tricky bit is finding a tune where 'Damian Conway' will scan...


Re: [ANNOUNCE] London Perl Mongers Technical Meeting 12th April 2010

2010-03-26 Thread Piers Cawley
If you think I'm singing an introduction for you, you have another one
coming I'm afraid. I still can't quite believe I managed to sing pjf
in. Jocasta dared me to do it as I stood up.

On Friday, March 26, 2010, Damian Conway  wrote:
> [Various all-too-easily-copied archival format suggestions discarded]
>
> Look, if we *really* want to preserve and protect this extremely
> valuable intellectual property, I propose that we don't film it at all.
> Instead, let us commission Piers to record and commemorate the great
> event in the form of an epic ballad of several hundred stanzas in iambic
> pentameter that can be passed down for all eternity as part of the rich
> and confusing tapestry that is the oral history of London.pm, to be sung
> only on occasions of particular solemnity and alcoholism.
>
> Note that, apart from the obvious protections this highly analogue
> medium will naturally confer, there is a second important side-benefit.
> If a recording of "Whan Damian Eek Wt His Sweete Breeth, Inspired Hath
> In Euery Ale And Taverne" *is* ever uploaded, the RIAA will instantly
> leap into attack, sue the miscreant involved for thousands of times the
> actual commercial value of the work, and immediately channel the
> resulting millions directly back to Piers and myself (as the
> originating artists).
>
> Damian
>


Re: London Perl Mongers Technical Meeting 18th March 2010

2010-03-15 Thread Piers Cawley
Further to this, if you've registered with an irc handle or
nonstandard looking name, could you get in touch with me and let me
know the handle you registered with and a name that won't make our
security people nervous, I would be very grateful.

We _can_ make a pass for you on the night, but it's rather more time
consuming than just picking up your badge.

Thanks for your consideration.

On Fri, Mar 12, 2010 at 7:34 AM, Léon Brocard  wrote:
> On 8 March 2010 20:04, Léon Brocard  wrote:
>
>> Our venue size is limited so you will have to sign up to attend this meeting.
>>  http://londonpmtech.appspot.com/
>
> Sign up will close on Monday, so please sign up today.
>
> Cheers, Leon
>
>



Re: On-topic: HTML/JS help please

2010-02-10 Thread Piers Cawley
On Wed, Feb 10, 2010 at 5:15 PM, Simon Wistow  wrote:
> On Wed, Feb 10, 2010 at 10:04:01AM +0000, Piers Cawley said:
>> That sounds to me like you don't have a table. You have a tree with
>> tabular data at each node. Consider using nested divs to represent
>> your hierarchy and then either cunning styling or one row tables to
>> display the tabular data. Sure the page might get a bit big, but
>> that's what gzipped responses are for.
>
> Or, alternatively, a series of, potentially nested  elements with
> either a ... at the nodes or a
> single row table.

Yeah, nested  elements makes more sense.


Re: On-topic: HTML/JS help please

2010-02-10 Thread Piers Cawley
On Fri, Feb 5, 2010 at 10:31 PM, David Cantrell  wrote:
> On Fri, Feb 05, 2010 at 05:13:25PM +, Jacqui Caren-home wrote:
>> David Cantrell wrote:
>> >I want to add a Thingy to CPANdeps to let users collapse/expand portions
>> >of the dependency tree.  How would one go about this?
>> >Naively wrapping s in s and toggling their style.display
>> >doesn't work, presumably because  isn't kosher in a .
>> Jquery tree thingy is data driven and works well.
>
> Unfortunately every pre-existing Javascript thingy I've looked at
> assumes that I have a simple tree.  I don't, I have a *table*, which has
> a hierarchy.

That sounds to me like you don't have a table. You have a tree with
tabular data at each node. Consider using nested divs to represent
your hierarchy and then either cunning styling or one row tables to
display the tabular data. Sure the page might get a bit big, but
that's what gzipped responses are for.



Re: Pig and pub! (Emergency social called for)

2010-01-18 Thread Piers Cawley
On Mon, Jan 18, 2010 at 1:17 PM, LesleyB   wrote:
> On Mon, Jan 18, 2010 at 01:33:50PM +0100, Philippe Bruhat (BooK) wrote:
>> On Thu, Jan 14, 2010 at 05:48:22PM +, Edmund von der Burg wrote:
>> >
>> > PS - note that there are four heads going. If you ever wanted to do a
>> > very British variant of the horse's head in The Godfather this would
>> > be an opportune moment. Didn't get that Christmas bonus? Let the boss
>> > know how you feel!
>> >
>>
>> Don't you guys eat those?
>>
>> « Dans le cochon, tout est bon. »
> The average house may well not have an oven/hob large enough and I don't have 
> any
> recipes.  Does anyone else?

You don't have a copy of Fergus Henderson's 'Nose to Tail Eating'? The
recipe in there for Pig's head salad looks pretty good, and the recipe
in the followup for roasting half a pig's head as the perfect romatic
dinner for two is, according to my brother and his wife, absolutely
delicious.

>
> (Besides, what would we feed the sheep, dogs and cows?)
>
> Regards
>
> Lesley
>



Re: london.pm xmas xword

2009-12-18 Thread Piers Cawley
On Fri, Dec 18, 2009 at 8:31 AM, Aaron Trevena  wrote:
> 2009/12/17 Aaron Trevena :
>> As promised.. I've put together a crossword.
>>
>> Download the PDF, print and ponder over the holiday :
>> http://www.aarontrevena.co.uk/news.html
>
> To make it interesting, as well as the glory of bing proclaimed winner

'the glory of bing'? Shilling for Microsoft, or a simple typo?
Enquiring minds need to know.


Re: Anyone hiring at the moment?

2009-09-25 Thread Piers Cawley
On Thu, Sep 24, 2009 at 12:37 PM, Ovid  wrote:
> --- On Thu, 24/9/09, James Laver  wrote:
>
>> From: James Laver 
>
>> It's [Scunthorpe] a chav-filled hateful shithole and there is absolutely
>> nothing going for it. Come to think of it, I can't even
>> think of a decent pub in the whole town.
>
> Oddly, one of my friends is from there.  He has hair well past his shoulders, 
> always wears Iron Maiden t-shirts, has an Iron Maiden tattoo running down one 
> arm and drinks like a fish.  He has an accent so thick (I'm told it's even 
> thicker than other scunts), that even his British friends have trouble 
> understanding him.

Y'see, when I met him, I didn't think his accent was particularly
incomprehensible. Possibly playing up the yorkshireness a little, but
nothing too bad



Re: Bubble sort dance

2009-09-18 Thread Piers Cawley
On Fri, Sep 18, 2009 at 9:29 PM, Dave Hodgkinson  wrote:
> Is there any video out there of l.pm doing the bubble sort?

ISTR it was performed before the days of pervasive video cameras in
every pocket. Leastways, I _hope_ it was.


Re: "Perl is my Word of Warcraft"

2009-09-12 Thread Piers Cawley
I _think_ that one might be due to me. I certainly remember saying it,
but I don't remember saying it in a presentation. Unless it was at
YAPC::Paris, in which case I certainly don't have the presentation.

On Sat, Sep 12, 2009 at 7:30 PM, Zbigniew Lukasiak  wrote:
> https://lists.thing.net/pipermail/idc/2009-September/003870.html


Re: Tonight - London.pm Moose Tech Talk Evening 19th Feb

2009-02-20 Thread Piers Cawley
On Fri, Feb 20, 2009 at 8:36 PM, Mike Whitaker  wrote:
>
> On 19 Feb 2009, at 15:54, pe...@dragonstaff.com wrote:
>
>> Hello all, a reminder that tonight is the London Perlmongers technical
>> talks evening on "Moose" at the BBC Media Centre, White City.
>> Arrival at 6.30 p.m. for a 7.00 p.m. start. Finishing around 9.00 p.m.
>> followed by an optional social at the Television Centre bar.
>
> Can I thank Peter and the rest of the BBC guys for organizing/helping out at
> the tech meet?
> I had a blast, and I learned stuff, too. :D

Strongly seconded. I'm just sorry we had to dash away for the train
rather than spend time in the bar with you all. I must try and make an
excuse and get down for a social one of these months.


Re: [OT] Perl woes

2009-01-28 Thread Piers Cawley
On Wed, Jan 28, 2009 at 11:40 AM, Matt Jones  wrote:
> On Wed, Jan 28, 2009 at 11:23 AM, Piers Cawley
>  wrote:
>> Actually, I was surprised to find that there isn't a warning for that
>> with warnings turned on. Memory proving faulty.
>
> Am I missing something?

Nope, I was.


Re: [OT] Perl woes

2009-01-28 Thread Piers Cawley
On Wed, Jan 28, 2009 at 11:23 AM, Piers Cawley
 wrote:
> On Wed, Jan 28, 2009 at 10:56 AM, Jonathan Kimmitt
>  wrote:
>>Whoever said, the primary purpose of a compiler is to check for
>> errors,
>>and only if there are no errors, create the code, was most
>> definitely not talking about Perl.
>>
>>The next time I use == instead of eq to compare two strings, I
>> will know to expect it will always
>>evaluate to true. What other language does this (apart from C,
>> which would invariably return false)
>
> If only it were that simple:
>
> '10' == 'something' # false
>
>>It would be a trivial matter to return an error or warning if ==
>> is used for items which aren't numbers
>
> Actually, I was surprised to find that there isn't a warning for that
> with warnings turned on. Memory proving faulty.

When I say 'memory' I obviously mean 'ability to check something out sanely'.


Re: [OT] Perl woes

2009-01-28 Thread Piers Cawley
On Wed, Jan 28, 2009 at 10:56 AM, Jonathan Kimmitt
 wrote:
>Whoever said, the primary purpose of a compiler is to check for
> errors,
>and only if there are no errors, create the code, was most
> definitely not talking about Perl.
>
>The next time I use == instead of eq to compare two strings, I
> will know to expect it will always
>evaluate to true. What other language does this (apart from C,
> which would invariably return false)

If only it were that simple:

'10' == 'something' # false

>It would be a trivial matter to return an error or warning if ==
> is used for items which aren't numbers

Actually, I was surprised to find that there isn't a warning for that
with warnings turned on. Memory proving faulty.


Re: about your meetings

2009-01-28 Thread Piers Cawley
On Wed, Jan 28, 2009 at 8:31 AM, Léon Brocard  wrote:
> 2009/1/27 Frank Gutierrez :
>> Can you stream them or post a video online?
>
> Slides will be made available afterwards.

Well, some of 'em will be. I don't expect my slides to be all that
illuminating without the accompanying chat.



Re: [ANNOUNCE] London.pm technical meeting about "What is Moose and why is it the future?" on 19th Feb 2009

2009-01-28 Thread Piers Cawley
On Wed, Jan 28, 2009 at 12:10 AM, Edmund von der Burg
 wrote:
> 2009/1/27 Dirk Koopman :
>> Oh B*gg*r. Clashes with my chainsaw course and I shall be too erm.. tired to
>> get up to London and back for the following day's gruelling cutting and
>> moving wood (who needs a gym subscription when one has small wood to
>> manage).
>
> Chainsaw course?!?
>
> What sort of woodsman are you to accept formal training?
>
> Chainsawing is easy: keep the chain sharp and tight, top up petrol and
> chain oil before you run out, rev the engine before touching the wood,
> use the spikes to pivot the blade through the wood. NEVER cut using
> the top of the blade. (That last bit is actually important).

Don't forget the protective clothing. Anything that can remove the
best part of a pound of flesh per second deserves respect and kevlar
breeches.


Re: Have at it

2009-01-27 Thread Piers Cawley
On Tue, Jan 27, 2009 at 12:56 PM, Paul Makepeace  wrote:
> On Tue, Jan 27, 2009 at 12:39 PM, Aaron Trevena  
> wrote:
>> 2009/1/27 Piers Cawley :
>>> MOP is modern? The Art of The MetaObject Protocol was published in
>>> 1991. This is obviously some new usage of the word 'modern' with which
>>> I was hitherto unfamiliar.
>>>
>>> It's modern in perl terms, obviously, but it's not exactly new. It's
>>> just been ignored by almost everyone who wasn't a lisp hacker for
>>> years.
>>
>> Like, say MVC, Design Patterns, almost all Functional programming, oh and 
>> lisp.
>
> Everyone except, say, Java & C++ programmers, to name the two dominant
> languages in use today.

A depressing amount of nominally OO code is just procedural code
wrapped in classes though (including the odd bit of code I've come
across deep inside the Squeak Smalltalk image - nobody is immune). Not
that moaning about that particular issue is anything new either.

Mutter. Grumble. Chunter.


Re: Have at it

2009-01-27 Thread Piers Cawley
On Mon, Jan 26, 2009 at 5:26 PM, Aaron Trevena  wrote:
> 2009/1/26 Denny :
>> Personally, I assumed he was referring to the strong 'use Moose' push
>> which EPO seems to be on - would it be safe to say that Moose is a
>> modern approach to OO?  I've not used it personally, and am looking
>> forward to the tech meet around the subject.
>
> I think MOP (meta object protocol) is a modern approach to OO, it's
> found in Perl 6, Badger, Mouse (and mouse? ferret ? I lose track..)

MOP is modern? The Art of The MetaObject Protocol was published in
1991. This is obviously some new usage of the word 'modern' with which
I was hitherto unfamiliar.

It's modern in perl terms, obviously, but it's not exactly new. It's
just been ignored by almost everyone who wasn't a lisp hacker for
years.


Re: Dim Sum Sunday

2009-01-19 Thread Piers Cawley
On Sun, Jan 18, 2009 at 8:58 AM, Ovid  wrote:
> - Original Message 
>
>> From: Ovid 
>
>> My friend Gabrielle just flew into the UK yesterday and as we were trying to
>> figure out our plans for today, I saw this email.  Might be late notice, but 
>> if
>> you'd like to call me at 07908 953 531, we'd be happy to join you.
>
> Ah, just blasted my phone number to the entire London.pm list.  Oops :)

Oops indeed.

Good to see you yesterday.


Dim Sum Sunday

2009-01-16 Thread Piers Cawley
I appear to be in London's fair city this weekend and, as is my habit,
I'm aiming to take in some Dim Sum on Sunday at about 12.30. Where is
the current favourite in Chinatown? Is the New World still reasonably?
Does anyone feel like joining us?


Re: My New Job (Was: Social Thurs 8 Jan 2009)

2009-01-05 Thread Piers Cawley
On Mon, Jan 5, 2009 at 2:56 PM, Jasper  wrote:
> 2009/1/5 Paul Makepeace :
>> On Mon, Jan 5, 2009 at 2:20 PM, Roger Burton West  
>> wrote:
>>>
>>> On Mon, Jan 05, 2009 at 02:13:48PM +, Paul Makepeace wrote:
>>>
>>> >Get a bicycle or a scooter. Do your level best in the meantime to ignore 
>>> >any
>>> >commentary from anyone who hasn't actually ridden in London.
>>>
>>> Seconded. Advice from a relatively new cyclist on request, or distilled
>>> at http://firedrake.org/roger/cycling/ .
>>
>> Cool. As a two-time Strida owner I can assure you they are most
>> certainly _not_ "gimmick" bikes, esp. considering they've won a whole
>> bunch of folding competitions beating Bromptons for folding speed
>> (<2s), maneuvrability, and something else I forget. I rode from West
>> Hampstead to Mayfair (i.e. non-trivial distance) the other night, and
>> can take it on buses, tubes, and trains with never any hassle, esp
>> since they weigh <10kg. The newer Strida 5 is a nice improvement over
>> its already-decent-but-slightly-sloppy previous incarnation.
>
> I used a Brompton solidly for a year, and while it was heavy, and had
> a very close-up riding position, which took a while to get used to, I
> liked it a lot. Until I made the terrible mistake of buying a
> large-ish motorcycle, and each time I get on the Brompton now I am
> utterly terrified. It feels tiny and ridiculously flimsy.
>
> Cycling in London isn't bad, as long as you don't do anything stupid,
> like riding up the inside of a large lorry where the driver can't see
> you. You do get the odd shit of a bus driver, too.

If you're feeling like remaining smart and visible on your bike, you
might consider investing in something like
http://www.dashingtweeds.co.uk/dt/tailoredoutfits/?page_id=43. Haven't
you always wanted go glow in the dark while cycling in tweeds?


Re: Santa came early this year. I want to shoot him.

2008-12-23 Thread Piers Cawley
On Tue, Dec 23, 2008 at 2:54 PM, Merijn Broeren  wrote:
> Quoting Ovid (publiustemp-londo...@yahoo.com):
>>
>> It's days like this which *really* make me pine for Ruby.
>>
> Yes, because a language lacking any tests whatsoever makes life so much
> better,

Well, the Rubinius test suite seems to have been accepted as a base
test suite for ongoing Ruby development. But that didn't exactly come
from the original ruby dev team.


Re: Perl Christmas Quiz

2008-12-12 Thread Piers Cawley
On Fri, Dec 12, 2008 at 12:10 PM, Paul Makepeace  wrote:
> SPOILERS contd
>
>
> On Fri, Dec 12, 2008 at 11:37 AM, Joel Bernstein  wrote:
>> 2008/12/12 Chris Jack :
>
>>> 3) Write a Perl function that takes two references to arrays and returns 
>>> the intersect of them. If an entry appears n times in array 1 and m times 
>>> in array 2, the output should list that entry min(n,m) times. Bonus mark 
>>> for one line solutions.
>>
>> use Set::Scalar;
>> sub intersect (\...@\@) {
>>  my ($a1, $a2) = map { Set::Scalar->new(@$_) } @_;
>>  my $intersection = $a1 * $a2;
>>  return $intersection->elements;
>> }
>
> This isn't a set question though. Sets have unique membership,

Is there a Bag::Scalar?

If so, s/Set/Bag/ in the above fragment would do the job. Implementing
Bag::Scalar is left as an exercise for the interested reader.


Re: [OT] accessors pragma

2003-09-18 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes:

> For what it's worth...
>
> Perl 6 classes will autogenerate accessors that return the underlying
> attribute itself as an lvalue:
>
>   class DogTag {
>   has $.name is public;
>   has $.rank is public;
>   has $.serial is readonly;
>   has @.medals is public;
>   
>   submethod BUILD ($id) { $.serial = $id }
>
>   method title () { return "$.rank $.name" }
>   }
>
>   my $grunt = DogTag.new(71625371);
>
>   $grunt.name = "Pyle";
>   $grunt.rank = "Private";
>
>   print "$grunt.title ($grunt.serial)\n";
>
> And Perl 6 supports "chaining" of accessors using $_ and the unary dot
> operator, not return values:
>
>   given $grunt {
>   .name = "Patton";
>   .rank = "General";
>   push .medals, "Purple heart";
>   }

The more I play with Smalltalk, the more I like it:

grunt 
  setName: 'Patton';
  setRank: #General;
  addMedal: "Purple heart".

For those who don't know Smalltalk, the semicolon says 'send the next
message to the same object' and the full stop terminates the
expression. 

Then, just as I'm lost in admiration for it, it goes and does this to
me:

   2 + 3 * 2 "-> 10"

And the weird thing is, within a Smalltalk context I don't hate it
(much) because it's apparent that it does that because that's how it
handles *every* binary message.



Re: [ot] doubtless silly perl question

2003-09-17 Thread Piers Cawley
Chris Devers <[EMAIL PROTECTED]> writes:

> On Tue, 16 Sep 2003, Shevek wrote:
>
>> On Tue, 16 Sep 2003, Joel Bernstein wrote:
>>
>> > I have a problem with some code which I'm trying to debug. I'm not
>> > certain, but I think perhaps I'm doing something wrong in the
>> > following line - perhaps inadvertently creating an array slice?
>> >
>> > what do you understand by the line:
>> >my $foo=( split ',' => $line )[7];
>> > ?
>>
>> I understand that you should have used two lines. Why not do so?
>>
>> my @tmp = split /,/, $line;
>> my $foo = $tmp[7];
>
> Fair enough, but what's a good, non-obfuscated-Perl one liner for this?
>
> Would this work?
>
>   my ( ,,$foo ) = ...
>
> No, that's ugly & brittle at best, and hopeless at worst.  Nevermind.
>
> I am curious about good idioms for doing an array slice like this
> though.

That's easy. The correct idiom is:

   my $foo = (split ',' => $line)[...]

With appropriate indices. This is *Perl* for fuck's sake, not C or
Java. Indexing into a list is a perfectly sensible thing to do.



Re: [ot] doubtless silly perl question

2003-09-17 Thread Piers Cawley
Joel Bernstein <[EMAIL PROTECTED]> writes:

> I have a problem with some code which I'm trying to debug. I'm not
> certain, but I think perhaps I'm doing something wrong in the following 
> line - perhaps inadvertently creating an array slice?
>
> what do you understand by the line: 
>   my $foo=( split ',' => $line )[7];
> ?


It's an index into a list, what else would it be? Perfectly good Perl
idiom.

What's breaking?

-- 
Piers




Re: back to the 80's

2003-09-17 Thread Piers Cawley
Steve Keay <[EMAIL PROTECTED]> writes:

> On Mon, Sep 15, 2003 at 09:43:51PM +0100, Paul Makepeace wrote:
>> How about photographs that already exist? I have photos of my Jupiter
>> Ace, and Sharp MZ-80K she's welcome to. (They're pics for ebay as
>> they're about to be sold.)
>
> Apparently that's great so long as they're excellent quality, at least
> 300dpi, lit from the left with no harsh shadows and against a white
> background.  And probably lots of other stuff - apparently they're
> quite fussy.  She'll take a look though...

That'll be a 'no' then.



Re: Surrey.pm

2003-09-17 Thread Piers Cawley
Richard Atkinson <[EMAIL PROTECTED]> writes:

> On Tue, 16 Sep 2003, Andy Wardley wrote:
>
>> I live in Guildford, Surrey and I'm also rather partial to beer.
>> I think it must be time to organise the second ever Surrey.pm
>> meeting.
>
> But /are/ there any decent real ale pubs in Guildford? It's all trendy
> wine bars these days, from what I've seen. Oh how my heart pines for the
> Penderel's, the Knight's Templar or the Calthorpe :(
>
> (Though I am definitely agreed in principle on a surrey.pm meet)

One wonders if there's any nearby town in Surrey whose name begins
with D. If there is then Leon could come along to the first meet and
get one more notch on his 'alphabet of mongers groups of which Leon
is a founder member' belt.



Re: Sets and existing CPAN modules

2003-09-13 Thread Piers Cawley
Mark Fowler <[EMAIL PROTECTED]> writes:

> I'm looking for modules on CPAN that can help me implement the following
> hypothetical class, and the advice of the list on which ones I should use.
>
> Okay, so I have hypothetical collection of objects of the Scooby class,
> and these are stored in the ScoobyCollection object:
>
>   my $scoobygang = ScoobyCollection->new(
> Scooby->new(name => "Buffy"),
> Scooby->new(name => "Willow"),
> Scooby->new(name => "Giles"),
>   );
>
> And I can get objects back by asking the collection for things by name
>
>   $scooby = $scoobygang->get_by_name("Giles");
>
> And I can also rename scooby gang members
>
>   $scooby->set_name("Ripper");
>
> This as if by magic fixes up the collection so that $scoobygang's
> get_by_name method works when I call it with 'Ripper' and not when I call
> it with 'Giles'.
>
> I assume that when an object is added to the ScoobyCollection object a
> weakref is stored in that object and when the object's name accessor is
> called the ScoobyCollection's internal hash of object is automatically
> updated to reflect the changes.  I don't expect my collection to look
> though the contents one by one.
>
> Does anyone know of any existing modules that offer this functionality?
> I'm looking in the long run to adapt something like this to work with
> Pixie.

Well, in Pixie's case you'd use the ObjectInfo object that gets
magically hung off any object that Pixie manages and which holds
references to various bits and pieces, including the managing
Pixie.

It sounds like what you want is a generalized notification system
though. The collection would register with the notification system
that it was interested in changes to any objects that it contained,
and the various mutator method would do something like:

   NotificationManager->post_notification(Changed => $self);

I know Parrot's going to be getting something along these lines (and
I hope it gets exposed at the Perl 6 level), but I don't think
there's anything off the shelf for perl 5. 





Re: Module dependencies

2003-09-09 Thread Piers Cawley
Leon Brocard <[EMAIL PROTECTED]> writes:

> Tony Bowden sent the following bits through the ether:
>
>> Obviously depends on Module::CPANTS being correct, but that's an
>> SEP...
>
> I've given up Module::CPANTS to Thomas Klausner. So it's not my P! ;-)
>
> May he run with it and do all the things I would do if I didn't have
> seventeen billion and four things to do.

It's always the last four things isn't it?



Re: Exim and HELO

2003-09-09 Thread Piers Cawley
Tony Kennick <[EMAIL PROTECTED]> writes:
> Anyway I'm going to go back to baiting the office mac user 

Okay, I now have this image of you threading lugworms onto the office
Mac user and, quite frankly, I wish I didn't. 



Re: Exim and HELO

2003-09-09 Thread Piers Cawley
Rafael Garcia-Suarez <[EMAIL PROTECTED]> writes:

> Nicholas Clark wrote:
>> On Mon, Sep 08, 2003 at 11:58:57AM +, Dominic Mitchell wrote:
>> > Jonathan Stowe <[EMAIL PROTECTED]> wrote:
>> 
>> > > MTA Advocacy  Zzzz
>> > 
>> > What, you'd rather we talked about *cars* or something like that?
>> 
>> I thought traditional london.pm advocacy was whether Willow or Buffy was
>> on top.
>
> It's Willow.
>
> And she writes sendmail.cf files by hand. (due to her high level of
> wizardry ;-)

I once wrote a sendmail.cf file from scratch (with the serious aid of
the Humungous Bat Book). What a pointless exercise that was. I think
I reached the point where I knew *how* to implement a Turing Machine
in sendmail.cf and I was planning to do it 'one day', but somebody
else did it instead.



Re: Kibo and Religion - Inventing Deities

2003-09-07 Thread Piers Cawley
Andy Wardley <[EMAIL PROTECTED]> writes:

> Nigel Hamilton wrote:
>> Talking about inventing deities ... was anyone around when the GOD
>> 'Kibo' was invented on Usenet?
>
> Yep.  I've met and partied with Kibo himself.  I have a special Kibo
> Love Number of 1, reserved for people who have hugged Kibo and have
> been told by Kibo that he loves them, man.

Ah. I've had mail from Kibo, but haven't actually met him. 



Re: insidious biometrics, identity crises

2003-09-02 Thread Piers Cawley
Elaine -HFB- Ashton <[EMAIL PROTECTED]> writes:

> Piers Cawley [EMAIL PROTECTED] quoth:
> *>
> *>CwG: Right, you have seven days to produce your ID card at any police
> *>station -- here's the appropriate bit of paper to bring along with it.
> *>Me: Right ho. Have a nice day.
>
> I don't know that you could get away with that in the US as they'd track
> down the owner of the car after 7 days

What car are you talking about? There is no car.




Re: insidious biometrics, identity crises

2003-09-01 Thread Piers Cawley
Elaine -HFB- Ashton <[EMAIL PROTECTED]> writes:

> Piers Cawley [EMAIL PROTECTED] quoth:
> *>
> *>Not if they stop you walking down the street.
>
> Well, in the US where cops carry guns, I wouldn't try that myself.

Cop with gun: Show me your ID, sir!
Me: I'm terribly sorry, I don't have my wallet about my person.
CwG: Okay, what's you're name and address?
Me: Albert Urquhart of 72, Regent Square, Doncaster.
CwG: Postcode?
Me: Um... I've just moved in, terribly sorry I can't remember it.
CwG: Right, you have seven days to produce your ID card at any police
station -- here's the appropriate bit of paper to bring along with it.
Me: Right ho. Have a nice day.

If they require my DNA they are going to have to arrest me to get
it. 



Re: insidious biometrics, identity crises

2003-09-01 Thread Piers Cawley
Elaine -HFB- Ashton <[EMAIL PROTECTED]> writes:

> Piers Cawley [EMAIL PROTECTED] quoth:
> *>
> *>How would they know who to arrest if nobody turned up with the ID
> *>card within seven days?
>
> Well, the car has a vin and registration. I'm sure that taking the car in
> lieu of identification would likely produce a license.

Not if they stop you walking down the street.



Re: insidious biometrics, identity crises

2003-09-01 Thread Piers Cawley
Rafael Garcia-Suarez <[EMAIL PROTECTED]> writes:

> Piers Cawley wrote:
>> 
>> How would they know who to arrest if nobody turned up with the ID
>> card within seven days?
>
> Implementation detail. Do you think that the marketroids that work
> for the government are any better, on the average, than the others ?
>
> Oh, and ID cards should be soft pink, too. More pleasant to the
> customers' eyes : so they'll accept them with more facility.

I think they already did that with driving licenses.



Re: insidious biometrics, identity crises

2003-09-01 Thread Piers Cawley
Elaine -HFB- Ashton <[EMAIL PROTECTED]> writes:

> Tony Bowden [EMAIL PROTECTED] quoth:
> *>
> *>You only have to be able to produce your driving license when asked, and
> *>you have up to 7 days to do so. You don't have to be carrying it.
>
> Well, I suspect something similar would happen with an ID card.

How would they know who to arrest if nobody turned up with the ID
card within seven days?



Re: insidious biometrics, identity crises

2003-08-29 Thread Piers Cawley
Elaine -HFB- Ashton <[EMAIL PROTECTED]> writes:

> Simon Wilcox [EMAIL PROTECTED] quoth:
> *>
> *>On a conceptual level I have no particular problem with carrying an id 
> *>card. Do I trust the government to get it right and to protect my data ? 
> *>Not a bloody chance !
>
> Indeed, I feel the same, but it's only a matter of time before it comes.

Only if enough people take that attitude.



Re: insidious biometrics, identity crises

2003-08-29 Thread Piers Cawley
Michael Stevens <[EMAIL PROTECTED]> writes:

> On Thu, Aug 28, 2003 at 05:38:23PM +0100, Simon Wilcox wrote:
>> 2. The governments ability to deliver large scale IT projects is almost 
>> zero. Time after time major projects have failed and this will be the 
>> largest IT project undertaken by central government. It is almost certain 
>> to fail too, wasting tens or hundreds of millions of pounds of our money.
>> 
>> On a conceptual level I have no particular problem with carrying an id 
>> card. Do I trust the government to get it right and to protect my data ? 
>> Not a bloody chance !
>
> Aah, but what programming language would be best for them to use on
> such a project?

Befunge. Or Brainfuck. Maybe INTERCAL.



Re: insidious biometrics, identity crises

2003-08-29 Thread Piers Cawley
Robin Berjon <[EMAIL PROTECTED]> writes:

> Nicholas Clark wrote:
>> On Thu, Aug 28, 2003 at 09:48:56AM -0500, Elaine -HFB- Ashton wrote:
>>>happens if you get hit by a bus and you're alone? How do you expect your
>> Someone calls and ambulance, and no-one at the hospital worries
>> whether you
>> have health insurance, because it's free at the point of delivery.
>
> I don't think that's what Elaine was pointing at. You're hit by a bus
> and die. How do they contact your friends and family if you can't be
> identified?

Why should he care? He's dead.



Re: golf and reversed emails

2003-08-28 Thread Piers Cawley
Ben <[EMAIL PROTECTED]> writes:

> On Thu, Aug 28, 2003 at 10:04:43AM +0200, Philip Newton wrote:
>> 
>> Reminds me of some programming contest where you had to take as little 
>> time as possible to do task X. You were allowed to submit multiple 
>> candidates; the one that took the least amount of CPU time would 
>> determine your score.
>> 
>> I believe the winner was one that submitted n candidate programs, n > 
>> 2; one of them actually completed the task and wrote the correct result 
>> to a file, another simply slept, occasionally looking to see whether 
>> this special file existed. When it showed up, it would print the 
>> result. Bingo: correct result with very little CPU time.
>> 
>> (There was another chappy who munged around in memory, overwriting some 
>> OS bookkeeping values, which made it look as if his program took 
>> negative CPU time.)
>> 
>> They tightened up the rules for subsequent contest, I believe...
>
> Yes. I first read about this is in Peter van der Linden's excellent
> book Expert C Programming. I would heartily recommend it as one of
> the most readable books about a programming language I have ever
> read. Go find.

Seconded. And I don't go near C if I can possibly help it.



Re: [OT] SQL woes

2003-08-22 Thread Piers Cawley
Dominic Mitchell <[EMAIL PROTECTED]> writes:

> Randal L. Schwartz <[EMAIL PROTECTED]> wrote:
>> MySQL is *just* now getting transactions.  PostgreSQL has had some
>> very good experts working on transactions for years now, and they're
>> much further along on the trial-and-error curve that MySQL is just now
>> starting.
>
> I'd just like to point out that postgresql doesn't have nested
> transactions.  This annoyed me because I had to think about my design
> harder.  :-)

It is rather annoying isn't it? 



Re: Extending Other Packages

2003-08-18 Thread Piers Cawley
Mark Fowler <[EMAIL PROTECTED]> writes:
> Meanwhile in your code
>
> use Bar;  # load Bar
> use Foo;  # load Foo, which will load extensions into Bar (the fred method
>   # in the above explanation
>
> But don't do that.  Really.  No, really, really, really.  No REALLY REALLY
> REALLY.
>
> Years of OO design have shown us that this is a bad idea.

Tell that to the Smalltalk boys. Sometimes adding a method to Object
is the best way to get your package to work. In fact, I'm not sure
you've really done OO until you've added a method to "someone else's"
class. 

-- 
Piers



Coming to Lunnun

2003-08-14 Thread Piers Cawley
Does anyone have crash space for Thursday night? 

-- 
Piers



Re: Hundredweight was Re: UK Money, again

2003-07-04 Thread Piers Cawley
Steve Mynott <[EMAIL PROTECTED]> writes:

> Roger Horne wrote:
>
>> On Fri 27 Jun, Philip Newton wrote:
>>
>>>You have: cwt
>>>You want:
>>>Definition: hundredweight = 100 pounds = 45.359237 kg
>>>
>>>which sounds as if it *is* 100 somethings.
>> But is wrong. There are 112 pounds in a hundredweight (or were when
>> I was at
>> school). See http://home.clara.net/brianp/weights.html
>
> You are both right depends whether you are talking about an American
> or English hundredweight.
>
> GNU units has 'brhundredweight' defined whereas the FreeBSD 4.5
> units(1) doesn't (and probably should).

I'm not sure which version of units one finds on Mac OS X, but its
units.lib has an entry for 'longhundredweight', which is the 'right'
hundredweight.

-- 
Piers



Re: OSCON

2003-07-04 Thread Piers Cawley
Andy Wardley <[EMAIL PROTECTED]> writes:

> So who is going to be at OSCON?

Me!

> Will London.pm field a team in the quiz (I'm up for it!)

No quiz!

> Will beer be drunk?

Probably.

-- 
Piers



Re: list all installed perl modules

2003-07-04 Thread Piers Cawley
Nicholas Clark <[EMAIL PROTECTED]> writes:

> On Wed, Jul 02, 2003 at 05:22:17PM +0100, Leon Brocard wrote:
>> Redvers Davies sent the following bits through the ether:
>> 
>> > Speak to shiny, orange acme and acquire cpanstats. 
>> > 
>> > http://www.astray.com/cpanstats/
>> 
>> Look, okay, I'm sorry. I broke cpanstats a while ago and have zero
>> free time to fix it. I'm sorry, very sorry.
>
> But if you will go and sell yourself to Elaine and Jos, what did you expect
> would happen?

He didn't sell himself. I sold him. And judging by his expression when
I started taking bids, he didn't quite realise it was for real...


-- 
Piers



Re: Using LWP for protected pages

2003-07-04 Thread Piers Cawley
"Piers" <[EMAIL PROTECTED]> writes:
> -
> Piers
> (a different one!)

Argh! But which of us is the anti-Piers? Will there be mutual
destruction if we end up in the same place?

-- 
Piers



Re: UK Money, again

2003-06-30 Thread Piers Cawley
"muppet" <[EMAIL PROTECTED]> writes:

> David Cantrell said:
>> The hundredweight is 112 lbs, or 8 stone, or 1/20 ton.
>
> suddenly i have a new understanding of "weighin' in at nineteen stone", from
> "whole lotta rosie".  indeed, that is a whole lot of woman.  wow.

There was apparently an occasion when some eejits at MIT demanded that
all classes be taught using the furlong/stone/fortnight system of
measurements...

-- 
Piers



Re: [Advert] indy hardware for sale

2003-06-08 Thread Piers Cawley
Greg McCarroll <[EMAIL PROTECTED]> writes:
> Some of the less interesting stuff that I will be getting rid of 
> includes,
>
>   HP SureStore 2000 Tape Drive

That's SCSI DAT right?

-- 
Piers



Re: [JOB] (maybe) Leicester

2003-06-03 Thread Piers Cawley
Chris Benson <[EMAIL PROTECTED]> writes:

> On Sun, Jun 01, 2003 at 06:33:59AM +0100, Piers Cawley wrote:
>> 
>> Well, I might have been not that long ago, but I've got a month in
>> America coming up after which we're probably moving to Newcastle. So
>> that doesn't really help all that much does it?
>
> Tyneside.pm ++ ?

Well, it's contingent on a few things, but it's looking likely.

-- 
Piers



Re: [JOB] (maybe) Leicester

2003-06-01 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes:

> Hey, folks.
>
> I got mail from a consultant/recruiter in Leicester asking if I knew
> of any perl gurus looking for work. Since I'm not sure where
> everyone is, relatively speaking, I figured I'd pass it on. If
> anyone's interested, get in touch with me and I'll forward your info
> on, and we'll see where things go from there.

Well, I might have been not that long ago, but I've got a month in
America coming up after which we're probably moving to Newcastle. So
that doesn't really help all that much does it?

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-13 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes:

> Piers Cawley wrote:
>
>>> ...Piers is perfectly capable of coding equally cleverly
>>> in Python, or Java, or Pascal or any other language.
>>>
>>>;-)
>> Frankly, Piers would rather stick his nuts in a blender than program
>> in either Python, Java or Pascal thank you very much.
>
> Now you're just being silly.
>
> I mean, where would they find a blender big enough???

You are a Very Bad Man. As if we didn't already know this.

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-12 Thread Piers Cawley
Piers Cawley <[EMAIL PROTECTED]> writes:

> Damian Conway <[EMAIL PROTECTED]> writes:
>
>> Piers Cawley wrote:
>>
>>> Oi!**2 Yeah, I know it's in quote marks, but even so. Especially
>>> coming from someone who's perpetrated Perl in Klingon.
>>
>> Well, if you're going to ignore significant quotations marks, I
>> thought you'd be *delighted*. Now you can cite me as having publicly
>> stated:
>>
>>  ...Piers is perfectly capable of coding equally cleverly
>>  in Python, or Java, or Pascal or any other language.
>>
>> ;-)
>
> Frankly, Piers would rather stick his nuts in a blender than program
> in either Python, Java or Pascal thank you very much.

s/either/any of/ 

And here's me, trying to get work as a writer.

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-12 Thread Piers Cawley
David Wright <[EMAIL PROTECTED]> writes:

>>>
>>> What I hope is that Perl 6 is like that. That most people will
>>> never see
>>> the complicated bits. What I worry about is maintaining code by
>>> someone
>>> like Piers (sorry Piers :) which is so full of clever bits that I will
>>> have to deal with 'Full on Larry during the Apocalypses demonstrating
>>> some tortuous bit of syntax' style stuff where they've used all the
>>> clever stuff. Or even some of the clever stuff.
>>
>> Oi! The only code of mine that I've ever showed London.pm is hard to
>> understand because it's doing some really mad stuff with Perl's
>> internals. And the only reason that stuff is mad is because Perl's
>> internals are mad. If I ever get back to that code I'll probably end
>> up pushing as much madness as I can down behind an abstraction
>> barrier. But I'm more likely to push for better interfaces to Perl 6's
>> internals and wait for that. But I'm rather more bullish on when it'll
>> be available than most.
>
> I'm in a good position to second that 'Oi!' since I am currently
> maintaining code by not just someone like Piers but by Piers
> himself, and, well, it's the cleanest and easiest to understand code
> I've ever had to hack about with. 'Tis very educational, but not
> w.r.t. "look at this hole-in-one; see how I put the spin on that
> ball!", instead rather "damn those OO teachers at uni, why didn't
> they show me stuff like this ..."

Bloody hell Dave! Thanks for that. Really. Coo. Shuffles
feet. Blushes.

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-12 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes:

> Piers Cawley wrote:
>
>> Oi!**2 Yeah, I know it's in quote marks, but even so. Especially
>> coming from someone who's perpetrated Perl in Klingon.
>
> Well, if you're going to ignore significant quotations marks, I
> thought you'd be *delighted*. Now you can cite me as having publicly
> stated:
>
>   ...Piers is perfectly capable of coding equally cleverly
>   in Python, or Java, or Pascal or any other language.
>
> ;-)

Frankly, Piers would rather stick his nuts in a blender than program
in either Python, Java or Pascal thank you very much.

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-12 Thread Piers Cawley
Simon Wistow <[EMAIL PROTECTED]> writes:

> On Tue, Mar 11, 2003 at 12:27:00PM +, Shevek said:
>> Languages like ADA95 (I think), C++ (somewhat) [more examples?] are
>> designed as very rich source languages to pass a lot of semantic
>> information to the compiler. They are tedious to write. Frequently,
>> however, the compiler throws away a lot of the semantic information too
>> early in the compile phase). Traditional binary has no information to
>> optimise.
>
>
> There was a mildly interesting post on Slashdot that said 
>
> "I used to think that perl might become the new COBOL. Now it looks like
> it's going to be the new ADA. Lots of nice features but such complexity
> and cleverness that even the people who use it don't like it. ADA's a
> good language, but no one uses it. It would be a shame if perl 6 went
> the same way."
>
>
> Which are sentiments that I heartily agree with.
>
> It goes on to say.
>
> "Perhaps the cleverness of the ideas are not being tempered by real use
> at this point. A language does not become great by adding new syntax and
> semantics for each feature but by refining it to the essential units
> needed to express all the rest. We should not celebrate the fact that
> "will" and "is" are very similar ways to express traits in perl 6. We
> should ask instead why do we need both? Further, is it possible for me
> to define a new "wont" statement in perl, or are "will" and "is" special
> things only language designers can implement?"

Yes, you can define a new "wont" statement. That's what macros are for.
> As previously mentioned I've becomed mildly obsessed with the usability
> of APIs. And a language is really nothing more than a flexible but
> complicated API. 
>
> Lots of people have said that the *::Simple interfaces are used more
> than their more complicated parents. The thing I don't like about them
> is that If I've previosuly been using, say LWP::Simple 
>
>
>   my $page = get(http://thegestalt.org');
>
> and then I want to introduce the timeouts, I then have to do.
>
>   my $ua = new LWP::UserAgent();
>   $ua->useragent('mozilla 5.0');
>   $ua->timeout(6);
>
>   $ua->request('http://thegestalt.org');
>
> which is a quite a big shift.

This is something we've been worrying about with Pixie, and is what I
was driving at in my 'managing complexity with "just"' lightning
talk. Good interfaces are deep; you should be able to access more
complex behaviours without dramatically changing the interface along
those lines. 

> I released a module over the weekend which ahs an interface that I'm
> quite proud of. As far as most people are concerned it's just 
>
>   my $tc = Text::Chump->new();
>   print $tc->chump($text);
>
>
> and that's it. I've even toyed with having the chump method check to see
> if it's been called in an OO manner or not and just letting people do
>
>   chump($text);

Danger, down that road lies CGI.pm. However, there's nothing to stop
you having a 

   use Text::Chump 'chump';

and having the import subroutine do something like:

   *calling_package::chump = sub { Text::Chump->new->chump(@_) };

> However, behind that, there's also a lot of power. For example you can
> install new handlers for the default types (urls, links and images) or
> just override based on regexen. Or even install new types. But most
> people will never have to use that (I did, which is why I put those
> methods in).
>
> What I hope is that Perl 6 is like that. That most people will never see
> the complicated bits. What I worry about is maintaining code by someone
> like Piers (sorry Piers :) which is so full of clever bits that I will
> have to deal with 'Full on Larry during the Apocalypses demonstrating
> some tortuous bit of syntax' style stuff where they've used all the
> clever stuff. Or even some of the clever stuff. 

Oi! The only code of mine that I've ever showed London.pm is hard to
understand because it's doing some really mad stuff with Perl's
internals. And the only reason that stuff is mad is because Perl's
internals are mad. If I ever get back to that code I'll probably end
up pushing as much madness as I can down behind an abstraction
barrier. But I'm more likely to push for better interfaces to Perl 6's
internals and wait for that. But I'm rather more bullish on when it'll
be available than most.

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-12 Thread Piers Cawley
[EMAIL PROTECTED] (Randal L. Schwartz) writes:

>> "Mark" == Mark Fowler <[EMAIL PROTECTED]> writes:
>
> Mark> There are many features that make basic Perl 6 easier to
> Mark> understand - the change in sidgels (the funny chars), easier
> Mark> function calling, nicer OO...  Sum of the parts, etc, etc.  If
> Mark> you want my real, serious, answer to this question it's when
> Mark> Larry et al write the next Camel book and demonstrate how it's
> Mark> easier (though Damian's been having a good go enroute to Perl 6)
>
> Well, I'd even go one step further...
>
> Will the llama and alpaca for perl6 be easier or harder to read?

And will they be harder to write?

> Imagine the pressure I am feeling... :)

No thanks.

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-12 Thread Piers Cawley
Mike Jarvis <[EMAIL PROTECTED]> writes:

> On Tue, Mar 11, 2003 at 12:27:00PM +, Shevek wrote:
>> 
>> The tradeoff for moving things to compile time is coder speed. The extra
>> syntax, typing and complexity of source code structures makes it take
>> longer to write code. As we all know, machine time is MUCH cheaper than 
>> programmer time.
>
> Yes, exactly, and I think that's the fear of most people that still
> fear Perl 6. 
>
> The great thing about most of the new stuf to help the compiler is
> that it's optional.  perl will continue just DWIM, unless you tell it
> you really mean something else. (Which is were the trickiness of
> implementation comes in. Will it *really* DWIM if I leave out the
> scary new stuff?)

It better bloody had do. I have very little intention of using type
declarations for anything except multimethod declarations and then
only in cases where I *have* to.

> It will be interesting to see how much performance boost you'll get in
> the real world by going back and putting in real prototypes for code
> that could start life looking much like perl 5 code.

Initially? I'm guessing not that much. But Leo Toetsch could yet prove
me wrong. Of course, if things go right then writing a profiler to let
you find the bits that would really benefit from a little more
discipline. 

-- 
Piers



Re: Perl 6 Apocalypse 6

2003-03-12 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes:
> Simon Wistow wrote:
>> What I worry about is maintaining code by someone
>> like Piers (sorry Piers :) which is so full of clever bits that I will
>> have to deal with 'Full on Larry during the Apocalypses demonstrating
>> some tortuous bit of syntax' style stuff where they've used all the
>> clever stuff. Or even some of the clever stuff.
>
> See my various Slashdot posts in that thread. There I talk about
> creating Policy:: modules to nip clever folks in the bud, and also
> about the fact that this is a *social* problem, not a technical
> one. "Someone like Piers" is perfectly capable of coding equally
> "cleverly" in Python, or Java, or Pascal or any other language.

Oi!**2 Yeah, I know it's in quote marks, but even so. Especially
coming from someone who's perpetrated Perl in Klingon. 

-- 
Piers



Re: IDE for windows?

2003-03-09 Thread Piers Cawley
"Luis Campos de Carvalho" <[EMAIL PROTECTED]> writes:

> - Original Message -
> From: "Dave Cross" <[EMAIL PROTECTED]>
> Sent: Monday, February 17, 2003 9:22 AM
>>
>> From: Neil Fryer <[EMAIL PROTECTED]>
>> Date: 2/17/03 11:12:01 AM
>>
>> > Can anyone recommend a decent IDE for Windows?
>> > Oh yeah, and free.  :-)
>>
>> Depends what you want from an IDE. Xemacs always seems to do
>> all I want.
>
>
>   Hi, Dave, hi Neil.
>
>   This game is  multiplayer. =-]
>
>   Emacs is quite nice, but can't debug perl code (as far as I know). 

Yes it can. Assuming you do the sensible thing and use cperl-mode of course. 

-- 
Piers



Re: Freelance cooperatives

2003-03-02 Thread Piers Cawley
Simon Wistow <[EMAIL PROTECTED]> writes:

> On Fri, Feb 28, 2003 at 04:56:53PM +, Ng Wu Lee said:
>> A couple of years ago I read an article linked by /. (which I can't find) 
>> describing a phenomena allegedly occurring in the US wherein groups of 
>> programmers, web designers, project managers and artists etc. were forming 
>> cooperatives and finding or generating work on their own after being made 
>> redundant.
>
> A few (very talented) people on this list did attempt to set up a
> similar collective/consultancy. Unfortunately the market at the time was
> very unfavourable and it got mothballed.

Plus, if you're talking about Iterative, we (I?) sucked at marketing
and recognizing dropped hints from people with possible work.

-- 
Piers



Re: [buffy] is leaving?

2003-02-14 Thread Piers Cawley
"David H. Adler" <[EMAIL PROTECTED]> writes:

> On Fri, Feb 14, 2003 at 07:14:15PM +, Piers Cawley wrote:
>> "David H. Adler" <[EMAIL PROTECTED]> writes:
>> 
>> > On Fri, Feb 14, 2003 at 05:02:29PM +, Piers Cawley wrote:
>> >> "David H. Adler" <[EMAIL PROTECTED]> writes:
>> >> 
>> >> > On Thu, Feb 13, 2003 at 06:23:23AM -0800, Dave Cross wrote:
>> >> >> 
>> >> >> "Normal Again" which is by far the best episode of Buffy ever
>> >> >> made.
>> >> >
>> >> > Hm.  Interesting choice.  My gut choice there would be The Body,
>> >> > actually.
>> >> 
>> >> Indeed. In fact I'd go so far as to say it's probably in the top ten
>> >> best episodes of any TV show ever.
>> >
>> > I might agree.  Ironically, the one thing about the episode that puts me
>> > off is the fact that they felt required to put a vampire in it.
>> 
>> I dunno. I'm in two minds about it. Pointed up the fact that, frankly,
>> monsters are nothing compared to the shock of loss.
>
> Hm.  I felt that it took away from the fact that this was the first time
> any of them had to deal with a natural death.  It's not like yet another
> vamp is anything different for them.
>
> But that's me.  *shrug*

Okay, I've just done the mental equivalent of sticking my thumb over
the bit with the vamp in it and taking a look at the picture again,
and you're right. Still, perfection isn't everything it's cracked up to be.

-- 
Piers




Re: [buffy] is leaving?

2003-02-14 Thread Piers Cawley
"David H. Adler" <[EMAIL PROTECTED]> writes:

> On Fri, Feb 14, 2003 at 05:02:29PM +, Piers Cawley wrote:
>> "David H. Adler" <[EMAIL PROTECTED]> writes:
>> 
>> > On Thu, Feb 13, 2003 at 06:23:23AM -0800, Dave Cross wrote:
>> >> 
>> >> "Normal Again" which is by far the best episode of Buffy ever
>> >> made.
>> >
>> > Hm.  Interesting choice.  My gut choice there would be The Body,
>> > actually.
>> 
>> Indeed. In fact I'd go so far as to say it's probably in the top ten
>> best episodes of any TV show ever.
>
> I might agree.  Ironically, the one thing about the episode that puts me
> off is the fact that they felt required to put a vampire in it.

I dunno. I'm in two minds about it. Pointed up the fact that, frankly,
monsters are nothing compared to the shock of loss.

-- 
Piers




Re: [buffy] is leaving?

2003-02-14 Thread Piers Cawley
"David H. Adler" <[EMAIL PROTECTED]> writes:

> On Thu, Feb 13, 2003 at 06:23:23AM -0800, Dave Cross wrote:
>> 
>> "Normal Again" which is by far the best episode of Buffy ever
>> made.
>
> Hm.  Interesting choice.  My gut choice there would be The Body,
> actually.

Indeed. In fact I'd go so far as to say it's probably in the top ten
best episodes of any TV show ever.

-- 
Piers




  1   2   3   >