Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-12-25

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:02 jferrero joined #perl6
00:52 literal perl6: my $var = 'bar', "foo \qq[$bar]".perl
00:52 p6eval elf 24603: RESULT«"\"foo\\\ \\\\qq\\\[\\\$bar\\\]\""␤»
00:52 p6eval ..rakudo 34343: OUTPUT«Scope not found for PAST::Var '$bar'␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (src/PCT/HLLCompiler.pir:102)␤»
00:52 p6eval ..pugs: OUTPUT«*** Undeclared variable: ("$bar",MkPad (padToList [("$_",PELexical {pe_type = (mkType "Scalar"), pe_proto = <Scalar:0xb6511639>, pe_flags = MkEntryFlags {ef_isContext = True}, pe_store = <ref:0xb653e731>}),("@_",PELexical {pe_type = (mkType "Array"), pe_proto = <Array:0xb6515081>...
00:52 literal perl6: my $var = 'bar'; "foo \qq[$bar]".perl
00:52 p6eval pugs: OUTPUT«*** Undeclared variable: ("$bar",MkPad (padToList [("$_",PELexical {pe_type = (mkType "Scalar"), pe_proto = <Scalar:0xb6509e89>, pe_flags = MkEntryFlags {ef_isContext = True}, pe_store = <ref:0xb6541731>}),("@_",PELexical {pe_type = (mkType "Array"), pe_proto = <Array:0xb650f705>...
00:52 p6eval ..elf 24603: RESULT«"\"foo\\\ \\\\qq\\\[\\\$bar\\\]\""␤»
00:52 p6eval ..rakudo 34343: OUTPUT«Scope not found for PAST::Var '$bar'␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (src/PCT/HLLCompiler.pir:102)␤»
00:53 literal perl6: my $var = 'bar'; "foo \qq[$var]".perl
00:53 p6eval pugs, rakudo 34343: RESULT«"\"foo qq[bar]\""»
00:53 p6eval ..elf 24603: RESULT«"\"foo\\\ \\\\qq\\\[\\\$var\\\]\""␤»
00:54 pugs_svn r24604 | hinrik++ | [util/perl6.vim] remove a redundant line
01:21 meppl good night
01:46 cspencer joined #perl6
01:50 cspencer rakudo: :by(3).WHAT.say
01:50 p6eval rakudo 34343: OUTPUT«Pair␤»
01:53 cspencer rakudo: (by => 3).WHAT.say
01:53 p6eval rakudo 34343: OUTPUT«Pair␤»
01:54 cspencer rakudo: :a(0).perl.say
01:54 p6eval rakudo 34343: OUTPUT«"a" => 0␤»
01:54 cspencer rakudo: :!a.perl.say
01:54 p6eval rakudo 34343: OUTPUT«"a" => 0␤»
02:16 alc joined #perl6
02:19 r0bby joined #perl6
02:28 alanhaggai joined #perl6
02:46 rhr joined #perl6
03:01 alester joined #perl6
03:09 ruoso joined #perl6
03:21 azawawi_ joined #perl6
03:38 azawawi joined #perl6
03:48 dwhipp joined #perl6
04:02 elmex joined #perl6
04:08 pugs_svn r24605 | hinrik++ | [util/perl6.vim] a few Q tweaks
04:09 dwhipp rakudo: my @a = 1..3; @a >>++;
04:09 p6eval rakudo 34343: OUTPUT«Statement not terminated properly at line 1, near ">>++;"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
04:09 dwhipp rakudo: my @a = 1..3; @a >>+=>> 1;
04:09 p6eval rakudo 34343: OUTPUT«Statement not terminated properly at line 1, near ">>+=>> 1;"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
04:10 dwhipp rakudo: my @a = 1..3; @a >>+>>= 1;
04:10 p6eval rakudo 34343: OUTPUT«get_iter() not implemented in class 'Integer'␤current instr.: 'prefix:=' pc 17607 (src/builtins/misc.pir:17)␤»
04:12 cspencer joined #perl6
04:13 dwhipp rakudo: my @a = 1..3; ++<< @a;
04:13 p6eval rakudo 34343: OUTPUT«Syntax error at line 1, near "++<< @a;"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
04:13 literal rakudo: my @ = 1..3; [++] @a;
04:13 p6eval rakudo 34343: OUTPUT«Syntax error at line 1, near "[++] @a;"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
04:14 literal rakudo: my @a = 1..3; [++] @a;
04:14 p6eval rakudo 34343: OUTPUT«Syntax error at line 1, near "[++] @a;"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
04:37 Tene Does anyone here know colomon from use.perl ?
04:57 TimToady rakudo: my @a = 1..3 @a>>++
04:57 p6eval rakudo 34345: OUTPUT«Statement not terminated properly at line 1, near "@a>>++"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
04:59 Tene Should that parse?
04:59 TimToady rakudo: my @a = 1..3; @a>>++
04:59 p6eval rakudo 34345: OUTPUT«Statement not terminated properly at line 1, near ">>++"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
04:59 TimToady std: my @a = 1..3; @a>>++
04:59 p6eval std 24605: OUTPUT«00:05 86m␤»
05:00 TimToady rakudo: my @a = 1..3; @a»++
05:00 p6eval rakudo 34345: OUTPUT«Statement not terminated properly at line 1, near "\x{bb}++"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
05:00 Tene Ah, hyper postfix NYI.
05:00 TimToady std: my @a = 1..3; @a»++
05:01 p6eval std 24605: OUTPUT«00:05 86m␤»
05:08 dwhipp my @a = 1..3; my ($head, @tail) = @a; say "$head, {@tail}"
05:08 dwhipp rakudo: my @a = 1..3; my ($head, @tail) = @a; say "$head, {@tail}"
05:08 p6eval rakudo 34345: OUTPUT«1, ␤»
05:08 dwhipp pugs: my @a = 1..3; my ($head, @tail) = @a; say "$head, {@tail}"
05:08 p6eval pugs: OUTPUT«1, 2␤»
05:09 dwhipp rakudo: my @a = 1..3; my ($head, @tail) = |@a; say "$head, {@tail}"
05:09 p6eval rakudo 34345: OUTPUT«too many arguments passed (4) - 2 params expected␤current instr.: 'infix:=' pc 13192 (src/builtins/assign.pir:71)␤»
05:09 dwhipp rakudo: my @a = 1..3; my ($head, *@tail) = @a; say "$head, {@tail}"
05:09 p6eval rakudo 34345: OUTPUT«1, ␤»
05:09 dwhipp rakudo: my @a = 1..3; my ($head, *@tail) := @a; say "$head, {@tail}"
05:09 p6eval rakudo 34345: OUTPUT«rtype not set␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (src/PCT/HLLCompiler.pir:102)␤»
05:09 dwhipp rakudo: my @a = 1..3; my ($head, *@tail) := |@a; say "$head, {@tail}"
05:09 p6eval rakudo 34345: OUTPUT«rtype not set␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (src/PCT/HLLCompiler.pir:102)␤»
05:10 dwhipp pugs: my @a = 1..3; my ($head, *@tail) := |@a; say "$head, {@tail}"
05:10 p6eval pugs: OUTPUT«*** Wrong number of binding parameters: 1 actual, 2 expected␤    at /tmp/uWQROwcYBI line 1, column 15-40␤»
05:10 dwhipp pugs: my @a = 1..3; my ($head, *@tail) := @a; say "$head, {@tail}"
05:10 p6eval pugs: OUTPUT«*** Wrong number of binding parameters: 1 actual, 2 expected␤    at /tmp/wol2upjsf3 line 1, column 15-39␤»
05:11 cspencer joined #perl6
05:13 dwhipp rakudo: my @a = 1..3; my ($head, @tail) = 1..3; say "$head, {@tail}"
05:13 p6eval rakudo 34345: OUTPUT«1, ␤»
05:13 dwhipp rakudo: my @a = 1..3; my ($head, *@tail) = 1..3; say "$head, {@tail}"
05:13 p6eval rakudo 34345: OUTPUT«1, ␤»
05:13 dwhipp rakudo: my @a = 1..3; my ($head, *@tail) := 1..3; say "$head, {@tail}"
05:13 p6eval rakudo 34345: OUTPUT«rtype not set␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (src/PCT/HLLCompiler.pir:102)␤»
05:15 dwhipp seems there must be a way to do "($car, @cdr) = @list" -- signature matching works
05:22 c9s joined #perl6
05:38 cspencer joined #perl6
06:19 Luyt joined #perl6
06:24 c9s_ joined #perl6
06:29 c9s_ joined #perl6
06:30 c9s_ joined #perl6
06:48 ashizawa joined #perl6
06:58 cspencer joined #perl6
07:14 azawawi joined #perl6
07:14 azawawi hi
07:18 mberends joined #perl6
08:05 vixey joined #Perl6
08:09 alech joined #perl6
08:12 literal hi
08:15 Tene hi!
08:15 azawawi hi!!
08:21 mberends hi!!!
08:22 literal since there's someone here now, what's the shortest way to do this in Perl 6? http://www.reddit.com/r/programming/comments/7lf1u/coding_challenge_divide_a_list_into_n_sublists/
08:24 mberends it's gotta be slices, but Rakudo slices may be only partially implemented
08:31 Tene I came up with a few options.  let's see what I remember.
08:33 Tene http://nopaste.snit.ch/15096 was my first solution
08:36 Tene I think I had an answer with slices, but slices are NYI on rakudo
08:36 Tene I also had an answer with gather/take...
08:36 Tene gather { for 1..$n { take <something> } }
08:36 Tene don't quite recall, but it was pretty short
08:37 justatheory joined #perl6
08:44 plash_ joined #perl6
09:00 ejs joined #perl6
09:04 iblechbot joined #perl6
09:24 duke_leto joined #perl6
09:27 ejs joined #perl6
10:11 ejs joined #perl6
10:16 ejs joined #perl6
10:37 dmq joined #perl6
10:37 dmq left #perl6
10:50 duke_leto left #perl6
10:59 alech joined #perl6
11:07 DemoFreak joined #perl6
11:33 alech joined #perl6
11:44 masak joined #perl6
11:54 masak perl6: <13 37 50 50 57 -32 3 40 50 41 51 52 45 33 51 -31>.map({ chr($_ + 64) }).join('').say
11:54 p6eval elf 24605: OUTPUT«Use of uninitialized value $_ in addition (+) at (eval 117) line 3.␤Undefined subroutine &GLOBAL::chr called at (eval 117) line 3.␤ at ./elf_f line 3861␤»
11:54 p6eval ..pugs, rakudo 34346: OUTPUT«Merry Christmas!␤»
11:55 masak (the conventional one, not the Perl 6 one)
11:57 masak I just submitted i slightly worrying bug.
11:58 masak perl6: class A { has $.b; }; my @q = A.new( :b(1) ); while shift @q -> $p { $p.clone( :b($p.b + 1) ); say $p.b; }
11:58 p6eval rakudo 34346: OUTPUT«2␤»
11:58 p6eval ..pugs: OUTPUT«*** Cannot 'shift' scalar␤    at Prelude.pm line 736, column 48-75␤»
11:58 p6eval ..elf 24605: OUTPUT«Useless use of reference constructor in void context at (eval 121) line 13.␤Undefined subroutine &Main::ARRAY called at (eval 121) line 8.␤ at ./elf_f line 3861␤»
12:01 masak TimToady: though I'm flattered, I think you meant "I'd just watch moritz_ for a while"
12:07 masak pmurias, ruoso: I know it's probably not your fault, but when checking out pugs with `svn co http://svn.pugscode.org/pugs/ pugs`, svn dies in pugs/v6/smop/m0ld/. on a clean checkout.
12:08 pmurias joined #perl6
12:13 pmurias ruoso: is -DSMOP_LOWLEVEL_MEM_TRACE enough to turn reference counting validation on?
12:15 masak pmurias: http://gist.github.com/39888
12:17 pmurias masak: remove .svn directories at random ;)
12:17 masak pmurias: I want to stress that this is a clean checkout, not an update.
12:18 masak svn complains when I remove .svn directories.
12:19 masak :(
12:19 masak I know this is most likely svn's fault, not yours
12:19 masak but it's bad for everyone if people coming to Perl 6 cannot check out the Pugs repo.
12:20 * masak upgrades svn
12:24 pmurias masak: maybe your svn is too new?
12:24 masak it was 1.4.4
12:24 masak latest is 1.5.5
12:24 pmurias i have 1.4.6
12:25 masak pmurias: and you can to clean checkouts from that URL with no problem?
12:28 ruoso pmurias, yes, it is
12:29 pmurias masak: trying
12:30 pmurias ruoso: i suspect it is not working in HEAD
12:30 ruoso you probably just fixed all the leaks ;)
12:30 pmurias ruoso: could you check if it works? (with an artificial one)
12:33 pmurias i fixed the leaks before the switch to scons, but P5Interpreter isn't DESTROYALL'ed properly at the leak checker doesn't find anything
12:33 pmurias masak: the fresh checkout works here
12:36 masak pmurias: thank you. then hopefully it's just 1.4.4 that's too old.
12:39 ruoso pmurias, you can always turn SMOP_LOWLEVEL_MEM_DEBUG on also, it should print more verbose messages...
12:43 pugs_svn r24606 | pmurias++ | [smop] fixed a segfault in postcircumfix:<( )> on a wrapped SV*
12:43 pmurias ruoso: i'll try that again
12:46 DemoFreak joined #perl6
12:49 pmurias ruoso: i just wanted to have someone else check if the tracing works as i'm getting more and more confused by it atm
13:04 pmurias ruoso: m0ld was not calling smop_destr
13:06 icwiener joined #perl6
13:10 masak Perl is a Shinto shrine: http://www.youtube.com/watch?v=Xe1TZaElTAs
13:15 pmurias ruoso: i think i'll just write a bytecode loade
13:16 pmurias and throw away the smop in haskell embedding
13:27 icwiener_ joined #perl6
13:38 masak upgrading svn didn't help :( I still can't check out the Pugs repo.
13:38 masak the error message changed slightly:
13:38 masak "Can't open file 'pugs/v6/smop/m0ld/.svn/tmp/text-base/m0ld.hs.svn-base': No such file or directory"
13:38 masak svn--
13:38 meppl joined #perl6
13:40 pmurias masak: maybe you need exactly 1.4.6?
13:40 pmurias masak: fresh checkout again?
13:42 pmurias ruoso: how should smop know how to load a given object from a bytecode file?
13:46 alech joined #perl6
13:57 masak pmurias: I think I'll turn to #svn about this.
13:57 masak pmurias: yes, it was a fresh checkout.
13:57 azawawi masak: what's the problem?
13:57 masak azawawi: I can't get svn to checkout the whole Pugs repo.
13:58 azawawi masak: will try it now on feather1
13:59 masak people have reported similar problems in the last couple of months. this is the first time I've had them.
13:59 azawawi masak: any pbot output you could share?
13:59 alester joined #perl6
13:59 masak azawawi: the error is simply "svn: Can't open file 'pugs/v6/smop/m0ld/.svn/tmp/text-base/m0ld.hs.svn-base': No such file or directory"
14:00 azawawi masak: svn co works on feather1, version 1.5.1 (r32289)
14:00 masak azawawi: thanks for checking.
14:01 azawawi masak: np
14:23 ft joined #perl6
14:50 eternaleye_ joined #perl6
14:54 nomas joined #perl6
15:00 DemoFreak joined #perl6
15:04 nomas joined #perl6
15:06 ZuLuuuuuu joined #perl6
15:14 alanhaggai joined #perl6
15:19 nomas joined #perl6
15:20 rakudo_svn r34347 | infinoid++ | [cage] Fix failures from the following codingstd tests:
15:20 rakudo_svn r34347 | infinoid++ | * check_toxxx.t
15:20 rakudo_svn r34347 | infinoid++ | * c_code_coda.t
15:21 dalek joined #perl6
15:22 TimToady no problem svn upping in california
15:23 masak I don't think it's the upping that's the problem, only the co'ing under some not yet clear circumstances.
15:29 iblechbot joined #perl6
15:29 pugs_svn r24607 | moritz++ | [t] and [t/spec]
15:29 pugs_svn r24607 | moritz++ |  * moved NaN.t, ref.t, trusts.t and fail.t to spec/
15:29 pugs_svn r24607 | moritz++ |  * merged tests from complex_powers.t into arith.t
15:29 pugs_svn r24607 | moritz++ |  * replaced die_and_end.t with something more useful inside spec/
15:29 pugs_svn r24607 | moritz++ |  * merge builtins/my.t into spec/S04-declarations/my.t
15:29 pugs_svn r24607 | moritz++ |  * small simplifications to spec/S03-operators/p5arrow.t
15:29 pugs_svn r24607 | moritz++ |  * removed quotes from isa_ok(..., 'QuotedType')
15:29 pugs_svn r24607 | moritz++ |  * various unfudges for rakudo
15:29 pugs_svn r24607 | moritz++ |  * added tests for binding to signatures
15:30 pugs_svn r24607 | moritz++ |  * added tests for KeyHash
15:30 pugs_svn r24607 | moritz++ |  * added TASKS
15:30 pugs_svn r24607 | moritz++ |  * [examples/99problems]: simplified some of the tests
15:30 pugs_svn r24607 | moritz++ | Merry Christmas!
15:30 * azawawi 'The Return of The moritz_' ;-)
15:32 alc joined #perl6
15:32 moritz_ I'm just peeking in
15:32 azawawi merry christmas
15:32 moritz_ thanks, same to you!
15:33 * azawawi is working on Inline::C + PPI
15:35 ejs1 joined #perl6
15:42 alech joined #perl6
15:45 pugs_svn r24608 | moritz++ | [t/spec] some unfudges in next.t
15:48 cspencer joined #perl6
15:50 ejs2 joined #perl6
15:51 alanhaggai_ joined #perl6
15:55 pugs_svn r24609 | lwall++ | [STD] add div operator, don't mismarse (::T) as (: : T)
16:11 ft joined #perl6
16:13 maerzhase joined #perl6
16:34 alester joined #perl6
16:40 cspencer joined #perl6
16:43 pmurias azawawi: Inline::C + PPI = speeding PPI up?
17:17 cognominal joined #perl6
17:20 alech joined #perl6
17:21 ejs joined #perl6
17:21 ejs1 joined #perl6
17:28 dwhipp joined #perl6
17:28 dwhipp pugs: say "yes" if 1 == 1|2
17:28 p6eval pugs: OUTPUT«yes␤»
17:28 dwhipp pugs: say "yes" if 1 === 1|2
17:28 p6eval pugs: OUTPUT«yes␤»
17:28 dwhipp rakudo: say "yes" if 1 === 1|2
17:28 p6eval rakudo 34350: RESULT«Bool::False»
17:34 dwhipp pugs: [1,2,3] === [1|2, 2|3, 3|4]
17:34 p6eval pugs: RESULT«Bool::False»
17:34 dwhipp pugs: [1,2,3] === [1, 2, 3]
17:34 p6eval pugs: RESULT«Bool::False»
17:34 dwhipp rakudo: [1,2,3] === [1, 2, 3]
17:34 p6eval rakudo 34350: RESULT«Bool::False»
17:35 dwhipp rakudo: [1,2,3] ~~  [1, 2, 3]
17:35 p6eval rakudo 34350: RESULT«Bool::True»
17:35 dwhipp rakudo: [1,2,3] ~~  [1, 2|3, 3]
17:35 p6eval rakudo 34350: RESULT«Bool::False»
17:35 dwhipp rakudo: [1,2,3] ~~  [1, 2&3, 3]
17:35 p6eval rakudo 34350: RESULT«Bool::False»
17:35 dwhipp rakudo: [1,2,3] ~~  [1, 2, 3]
17:35 p6eval rakudo 34350: RESULT«Bool::True»
17:36 dwhipp pugs: [1,2,3] ~~  [1, 2, 3]
17:36 p6eval pugs: RESULT«Bool::True»
17:36 dwhipp pugs: [1,2,3] ~~  [1, 2|3, 3]
17:36 p6eval pugs: RESULT«Bool::False»
17:37 cspencer pugs: [1,2,3] ~~ [1, 2||3, 3]
17:37 p6eval pugs: RESULT«Bool::True»
17:38 dwhipp but that's trivially true
17:39 dwhipp pugs: [1,0,3] ~~  [1, 0||2, 3]
17:39 p6eval pugs: RESULT«Bool::False»
17:39 dwhipp pugs: [1,0,3] ~~  [1, 0|2, 3]
17:39 p6eval pugs: RESULT«Bool::False»
17:39 cspencer hmm
17:39 cspencer pugs: (0|2).say
17:40 p6eval pugs: OUTPUT«any(VInt 0,VInt 2)␤»
17:40 dwhipp pugs : 0 ~~ 0|2
17:41 dwhipp pugs: 0 ~~ 0|2
17:41 p6eval pugs: RESULT«(Bool::False | Bool::True)»
17:42 dwhipp pugs: my @a = 0; my @b = 0|2; @a ~~ @b
17:42 p6eval pugs: RESULT«Bool::False»
17:42 dwhipp pugs: my $a = 0; my $b = 0|2; $a ~~ $b
17:42 p6eval pugs: RESULT«(Bool::False | Bool::True)»
17:42 justatheory joined #perl6
17:42 dwhipp rakudo: my @a = 0; my @b = 0|2; @a ~~ @b
17:42 p6eval rakudo 34350: RESULT«Bool::False»
17:43 dwhipp rakudo: my @a = 0; my @b = 0|2; @a === @b
17:43 p6eval rakudo 34350: RESULT«Bool::False»
17:43 dwhipp rakudo: my @a = 0; my @b = 0|2; |@a === |@b
17:43 p6eval rakudo 34350: RESULT«Bool::False»
17:53 ejs joined #perl6
17:55 brunoV joined #perl6
17:56 ZuLuuuuuu left #perl6
17:57 icwiener-_- joined #perl6
18:06 cspencer joined #perl6
18:11 rindolf joined #perl6
18:21 justatheory joined #perl6
18:22 pugs_svn r24610 | moritz++ | [t/spec] unfudge some last/next/redo tests for rakudo
18:30 Psyche^ joined #perl6
18:32 explorer__ joined #perl6
18:46 icwiener_ joined #perl6
18:55 barney joined #perl6
18:59 cspencer joined #perl6
19:11 alech joined #perl6
19:17 cspencer joined #perl6
19:19 alech joined #perl6
19:43 alech_ joined #perl6
19:44 awwaiid joined #perl6
19:47 maerzhase joined #perl6
19:53 jferrero joined #perl6
20:02 Tene joined #perl6
20:02 awwaiid joined #perl6
20:02 cspencer joined #perl6
20:02 dalek joined #perl6
20:02 meppl joined #perl6
20:02 mberends joined #perl6
20:02 r0bby joined #perl6
20:02 araujo joined #perl6
20:02 dukeleto_ joined #perl6
20:02 japhb joined #perl6
20:02 kidd joined #perl6
20:02 Khisanth joined #perl6
20:02 drbean joined #perl6
20:02 kcwu joined #perl6
20:02 zostay joined #perl6
20:02 cls_bsd joined #perl6
20:02 orafu joined #perl6
20:02 wolverian joined #perl6
20:02 Lunchy joined #perl6
20:02 lisppaste3 joined #perl6
20:02 buubot joined #perl6
20:02 Guest16015 joined #perl6
20:02 baest joined #perl6
20:02 silug joined #perl6
20:02 IRSeekBot joined #perl6
20:02 ingy joined #perl6
20:02 spinclad joined #perl6
20:02 jjore joined #perl6
20:02 szabgab joined #perl6
20:02 sunnavy joined #perl6
20:02 mtve joined #perl6
20:02 integral joined #perl6
20:02 jferrero joined #perl6
20:02 icwiener_ joined #perl6
20:02 DemoFreak joined #perl6
20:02 lambdabot joined #perl6
20:02 Eevee joined #perl6
20:02 aindilis joined #perl6
20:02 simcop2387 joined #perl6
20:02 xuser joined #perl6
20:02 p6eval joined #perl6
20:02 agentzh joined #perl6
20:02 nothingmuch joined #perl6
20:02 edenc joined #perl6
20:02 c1sung joined #perl6
20:02 idemal joined #perl6
20:02 literal joined #perl6
20:03 jnthn joined #perl6
20:03 Patterner joined #perl6
20:03 rindolf joined #perl6
20:03 SamB joined #perl6
20:03 meteorjay joined #perl6
20:03 broquaint joined #perl6
20:03 charsbar joined #perl6
20:03 szbalint joined #perl6
20:03 nnunley joined #perl6
20:03 hcchien joined #perl6
20:03 pasteling joined #perl6
20:05 bloonix joined #perl6
20:05 alech_ joined #perl6
20:05 barney joined #perl6
20:05 justatheory joined #perl6
20:05 brunoV joined #perl6
20:05 cognominal joined #perl6
20:05 ft joined #perl6
20:05 eternaleye_ joined #perl6
20:05 pmurias joined #perl6
20:05 azawawi joined #perl6
20:05 c9s_ joined #perl6
20:05 ruoso joined #perl6
20:05 rhr joined #perl6
20:05 apeiron joined #perl6
20:05 ChrisDavaz joined #perl6
20:05 kisu__ joined #perl6
20:05 [particle]1 joined #perl6
20:05 Aisling joined #perl6
20:05 gbacon joined #perl6
20:05 BinGOs joined #perl6
20:05 zev joined #perl6
20:05 Juerd_ joined #perl6
20:05 PZt joined #perl6
20:05 smg joined #perl6
20:05 shachaf joined #perl6
20:05 kolibrie joined #perl6
20:05 Southen joined #perl6
20:05 kst joined #perl6
20:05 Ehtyar joined #perl6
20:05 ilogger2 joined #perl6
20:05 Caelum joined #perl6
20:05 buu joined #perl6
20:05 funktio joined #perl6
20:05 pjcj joined #perl6
20:05 TimToady joined #perl6
20:05 Helios- joined #perl6
20:05 rafl joined #perl6
20:05 moritz_ joined #perl6
20:05 preflex joined #perl6
20:05 felipe joined #perl6
20:05 PerlJam joined #perl6
20:05 yahooooo joined #perl6
20:05 rakudo_svn joined #perl6
20:05 pugs_svn joined #perl6
20:05 jiing joined #perl6
20:05 clkao joined #perl6
20:05 LCamel_ joined #perl6
20:05 tcliou|A1ay joined #perl6
20:05 f00li5h joined #perl6
20:05 diakopter joined #perl6
20:05 Gothmog_ joined #perl6
20:05 pmichaud joined #perl6
20:05 AzureStone_ joined #perl6
20:05 perlbot joined #perl6
20:05 Maddingue joined #perl6
20:05 avar joined #perl6
20:05 Grrrr joined #perl6
20:10 moritz_ joined #perl6
20:10 alech joined #perl6
20:10 barney joined #perl6
20:10 justatheory joined #perl6
20:10 brunoV joined #perl6
20:10 cognominal joined #perl6
20:10 ft joined #perl6
20:10 eternaleye_ joined #perl6
20:10 pmurias joined #perl6
20:10 azawawi joined #perl6
20:10 c9s_ joined #perl6
20:10 ruoso joined #perl6
20:10 rhr joined #perl6
20:10 apeiron joined #perl6
20:10 ChrisDavaz joined #perl6
20:10 kisu__ joined #perl6
20:10 [particle]1 joined #perl6
20:10 Aisling joined #perl6
20:10 gbacon joined #perl6
20:10 BinGOs joined #perl6
20:10 zev joined #perl6
20:10 Juerd_ joined #perl6
20:10 PZt joined #perl6
20:10 rafl joined #perl6
20:10 preflex joined #perl6
20:10 felipe joined #perl6
20:10 PerlJam joined #perl6
20:10 yahooooo joined #perl6
20:10 rakudo_svn joined #perl6
20:10 pugs_svn joined #perl6
20:10 jiing joined #perl6
20:10 clkao joined #perl6
20:10 LCamel_ joined #perl6
20:10 tcliou|A1ay joined #perl6
20:10 f00li5h joined #perl6
20:10 diakopter joined #perl6
20:10 Gothmog_ joined #perl6
20:10 pmichaud joined #perl6
20:10 AzureStone_ joined #perl6
20:10 perlbot joined #perl6
20:10 Maddingue joined #perl6
20:10 avar joined #perl6
20:10 Grrrr joined #perl6
20:10 Helios- joined #perl6
20:10 TimToady joined #perl6
20:10 pjcj joined #perl6
20:10 funktio joined #perl6
20:10 bloonix joined #perl6
20:10 buu joined #perl6
20:10 Caelum joined #perl6
20:10 ilogger2 joined #perl6
20:10 Ehtyar joined #perl6
20:10 kst joined #perl6
20:10 Southen joined #perl6
20:10 kolibrie joined #perl6
20:10 shachaf joined #perl6
20:10 smg joined #perl6
20:10 alester joined #perl6
20:29 alech joined #perl6
20:30 c9s___ joined #perl6
20:32 r0bby joined #perl6
20:40 cspencer pugs: .say Str.HOW.methods
20:40 p6eval pugs: OUTPUT«*** ␤    Unexpected "Str"␤    expecting operator␤    at /tmp/Koqqi85u6x line 1, column 6␤»
20:41 cspencer pugs: .say for Str.HOW.methods
20:41 p6eval pugs: OUTPUT«*** No such method in class Class: "&methods"␤    at /tmp/jJirIgXBhf line 1, column 10 - line 2, column 1␤»
20:43 ruoso pmurias, I already thought a lot about the module loading in SMOP
20:45 ruoso it should work by calling some init() function on the module being loaded, passing the lexical scope at which the top-level package is going to be installed
20:45 ruoso then it will look into this lexical scope for the package of the name that it tried to 'use' or 'require'
20:45 ruoso it then aliases that package to the scope that called 'use' or 'require'
20:46 ruoso and calls .EXPORTALL in that package
20:46 ruoso we might start loading .so plugins
20:52 ^aristotle joined #perl6
20:52 alech_ joined #perl6
20:54 ^aristotle if I have a string in $foo and a junction of strings in $bar, is there a way to ask how many of the $bar values match $foo?
20:56 Limbic_Region joined #perl6
21:02 xinming joined #perl6
21:05 pmurias ruoso: the problem with that scheme is that gcc is sluggish
21:07 ruoso pmurias, what do you mean?
21:07 pmurias gcc compiles code slowly
21:09 pmurias hmm, maybe it's fast enough
21:09 * pmurias is prejudiced against gcc from compiling c++ code
21:10 kisu joined #perl6
21:12 pmurias ruoso: is load($filename) which would load a file and call init enough?
21:13 ruoso pmurias, but why would you need to compile code to load in runtime?
21:14 ruoso my idea is that you would have pre-compiled files
21:14 ruoso you don't really need a bytecode loader
21:15 ruoso you just need to compile down the code to some known API
21:15 pmurias had a previous thought that invoking gcc every time we run a test will slow us down
21:16 pmurias s/slow us down/make running the test suit slower/
21:18 pmurias ruoso: what should be init's signature? i'll implement the object loading scheme now and we'll see how it works
21:31 ejs joined #perl6
21:34 alech joined #perl6
21:41 azawawi_ joined #perl6
21:41 ruoso pmurias, I think it would be something in the line of init(interpreter, lexical)
21:42 ruoso but we have to be carefull to make sure the init() doesn't cause a C recursion, this call needs to get back to the interpreter runloop before running the actual init code
21:49 azawawi joined #perl6
22:05 bacek joined #perl6
22:10 vixey joined #Perl6
22:11 alech_ joined #perl6
22:18 azawawi_ joined #perl6
22:24 ^aristotle left #perl6
22:59 masak joined #perl6
23:00 masak perl6: class A { has $.foo }; my $a = A.new; $a.foo = 5; say $a.foo
23:00 p6eval rakudo 34360: OUTPUT«Cannot assign to readonly variable.␤current instr.: 'die' pc 14705 (src/builtins/control.pir:204)␤»
23:00 p6eval ..elf 24610, pugs: OUTPUT«5␤»
23:00 masak Elf and Pugs somewhat reassure me here. I thought Rakudo knew something I didn't.
23:00 masak didn't this work at some point in the past? ISTR it did.
23:01 * masak peruses the spectests
23:03 masak moritz_++ # tireless test herding
23:04 cspencer joined #perl6
23:06 pmurias masak: rakudo is right here, right?
23:08 masak pmurias: oh, right! the rw thing.
23:08 * masak forgot
23:08 masak perl6: class A { has $.foo is rw }; my $a = A.new; $a.foo = 5; say $a.foo
23:08 p6eval rakudo 34360: OUTPUT«Parrot VM: Can't stat languages/perl6/perl6.pbc, code 2.␤main: Packfile loading failed␤»
23:08 p6eval ..elf 24610, pugs: OUTPUT«5␤»
23:08 masak that's Rakudo rebuilding, right? :)
23:09 * masak tries locally
23:13 masak yes, it works. that explains it.
23:20 cspencer joined #perl6
23:28 kisu joined #perl6
23:30 masak rakudo: class A { has $.foo is rw }; my $a = A.new; $a.foo = 5; say $a.foo
23:30 p6eval rakudo 34360: OUTPUT«5␤»

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

Perl 6 | Reference Documentation | Rakudo