Re: Translitteration and combining strings and array references

2005-10-16 Thread David Formosa \(aka ? the Platypus\)
On Fri, 14 Oct 2005 08:38:55 +0200, Peter Makholm [EMAIL PROTECTED] wrote: Yesterday I spend some hours getting pugs to understand translitterations with multiple ranges in each pair. E.g. foobar.trans( a-z = n-za-n ); By accident I tested something like: foobar.trans( ['a' .. 'z']

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-26 Thread David Formosa \(aka ? the Platypus\)
On Thu, 25 Aug 2005 16:25:51 +0300, Yuval Kogman [EMAIL PROTECTED] wrote: [...] On Thu, Aug 25, 2005 at 11:16:56 -, David Formosa (aka ? the Platypus) = wrote: [...] use has the potentional to change the way the compiler parses the code. So use needs to be regarded. Hmm... Good

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread David Formosa \(aka ? the Platypus\)
On Wed, 24 Aug 2005 16:13:03 +0300, Yuval Kogman [EMAIL PROTECTED] wrote: [...] perl6 creates a new instance of the perl compiler (presumably an object). The compiler will only compile the actual file 'foo.pl', and disregard any 'require', 'use', or 'eval' statements. use has the potentional

Re: Disappearing code

2005-08-20 Thread David Formosa \(aka ? the Platypus\)
On Thu, 09 Jan 2003 21:12:07 -0500, John Siracusa [EMAIL PROTECTED] wrote: [...] Hey, it adds up! Okay, maybe it doesn't...but still, Perl 6 Should Be Able To Do This! :) And I'd also like inline constructs like: ASSERT $foo 5 is_happy(blah); macro debug ($code) is parsed

Re: GC API from discussion

2005-08-17 Thread David Formosa \(aka ? the Platypus\)
On Tue, 16 Aug 2005 20:14:43 +0300, Yuval Kogman [EMAIL PROTECTED] wrote: [...] Let's define some terms: These are all very good and I'm going to incorprate them in the API docs. scope/origin - where objects are created I would refine this one. origin scope - The lexical scope

Re: GC API from discussion

2005-08-17 Thread David Formosa \(aka ? the Platypus\)
On Tue, 16 Aug 2005 19:46:29 +0300, Yuval Kogman [EMAIL PROTECTED] wrote: [...] On Tue, Aug 16, 2005 at 05:32:50 -, David Formosa (aka ? the Platypus) = wrote: This is getting me thinking though: =20 $*RUNTIME.Memory.GarbageCollector.dispose($object); # force it, # even

Re: GC API from discussion

2005-08-16 Thread David Formosa \(aka ? the Platypus\)
On Mon, 15 Aug 2005 12:40:05 +0100, Adrian Howard [EMAIL PROTECTED] wrote: On 15 Aug 2005, at 02:13, David Formosa ((aka ? the Platypus)) wrote: After a very fruitful discussion I've rewritten my suggested GC API. Comments please. [snip] I'm speaking from complete ignorance since I've

Re: GC API from discussion

2005-08-16 Thread David Formosa \(aka ? the Platypus\)
On Mon, 15 Aug 2005 15:17:18 +0300, Yuval Kogman [EMAIL PROTECTED] wrote: [...] 2) Some way of being able to tell the garbage collector to ignore the current contents of the heap for the purposes of GC. One Pop-11 idiom was to do something like: [...] We are trying to design a

GC API from discussion

2005-08-15 Thread David Formosa \(aka ? the Platypus\)
After a very fruitful discussion I've rewritten my suggested GC API. Comments please. Is this the path we should be going down? What needs more work? What needs clarification? Have I totally lost the plot? =pod =head1 NAME GC - The interface to the runtime Garbage collector. =head1

Re: An idea for doing pack.

2005-07-29 Thread David Formosa \(aka ? the Platypus\)
On Thu, 28 Jul 2005 15:46:14 +0300, Yuval Kogman [EMAIL PROTECTED] wrote: [...] I like your Pack object - that is the parsed template, but I'd also like to be able to generate these templates with a programmatic interface that isn't string concatenation... Is it just a simple data

Lazyness and IO

2005-07-29 Thread David Formosa \(aka ? the Platypus\)
I was thinking about lazyness and IO and worked out this potenial gotcha. In essence its quite simmler to the pipe buffering problems you sometimes can get in perl5. my IO $news = io(nntp://nntp.perl.org,:rw); # Open a nntp connection my $banner = =$news # Throw away the banner. So far so

Re: Garbage Collector API

2005-07-28 Thread David Formosa \(aka ? the Platypus\)
On 26 Jul 2005 05:18:05 -, David Formosa ) [EMAIL PROTECTED] wrote: We are should have an API to talk to the GC and give it hints about when it should run, and tweek the verious paramitors for its running. For example [...] Also my Bigobjet $big is GC::timely = Bigobect; # Request

Re: Garbage Collector API

2005-07-28 Thread David Formosa \(aka ? the Platypus\)
On Thu, 28 Jul 2005 16:22:19 +0300, Yuval Kogman [EMAIL PROTECTED] wrote: [...] On Thu, Jul 28, 2005 at 01:08:13 -, David Formosa (aka ? the Platypus) = wrote: [...] my Bigobjet $big is GC::timely =3D Bigobect; # Request timely # destruction of $big. Usefull for filehandels

An idea for doing pack.

2005-07-27 Thread David Formosa \(aka ? the Platypus\)
Last night I had an idea about a possable pack API. Most likely when Pugs gets signifigently powerfull I will attempt to implement it. However I would like everyones input, below is a draft of its POD. =head1 NAME Pack - (un)pack structures as defined by a Template =head1 SYNOPSIS my Pack

Re: Type::Class::Haskell does Role

2005-07-16 Thread David Formosa \(aka ? the Platypus\)
On Sat, 16 Jul 2005 12:14:24 +0800, Autrijus Tang [EMAIL PROTECTED] wrote: [...] On Sat, Jul 16, 2005 at 12:24:21AM +0300, Yuval Kogman wrote: There is a new generic comparison operator known as ~~. =20 ~~ is just Eq, there is also Ord Hmm, ~ and ~ for generic comparators? ;)

Raw bytes in perl6

2005-07-12 Thread David Formosa \(aka ? the Platypus\)
How do we intend to manipulate raw binary in Perl6? Perl5's use bytes; pragma is rather poor (forcing all strings to be raw in its scope or requiring do {use bytes; ...} type tricks to deal with them) and now Perl6 has real typing perhaps it would be more usefull to have a bytestring type (or and

Re: Mr. Clean vs. Perl 6

2005-07-01 Thread David Formosa \(aka ? the Platypus\)
On Thu, 30 Jun 2005 18:53:44 +0200, Stéphane Payrard [EMAIL PROTECTED] wrote: On Thu, Jun 30, 2005 at 06:17:14AM -, David Formosa (aka ? the Platypus) wrote: [...] I would prefur this to be written. use strict types; I suspect there will be many ways to do types stricture

Documentation trait / Docstring equiverlent

2005-06-30 Thread David Formosa \(aka ? the Platypus\)
I'm just wondering if a documentation trait on subs would be usefull. If we are going to have something like p6explain the doc trait could be used as the source for the infomation for it. p6explain would simply have to walk the AST reading the doc traits and pasting the text together. --

%hash1 ... %hash2

2005-06-14 Thread David Formosa \(aka ? the Platypus\)
This is inspired inpart by discussions I had on #perl6. Basically what is the behavour of the hyperop when applied to two hashes. The concensus was that the hashes would get unrolled into lists, and the pairs would get matched up more or less randomly. I don't feel that this is a

Re: q:e/.../ as a short cut for eval q/.../

2005-06-11 Thread David Formosa \(aka ? the Platypus\)
On Fri, 10 Jun 2005 11:58:31 +0200, Juerd [EMAIL PROTECTED] wrote: David Formosa (aka ? the Platypus) skribis 2005-06-10 9:32 (-): Interesting. Could you provide some more information, like perhaps a message body? My appologies, my news client crashed when I attempted to compose

q:e/.../ as a short cut for eval q/.../

2005-06-10 Thread David Formosa \(aka ? the Platypus\)
-- Please excuse my spelling as I suffer from agraphia. See http://dformosa.zeta.org.au/~dformosa/Spelling.html to find out more. Free the Memes.