Re: WTF? - Re: method calls on $self

2005-07-14 Thread Yuval Kogman
have that. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me dodges cabbages like macalypse log N: neeyah! pgpaUXI5Wijpd.pgp Description: PGP signature

Type::Class::Haskell does Role

2005-07-14 Thread Yuval Kogman
borrow to make our Prelude.pm prettier, and our code a little more generic. Mechanical conversion from perl 5 can use the fully qualified instances of '==' and 'eq' in the Str and Num roles. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me beats up some cheese

Optimization pipeline

2005-07-14 Thread Yuval Kogman
just that the default trigger should the actual execution of chunks of code. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me sushi-spin-kicks : neeyah pgpSLGwKeTOMi.pgp Description: PGP signature

Re: WTF? - Re: method calls on $self

2005-07-12 Thread Yuval Kogman
to $_.method or $object.method. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: uhm, no, I think I'll sit

Re: Raw bytes in perl6

2005-07-12 Thread Yuval Kogman
of crap into any structured crap. It's only affinity towards real strings and characters is the builtin library of useful rules. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me has realultimatepower.net: neeyah pgp54WMN4RUfZ.pgp Description

Re: Raw bytes in perl6

2005-07-12 Thread Yuval Kogman
On Wed, Jul 13, 2005 at 00:46:49 +0300, Yuval Kogman wrote: Perhaps the most interesting aspect of the string-is-a-list mindset is that Parsec can parse any list of crap into any structured crap. It's only affinity towards real strings and characters is the builtin library of useful rules

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
the multis together to get well-defined semantics. That seriously sucks. Multis rock because they let you append to an interface from your perspective. If it's just a pretty form of casing, then we aren't gaining anything, IMHO. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
, that was properly ordered, mmd is useful as a subset of it's behavior - it's just pattern matching. This is nice, but has none of the extensibility that MMD can offer if done differently. On Fri, Jul 08, 2005 at 12:18:51 +0300, Yuval Kogman wrote: On Fri, Jul 08, 2005 at 08:50:49 +, Luke

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
class heirarchy in your head. That's why under the fourth steps I detailed that MI confusions are a fatal error, possibly at compile time. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: *shu*rik*en*sh*u*rik*en*s*hur*i*ke*n*: neeyah pgpAbl8W9mHfk.pgp

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
On Fri, Jul 08, 2005 at 14:26:20 +0300, Yuval Kogman wrote: http://svn.openfoundry.org/pugs/docs/notes/mmd_match_order.txt now contains a proposal fofr some clear semantics on parameter coercion and MMD, if anyone cares. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
gotten too complex to be predictable. I think that may be right, but just for junctions it's very tempting. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me groks YAML like the grasshopper: neeyah!! pgpYVPe9ak2Zy.pgp Description: PGP signature

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
=) -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me sneaks up from another MIME part: neeyah! pgp1bev1lj7CN.pgp Description: PGP signature

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
, or whatever it's called (stevan?). I'm not sure I know how to oppertunistically 'staticize' this, though. Interesting paper, although admittedly I only skimmed it. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me dodges cabbages like macalypse log N: neeyah

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
is is a bigger mistake. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: : neeyah! pgpJPtw4t52Mb.pgp Description: PGP signature

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
of the context? Then we can use C casting syntax, and it'll actually make sense. (where { ... })$value ;-) -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me supports the ASCII Ribbon Campaign: neeyah!!! pgpgzg9AWkDU5.pgp Description: PGP signature

Re: Hackathon notes

2005-07-08 Thread Yuval Kogman
-similar, the looser/tighter concept appears valid). I like that =) -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me has realultimatepower.net: neeyah pgpjhRyhnok4i.pgp Description: PGP signature

Re: MMD handling (was Re: Hackathon notes)

2005-07-08 Thread Yuval Kogman
On Fri, Jul 08, 2005 at 16:45:09 -0400, David Storrs wrote: Could we break them out into separate threads so that our poor summarizer doesn't go bonkers? See? That's what specialization/particulation is good for. Thanks for strengthening my point! -- () Yuval Kogman [EMAIL PROTECTED

Re: MMD handling (was Re: Hackathon notes)

2005-07-08 Thread Yuval Kogman
://svn.openfoundry.org/pugs/docs/notes/mmd_match_order.txt which proposes a DWIMish sort function. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me has realultimatepower.net: neeyah pgpOI04zyeSfW.pgp Description: PGP signature

Re: SMD is for weenies

2005-07-06 Thread Yuval Kogman
. My claim is that it doesn't need to feel kludgy. A macro library kludging over a kludge is twice as kludgy as it was before. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me does a karate-chop-flip: neeyah!! pgpxgy79xINw9.pgp Description

SMD is for weenies

2005-06-30 Thread Yuval Kogman
who hasn't thought about it - all it does is prevent me from appending to his code conveniently. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me has realultimatepower.net: neeyah pgpLKN2OUBLGS.pgp Description: PGP signature

Mr. Clean vs. Perl 6

2005-06-29 Thread Yuval Kogman
to enforce types. I like facist programming when it can help me, so I would like to see something like his proposal. no autocoerce;; my $y = 'blah'; my Int $x = $y; # compile time type error This scheme is not perfect.. Maybe someone has an idea? -- () Yuval Kogman

Re: (multi)subroutine names

2005-06-03 Thread Yuval Kogman
in mobile GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88 key id = 0x75193F88 -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me beats up some cheese: neeyah

Strongly typed containers?

2005-05-30 Thread Yuval Kogman
of defining a container of complex things, it's still better than nothing. This brings me to another issue - can I say what type the elements of a list has, without putting it into a typed array? -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me whallops

Re: Strongly typed containers?

2005-05-30 Thread Yuval Kogman
be :(*Int) and a recurring tuple type might be :(*(Int,Str)). That seems pretty nice, although not aesthetically appealing. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me whallops greyface with a fnord: neeyah!!! pgpZ5w5VFtv0l.pgp Description

Re: Default invocant of methods

2005-05-28 Thread Yuval Kogman
anything, they are more like oh, it's ok, it can pass as a -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me sneaks up from another MIME part: neeyah! pgpf36xn9g2CF.pgp Description: PGP signature

function signatures?

2005-05-28 Thread Yuval Kogman
. Are signatures going to be an exposed first class object in Perl 6? -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me sneaks up from another MIME part: neeyah! pgphFDjsur3cS.pgp Description: PGP signature

Method overloading, MMD/SMD

2005-05-27 Thread Yuval Kogman
role get it's own slot? What about MI/mixins? Grazie -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me tips over a cow: neeyah!! pgpY3osGEiO6Z.pgp Description: PGP signature

lazy context

2005-05-20 Thread Yuval Kogman
reference, but AFAIK proxy objects will give us that anyway, right? -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me wields bonsai kittens: neeyah pgpiaSDtG8T6t.pgp Description: PGP signature

Re: lazy context

2005-05-20 Thread Yuval Kogman
purposes it implements lots of perl 6's non-core core. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me groks YAML like the grasshopper: neeyah!! pgpXAWRMFPEnt.pgp Description: PGP signature

Re: ./method

2005-05-15 Thread Yuval Kogman
) Wonderful! -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me whallops greyface with a fnord: neeyah!!! pgpEXOgsYEirP.pgp Description: PGP signature

Re: Object Numify/Stringify-ing to Unique values

2005-05-13 Thread Yuval Kogman
, but in a more concise way. Perhaps an operator with ':' in it would be suitable. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me climbs a brick wall with his fingers: neeyah! pgprhsuf3L5Zs.pgp Description: PGP signature

subscripts are.... objects?

2005-04-12 Thread Yuval Kogman
a union # with the complement of just -1 I've found myself replicating sets like these for accessing data many a time in perl 5. Maybe if refined this can be useful? -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me wields bonsai kittens: neeyah

Re: S26 Draft

2005-04-10 Thread Yuval Kogman
Please don't be lazy, everyone, and look at this: http://svn.openfoundry.org/pugs/docs/ There are some more drafts that should be reviewed, and more will probably follow. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: uhm, no, I think I'll sit this one

use less in perl6?

2005-03-30 Thread Yuval Kogman
within the code it applies to, and sometimes outside of it you often want a volume knob for this behavior you want several instances of usage to not conflict I'd like to see what the design team can do about this. Ciao! -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418

Currying positionals

2005-03-23 Thread Yuval Kogman
. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: *shu*rik*en*sh*u*rik*en*s*hur*i*ke*n*: neeyah pgpE3lXT1h65V.pgp Description: PGP signature

Re: Currying positionals

2005-03-23 Thread Yuval Kogman
On Wed, Mar 23, 2005 at 17:43:52 +0200, Yuval Kogman wrote: Hola... I've spend some time these last few days slowly getting currying to work in pugs. It should also be mentioned that I made magical $?SUB et al unbind the sub. In a curried sub, should that happen? It looks more consistent

Re: Currying positionals

2005-03-23 Thread Yuval Kogman
On Wed, Mar 23, 2005 at 11:53:06 -0800, Larry Wall wrote: On Wed, Mar 23, 2005 at 05:43:52PM +0200, Yuval Kogman wrote: : The algorithmic approach to binding some params: : : bind invocants : : bind named parameters, and keep leftover pairs for %_ : : treat nonpairs

Re: Currying positionals

2005-03-23 Thread Yuval Kogman
, but not anything else -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me sneaks up from another MIME part: neeyah! pgpPp0zr5P5Yv.pgp Description: PGP signature

retiring wantarray?

2005-03-17 Thread Yuval Kogman
} # or in perl5, maybe it could be done like: sub value_added { my $return = Returner::Smart-new(sub { original(@args) }); # Returner is an object that does Want based lookups ... $returner-return; # could this do lvalue crap? } -- () Yuval Kogman [EMAIL PROTECTED

Re: retiring wantarray?

2005-03-17 Thread Yuval Kogman
BTW, i should mention that given want { } in s06 is nice for replacing the simple kind of wantarray usage cases, but not what this message brought up. In short, i did read it, so don't send me links ;-) -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me

Re: s/true/better name/

2005-03-17 Thread Yuval Kogman
is true. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me sneaks up from another MIME part: neeyah! pgpRod53H02RA.pgp Description: PGP signature

Re: .method == $self.method or $_.method?

2005-03-17 Thread Yuval Kogman
{ $OUTER::_.process($_) } .things; } or having to name the invocant every time I want to map {}. Lastly, what is wrong with $.method? -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me dodges cabbages like macalypse log N: neeyah

Re: s/true/better name/

2005-03-15 Thread Yuval Kogman
On Tue, Mar 15, 2005 at 10:51:57 +0100, Juerd wrote: Autrijus suggested indeed or id, of which I like indeed better, because I'd like to continue using id with databases. whether? -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me beats up some cheese

lazy-loading objects in perl6 - how will they look?

2005-03-12 Thread Yuval Kogman
is quite rigorously tested edge cases are pretty much tested for, and the implementation is very robust, and has very explicit logic, provided you're willing to eat it. I'd like to be able to exploit this more cleanly in Perl 6, and also get easier and safer lazy loading of objects. -- () Yuval

Re: lazy-loading objects in perl6 - how will they look?

2005-03-12 Thread Yuval Kogman
On Sat, Mar 12, 2005 at 21:21:23 +0200, Yuval Kogman wrote: Hola, Object::Realize::Later and friends in perl5 get the job done, but have many caveats. FYI, Juerd told me how to clean this up with Data::Swap (err, Data::Alias) more cleanly in perl 5. Thanks! -- () Yuval Kogman [EMAIL

Re: Optional binding

2005-03-06 Thread Yuval Kogman
On Sun, Mar 06, 2005 at 02:13:09 -0700, Luke Palmer wrote: What is output: sub foo($x, ?$y, [EMAIL PROTECTED]) { say x = $x; y = $y; z = @z[]; } my @a = (1,2,3); foo($x, @a); And is $a == foo $x; The same? -- () Yuval Kogman [EMAIL PROTECTED

taint mode generalization

2005-01-12 Thread Yuval Kogman
to. -- () Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker /\ kung foo master: /me climbs a brick wall with his fingers: neeyah! pgpE75VuNMBFy.pgp Description: PGP signature

<    1   2   3