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