perl6-projects.org/ | nopaste: sial.org/pbot/perl6 | evalbot: 'perl6: say 3;' | irclog: irc.pugscode.org/
Set by mncharity on 25 March 2009.
s1n how do i indicate a method in a class/role cannot be overwritten? 00:01
similar to leaving final (in Java) or virtual (in C++) off the proto/definition
i want the derived/composed class to inherit the method but it cannot override it 00:02
00:08 LylePerl_ joined 00:09 LylePerl_ left 00:15 bacek_ joined 00:19 orafu left 00:20 orafu joined 00:23 payload joined
Casan s1n: not sure for sure. but try checking perlcabal.org/syn/S12.html#Class_methods at the end. maybe a metaclass method can do it, but its just an idea. I haven't tried this. 00:23
lambdabot Casan: You have 1 new message. '/msg lambdabot @messages' to read it.
00:26 skids joined 00:34 hercynium joined 00:40 orafu left, orafu joined
wayland76 s1n: That's a rather non-Perl-like idea :) 00:45
01:01 nihiliad joined 01:02 Whiteknight left
skids wonders if evalbot could be made to put the current IRC buffer into it's STDIN pipes. 01:04
01:04 LylePerl_ joined
LylePerl_ eval: say $*CWD 01:04
evalbot: say $*CWD 01:05
skids perl6: say $*CWD
p6eval rakudo d208e1: OUTPUT«Use of uninitialized value␤␤»
..elf 26237, pugs: OUTPUT«␤»
LylePerl_ hmm 01:06
on my local pugs that works...
01:06 davidad left 01:07 payload left
LylePerl_ pugs_svn: say $*CWD 01:08
skids Maybe something to do with how it's jailed?
LylePerl_ How do I query the eval bots individually? 01:09
01:09 davidad joined
skids rakudo, pugs, elf, stc 01:09
erm std
Oh and mildew
01:09 davidad left
LylePerl_ pugs: say $*CWD 01:09
p6eval pugs: OUTPUT«␤»
LylePerl_ thanks skids
skids np
LylePerl_ I'm trying to figure out the chdir tests 01:11
pugs just uses $*CWD to get the current working directory
perl 5 uses the Cwd module that calls on a load of builtins from the OS 01:12
I'm not sure what to do :/
01:13 LylePerl_ is now known as LylePerl 01:14 mikehh_ left
LylePerl Is Rakudo going to get $*CWD? Or should I port some of the Perl 5 code? 01:15
skids There's some set of builtins, but I'm trying to remember if they are still under $* 01:16
01:16 amoc joined
skids Something in that general area of the spec got changed. 01:16
LylePerl yes $*CWD isn't in the spec
skids rakudo: $*PID.say 01:17
p6eval rakudo d208e1: OUTPUT«Use of uninitialized value␤␤»
skids rakudo: $*VM.say 01:22
p6eval rakudo d208e1: OUTPUT«Use of uninitialized value␤␤»
skids rakudo: $*PERL.say
p6eval rakudo d208e1: OUTPUT«Use of uninitialized value␤␤»
LylePerl hmm looks like parrot has the functionality docs.parrot.org/parrot/latest/html/...s.pmc.html 01:23
I guess I can just hack onto this?
01:25 alester joined
skids rakudo: %*ENV<PWD>.say 01:27
p6eval rakudo d208e1: OUTPUT«/home/evalenv/rakudo␤»
LylePerl doesn't work for me locally :( 01:28
skids What OS?
LylePerl vista 01:29
skids methinks that is probably why :-)
01:30 davidad joined
skids rakudo: $*CWD := %*ENV<PWD>; $CWD.say; 01:30
p6eval rakudo d208e1: OUTPUT«Scope not found for PAST::Var '$CWD' in ␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (src/PCT/HLLCompiler.pir:102)␤»
skids rakudo: our $*CWD := %*ENV<PWD>; $CWD.say; 01:31
p6eval rakudo d208e1: OUTPUT«/home/evalenv/rakudo␤»
LylePerl Is there a quick a clever perl 6 way to display all the %*ENV?
skids %*ENV{}.say 01:32
rakudo: our $*CWD := %*ENV<PWD>; $*CWD.say;
p6eval rakudo d208e1: OUTPUT«/home/evalenv/rakudo␤»
LylePerl rakudo: %*ENV{}.say
p6eval rakudo d208e1: 01:33
..OUTPUT«screen/bin/bashevalenv/home/evalenv/pugs/v6/smop/build/no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzm...
skids yeah here that will be truncated.
LylePerl locally I'm getting "No Applicable Methods"
Does that mean vista isn't giving an %*ENV at all? 01:34
skids Probably Parrot doesn't yet implement the Env class on VIsta. 01:35
02:03 PZt joined 02:06 hercynium left 02:10 orafu left, orafu joined 02:11 alester left
LylePerl Been playing with parrot and is does have Env on vista, I found a script on docs.parrot.org/parrot/latest/html/...s.pod.html that prints it 02:11
no PWD though
pugs: %*ENV{}.say 02:18
p6eval pugs: OUTPUT«␤»
02:19 FurnaceBoy joined, kidd left 02:22 kidd joined 02:29 orafu left, orafu joined 02:43 orafu left, orafu joined
skids Tried %*ENV<CD> on Vista? 02:48
02:51 nihiliad left
LylePerl yes, empty 02:51
but %*ENV<OS> works
So I guess vista has an issue with %HASH{}.say... I'll write some test code in the morning and file a bug 02:53
skids vistaonwindows.com/environment_variables.html
Check a normal hash? 02:54
rakudo: my %d; %d<a b c> = <1 2 3>; %d{}.say 02:55
02:55 szabgab joined
p6eval rakudo d208e1: OUTPUT«123␤» 02:55
skids rakudo: my %d; %d<a b c> = <1 2 3>; %d{}.perl.say
p6eval rakudo d208e1: OUTPUT«["1", "2", "3"]␤»
skids rakudo: my %d; %d<a b c> = <1 2 3>; %d.perl.say
p6eval rakudo d208e1: OUTPUT«{"a" => "1", "b" => "2", "c" => "3"}␤»
02:55 FurnaceBoy is now known as litt1ebird
skids rakudo: my %d; %d<a b c> = <1 2 3>; %*ENV.perl.say 02:55
p6eval rakudo d208e1: OUTPUT«{"TERM" => "screen", "SHELL" => "/bin/bash", "USER" => "evalenv", "LD_LIBRARY_PATH" => "/home/evalenv/pugs/v6/smop/build/", "LS_COLORS" =>
.."no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex...
skids OK, I forgot it doesn't .kv 02:56
02:57 litt1ebird is now known as FurnaceBoy 02:59 davidad left
LylePerl rakudo: my %d; %d<a b c> = <1 2 3>; %d{}.say 03:02
p6eval rakudo d208e1: OUTPUT«123␤»
LylePerl all working for me apart from the when it's with %*ENV 03:03
Going to bed. Thanks again
03:03 LylePerl left 03:06 legis_ joined 03:08 meppuru joined 03:14 eternaleye joined 03:17 szabgab left 03:19 orafu left, Limbic_Region left 03:20 orafu joined 03:28 orafu left 03:29 orafu joined 03:37 legis_ left 03:47 orafu left, OuLouFu joined 03:52 sitaram joined
s1n bleh, Casan's recommendation to use a metaclass method is wrong, as i understand it, metaclass methods are similar to class functions in java or static members in c++ 03:57
04:10 alester joined 04:23 amoc left, amoc joined, davidad joined, amoc left 04:45 joe__ joined 04:47 joe__ left 04:53 Tene_ joined 04:57 masak joined
masak good morning, PMC-camels. 04:57
05:05 Tene left
diakopter masak: howdy 05:18
masak diakopter: ah, someone is here after all. :)
05:21 FurnaceBoy left
wayland76 More than one... :) 05:23
pugs_svn r26238 | masak++ | [elf/README] fixed two small errors 05:30
05:47 alester left 06:07 Tene joined 06:09 stas__ joined 06:20 Tene_ left 06:21 DemoFreak joined 06:26 legis_ joined 06:28 bacek_ left, bacek left 06:40 sri_kraih joined 06:42 sri_kraih left 06:46 goksie joined 06:52 iblechbot joined 06:57 zamolxes left 07:00 krunen joined 07:13 alc joined 07:50 DemoFreak left 07:53 maerzhase joined 07:55 PZt left 08:03 zamolxes joined 08:26 stas__ left 08:28 masak left 08:36 payload joined 08:38 zamolxes left 08:45 payload left 08:47 payload joined, payload left 08:48 payload joined 08:54 ejs joined 08:59 stas__ joined 09:15 [particle]1 joined 09:21 kane_ joined 09:30 [particle]- left 09:47 sri_kraih joined, alc left 09:59 meppuru left 10:08 payload1 joined 10:09 payload left 10:17 mhsparks joined 10:22 sri_kraih_ joined 10:28 kimtaro joined 10:30 sitaram left 10:32 payload1 left
Matt-W Good morning #perl6 10:33
literal hi 10:34
10:46 sri_kraih left 10:51 ejs0 joined 10:57 DemoFreak joined 10:59 jbt joined
wayland76 Good evening Matt-W :) 11:01
11:10 sri_kraih joined 11:22 kimtaro left 11:23 bacek joined 11:26 sri_kraih__ joined 11:30 stas__ left 11:33 stas__ joined 11:35 ruoso joined, sri_kraih_ left
ruoso Hello! 11:37
wayland76 hi 11:42
11:52 sri_kraih left 11:54 sri_kraih joined 12:01 bacek left 12:03 DemoFreak left 12:14 PZt joined 12:21 sri_kraih__ left 12:40 sri_kraih_ joined, goksie left 12:52 sri_kraih left 12:53 bacek joined 12:55 goksie_ joined, goksie_ is now known as goksie 13:02 pmurias joined 13:12 hanekomu joined 13:16 skids left 13:30 kidd` joined 13:35 szabgab joined 13:44 kidd left 13:45 pmurias left 13:48 Tene left 13:50 Tene joined 13:59 payload joined 14:02 PacoLinux joined 14:06 payload left 14:16 ejs1 joined 14:27 ejs left 14:32 LylePerl joined
LylePerl hi 14:33
14:33 skids joined
LylePerl quiet today, guess everyone is (getting ready for)|(traveling to) NPW 14:35
14:35 mberends joined
mberends Amsterdam -> Oslo o/ 14:37
14:37 mberends left 14:38 payload joined 14:45 amoc joined 14:48 szabgab_ joined 14:49 szabgab_ left 14:50 goksie_ joined 14:51 [particle]1 is now known as [particle]-, goksie left, goksie_ is now known as goksie, kimtaro joined 14:52 jbt left 14:53 iblechbot_ joined 14:56 szabgab_ joined 15:06 iblechbot left
wayland76 I'm not. I've unwisely started coding an interlinear editing widget in Perl 5 :) 15:06
And I'm addicted :)
Matt-W a what?? 15:08
15:08 payload left
wayland76 An interlinear editing widget :) 15:08
Matt-W what's an interlinear editing widget?
I've never heard of the concept
wayland76 An interlinear book is one which has eg. the first line in Greek, and the second line is an English translation 15:09
[particle]- it lets you edit what's between the lines
wayland76 ...and the third line is Greek again
15:09 szabgab left
wayland76 Am I right in assuming you don't need "editing widget" explained? 15:10
15:10 brunov joined
Matt-W oh wow 15:12
so it's designed for editing books in that format
rather than, say, editing the two languages separately and getting the typesetter to combine them later 15:13
that sounds challenging
nice to have a challenge
15:15 pyrimidine joined
wayland76 Yes, that's right :) 15:16
And, since the whole thing will have to be kinda based around cells, I'm going to add the extra challenge of also supporting other editing widgets (ie. equation widgets) in it too 15:17
But I'll hopefully use other people's equation widgets
15:17 icwiener joined 15:20 iblechbot_ left 15:21 payload joined 15:22 Tene_ joined, alester joined 15:29 szabgab_ left 15:31 nihiliad joined 15:32 M_o_C joined 15:33 Tene left 15:35 alester left 15:38 kidd` left, szabgab joined 15:40 hercynium joined 15:42 payload1 joined
jnthn has arrived in Oslo for NPW :-) 15:46
15:48 Psyche^ joined 15:51 kane_ left 15:53 sitaram joined, sitaram left 15:56 payload left 16:04 Psyche^ is now known as Patterner 16:09 sitaram joined 16:16 hanekomu left, iblechbot joined 16:18 Tene joined, pyrimidine left 16:24 [particle]- is now known as tpf_particle, maerzhase left 16:26 iblechbot left, maerzhase joined 16:31 Tene_ left 16:36 Kisu joined 16:39 M_o_C left 16:40 ejs1 left 16:42 pyrimidine joined, cjfields joined
literal use.perl.org/~Ovid/journal/38809?from=rss 16:43
How does Perl 6 do this?
better summary of this -> www.nntp.perl.org/group/perl.moose/...sg683.html 16:44
16:45 cjfields left, cjfields joined 16:47 maerzhase1 joined 16:48 maerzhase left
mofino if perl5 can do it, i'm sure perl6 can do it 16:49
(guess)
literal can yes, but will it?
mofino perl6 isn't sentient, it cannot make that choice 16:50
literal I don't think you understand
tpf_particle rakudo: role a { method b { say 'role' } }; class c does a { method b { say 'class' }; say a.b(); 16:51
literal I'm asking if the method in this case will be overridden silently or with a warning
p6eval rakudo d208e1: OUTPUT«Unable to parse block; couldn't find final '}' at line 1, near ""␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
tpf_particle rakudo: role a { method b { say 'role' } }; class c does a { method b { say 'class' } }; say a.b();
p6eval rakudo d208e1: OUTPUT«Could not locate a method 'b' to invoke on class 'Role'.␤current instr.: 'die' pc 17360 (src/builtins/control.pir:222)␤»
mofino literal, i don't think you understand me ;)
tpf_particle rakudo: role a { method b { say 'role' } }; class c does a { method b { say 'class' } }; say c.b();
p6eval rakudo d208e1: OUTPUT«class␤1␤»
tpf_particle rakudo: role a { method b { say 'role' } }; class c does a { method b { say 'class' } }; c.b(); 16:52
p6eval rakudo d208e1: OUTPUT«class␤»
tpf_particle anyway, that's just as ovid said. class method silently overrides role method.
wayland76 I'd rather not have the warnings. It would be like issuing a warning if you overrode something with inheritance 16:53
cjfields agreed
tpf_particle well, it's a different warning, since you're overriding with composition. but, yes, it is like it.
i'd like the warnings to exist, but not be enabled by default
wayland76 That would be fine by me 16:54
tpf_particle however, since the object system is totally pluggable in perl 6, you can define a new class metaobject that does the warning.
so, if they don't exist in std perl 6, fine, create a small module that puts them in for you. 16:55
wayland76 :)
16:55 exodist joined
cjfields the way Moose is handling that is the other way around, correct? enabling warnings, requiring an explicit 'excludes' to indicate an override? 16:55
16:55 cdarroch joined
wayland76 That's how it seems to me from one of the linked articles 16:56
cjfields yes, looks like stevan implemented that
www.nntp.perl.org/group/perl.moose/...sg683.html
16:57 cjfields left 16:59 pyrimidine_ joined 17:01 pyrimidine left, pyrimidine_ is now known as pyrimidine, stas__ left, payload1 left 17:03 iblechbot joined 17:06 legis_ left 17:07 maerzhase joined, mhsparks left 17:08 maerzhase1 left 17:12 goksie left 17:13 maerzhase left 17:18 maerzhase joined 17:19 maerzhase1 joined, maerzhase left, hercynium left 17:20 ejs0 left 17:23 jamtech joined, barney joined 17:37 eternaleye left 17:40 maerzhase1 left, ejs joined 17:53 sitaram left 17:57 icwiener left 18:00 tpf_particle is now known as [particle]- 18:05 FurnaceBoy joined 18:10 meppl joined 18:15 Gothmog_ joined 18:16 pyrimidine left 18:28 pyrimidine joined, pyrimidine_ joined 18:29 DemoFreak joined 18:38 japhb joined 18:43 dduncan joined 18:44 pyrimidine left, dduncan left 18:48 stas__ joined 18:52 barney left 18:54 sri_kraih joined 19:05 kidd joined 19:10 pyrimidine_ is now known as pyrimidine 19:12 sri_kraih_ left 19:13 minazo joined 19:18 ejs0 joined, maerzhase joined 19:20 davidad left 19:26 maerzhase left
wayland76 backlog will be short today :) 19:27
19:28 smtms joined 19:41 riffraff joined, wolverian joined 19:42 ejs0 left 20:04 maerzhase joined 20:06 riffraff left 20:07 maerzhase left
dalek kudo: a4535c1 | pmichaud++ | docs/spectest-progress.csv:
spectest-progress.csv update: 362 files, 10357 passing, 0 failing
20:13
20:17 Woody4286 joined 20:31 hanekomu joined
skids OK, kids, I'm going to commute home now. Play nice. Share the toys. Don't everyone start talking at once! 20:58
skids bets dalek will be the top talker tomorrow. 20:59
21:00 minazo left, ruoso left, minazo joined 21:05 pyrimidine left 21:13 hanekomu left 21:15 Woody4286 left 21:16 Woody4286 joined, skids left 21:17 Woody4286 left 21:18 Woody4286 joined 21:20 stas__ left 21:33 donaldh joined 21:43 Limbic_Region joined 21:47 iblechbot left 21:58 ejs left 22:04 wknight8111 joined 22:06 donaldh left 22:08 szabgab left, szabgab joined 22:21 ruoso joined 22:22 minazo left 22:29 nihiliad left, FurnaceBoy left 22:32 skids joined 22:45 meppl left 22:50 Woody4286 left 22:57 brunov left 23:03 mikehh joined 23:11 brunov joined 23:21 jamtech left 23:26 mikehh left