Re: Objects, finally (try 1)

2003-01-14 Thread Adriano
an a yes-or-no answer about the existence of a method. -- Adriano

Re: Sometimes MakeMaker won't make.

2005-11-08 Thread Adriano Ferreira
On 11/8/05, David Landgren <[EMAIL PROTECTED]> wrote: > >> Adam Kennedy wrote: > >>> Doesn't makemaker only like you if you have a single .pm file just in > >>> the root directory? > >>> And otherwise you have to have your lib files actually under lib? > The trouble is... I *like* having the file

Re: Parrot Bug Summary

2006-06-26 Thread Adriano Ferreira
On 6/26/06, Watson Ladd <[EMAIL PROTECTED]> wrote: Can we format this a bit better? It is nicely formatted if you see with fixed-width fonts. And the link http://rt.perl.org/rt3/NoAuth/parrot/Overview.html takes to the HTML page from which this ASCII report was extracted.

Delegating and defining a method at the same time

2006-06-30 Thread Adriano Ferreira
What is supposed to happen if one says: class Dog { has $:tail handles 'wag'; meth wag { # something else than $:tail.wag } } Is it a compilation error? Or one of the definitions prevail (with a warning or something)? Adriano Ferreira.

Re: fetching module version from the command line

2006-07-12 Thread Adriano Ferreira
earch: /usr/lib/perl5/site_perl/5.8/cygwin installsitelib: /usr/lib/perl5/site_perl/5.8 Adriano.

Re: requirements gathering on mini transformation language

2006-09-29 Thread Adriano Ferreira
o what Prolog does. tr_rule some_trans( $obj ~~ [ $a ~~ Hash, $b ~~ { 'k' => $vk } ] ) { [ { 'y' => $vk, $a } ] } The rules must know how to walk each kind of structure: array, hash, object, whatever and build new ones. My 0.0002 cents. Adriano Ferreira. On

Re: How do I associate methods with a compiler?

2006-11-09 Thread Adriano Rodrigues
uot;. It would be easy for object compilers to provide a sub implementation. But on the other hand it could also be easy for subroutine compilers to provide an object implementation with the help of a wrapper object (with not very useful methods besides 'compile'). My $0.02 cents. Adriano Ferreira.

Re: Set-returning .keys (was Re: Smart Matching clarification)

2006-11-23 Thread Adriano Rodrigues
On 11/23/06, TSa <[EMAIL PROTECTED]> wrote: HaloO, Darren Duncan wrote: > And if Seq and Set etc are interchangeable for all situations where it > doesn't matter whether the elements are ordered or not, then a lot of > times users won't have to care which they have. One can argue that we have t

Re: [S29] uniq

2005-05-19 Thread Adriano Ferreira
ving duplicate values in _self_. a = [ "a", "a", "b", "b", "c" ] a.uniq #=> ["a", "b", "c"] A naïve Perl 5 implementation could be: sub uniq { my (@u, %h); for (@_) { push(@u, $_) unless $h{$_}; $h{$_}++; } return @u; } Adriano.

Re: [S29] uniq

2005-05-19 Thread Adriano Ferreira
The former implementation can be shortened: sub uniq { my %h; return grep { ! $h{$_}++ } @_; } But realize that none of the proposed solutions (which are based on hashes for computing the return) is amenable to the extension Ingo called for with comparator blocks. Adriano.

Re: [S29] uniq

2005-05-19 Thread Adriano Ferreira
nvert list to a set, (2) convert back to a list. If that's the intention, maybe we're better using only hashes or any set-like implementation. There is also the variant of eliminating duplicates in-place or constructing a new list. Adriano.

Re: pugs-6.2.8 problem with file slurp.

2005-07-20 Thread Adriano Ferreira
w).slurp() Not so short, but at least it is there. Regards, Adriano.

Re: Tail method calls, can(), and pre-currying

2005-07-21 Thread Adriano Ferreira
enting delegation. Am I right? Regards, Adriano.

Re: Tail method calls, can(), and pre-currying

2005-07-21 Thread Adriano Ferreira
Larry said: > So I guess I agree that .tailcall is probably just a bad synonym for "return". But is there any other case where we need an explicit tail call with "goto"? And about a way to curry a method with its receiver to a sub, is there a shorthand? Thanks, Adriano.

[PATCH] recreatable shuffled tests for "prove"

2005-07-25 Thread Adriano Ferreira
rove --shuffle --seed=808208 t # shuffle is initiated with given seed value prove --shuffle --list=5,4,0,1,2,3 t # the shuffle list is predetermined I am sending it for your appreciation. I am still writing a test for --shuffle and the added options --seed and --list. Regards, Adriano. prove-patch Description: Binary data

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-25 Thread Adriano Ferreira
I have forgotten to say that the patch is over the source code of "bin/prove" in "Test-Harness-2.53_01.tar.gz". Adriano.

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Adriano Ferreira
(Instead of "int rand(2**$Config{randbits})" I used the arbitrary "int rand(1E8)". Yours is a more clever and portable expression.) Best regards, Adriano.

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Adriano Ferreira
On 7/26/05, Michael G Schwern <[EMAIL PROTECTED]> wrote: > Yeah, that's exactly what I was worried about. Why not just write: > prove -b -D -d 1 2 0 3 4 > this even avoids having to write special code to handle Andy's worry about > large lists of arguments. I see your point and agree. Pro

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Adriano Ferreira
Here is another patch. No --list anymore. Just --seed. There is also a new test script "t/prove-shuffle.t". It touches the MANIFEST and tweaks "t/prove-globbing.t" which depends on distribution files matching "t/prove*.t". Adriano. prove-patch Description: Binary data

Re: Slurpy "is rw" arrays ([EMAIL PROTECTED] is rw)

2005-07-29 Thread Adriano Ferreira
rray in foobar @some_array; That is how I undestood that. Can someone confirm this belief? Adriano.

Re: Howto make 'require' fail ?

2005-09-26 Thread Adriano Ferreira
equivalent to creating empty files (like Mike Graham suggested), only with better diagnostics. It still does not solve the problem with specific versions (which does not seem to be a problem for your immediate use case). Well, but from the point of supporting for < 5.6.1, it does not help at all. Code refs in @INC will not work. Regards, Adriano.

Re: [perl #34039] Build failure on freebsd 4.9-RELEASE (mpz_*)

2005-02-04 Thread Adriano Ferreira
earch found for you) # make # make install Regards, Adriano. > blib/lib/libparrot.a(bigint.o): In function `bigint_get_long': > /home/coke/research/parrot/classes/bigint.c:83: undefined reference to > `mpz_fits_slong_p'

Re: [perl #34039] Build failure on freebsd 4.9-RELEASE (mpz_*)

2005-02-09 Thread Adriano Ferreira
an addition to the probing files. The attached patch does only the later. In config/auto/gmp/gmp.in the problematic function is used and its answer reaches STDOUT too. Then config/auto/gmp.pl tests for the extended expected output. Regards, Adriano. --- config/auto/gmp.pl +++ config/auto/gmp.pl @@

Re: Pugs Bug

2005-04-05 Thread Adriano Ferreira
> Shouldn't these be just methods? I guess not. This is Perl and OO is not mandatory, or even desirable all the time. Adriano.

Micro-articles on Perl 6 Operators

2007-09-17 Thread Adriano Ferreira
rticle are here: http://ferreira.nfshost.com/perl6/intro.html http://ferreira.nfshost.com/perl6/zip.html (Yes. That has been published also in use.perl and PerlMonks. But I am assuming I did not reach anybody that could help me out yet.) Kind regards, Adriano Ferreira

Re: Micro-articles on Perl 6 Operators

2007-09-17 Thread Adriano Ferreira
On 9/17/07, Joe Gottman <[EMAIL PROTECTED]> wrote: > Adriano Ferreira wrote: > > Jesse Vincent has announced the acceptance of my microgrant proposal > > (http://use.perl.org/~jesse/journal/34451). It is a plain simple > > idea, whose effects are yet to be seen.

Re: Micro-articles on Perl 6 Operators

2007-09-18 Thread Adriano Ferreira
On 9/18/07, Agent Zhang <[EMAIL PROTECTED]> wrote: > On 9/18/07, Adriano Ferreira <[EMAIL PROTECTED]> wrote: > > > > Join me. The drafts of the introduction and the first article are here: > > > > http://ferreira.nfshost.com/perl6/intro.html > > http://

Re: Micro-articles on Perl 6 Operators

2007-09-18 Thread Adriano Ferreira
On 9/18/07, brian d foy <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, Alberto Simões > <[EMAIL PROTECTED]> wrote: > > > > Adriano Ferreira wrote: > > > The plan is to write a series of blog entries discussing a Perl 6 > > >

Re: Micro-articles on Perl 6 Operators

2007-09-18 Thread Adriano Ferreira
On 9/18/07, Paul Hodges <[EMAIL PROTECTED]> wrote: > > --- Adriano Ferreira <[EMAIL PROTECTED]> wrote: > [[snips here and at end]] > > > . . . I have one suggestion: you might want to mention > > > the roundrobin function in the article on the zip functi

Re: Micro-articles on Perl 6 Operators

2007-09-19 Thread Adriano Ferreira
On 9/19/07, Moritz Lenz <[EMAIL PROTECTED]> wrote: > Adriano Ferreira wrote: > > http://ferreira.nfshost.com/perl6/stitching6.html > > A grammatical nit: "The infix operator '~' keeps the same precedence of > '+' in Perl 6." > I think that s

Re: Micro-articles on Perl 6 Operators

2007-09-19 Thread Adriano Ferreira
On 9/18/07, Joe Gottman <[EMAIL PROTECTED]> wrote: > Adriano Ferreira wrote: > > I salute every bit of help. I am trying to organize the production and > > will hopefully provide more details soon. By now, I think that I can > > handle suggestions and corrections to th

Re: Micro-articles on Perl 6 Operators

2007-09-19 Thread Adriano Ferreira
h > return $ruler; # and returns the string > } > my $r = page_ruler(25); # 0123456789012345678901234 I think small examples are a good idea. The problem is to have much simpler ways to do some things, like [~] map { $_ % 10 }, 0 ..^ $len Obviously, this is fa

Re: Micro-articles on Perl 6 Operators

2007-09-19 Thread Adriano Ferreira
On 9/18/07, David Vergin <[EMAIL PROTECTED]> wrote: > > On 9/18/07, Paul Hodges <[EMAIL PROTECTED]> wrote: > >> > >> For the Gearheads > >> We won't bore you with excess details, > >> but for more info... c.f. ... > >

The first week of micro-articles

2007-09-21 Thread Adriano Ferreira
I just posted a report on this first week of the series of micro-articles on Perl 6 operators. Read it at use.perl: http://use.perl.org/~ferreira/journal/ Thank you all for the help so far. Adriano.

Re: Concerns about "{...code...}"

2007-12-20 Thread Adriano Ferreira
t to how they are used in other expressions of the language). It is all there somewhere in Section "Literals" of Synopsis 02 (http://perlcabal.org/syn/S02.html#Literals). More specifically, look for the item that starts with "In addition to q and qq, there is now the base form Q&

Re: cross operator and empty list

2008-04-07 Thread Adriano Ferreira
ot the case for the X operator X : Seq(D1) x Seq(D2) -> Seq( D1 x D2 ) At the other hand, any sequence with one only member would define a result @a x ($any) that would be kind of isomorphically equivalent to @a itself. But, apart from that, I don't get the value of defining such a

Re: What does 'eqv' do exactly?

2008-05-03 Thread Adriano Ferreira
On Sat, May 3, 2008 at 4:00 PM, John M. Dlugosz <[EMAIL PROTECTED]> wrote: > I've searched the archives, but did not see a good explanation of what eqv > does, and what is meant by snapshotting in the description of the synopses. > > Can anyone explain it (with examples?) or point to an existing

[OT] Power of Lisp macros?

2002-10-23 Thread Adriano Nagelschmidt Rodrigues
code for our own amusement. We were a tiny startup, programming as hard as we could in order to put technical barriers between us and our competitors. What do you think? I have very little Lisp experience... Thanks, -- Adriano

Re: [OT] Power of Lisp macros?

2002-10-24 Thread Adriano Nagelschmidt Rodrigues
> This kind of thing should reveal itself in the next Apocalypse. Then > we can see Larry's "vision," and make appropriate adjustments in terms > of that. Right now, it's very fuzzy. Nice, I'm looking forward to reading it. > Oh, and you aren't being inconvenient. These kinds of questions are > what the list is for: ask away! Thanks! Best regards, -- Adriano

Re: MMD (was This week's summary)

2003-06-10 Thread Adriano Rodrigues Ferreira
thing here refers to this. In my opinion, MMD main features are runtime dispatch decision and (to a dynamic language) seamless extension by adding new patterns. Regards, Adriano. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Re: pirate guide

2003-08-07 Thread Adriano R. Ferreira
Isn't 'pirate' the name of the Lua compiler for Parrot (by Klaas-Jan Stol)? On Wed, 6 Aug 2003 21:38:25 -0400 (EDT), Michal Wallace <[EMAIL PROTECTED]> wrote: -- Adriano

Error during CVS checkout (at docs/resources/)

2004-02-19 Thread Adriano R. Ferreira
cvs server: internal error: unsupported substitution string -kCOPY Should I upgrade my CVS client or is there something wrong with these files? (Currently using WinCVS 1.3.13.1, cvs 1-10.) Adriano. -- Adriano R. Ferreira Oasis Comunicacao e Tecnologia Ltda.