FAQ

Search Discussions

94 discussions - 913 posts

  • All~ What does the reduce metaoperator do with an empty list? my @a; [+] @a; # 0? exception? [*] @a; # 1? exception? [<] @a; # false? [||] @a; # false? [&&] @a; # true? Also if it magically supplies ...
    Matt FowlesMatt Fowles
    May 19, 2005 at 12:57 am
    Jun 17, 2005 at 7:15 am
  • Hi, because I see some people struggle to get things like GHC working, and then to get make and a compiler working, and because some people have limited bandwidth which makes big svn updates a less ...
    JuerdJuerd
    May 23, 2005 at 3:19 pm
    May 27, 2005 at 7:51 am
  • As Pugs now has Rule support via PGE (either with external parrot or a faster, linked libparrot), I've been playing with the new capturing semantics. Currently, matching "123" against /(.(.(.)))/ ...
    Autrijus TangAutrijus Tang
    May 9, 2005 at 11:05 am
    May 17, 2005 at 8:06 pm
  • In a somewhat related topic: pugs (1,(2,3),4)[2] 4 Because the invocant to .[] assumes a Singular context. I'm not sure how any invocant can assume a Plural context anyway, so this behaviour seems ...
    Autrijus TangAutrijus Tang
    May 11, 2005 at 8:53 pm
    Jun 1, 2005 at 5:04 pm
  • I propose that reduce become a metaoperator that can be applied to any binary operator and turns it syntactically into a list operator. I am currently thinking that the metaoperator is a prefix ...
    Larry WallLarry Wall
    May 4, 2005 at 12:37 pm
    May 19, 2005 at 8:40 am
  • Here's a basic proposal for the open and pipe builtins. It was discussed on #perl6 today and seemed okay to the people there. I'd like to hear your comments, since the internals side of much of this ...
    Gaal YahasGaal Yahas
    May 2, 2005 at 7:25 pm
    May 5, 2005 at 2:22 am
  • I just started following the list again after a few months (though I have been skimming the bi-weekly summaries) and I'm a little alarmed at what seems to be a trend towards operaterizing everything ...
    Rob KinyonRob Kinyon
    May 4, 2005 at 2:58 pm
    May 16, 2005 at 3:01 pm
  • Juerd informed me today that .method should still means $_.method. However, for the OO modules we're writing, there still needs to be a way to invoke methods on the current invocant, when the ...
    Autrijus TangAutrijus Tang
    May 14, 2005 at 3:42 am
    May 18, 2005 at 8:38 pm
  • A few days ago, when typing ./pugs,... You can guess the rest :) I suggest ./method to mean $?SELF.method, and ../method to mean $?SELF.SUPER::method, or however that's normally written. This syntax ...
    JuerdJuerd
    May 15, 2005 at 11:44 am
    May 19, 2005 at 3:50 pm
  • I have a couple of questions regarding C< :: in perl 6 rules. First, a question of verification -- in $rule = rx :w / plane :: (\d+) | train :: (\w+) | auto :: (\S+) / ; "travel by plane jet train ...
    Patrick R. MichaudPatrick R. Michaud
    May 12, 2005 at 2:33 pm
    May 14, 2005 at 8:16 pm
  • I'm working on a Perl 5 module that will allow for the parsing of a Perl 6 rule into a tree structure -- specifically, I'm subclassing/extending Regexp::Parser into Perl6::Rule::Parser. This module ...
    Jeff 'japhy' PinyanJeff 'japhy' Pinyan
    May 25, 2005 at 12:25 am
    Jun 2, 2005 at 9:17 pm
  • To try and make it easier to pick (ASCII) operators, a simple table of what's given away and what's available. Please let me know if there are any mistakes. If anyone knows how to fill in the "???" ...
    JuerdJuerd
    May 6, 2005 at 4:24 pm
    May 7, 2005 at 8:51 pm
  • When we heard that Larry didn't acutally want $$foo to infinitely dereference, some of us were overjoyed, and others severely disappointed. Both transparent dereferencing (infinite $$foo) and opaque ...
    Luke PalmerLuke Palmer
    May 27, 2005 at 8:59 pm
    Jun 7, 2005 at 7:08 am
  • In Pugs, the current logic for array submatches in split() is to stringify each element, and return them separately in the resulting list. To wit: pugs split /(..)*/, 1234567890 ('', '12', '34', ...
    Autrijus TangAutrijus Tang
    May 10, 2005 at 2:53 pm
    May 13, 2005 at 8:24 am
  • Hi, three quick questions: Is it intentional that there's no uniq in the current S29[1] draft? See [2] for Damian saying that uniq is probably in. I wondered what uniq's default comparator should be, ...
    Ingo BlechschmidtIngo Blechschmidt
    May 19, 2005 at 2:52 pm
    May 27, 2005 at 5:10 pm
  • As I am interested in human-readable dates and times, and having found no conclusive discussion on time formatting, I make my recommendation for a syntax (to start discussion, and allow for date ...
    Nathan GrayNathan Gray
    May 31, 2005 at 1:23 pm
    Jun 3, 2005 at 12:32 pm
  • Which things can receive? If I recall things correctly, we already have these: sub # slurpy list arrary hash Would it make sense to add, for example, filehandle # write It may not, as it's not ...
    JuerdJuerd
    May 6, 2005 at 4:35 pm
    May 8, 2005 at 1:37 am
  • What should this do, if not infinite loop? my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; Thanks, /Autrijus/
    Autrijus TangAutrijus Tang
    May 4, 2005 at 1:14 pm
    May 10, 2005 at 5:58 pm
  • All, I am not the only one who has found porting p5 to working p6 code relatively easy and similar looking: http://perlmonks.org/index.pl?node_id=453821 In that thread, the author raised the question ...
    Joshua GatcombJoshua Gatcomb
    May 4, 2005 at 1:48 pm
    May 5, 2005 at 4:43 am
  • We're discussing the proper semantics of (1)[0] on #perl6. Here's where we're at so far: 1. specialise ()[] to parse as (,)[] 2. scalars are singleton lists, so ()[] naturally 3. make (1)[0] die ...
    Jonathan Scott DuffJonathan Scott Duff
    May 11, 2005 at 4:45 pm
    May 13, 2005 at 8:23 pm
  • HaloO, I don't know if this is usefull and if it is were this information should be put. I've reworked the Code class chart from A06 to look as follows: invocant(s) : Code ____:__ ___|___ SubMethod ...
    Thomas SandlaßThomas Sandlaß
    May 2, 2005 at 4:02 pm
    May 3, 2005 at 4:24 pm
  • Will Perl 6 help us have tools that are as good or better than the ones available for Java, C#, etc? I've been using Perl since 1994 and for the past several years have used it to build a number of ...
    J Matisse EnzerJ Matisse Enzer
    May 6, 2005 at 3:46 pm
    Jun 4, 2005 at 5:16 am
  • Hey grep { !/Luke/ } @Larry, <luqui multi foo(Foo, Bar: Baz); # manhattan on Foo and Bar <luqui multi foo(Foo: Bar: Baz); # leftmost on Foo and Bar <autrijus wtf? <autrijus multiple colons? Is that ...
    Luke PalmerLuke Palmer
    May 17, 2005 at 1:50 pm
    May 18, 2005 at 8:02 pm
  • Thit has led to surprising results in Pugs's Net::IRC: if 'localhost:80' ~~ /^(.+)\:(\d+)$/ { my $socket = connect($0, $1); } If $1 is a match object here, and connect() assumes Int on its second ...
    Autrijus TangAutrijus Tang
    May 12, 2005 at 7:23 pm
    May 13, 2005 at 5:43 am
  • How do I open a file named "-"? How do I open stdout (and the other standard handles)? -- Gaal Yahas <gaal@forum2.org http://gaal.livejournal.com/
    Gaal YahasGaal Yahas
    May 5, 2005 at 5:43 am
    May 9, 2005 at 6:12 pm
  • So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build): use Digest--perl5; my $cxt = Digest.SHA1; $cxt.add('Pugs!'); # This prints: 66db83c4c3953949a30563141f08a848c4202f7f say ...
    Autrijus TangAutrijus Tang
    May 25, 2005 at 4:07 am
    May 27, 2005 at 9:07 am
  • So I'm finally starting to implement multi-level invocants in MMDs. I'd like to sanity check some cases first, though. Are these two assumed to be identical? multi sub foo ($x, $y) multi sub foo ($x, ...
    Autrijus TangAutrijus Tang
    May 20, 2005 at 7:24 am
    May 23, 2005 at 4:45 am
  • There is syntax to define trait and properties but is there an API? my $b = eval '$a but true'; # setting a true property # API to do it without an eval? A trait setter probably does not make sense ...
    Stéphane PayrardStéphane Payrard
    May 13, 2005 at 5:58 pm
    May 13, 2005 at 8:13 pm
  • Hi, # Way 1 my $MEANING_OF_LIFE is constant = 42; # Way 2 my &MEANING_OF_LIVE = - () { 42 }; # or sub MEANING_OF_LIVE () { 42 } # Then one can use sigilless constants: say MEANING_OF_LIVE; # Way 3 ...
    Ingo BlechschmidtIngo Blechschmidt
    May 27, 2005 at 3:21 pm
    Jun 1, 2005 at 12:31 am
  • Imagine: pugs '1.28' * '2.56' 3.2768 What is (or should be) going on here here? [1] role NumRole { method infix:<* returns Num (NumRole $x, NumRole $y: ) { ... } } Str.does(NumRole); [2] multi sub ...
    Autrijus TangAutrijus Tang
    May 17, 2005 at 1:05 pm
    May 18, 2005 at 2:02 am
  • We have a bit of a problem with negative operators applied to junctions, as illustrated recently on PerlMonks. To wit, when a native English speaker writes if $a != 1 | 2 | 3 {...} they really mean ...
    Larry WallLarry Wall
    May 14, 2005 at 4:31 pm
    May 16, 2005 at 1:11 am
  • Oops, this should have been redirected to perl6-language@perl.org, so I'm doing that now. --- Trewth Seeker wrote: Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. ...
    Trewth SeekerTrewth Seeker
    May 6, 2005 at 8:21 pm
    May 9, 2005 at 2:44 pm
  • I have a class that normally takes a list of named arguments. I also want to be able to handle a single argument. class Foo { multi method new (Class $class: Str $date) { return $class.bless(date = ...
    Carl FranksCarl Franks
    May 30, 2005 at 4:00 pm
    Jun 1, 2005 at 1:12 pm
  • This evaluates to 1 in Perl 5: not 4,3,2,1,0; Namely, the "not" listOp is taking the last of a variadic, non-slurpy argument list, boolify it, and return its negation. What is the Perl 6 signature ...
    Autrijus TangAutrijus Tang
    May 16, 2005 at 5:48 pm
    May 17, 2005 at 8:36 am
  • Hello all. In the processing of working with mugwump's shiny new perl6 OO Set.pm. I realized that we do not currently have a way to uniquely identify objects in Pugs like the way we have in perl5 ...
    Stevan LittleStevan Little
    May 14, 2005 at 1:48 am
    May 14, 2005 at 3:31 pm
  • I was looking at a line in the hangman program: @letters == @solution.grep:{ $_ ne '' }; and was told that I was looking at an adverbial block. But I don't understand what that is and could not find ...
    Terrence BrannonTerrence Brannon
    May 5, 2005 at 10:39 pm
    May 10, 2005 at 4:41 pm
  • (This post references the discussion at http://www.perlmonks.org/?node_id=458728, particularly dragonchild's response at the bottom.) For those who don't know, cribbage is a game where each player ...
    Rob KinyonRob Kinyon
    May 25, 2005 at 5:30 pm
    May 27, 2005 at 9:01 am
  • Hola, Some of us on #perl6 bitched once more about how lazy will make our IO brain hurt a lot. The concensus is that a lazy context has not been discussed yet. Here is a proposal for lazyness defined ...
    Yuval KogmanYuval Kogman
    May 20, 2005 at 6:48 pm
    May 23, 2005 at 7:22 pm
  • Hi, I wondered if it would be useful/good/nice if the syntax for specifying role parameters would be the same as the standard subroutine signature syntax (minus the colon, which separates the ...
    Ingo BlechschmidtIngo Blechschmidt
    May 19, 2005 at 12:36 pm
    May 19, 2005 at 5:23 pm
  • What should the output of this be: given "hello" { when /hello/ { say "One"; when /hello/ { say "Two"; } when /hello/ { say "Three"; } continue; } say "Four"; } I think: One Two Three Four But pugs ...
    Luke PalmerLuke Palmer
    May 5, 2005 at 5:00 am
    May 5, 2005 at 4:56 pm
  • I would really like to see ($x div $y) be (floor($x/$y)) and ($x mod $y) be ($x - $x div $y). If the divisor is positive the modulus should be positive, no matter what the sign of the dividend. ...
    Mark ReedMark Reed
    May 23, 2005 at 10:54 pm
    Jun 6, 2005 at 12:25 pm
  • I would love to see a document (one per editor) that describes the Unicode characters in use and how to make them. The Set implementation in Pugs uses (at last count) 20 different Unicode characters ...
    Rob KinyonRob Kinyon
    May 27, 2005 at 2:29 pm
    Jun 2, 2005 at 1:06 am
  • In Perl 6, I don't think we need to tag methods as "virtual" like C++ does, since we have the handy yadda, yadda to do that for us. However, there is a variant of C++'s virtual that I'd love to see. ...
    Aaron ShermanAaron Sherman
    May 18, 2005 at 2:09 pm
    May 26, 2005 at 2:47 pm
  • Is there a way to target hyperoperators at different axes of a multi-dimensional array? This is an attractive feature of various APL-like languages, viz. e.g. in J: a =. 2 5 $ i. 7 - a simple 2-by-5 ...
    Anthony HeadingAnthony Heading
    May 19, 2005 at 2:11 am
    May 20, 2005 at 8:00 pm
  • Is it a bad sign that I'm still on the first section of S29, getting up to speed? Sigh... I'll get there, really. This is another question from my reading this morning. Ok, so log and log10: multi ...
    Aaron ShermanAaron Sherman
    May 17, 2005 at 5:42 pm
    May 18, 2005 at 8:30 pm
  • Given: "fail" with configurable behavior "no fatal" to make "fail" just warn "use fatal" to make "fail" throw exceptions A question came up on #perl6 for the following code: no fatal; class Foo { use ...
    Aaron ShermanAaron Sherman
    May 11, 2005 at 11:44 am
    May 11, 2005 at 2:36 pm
  • I had implicitly touched on this in the past, but speaking of binops - and of functional features in Perl6, is there any provision of a (list associative?) composition binop? I had naively thought ...
    Michele DondiMichele Dondi
    May 4, 2005 at 1:44 pm
    May 5, 2005 at 7:55 am
  • With the recent discussion on type sigils, and the fact that Pugs is moving toward the OO core, I'd like to inquire how the following statements evaluate (or not): # Compile time type arithmetic? ...
    Autrijus TangAutrijus Tang
    May 3, 2005 at 9:06 am
    May 4, 2005 at 7:56 pm
  • We already have the Set class, how do we say what it contains? class Set { has $.type; submethod BUILD { # get something into $.type, using 'of' handler } method members returns $.type () { ... } } ...
    Yuval KogmanYuval Kogman
    May 30, 2005 at 2:11 pm
    May 31, 2005 at 2:23 am
  • Hello, I'm having a seriously good time porting Maypole to Perl 6. If you still have reservations about how Perl 6 is going to be to program in, I urge you to try programming in it. Now, commercial ...
    Simon CozensSimon Cozens
    May 29, 2005 at 9:02 am
    May 29, 2005 at 3:19 pm
Group Navigation
period‹ prev | May 2005 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions94
posts913
users98
websiteperl6.org

98 users for May 2005

Larry Wall: 126 posts Juerd: 101 posts TSa (Thomas Sandlaß): 54 posts Luke Palmer: 46 posts Autrijus Tang: 45 posts Aaron Sherman: 44 posts Rob Kinyon: 37 posts Patrick R. Michaud: 33 posts Damian Conway: 29 posts Ingo Blechschmidt: 29 posts Rod Adams: 26 posts Jonathan Scott Duff: 21 posts Uri Guttman: 18 posts Sam Vilain: 13 posts Brent 'Dax' Royal-Gordon: 12 posts Stuart Cook: 11 posts Michele Dondi: 10 posts Yuval Kogman: 10 posts Edward Cherlin: 9 posts Gaal Yahas: 9 posts
show more
Archives