Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-09-29

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:03 dduncan joined #perl6
00:03 dduncan left #perl6
00:10 BinGOs joined #perl6
00:59 lichtkind if you say want what is default
00:59 lichtkind context or caller?
01:51 kanru joined #perl6
01:55 kanru left #perl6
02:14 drbean joined #perl6
02:35 alester joined #perl6
02:39 Ontolog joined #perl6
03:01 pugs_svn r22446 | putter++ | [elf_h] Language conformance: re_gsub no longer mutates (immutable) Str.
03:04 pugs_svn r22447 | putter++ | [elfish/on_sbcl] Support re_gsub and friends.  Faster multi dispatch.
04:02 preflex joined #perl6
04:14 BinGOs_ joined #perl6
04:20 alester joined #perl6
04:21 justatheory joined #perl6
05:22 apeiron joined #perl6
05:44 Psyche^ joined #perl6
05:58 Bzek joined #perl6
06:06 elmex joined #perl6
06:17 ashizawa joined #perl6
06:27 lambdabot joined #perl6
06:38 Bzek_ joined #perl6
06:54 cosimo joined #perl6
07:19 iblechbot joined #perl6
07:29 xinming joined #perl6
07:49 Psyche^ joined #perl6
07:58 charsbar joined #perl6
08:31 sri_work joined #perl6
08:58 Alias__ joined #perl6
09:16 ludan joined #perl6
11:00 integral joined #perl6
11:03 jferrero joined #perl6
11:37 dalek joined #perl6
12:36 Lorn joined #perl6
13:06 abra joined #perl6
13:08 alanhaggai joined #Perl6
13:13 donaldh joined #perl6
13:39 masak joined #perl6
13:47 azawawi joined #perl6
13:50 masak if I'm in package A::B, and I want to refer to A::B::C::D, but without having to mention A::B again, what do I write?
13:54 moritz_ maybe something with $?PACKAGE ?
13:57 cognominal joined #perl6
13:58 PerlJam masak: an alias for A::B?
13:59 agentzh joined #perl6
13:59 masak PerlJam: a variable saying "the current package", preferably
13:59 masak which you can concatenate subpackage names onto
13:59 moritz_ that's $?PACKAGE.
13:59 PerlJam masak: then, I'm going with moritz_ on this one.
14:00 masak but is $?PACKAGE::C::D really valid syntax?
14:02 moritz_ S02:1595
14:02 moritz_ it has $Foo::($bar)::baz as an example for interpolating into namespaces
14:03 moritz_ maybe ($?PACKAGE)::B::C or ::($?PACKAGE)::B::C are right then?
14:04 masak moritz_: dz
14:04 icwiener joined #perl6
14:04 moritz_ You may interpolate a string into a package or variable name using
14:04 moritz_ C<::($expr)> where you'd ordinarily put a package or variable name.
14:04 moritz_ S02:1673
14:05 masak oh. I thought prefix :: was for type vars.
14:05 BinGOs joined #perl6
14:06 * moritz_ never really understood the relation between types and packages
14:07 moritz_ $::($?PACKAGE)::Subpackage::variable works
14:07 moritz_ S02:1687
14:08 masak cool
14:08 masak and if it happens to be a regex in a grammar? :)
14:08 moritz_ then the sigil is & instead of $
14:08 masak right.
14:09 alester joined #perl6
14:11 masak perl6: grammar A::B { regex r { ^ a $ } }; class A { method x { say 'a' ~~ &::($?PACKAGE)::B::r } }; A.new.x
14:11 p6eval rakudo 31491: OUTPUT[Statement not terminated properly at line 1, near "~~ &::($?P"␤␤current instr.: 'parrot;PGE::Util;die' pc 119 (runtime/parrot/library/PGE/Util.pir:82)␤]
14:11 p6eval ..pugs: OUTPUT[*** Unexpected arity in smart match: 3␤    at /tmp/dxSY505dVp line 1, column 62-90␤]
14:11 p6eval ..elf 22447: OUTPUT[Can't locate object method "cb__RegexDef" via package "EmitSimpleP5" at ./elf_f line 1612.␤]
14:11 masak should work, no?
14:12 moritz_ rakudo: my $x; say &::($x)::b
14:12 p6eval rakudo 31491: OUTPUT[Use of contextualizer :: not implemented. at line 1, near "::b"␤␤current instr.: 'parrot;PGE::Util;die' pc 119 (runtime/parrot/library/PGE/Util.pir:82)␤]
14:12 moritz_ masak: I think that the "interpolated namespace" patch from jhorowitz is not yet applied
14:13 masak oki. good to know it's being implemented.
14:13 moritz_ I think it's needed for mod_whatever
14:14 moritz_ for values of "perl6" for whatever ;)
14:14 masak :)
14:14 masak it would be neat to have in our favorite month, too
14:16 moritz_ bug pmichaud ;)
14:17 masak will do
14:18 tomyan joined #perl6
14:20 pugs_svn r22448 | azawawi++ | [t/spec] The smartlink has been verified in terminator.t; Removed todo comment.
14:23 moritz_ 9 broken smartlinks in t/spec/
14:23 azawawi joined #perl6
14:26 pugs_svn r22449 | moritz++ | [t/spec] fix two smartlinks
14:27 jhorwitz joined #perl6
14:29 azawawi how do i check P6 PODs (using something like podchecker)?
14:30 [particle] there's no tool, currently
14:30 moritz_ unless Perl6::Pod provides one
14:31 moritz_ anyway, since the POD spec is pending indefinitely, it's not very wise to check against it
14:31 [particle] there's a new draft in the works, i believe
14:31 azawawi pending what?
14:32 [particle] approval
14:32 moritz_ pending TheDamian having more time
14:32 azawawi all i see in cpan is Perl6::Perldoc::Parser
14:32 [particle] yeah, actually it's pending revisions for approval
14:33 moritz_ azawawi: that's what I meant, sorry
14:33 azawawi moritz_: np
14:36 azawawi so the problem is in the spec; not in the availabilility of tools checking for it like podchecker
14:36 moritz_ yes
14:37 [particle] without spec, how do you write a tool?
14:37 moritz_ "educated guessing"
14:38 azawawi make the tool define the spec ;-)
14:38 moritz_ that's exactly what we wanted to avoid for Perl 6 ;)
14:38 azawawi i know ;-)
14:39 azawawi but it makes things move forward a bit...
14:40 azawawi but given the current S26 spec, a tool could be written to check for it.
14:40 pugs_svn r22450 | moritz++ | [t/spec] fix nearly all broken smartlinks, two remain
14:40 iblechbot joined #perl6
14:40 [particle] iirc somebody nopasted one to #parrot
14:40 [particle] within the past three weeks
14:40 moritz_ aye
14:41 [particle] but that's ethereal, don't know if it still exists
14:41 azawawi in p6 or p5?
14:41 moritz_ it worked, but was quite differently from what I'd expected
14:41 moritz_ azawawi: p6
14:41 [particle] in p6
14:41 moritz_ but it didn't use rules to parse it :(
14:41 [particle] but i can tell you, it *won't* be the official tool
14:42 [particle] however, it works today, for some definition of "works".
14:42 moritz_ to some extend every Perl 6 compiler has to parse POD
14:42 moritz_ to provide the pod variables
14:43 azawawi hmmm
15:01 azawawi moritz_: have u seen t/spec/S16-io/print.t ?
15:01 azawawi moritz_: it has no plan or anything
15:01 moritz_ azawawi: that's because it prints the plan itself...
15:01 azawawi moritz_: i see
15:01 moritz_ azawawi: it prints the TAP output directly instead of using Test.pm
15:16 zamolxes joined #perl6
15:24 pugs_svn r22451 | moritz++ | [t/spec] unfudge two arithmetic tests for rakudo that used to fail due
15:24 pugs_svn r22451 | moritz++ | to limited integer precision
15:26 moritz_ nqp: print(123);
15:26 p6eval nqp: OUTPUT[123]
15:31 REPLeffect joined #perl6
15:35 pugs_svn r22452 | moritz++ | [t/spec] unTODOed a few passing radix.t tests
15:50 justatheory joined #perl6
16:00 Khisanth joined #perl6
16:15 pugs_svn r22453 | cjfields++ | [t/spec] transliteration tests for changes in RT #59446 (todo'd or skipped until patch committed)
16:16 hercynium joined #perl6
16:21 icwiener joined #perl6
16:29 Exodist joined #perl6
16:30 Exodist joined #perl6
16:39 rakudo_svn r31494 | pmichaud++ | [rakudo]:  spectest-progress.csv update: 188 files, 4121 passing tests
17:02 Khisanth joined #perl6
17:11 apeiron_ joined #perl6
17:36 justatheory joined #perl6
18:14 pugs_svn r22454 | azawawi++ | [t/spec] Fudged ignorecase.t for rakudo
18:35 icwiener_ joined #perl6
19:42 BinGOs_ joined #perl6
19:44 dalek joined #perl6
19:47 bennymac1 joined #perl6
19:48 xuser_ joined #perl6
20:00 BinGOs joined #perl6
20:11 Jedai joined #perl6
20:21 BinGOs_ joined #perl6
20:35 BinGOs_ joined #perl6
20:37 pugs_svn r22455 | moritz++ | [t] move stdrules.t to spec/
20:38 renormalist joined #perl6
20:41 pugs_svn r22456 | moritz++ | [t/spec] uncomment tests for unspecced builtin rules
20:42 justatheory joined #perl6
20:43 pugs_svn r22457 | moritz++ | [t/spec] <?noncapturing> is now <.noncapturing> (in stdrules.t)
20:46 SamB joined #perl6
20:48 rakudo_svn r31498 | moritz++ | [rakudo] add regex tests (stdrules.t) to spectest_regression
20:48 jferrero joined #perl6
20:50 pugs_svn r22458 | moritz++ | [t] move assigning_refs.t to spec/
20:52 moritz_ rakudo my $h = { :a(1), :b(3) }; my %hash = ($h, ); say %hash.perl
20:52 moritz_ rakudo: my $h = { :a(1), :b(3) }; my %hash = ($h, ); say %hash.perl
20:52 p6eval rakudo 31498: OUTPUT[{"a" => 1, "b" => 3}␤]
20:54 pugs_svn r22459 | moritz++ | [t/spec] fudge assigning-refs.t for rakudo
20:58 pugs_svn r22460 | moritz++ | [t] move newline.t to spec/, and fudge for rakudo
20:59 rakudo_svn r31499 | moritz++ | [t/spec] two more tests for spectest_regression
21:01 falesca joined #perl6
21:07 pugs_svn r22461 | moritz++ | [t] merge xx-uncategorized/optional_copy.t into S06-traits/misc.t, and moved
21:07 pugs_svn r22461 | moritz++ | lexical-and-in-inner-block.t to spec/
21:21 pugs_svn r22462 | moritz++ | [t] move two tests to spec/
21:25 Lorn_ joined #perl6
21:25 literal is .perl the Perl 6 version of Data::Dumper?
21:26 [particle] yes
21:26 moritz_ yes
21:27 literal does Perl 6 have anything comparable to Data::Dumper's configuration variables?
21:27 rakudo_svn r31501 | moritz++ | [rakudo] two more tests for spectest_regression
21:27 moritz_ don't think so
21:27 moritz_ enough test shuffling & fudging for tonight
21:27 [particle] i don't see why .perl can't take attributes, though
21:28 [particle] if there's consensus on syntax and semantics
21:28 moritz_ that's something a library can easily do
21:28 [particle] indeed
21:28 moritz_ by simply adding more multis
21:28 moritz_ that's the beauty of Perl 6 ;-)
21:29 moritz_ 4381 passing tests of now
21:29 [particle] nice!
21:30 moritz_ 4.5k should be a piece of cake if pmichaud fixes list assignment and assignment/binding issues
21:30 [particle] indeed.
21:33 pugs_svn r22463 | moritz++ | [t] mrege from_perl6_rules/inline.t into S05-modifier/ignorecase.t
21:33 moritz_ ok, not quite done yet ;-)
21:38 rakudo_svn r31502 | moritz++ | [rakudo] one more regex test file for spectest_regression
22:04 justatheory_ joined #perl6
22:11 pugs_svn r22464 | moritz++ | [t/spec] changed order of test to better play with fudging
22:26 apeiron_ joined #perl6
22:39 meppl joined #perl6
22:59 hercynium joined #perl6
23:31 zamolxes joined #perl6
23:50 s1n @seen pmichaud
23:50 lambdabot pmichaud is in #perl6. I don't know when pmichaud last spoke.

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo