Re: Do what I mean!
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
Re: Do what I mean!
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!
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!
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!
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!
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