Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2009-07-18

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:07 payload joined #perl6
00:24 ihrd joined #perl6
00:25 ihrd left #perl6
01:06 SmokeMachine joined #perl6
01:09 skids joined #perl6
01:09 ihrd1 joined #perl6
01:10 orafu joined #perl6
01:12 ihrd1 left #perl6
01:32 test34 joined #perl6
01:58 Whiteknight joined #perl6
02:12 eric__ joined #perl6
02:12 eric__ hello?
03:02 agentzh joined #perl6
03:13 dukeleto joined #perl6
03:19 dukeleto_ joined #perl6
03:23 dukeleto joined #perl6
03:58 missingthepoint joined #perl6
04:16 missingthepoint can anyone tell me what the state of grammars in rakudo is?
04:17 missingthepoint i.e., should moritz's Pseudo-XML example work? (http://perlgeek.de/blog-en/perl-5-to-6/20-a-grammar-for-xml.html)
04:18 missingthepoint i get "too few arguments passed (0) - 2 params expected"
04:18 missingthepoint "in regex XML::TOP ..."
04:29 tann joined #perl6
04:32 jjore joined #perl6
04:34 alester joined #perl6
04:45 missingthepoint bbl
05:02 molaf joined #perl6
05:29 tann rakudo: loop (my ($i, $j) = 1, 10; $i < $j; ++$i, --$j) { say "$i : $j" }
05:29 p6eval rakudo faf91f: OUTPUT«1 : 10␤2 : 9␤3 : 8␤4 : 7␤5 : 6␤»
05:31 tann rakudo: loop (my $i = 1, my $j = 10; $i < $j;  ++i, --$j) { say "$i : $j" }
05:31 p6eval rakudo faf91f: OUTPUT«Unable to set lvalue on PAST::Val node␤in Main (src/gen_setting.pm:3340)␤»
05:54 eternaleye joined #perl6
06:09 tann hiya, how do i submit a patch to an rt bug #?
06:11 tann simply send mail to rakudobug@ with [PATCH] and the rt bug #?
06:11 tann read frew's guide http://wiki.github.com/rakudo/rakudo/steps-to-create-a-patch
06:23 unitxt left #perl6
06:54 sparc_ joined #perl6
07:19 DemoFreak joined #perl6
07:38 finanalyst joined #perl6
07:58 azawawi joined #perl6
07:59 azawawi hi
07:59 azawawi moritz_: ping
08:00 azawawi moritz_: can u please take a look at http://feather.perl6.nl/~azawawi/padre_more_help.png , and see if i am missing any useful perl 6 links...
08:02 explorer joined #perl6
08:13 meppl joined #perl6
08:14 iblechbot joined #perl6
08:14 FCO joined #perl6
08:23 missingthepoint joined #perl6
08:36 finanalyst azawawi: hi.
08:36 finanalyst azawawi: i have difficulty in connecting to irc.perl.org #padre from my home provider, but not from the provider in the office.
08:37 finanalyst but i can connect to #perl6 without a problem
08:37 finanalyst maybe a note about this somewhere in the 'more about' section? surely others may have the same situation
08:41 szabgab finanalyst, that would mean the whole irc.perl.org server, right ?
08:41 phenny szabgab: 17 Jul 12:48Z <moritz_> tell szabgab I notice that all your Perl 6 examples still use parens after 'if', ie 'if ($str ~~ m/\=/) {' - is there a good reason for that? or plain old habit?
08:41 szabgab moritz_, old habbit
08:43 pmurias joined #perl6
08:50 azawawi joined #perl6
08:50 ejs joined #perl6
08:51 azawawi finanalyst: sorry i was away a bit.If you cant connect, you can use a webirc such as mibbit.com (http://padre.perlide.org/irc.html?channel=padre)
09:01 finanalyst azawawi: sorry i was away a bit too. just wanted to say that in mentioning irc channels, it might be good to mention mibbit.com
09:03 finanalyst i did not know about mibbit.com until a couple of days ago, and i spent several hours trying to get onto #padre
09:03 finanalyst it does seem to be the whole irc server
09:04 finanalyst since i live in Russia, it might be that my home provider's IP set is on a black list
09:04 szabgab I think on padre.perlide.org we have a link to mibbit, don't we ?
09:04 szabgab or where else do you think it should be mentioned ?
09:04 finanalyst i havnt checked whether #padre on mibbit
09:05 szabgab I did not understand the last sentence
09:06 ironcamel left #perl6
09:06 finanalyst szabgab: i have just looked at the mibbit.com list of servers and irc.perl.org is not mentioned
09:07 szabgab sure, but you can still use it
09:07 finanalyst how would i use it?
09:07 szabgab see also the link azawawi gave you
09:08 azawawi finanalyst: use this one http://padre.perlide.org/irc.html?channel=padre
09:08 * finanalyst trying
09:08 finanalyst got. thanx to you all
09:16 sri_kraih joined #perl6
09:20 ejs1 joined #perl6
09:20 kane_ joined #perl6
09:37 ruoso joined #perl6
10:00 azawawi joined #perl6
10:02 azawawi pmichaud, moritz: could we have more useful information from 'perl6 --version'. This could be useful in debugging various user problems ?
10:51 M_o_C joined #perl6
10:55 pmurias ruoso: hi
10:57 agentzh left #perl6
10:59 pmurias when a mold frame stores a itself in it's register we call a RELEASE, doesn't it cause a double free?
11:19 Whiteknight joined #perl6
11:54 DemoPhreak joined #perl6
12:01 M_o_C joined #perl6
12:38 ejs joined #perl6
13:01 kborer joined #perl6
13:11 payload joined #perl6
13:13 Jedai joined #perl6
13:14 arnsholt joined #perl6
13:54 unitxt joined #perl6
14:06 spx2 do we get autobox in Core p6 ?
14:06 spx2 it would be totally awesome
14:07 spx2 is OO fully implemented in p6 ?
14:18 missingthepoint spx2: do you mean in rakudo?
14:28 Sunbeam joined #Perl6
14:40 pmurias spx2: everything is an object in p6
14:42 pugs_svn r27604 | pmurias++ | [re-smop] fix a bug in m0ld
14:42 pugs_svn r27604 | pmurias++ | fill in yeast DESTROYALL
14:42 pugs_svn r27604 | pmurias++ | add make clean target to re-mildew
14:42 pmurias spx2: what do you mean by Core, there will be no core modules in p6
14:47 spx2 missingthepoint: yeah
14:47 spx2 pmurias: oh ? didn't know that
14:48 spx2 pmurias: so what is the class of the most 'basic' object in p6 ?
14:48 pmurias Object
14:49 pmurias most stuff is also Any
14:49 spx2 so is Any an Object ?
14:49 pmurias yes
14:49 spx2 or is Object an Any ?
14:49 spx2 :D
14:49 pmurias most stuff being everything except junctions
14:49 pmurias Object is Any+junctions
14:50 spx2 so Object is a class derived from Any and junctions ?
14:51 edpratomo joined #perl6
15:00 pmurias spx2: Junctions does Object and Any does Object that's all
15:06 pmichaud actually, there is a core module in p6 -- surprisingly, it's called CORE  :-) :-)
15:23 jhorwitz joined #perl6
15:31 gfldex how do i do static members in classes?
15:32 gfldex static attributes that is
15:37 unitxt left #perl6
15:37 unitxt joined #perl6
15:46 pmichaud gfldex: do you mean class attributes?
15:49 gfldex pmichaud: could very well be :)
15:56 gfldex how do i refere to class attributes outside of that class?
15:57 pmichaud use 'our'
15:57 pmichaud class X { our $y; };     $X::y = 5;
15:58 pmichaud there are other formulations available (see S12)
15:58 pmurias pmichaud: but there are no core modules in the sense of CGI?
15:59 pmurias Scalar::Util that is
16:00 gfldex thx
16:00 pmichaud pmurias: well, how about Num?
16:00 pmichaud e.g.,  use Num :trig
16:01 pmurias isn't Num part of CORE?
16:02 pmurias perl6: say sin(1)
16:02 p6eval pugs: OUTPUT«0.8414709848078965␤»
16:02 p6eval ..rakudo faf91f: OUTPUT«Could not find non-existent sub sin␤»
16:02 p6eval ..elf 27604: OUTPUT«Undefined subroutine &GLOBAL::sin called at (eval 123) line 3.␤ at ./elf_h line 5881␤»
16:03 pmurias why are trigonometric functions not exposed by default?
16:05 beggars joined #perl6
16:07 justatheory joined #perl6
16:09 zamolxes_ joined #perl6
16:10 Chillance joined #perl6
16:13 TimToady pmurias: lately I've been hating :Trig
16:14 TimToady so I'd be happy if it made a noise like a hoop and rolled away
16:15 pmichaud I don't know why they're not exposed by default -- we've just been following the spec :-)
16:21 Limbic_Region joined #perl6
16:28 rfordinal joined #perl6
16:30 simcop2387 joined #perl6
16:30 kane_ joined #perl6
16:42 alester joined #perl6
16:44 pugs_svn r27605 | lwall++ | [Numeric] kill :Trig tag, always include trig functions.
16:44 pugs_svn r27605 | lwall++ | Replace stupid string args with an enum.
16:44 pugs_svn r27605 | lwall++ | Default to lexical constant $?TRIGBASE.
16:48 TimToady so there!
16:50 coolkidofdeathh joined #perl6
16:50 araujo :)
16:51 coolkidofdeathh :>
16:52 coolkidofdeathh left #perl6
16:54 japhb joined #perl6
17:01 Psyche^ joined #perl6
17:08 gfldex perl6: class A {} class B { has %.foo{A} }
17:08 p6eval rakudo faf91f: OUTPUT«Statement not terminated properly at line 2, near "class B { "␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
17:08 p6eval ..elf 27605: OUTPUT«Parse error in: /tmp/R4pjtN4T9G␤panic at line 1 column 0 (pos 0): Can't understand next input--giving up␤WHERE: class A {} class B { has %.foo␤WHERE:/\<-- HERE␤  STD_red/prelude.rb:99:in `panic'␤  STD_red/std.rb:76:in `scan_unitstopper'␤  STD_red/std.rb:224:in `comp_unit'␤
17:08 p6eval ..STD_red…
17:08 p6eval ..pugs: OUTPUT«*** ␤    Unexpected "{"␤    expecting "::", trait, "handles", default value or "}"␤    at /tmp/iDOM4jtimP line 1, column 31␤»
17:10 gfldex perl6: class A {} my %foo{A};
17:10 p6eval rakudo faf91f: OUTPUT«Statement not terminated properly at line 2, near "my %foo{A}"␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
17:10 p6eval ..pugs:  ( no output )
17:10 p6eval ..elf 27605: OUTPUT«Parse error in: /tmp/vKKL6XGZTl␤panic at line 1 column 0 (pos 0): Can't understand next input--giving up␤WHERE: class A {} my %foo{A};␤WHERE:/\<-- HERE␤  STD_red/prelude.rb:99:in `panic'␤  STD_red/std.rb:76:in `scan_unitstopper'␤  STD_red/std.rb:224:in `comp_unit'␤
17:10 p6eval ..STD_red/std.rb:…
17:12 xomas joined #perl6
17:12 mberends joined #perl6
17:13 TimToady you have to put ; after the {}
17:14 TimToady if it's on the same line
17:15 TimToady std: class A {} class B { has %.foo{A} }
17:15 p6eval std 27605: OUTPUT«##### PARSE FAILED #####␤Statements must be separated with semicolon at /tmp/Vhws2mDs00 line 1:␤------> [32mclass A {} [31mclass B { has %.foo{A} }[0m␤    expecting any of:␤     infix or meta-infix␤      infix stopper␤    standard stopper␤ statement␤      statement modifier
17:15 p6eval ..loop␤    terminator␤FAIL…
17:15 TimToady std: class A {}; class B { has %.foo{A} }
17:15 p6eval std 27605: OUTPUT«ok 00:02 37m␤»
17:15 TimToady (I don't think rakudo supports [] or {} on declarations yet, though)
17:16 gfldex rakudo: class A {}; class B { has %.foo{A} }
17:16 p6eval rakudo faf91f: OUTPUT«Statement not terminated properly at line 2, near "{A} }"␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
17:16 gfldex :(
17:56 s1n rakudo: class A {}; class B { has %.foo<A> }
17:56 p6eval rakudo faf91f: OUTPUT«Statement not terminated properly at line 2, near "> }"␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
17:56 s1n rakudo: class A {}; class B { has %.foo = <A> }
17:56 p6eval rakudo faf91f:  ( no output )
17:56 s1n std: class A {}; class B { has %.foo{A} }
17:57 p6eval std 27605: OUTPUT«ok 00:02 37m␤»
17:57 s1n hmm
18:06 |MoC| joined #perl6
18:09 FurnaceBoy joined #perl6
18:15 nihiliad joined #perl6
18:23 lumi_ joined #perl6
18:27 eternaleye joined #perl6
18:49 simcop2387 joined #perl6
18:55 azawawi joined #perl6
18:55 azawawi hi
18:55 azawawi pmichaud: ping
19:11 SmokeMachine joined #perl6
19:24 payload joined #perl6
19:24 Jedai joined #perl6
19:35 mberends left #perl6
19:37 spx2 just watched a Perl6 operators talk
19:37 spx2 they said something about triangular reduction operators ?
19:40 spx2 oh yes now I see it's from 2007 -> http://www.oreillynet.com/onlamp/blog/2007/12/yap6_operator_reduce_operators_1.html
19:40 spx2 this is pretty cool :)
19:58 sri_kraih_ joined #perl6
20:17 TimToady perl6: say ~[\*] 1..10
20:17 p6eval rakudo faf91f: OUTPUT«Statement not terminated properly at line 2, near "1..10"␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
20:17 p6eval ..elf 27605: OUTPUT«/home/evalenv/pugs/misc/STD_red/match.rb:117:in `block in to_dump0': undefined method `to_dump0' for nil:NilClass (NoMethodError)␤     from /home/evalenv/pugs/misc/STD_red/match.rb:117:in `map'␤       from /home/evalenv/pugs/misc/STD_red/match.rb:117:in `to_dump0'␤  from
20:17 p6eval ../home/evalenv/pugs/mi…
20:17 p6eval ..pugs: OUTPUT«1 2 6 24 120 720 5040 40320 362880 3628800␤»
20:19 spx2 neat
20:21 kane_ joined #perl6
20:22 [1]Limbic_Region joined #perl6
20:23 FCO joined #perl6
20:25 zamolxes joined #perl6
20:44 payload rakudo: use Num; say sin pi
20:44 p6eval rakudo faf91f: OUTPUT«Could not find non-existent sub sin␤»
20:44 payload rakudo: use Num; say Num::sin pi
20:44 p6eval rakudo faf91f: OUTPUT«1.22460635382238e-16␤»
20:44 payload :-/
20:46 jeekobu rakudo: use Num; say Num::cos pi
20:47 p6eval rakudo faf91f: OUTPUT«-1␤»
20:47 jeekobu Hmm.
20:48 payload rakudo: say Num::sin 0.5*pi
20:48 p6eval rakudo faf91f: OUTPUT«1␤»
20:48 payload rakudo: say sin 0.5*pi # i really want to say
20:48 p6eval rakudo faf91f: OUTPUT«Could not find non-existent sub sin␤»
20:49 jeekobu rakudo: use Num cos; say Num::cos pi
20:49 p6eval rakudo faf91f: OUTPUT«Unknown import list expression in use at line 2, near "; say Num:"␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
20:49 jeekobu er
20:50 jeekobu rakudo: use Num 'cos'; say cos pi
20:50 p6eval rakudo faf91f: OUTPUT«Unknown import list expression in use at line 2, near "; say cos "␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
20:50 payload std: use Num cos
20:50 p6eval std 27605: OUTPUT«Potential difficulties:␤  Can't locate module Num at /tmp/Gf9F8xt93T line 2:␤------> [32m[31m;[0m␤ok 00:02 36m␤»
20:50 jeekobu rakudo: use Num::cos; say cos pi
20:50 p6eval rakudo faf91f: OUTPUT«Can't find ./Num/cos in @*INC␤Null PMC access in get_pmc_keyed()␤current instr.: 'perl6;Perl6;Compiler;eval' pc 289208 (src/gen_actions.pir:24161) (src/gen_setting.pm:3340)␤»
20:52 jeekobu rakudo: use Num; my &cos ::= Num::cos; say cos pi
20:52 p6eval rakudo faf91f: OUTPUT«No applicable candidates found to dispatch to for 'cos'␤in Main (/tmp/4X0ZbnYw4u:2)␤»
20:54 payload rakudo: use Num; my &cos ::= Num::cos; say pi.cos
20:54 p6eval rakudo faf91f: OUTPUT«No applicable candidates found to dispatch to for 'cos'␤in Main (/tmp/F9vPoT8Vmt:2)␤»
20:54 payload rakudo: say pi.cos
20:54 p6eval rakudo faf91f: OUTPUT«-1␤»
20:54 payload -.-
20:54 jeekobu haha
20:56 payload the definitions in Num.pm are all of the form
20:56 payload class Num is also {
20:56 payload our Num multi method acos($base = 'radians') is export(:Trig) {
20:56 jeekobu rakudo: use Num; my &cos := Num::cos; say cos pi
20:56 p6eval rakudo faf91f: OUTPUT«No applicable candidates found to dispatch to for 'cos'␤in Main (/tmp/9758Fjxaip:2)␤»
20:57 jeekobu rakudo: use Num :Trig; say cos pi
20:57 p6eval rakudo faf91f: OUTPUT«-1␤»
20:57 jeekobu ok
20:57 payload ahhh... well... is this documented?
20:58 payload is this speced??
20:58 payload ah yes it is
20:59 jeekobu http://svn.pugscode.org/pugs/docs/Perl6/Spec/S32-setting-library/Numeric.pod  Well, there's no mention of :trig in there
21:03 payload ah yes
21:04 payload Author: lwall <lwall@c213334d-75ef-0310-aa23-eaa082d1ae64>
21:04 payload Date:   Sat Jul 18 16:44:26 2009 +0000
21:04 payload [Numeric] kill :Trig tag, always include trig functions.
21:04 payload Replace stupid string args with an enum.
21:04 payload Default to lexical constant $?TRIGBASE.
21:04 payload rakudo is outdated :D
21:05 jeekobu Ha
21:11 payload deleting the (:Trig) in the definitions should work i think... compiling and testing
21:37 payload All tests successful.
21:37 payload Files=29, Tests=236, 276 wallclock secs ( 0.56 usr  0.09 sys + 206.48 cusr  6.66 csys = 213.79 CPU)
21:37 payload Result: PASS
21:37 payload payload@bay:~/code/parrot/languages/rakudo$ ./perl6
21:37 payload > say sin pi
21:37 payload 1.22460635382238e-16
21:37 lambdabot Not in scope: `say'
21:44 tann joined #perl6
21:47 explorer joined #perl6
21:51 mberends joined #perl6
21:52 TimToady n
21:56 pugs_svn r27606 | lwall++ | [S05] missing 'sym'
22:06 synth joined #perl6
22:08 molaf joined #perl6
22:09 Chillance_ joined #perl6
22:10 mberends joined #perl6
22:12 justatheory joined #perl6
22:36 mberends left #perl6
23:00 justatheory_ joined #perl6
23:04 justatheory__ joined #perl6
23:25 justatheory joined #perl6
23:47 justatheory_ joined #perl6
23:50 justatheory__ joined #perl6
23:51 justatheory_ joined #perl6

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

Perl 6 | Reference Documentation | Rakudo