Re: Do what I mean!

2001-02-27 Thread Piers Cawley

Steve Mynott <[EMAIL PROTECTED]> writes:

> Simon Wistow <[EMAIL PROTECTED]> writes:
> 
> > We can reason that there is a Perl Core that spans multiple dimensions
> > so there must be a finite probability that there is one. Somewhere.
> > Possibly in a galaxy, far far away.
> 
> Actually some of the quantum computing people believe that the
> parallel calculations before they collapse to the result are _really_
> taking place in alternative worlds.

I still think they're actually orthogonal universes, but that's mere
quibbling.

-- 
Piers




Re: Do what I mean!

2001-02-27 Thread Matthew Robinson


I thought the shor.pl was related to Q::E stuff.  I don't remember any Shor
stuff for Q::S.

Matt

At 16:47 27/02/01 +, you wrote:
>On Tue, Feb 27, 2001 at 03:37:35PM +, Simon Wistow wrote:
>
>> Matthew Robinson wrote:
>> 
>> > I have now implemented the changes to the constant pragma module so that
>> > all scripts run in constant time (in fact they run instantaneously).
>> 
>> You're ill.
>> 
>> Get help.
>
>I'm iller!  I'm using Q::S in production code, cos it's easier to read than
>what I was doing previously.  We'll see what a performance hit I get when
>I run it over a real dataset.
>
>A slightly related question - I remember Damian having a slide with his
>version of Shor's algorithm, which I can't find anywhere in the perldoc and
>which I can't for the life of me remember.  I think at the time that my
>brain was trying to escape through my ears.  Can anyone remember it?  The
>only version I can find online is in the Q::E module, and it ain't what
>I remember.
>
>-- 
>David Cantrell | [EMAIL PROTECTED] | http://www.cantrell.org.uk/david/
>
>   Any technology distinguishable from magic is insufficiently advanced
>
>** I read encrypted mail first, so encrypt if your message is important **
>
>Attachment Converted: "d:\eudora\attach\Re Do what I mean!1"
>




Re: Do what I mean!

2001-02-27 Thread jduncan

I remember him mentioning that there was an implementation of shor's
algorithm in Quantum::Entanglement.

On Tue, Feb 27, 2001 at 04:47:42PM +, David Cantrell wrote:
> On Tue, Feb 27, 2001 at 03:37:35PM +, Simon Wistow wrote:
> 
> > Matthew Robinson wrote:
> > 
> > > I have now implemented the changes to the constant pragma module so that
> > > all scripts run in constant time (in fact they run instantaneously).
> > 
> > You're ill.
> > 
> > Get help.
> 
> I'm iller!  I'm using Q::S in production code, cos it's easier to read than
> what I was doing previously.  We'll see what a performance hit I get when
> I run it over a real dataset.
> 
> A slightly related question - I remember Damian having a slide with his
> version of Shor's algorithm, which I can't find anywhere in the perldoc and
> which I can't for the life of me remember.  I think at the time that my
> brain was trying to escape through my ears.  Can anyone remember it?  The
> only version I can find online is in the Q::E module, and it ain't what
> I remember.
> 
> -- 
> David Cantrell | [EMAIL PROTECTED] | http://www.cantrell.org.uk/david/
> 
>Any technology distinguishable from magic is insufficiently advanced
> 
> ** I read encrypted mail first, so encrypt if your message is important **



-- 
James A. Duncan
W: www.fotango.com
P: +44 207 251 7021
F: +44 207 608 3592

 PGP signature


Re: Do what I mean!

2001-02-27 Thread David Cantrell

On Tue, Feb 27, 2001 at 03:37:35PM +, Simon Wistow wrote:

> Matthew Robinson wrote:
> 
> > I have now implemented the changes to the constant pragma module so that
> > all scripts run in constant time (in fact they run instantaneously).
> 
> You're ill.
> 
> Get help.

I'm iller!  I'm using Q::S in production code, cos it's easier to read than
what I was doing previously.  We'll see what a performance hit I get when
I run it over a real dataset.

A slightly related question - I remember Damian having a slide with his
version of Shor's algorithm, which I can't find anywhere in the perldoc and
which I can't for the life of me remember.  I think at the time that my
brain was trying to escape through my ears.  Can anyone remember it?  The
only version I can find online is in the Q::E module, and it ain't what
I remember.

-- 
David Cantrell | [EMAIL PROTECTED] | http://www.cantrell.org.uk/david/

   Any technology distinguishable from magic is insufficiently advanced

** I read encrypted mail first, so encrypt if your message is important **

 PGP signature


Re: Do what I mean!

2001-02-27 Thread Simon Wistow

Matthew Robinson wrote:
> 
> I have now implemented the changes to the constant pragma module so that
> all scripts run in constant time (in fact they run instantaneously).

You're ill.

Get help.



Re: Do what I mean!

2001-02-27 Thread Steve Mynott

Simon Wistow <[EMAIL PROTECTED]> writes:

> We can reason that there is a Perl Core that spans multiple dimensions
> so there must be a finite probability that there is one. Somewhere.
> Possibly in a galaxy, far far away.

Actually some of the quantum computing people believe that the
parallel calculations before they collapse to the result are _really_
taking place in alternative worlds.

http://sparc.airtime.co.uk/users/station/m-worlds.htm

Presumably these worlds are connected by cat flaps...

-- 
1024/D9C69DF9 steve mynott [EMAIL PROTECTED]

the trouble with being punctual is that nobody's there to appreciate
it.
-- franklin p. jones



Re: Do what I mean!

2001-02-27 Thread Matthew Robinson


I have now implemented the changes to the constant pragma module so that
all scripts run in constant time (in fact they run instantaneously).

Therefore, 

use constant time;
print time;
sleep 10;
print time;

prints the following

983287506
983287506

And here is the diff file for constant.pm

165a166,173
> 
> if ($name == time) {
> no strict 'refs';
> my $pkg = caller;
> *{"${pkg}::time"} = sub () { $name };
> return;
> }
> 
183d190
< 


Matt





Re: Do what I mean!

2001-02-27 Thread Simon Wistow

Steve Purkis wrote:

> A *few* tweaks to the core?  Come on now, you'd have to make the core
> grok multiple dimensions!  (... and that would be about as easy as
> building an infinite improbrability drive...)

We can reason that there is a Perl Core that spans multiple dimensions
so there must be a finite probability that there is one. Somewhere.
Possibly in a galaxy, far far away.

So we sit Larry down infront of 8uffy, feed him a really good, strong
cup of tea and voila - Perl 6 complete with 'use constant time;' and
full DWIM engine.



Re: Do what I mean!

2001-02-27 Thread Matthew Robinson

At 12:42 27/02/01 +, you wrote:
>Matthew Robinson wrote:
>> 
>> With respect to Quantum::Superpositions and in the spirit of 'Do what I
>> mean' I think we should be able to write any script and place the following
>> pragma in the header.
>> 
>> use constant time;
>> 
>> Obviously, the constant module would have to be overloaded to allow this
>> along with a few tweaks to the core.
>
>need to understand this to make use of it.  So maybe it would just be a
>matter of trying (eg: observing) it and seeing if it works?  Well, I
>did, and I got this error:
>
>% perl -e 'use constant time;'
>Can't define "983277222" as constant (name contains invalid characters
>or is empty) at -e line 1
>BEGIN failed--compilation aborted at -e line 1.
>
>I concluded that while it must work in some universe, it isn't ours.

I did say we would have to overload the constant pragma first.

Matt






Re: Do what I mean!

2001-02-27 Thread Steve Purkis

Matthew Robinson wrote:
> 
> With respect to Quantum::Superpositions and in the spirit of 'Do what I
> mean' I think we should be able to write any script and place the following
> pragma in the header.
> 
> use constant time;
> 
> Obviously, the constant module would have to be overloaded to allow this
> along with a few tweaks to the core.

A *few* tweaks to the core?  Come on now, you'd have to make the core
grok multiple dimensions!  (... and that would be about as easy as
building an infinite improbrability drive...)

But I suppose you might argue that the core already _spans_ multiple
dimensions (everything does, until you look at it), so it wouldn't relly
need to understand this to make use of it.  So maybe it would just be a
matter of trying (eg: observing) it and seeing if it works?  Well, I
did, and I got this error:

% perl -e 'use constant time;'
Can't define "983277222" as constant (name contains invalid characters
or is empty) at -e line 1
BEGIN failed--compilation aborted at -e line 1.

I concluded that while it must work in some universe, it isn't ours.

regards,
--
 Steve Purkis   <[EMAIL PROTECTED]>
 Unix Developer www.redhotchilli.com



Re: Do what I mean!

2001-02-27 Thread David Cantrell

On Tue, Feb 27, 2001 at 12:22:17PM +, Matthew Robinson wrote:

> use constant time;
> 
> Obviously, the constant module would have to be overloaded to allow this
> along with a few tweaks to the core.

s/core/universe/ but hey, what's mere reality between friends?

-- 
David Cantrell | [EMAIL PROTECTED] | http://www.cantrell.org.uk/david/

   Any technology distinguishable from magic is insufficiently advanced

** I read encrypted mail first, so encrypt if your message is important **

 PGP signature


Do what I mean!

2001-02-27 Thread Matthew Robinson


With respect to Quantum::Superpositions and in the spirit of 'Do what I
mean' I think we should be able to write any script and place the following
pragma in the header.

use constant time;

Obviously, the constant module would have to be overloaded to allow this
along with a few tweaks to the core.

Matt