FAQ

Search Discussions

56 discussions - 505 posts

  • During the Pugs Hackathon at YAPC::NA 2005, I managed to get various unspecced tests and features reviewed by Larry, and posted them in my journal. The original notes is attached; I'd be very ...
    Autrijus TangAutrijus Tang
    Jul 7, 2005 at 10:38 am
    Aug 15, 2005 at 7:18 pm
  • I've added localtime to pugs (r5233, 5236), to address Dave Rolsky's needs for DateTime; but I'm noticing S29 doesn't spec this and nearby builtins yet. I'd like to raise the questions I encountered ...
    Gaal YahasGaal Yahas
    Jul 5, 2005 at 1:42 pm
    Aug 18, 2005 at 10:15 am
  • Once upon a time I said: http://groups-beta.google.com/group/perl.dbi.users/msg/caf189d7b404a003?dmode=source&hl=en and wrote http://search.cpan.org/~timb/DBI/Roadmap.pod which yielded: ...
    Tim BunceTim Bunce
    Jul 2, 2005 at 12:06 am
    Jul 20, 2005 at 11:47 pm
  • Hi, i just wanted to ask what was about the method calling syntax on $self, and why does method () not work for calling a method on $self? (like in C++) cya, Robin -- elmex@x-paste.de / ...
    Robin RedekerRobin Redeker
    Jul 7, 2005 at 8:33 pm
    Jul 15, 2005 at 8:55 pm
  • Say I make an "accessor" method for an attribute that doesn't really 'exist'. For instance, a good example of this is the "month_0" vs "month" properties on a date object; I want to make both look ...
    Sam VilainSam Vilain
    Jul 18, 2005 at 3:34 am
    Jul 24, 2005 at 11:32 pm
  • This currently works in Pugs: for [1..10].pairs - Pair $x { say $x.value } But this does not: for [1..10].pairs - $x { say $x.value } Because the ruling that pairs must not be bound to parameters ...
    Autrijus TangAutrijus Tang
    Jul 18, 2005 at 12:42 pm
    Aug 8, 2005 at 3:33 pm
  • Haskell has this very nice consistency.... I'll diverge into perl terms... The 'Show' role provides consistent stringification semantics for any type that does the role. It can even 'derive' the ...
    Yuval KogmanYuval Kogman
    Jul 14, 2005 at 11:38 pm
    Aug 8, 2005 at 10:21 am
  • Hi, class Foo {} class Bar is Foo {} Bar.new.isa(Object); # true Bar.new.isa(Class); # false Bar.new.isa(Foo); # true Bar.new.isa(Bar); # true # These are clear, I think. Bar.isa(Object); # true ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 11, 2005 at 1:18 pm
    Jul 21, 2005 at 1:01 pm
  • Let's say I have a class, call it Foo which has a bunch of attributes, and I've created a few of them. Then, at runtime I do: eval 'class Foo { has $.a_new_attribute is :default<10 }'; Assuming I've ...
    Piers CawleyPiers Cawley
    Jul 23, 2005 at 10:01 pm
    Aug 3, 2005 at 9:57 am
  • Hi, quick question: my $pair = (a = 1); say ~$pair; I assume that outputs "a\t1", because of the "pairs can pretend to be one-element hashes"-rule. Correct? --Ingo -- Linux, the choice of a GNU | We ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 31, 2005 at 4:45 pm
    Aug 4, 2005 at 6:16 pm
  • In Pugs's ext/Set/lib/Set.pm, there are a number of user-defined infix operators. To avoid unicode in mails, I'll use a hypothetical &infix:<=== as the operator name. Consider the sub case: class ...
    Autrijus TangAutrijus Tang
    Jul 9, 2005 at 3:35 pm
    Jul 14, 2005 at 6:49 pm
  • Hi, are the following assumptions correct? sub foo (*@args) { @args[0] } say ~foo("a", "b", "c"); # "a" my @array = <a b c d ; say ~foo(@array); # "a b c d" (or "a"?) say ~foo(@array, "z"); # "a b c ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 26, 2005 at 8:54 pm
    Aug 4, 2005 at 10:38 am
  • http://repetae.net/john/recent/out/supertyping.html This was a passing proposal to allow supertype declarations in Haskell. I'm referencing it here because it's something that I've had in the back of ...
    Luke PalmerLuke Palmer
    Jul 27, 2005 at 11:00 am
    Jul 31, 2005 at 5:40 pm
  • Hello, gaal is porting the Perl 5 filehandle functions to a Perl 6 OO interface. The Perl 5 interface with global constants from Fcntl strikes me as severely lacking in elegance and OO. $fh.seek(-10, ...
    WolverianWolverian
    Jul 7, 2005 at 5:18 pm
    Jul 9, 2005 at 6:02 am
  • With the recent realization of the beginnings of a PIL- Javascript emitter, it appears that my Perl6 program can run in a bizarre mix of execution environments. Forgive me if I missed this while ...
    Randal L. SchwartzRandal L. Schwartz
    Jul 27, 2005 at 2:09 pm
    Jul 28, 2005 at 1:28 pm
  • Again with the metamodel stuff :P So, I am trying to implement the submethods correctly, and some questions occurred to me. The concept of non-inherited infrastructural methods is fairly simple to ...
    Stevan LittleStevan Little
    Jul 6, 2005 at 2:15 am
    Jul 6, 2005 at 7:21 pm
  • Hi, my @array = <a b c ; my $arrayref := @array; push $arrayref, "c"; say ~@array; # a b c d, no problem $arrayref = [<d e f ]; say ~@array; # d e f, still no problem $arrayref = 42; # !!! 42 is not ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 30, 2005 at 12:33 pm
    Jul 30, 2005 at 10:09 pm
  • <brentdax Is there a Perl 6 tail call syntax, and if so is it implemented in Pugs? <autrijus &sub.goto(...); <autrijus and yes. <brentdax Oh...are tail method calls possible? <autrijus tail method ...
    Brent 'Dax' Royal-GordonBrent 'Dax' Royal-Gordon
    Jul 21, 2005 at 1:44 am
    Jul 22, 2005 at 3:25 pm
  • Hello, More questions for the metamodel. I am trying to add proper submethod and private method handling and I have a question about method resolution order as a whole. I asked a similar question ...
    Stevan LittleStevan Little
    Jul 13, 2005 at 4:52 pm
    Jul 14, 2005 at 9:27 pm
  • How can I create a lazy list from an object? I have an object representing the sequence "1..Inf". I tried creating a Coroutine, and then assigning the Coroutine to an Array, but it only yielded "1": ...
    Flavio S. GlockFlavio S. Glock
    Jul 27, 2005 at 11:17 pm
    Jul 29, 2005 at 5:37 pm
  • Hey! Welcome back our show, gay camels[1] in denial! On todays show, those who can't shut up won't, and will send you another email! Today's issues cover STM, and just that. Perl6 should have some ...
    Yuval KogmanYuval Kogman
    Jul 15, 2005 at 9:44 pm
    Jul 24, 2005 at 3:14 pm
  • Hi, what do use and require evaluate to? S06 suggests it's probably some kind of Module object: The result of a use statement is a (compile-time) object that also has an .assuming method, allowing ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 12, 2005 at 12:16 pm
    Jul 14, 2005 at 6:33 pm
  • 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 ...
    David Formosa \(aka ? the Platypus\)David Formosa \(aka ? the Platypus\)
    Jul 12, 2005 at 4:53 am
    Jul 13, 2005 at 6:14 pm
  • Consider this: sub id (Any $x) returns Any { return($x) } sub length (Str $y) returns Int { ... } length(id("abc")); Under standard static subtyping rules, this call will perform three different ...
    Autrijus TangAutrijus Tang
    Jul 27, 2005 at 9:02 pm
    Aug 7, 2005 at 12:10 am
  • Hi, my $x = 42; my $y = $x; $y++; say $x; # Still 42, of course class Foo { has $.data; method incr () { $.data++ } # Please fill in appropriate magic here } my Foo $x .= new(:data(42)); my Foo $y = ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 11, 2005 at 1:21 pm
    Jul 19, 2005 at 6:55 pm
  • I'd like to document the optimization pipeline thing I brought up in the hackathon... The intent is to plan how to balance throughput with responsiveness for a language that has such a broad range of ...
    Yuval KogmanYuval Kogman
    Jul 15, 2005 at 12:05 am
    Jul 15, 2005 at 9:27 pm
  • Perl 6 Summary for 2005-07-05 through 2005-07-12 All~ Welcome to another summary from the frog house. A house so green it can be seen from outerspace (according to google earth). Perl 6 Compiler ...
    Matt FowlesMatt Fowles
    Jul 13, 2005 at 2:17 am
    Jul 14, 2005 at 6:15 pm
  • Suppose we have a function that takes an argument and returns something with the same type as that argument. One previous suggestion is this: sub identity ((::a) $x) returns ::a { return(...) } This ...
    Autrijus TangAutrijus Tang
    Jul 30, 2005 at 8:26 am
    Aug 1, 2005 at 4:21 pm
  • Hi, http://use.perl.org/~autrijus/journal/25337: my $arrayref = [1,2,3]; say $arrayref.ref; # Ref or Array? say $arrayref.isa("Ref"); # true or false? say $arrayref.isa("Array"); # false or true? say ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 30, 2005 at 12:16 pm
    Jul 31, 2005 at 8:01 pm
  • In S06's Currying section, there are some strange looking examples: &textfrom := &substr.assuming(:str($text) :len(Inf)); &textfrom := &substr.assuming:str($text):len(Inf); &woof ::= ...
    Autrijus TangAutrijus Tang
    Jul 29, 2005 at 7:06 pm
    Jul 31, 2005 at 5:42 pm
  • What do &print and &say return? "fail" would be great on errors. On success, they return "1" now, which doesn't look very useful. How about returning the printed string? Unless called in void ...
    Gaal YahasGaal Yahas
    Jul 30, 2005 at 11:57 am
    Jul 30, 2005 at 5:15 pm
  • So the summerizor doesn't get upset with me, I'll restate this in a seperate thread. We are should have an API to talk to the GC and give it hints about when it should run, and tweek the verious ...
    David Formosa \(aka ? the Platypus\)David Formosa \(aka ? the Platypus\)
    Jul 26, 2005 at 5:18 am
    Jul 28, 2005 at 2:00 pm
  • @Larry, I have been reading up on method resolution orders and class precedence lists and all sort of meta-model esoteria. Which brings me to ask myself, "How should all this be done in Perl 6?". The ...
    Stevan LittleStevan Little
    Jul 17, 2005 at 12:42 am
    Jul 18, 2005 at 7:59 pm
  • So, I got to thinking about stuff. One of the more annoying things about writing nicely decoupled objects and applications are those occasions where you want an object to be able to create objects in ...
    Piers CawleyPiers Cawley
    Jul 6, 2005 at 10:48 pm
    Jul 8, 2005 at 12:48 pm
  • Hi, are the following assumptions correct? sub foo (*@args) { push @args, 42 } sub bar (*@args is rw) { push @args, 42 } foo @some_array; # dies ("Can't modify constant array...") bar @some_array; # ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 29, 2005 at 10:22 am
    Jul 29, 2005 at 4:43 pm
  • 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 ...
    David Formosa \(aka ? the Platypus\)David Formosa \(aka ? the Platypus\)
    Jul 27, 2005 at 9:58 pm
    Jul 29, 2005 at 1:12 am
  • The proposals so far have dealt mostly with the SQL itself, and supporting database-neutral layers on top of DBI. Personally, I don't mind writing the SQL myself, I rarely need to make a particular ...
    John WilliamsJohn Williams
    Jul 13, 2005 at 11:23 pm
    Jul 22, 2005 at 10:20 pm
  • Hi, # Perl 5 my %hash = (a = 1, b = 2, a = 3); warn $hash{a}; # 3 But I vaguely remember having seen...: # Perl 6 my %hash = (a = 1, b = 2, a = 3); say %hash<a ; # 1 Can somebody confirm this? --Ingo ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 20, 2005 at 12:44 pm
    Jul 21, 2005 at 6:00 pm
  • In other words, Huffman coding works and Perl6 hackers had better start watching their waistlines. Or maybe we should spin it that Perl6 helps reduce global warming ;) Anyway, I collected a small ...
    Michael HendricksMichael Hendricks
    Jul 8, 2005 at 8:14 pm
    Jul 11, 2005 at 3:18 pm
  • Hello, As I am building the metamodel, I had a question, I did not find anything specifically in the docs regarding this. What should I do when I encounter two attributes which can peacefully ...
    Stevan LittleStevan Little
    Jul 5, 2005 at 9:26 pm
    Jul 6, 2005 at 1:57 am
  • Under my current design of containers (see "definition of containers" on p6c), there are only Scalar, Array and Hash containers. This is in accordance to them being the only first-class data ...
    Autrijus TangAutrijus Tang
    Jul 31, 2005 at 3:33 pm
    Aug 3, 2005 at 5:32 pm
  • Hi, is binding hashes to arrays (or arrays to hashes) legal? If not, please ignore the following questions :) my @array = <a b c d ; my %hash := @array; say %hash<a ; # b push @array, <e f ; say ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 30, 2005 at 12:59 pm
    Jul 30, 2005 at 3:07 pm
  • As Perl 6's aggregate types are generics (Role that takes type parameters), the problem of type variancy naturally arises. The basic premise is that: 1. (Array of Item).does(Array of Int); # false 2. ...
    Autrijus TangAutrijus Tang
    Jul 27, 2005 at 11:19 pm
    Jul 28, 2005 at 8:59 am
  • A12 and S12 describe introspection on objects and classes. The metaclass instance has the method getmethods() which returns "method descriptors". The design specifies several traits queryable through ...
    ChromaticChromatic
    Jul 21, 2005 at 4:04 am
    Jul 24, 2005 at 7:56 am
  • The Perl 6 summary for the week ending 2005-07-05 My, doesn't time fly? Another fortnight gone and another summary to write. It's a hard life I tell you! This week in perl6-compiler Where's everyone ...
    The Perl 6 SummarizerThe Perl 6 Summarizer
    Jul 6, 2005 at 3:07 pm
    Jul 20, 2005 at 6:41 pm
  • Hi, according to Damian [1]...: my %hash = (a = 1, b = 2); my @array = %hash; say @array[0].isa(Pair); # true How can I override this behaviour? class MyHash is Hash { # Please fill in here } my ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 20, 2005 at 12:51 pm
    Jul 20, 2005 at 1:44 pm
  • Hi, class Foo {...} Foo.new.isa(Foo); # true Foo.isa(Foo); # true (see [1]) Foo.does(Class); # true sub blarb (Foo $foo, $arg) { ...; # Do something with instance $foo } blarb Foo.new(...), ...; # No ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 19, 2005 at 12:54 pm
    Jul 19, 2005 at 3:30 pm
  • Hi, .assuming is non-mutating on Code objects: my $subref = &some_sub; my $assumed_subref = $subref.assuming(:foo<bar ); $subref =:= &some_sub; # true, $subref did not change Quoting S06: So, ...
    Ingo BlechschmidtIngo Blechschmidt
    Jul 4, 2005 at 3:35 pm
    Jul 4, 2005 at 6:03 pm
  • What gets called for me when someone "use"s my module? What gets called when someone "no"s it? L<S11/Importation stipulates a standard syntax for import lists, and that's probably a good thing, but ...
    Gaal YahasGaal Yahas
    Jul 30, 2005 at 5:40 pm
    Jul 30, 2005 at 5:40 pm
Group Navigation
period‹ prev | Jul 2005 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions56
posts505
users72
websiteperl6.org

72 users for July 2005

Larry Wall: 83 posts TSa (Thomas Sandlaß): 46 posts Yuval Kogman: 35 posts Autrijus Tang: 29 posts Sam Vilain: 24 posts Ingo Blechschmidt: 23 posts Stevan Little: 23 posts Luke Palmer: 21 posts Darren Duncan: 16 posts Damian Conway: 12 posts Chromatic: 11 posts David Formosa \(aka ? the Platypus\): 11 posts Dave Whipp: 10 posts Juerd: 10 posts Brent 'Dax' Royal-Gordon: 7 posts Gaal Yahas: 7 posts Piers Cawley: 7 posts Aankhen: 6 posts Adam Kennedy: 6 posts David Storrs: 6 posts
show more
Archives