»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:00 thowe left 00:04 fridim_ left
dalek ast: d09d1e9 | Coke++ | integration/99problems-11-to-20.t:
rakudo fudge
00:08
00:08 karamorf left
dalek kudo/nom: 9544769 | Coke++ | t/spectest.data:
Splice was implemented, run (fudged) tests
00:10
00:32 wolfman2000 joined 00:40 u2011 joined 00:43 u2011 left 00:56 Chillance left 01:01 envi_ joined 01:09 daniel__ joined 01:17 whiteknight joined, whiteknight is now known as Guest75824 01:29 benabik joined 01:32 mkramer joined 01:34 soh_cah_toa joined 01:35 Guest75824 left
dalek odel: 7369989 | diakopter++ | lua/ (3 files):
add a debugging helper; fix 1 bug where I didn't notice the implied return from the C# lambda when porting!
01:37
01:39 thowe joined 01:45 envi_ left 01:51 hypolin joined 01:54 alc joined 02:07 alc left, mkramer left 02:14 daniel__ left
dalek odel: fe27ad5 | diakopter++ | lua/ (2 files):
add another debugging tool; also workaround very strange compiler bug; need to ask jnthn++ about it.
02:22
02:32 alc joined 02:47 alc left 02:52 tokuhiro_ joined 03:15 alc joined 03:17 tokuhiro_ left 03:18 wooden left, satyavvd joined 03:22 mkramer joined 03:24 tokuhiro_ joined 03:29 tokuhiro_ left 03:33 nek joined 03:35 tokuhiro_ joined, alc left 03:41 soh_cah_toa left 03:45 mkramer left 03:54 cooper left 03:55 cooper joined 03:59 odoacre joined 04:02 wooden joined, wooden left, wooden joined 04:15 molaf joined
sorear hrm 04:25
my research suggests most of the attention niecza is getting is coming from twitter
04:29 tokuhiro_ left 04:32 tyatpi joined 04:33 tokuhiro_ joined 04:34 kaleem joined 04:42 tokuhiro_ left 04:44 eternaleye joined 04:57 molaf left 05:06 sftp left 05:13 orafu left 05:18 orafu joined, envi_ joined 05:26 ponbiki left 05:36 mkramer1 joined 05:42 am0c joined, wk left
dalek ecza: 3f0470a | sorear++ | TODO:
Update TODO
05:47
05:49 dual joined 05:59 lateau_ joined 06:06 ethndbst left 06:07 ethndbst joined, ethndbst left, ethndbst joined 06:22 tyatpi left 06:31 koban joined, mkramer1 left 06:38 bonsaikitten left, bonsaikitten joined
dalek ecza: 036e405 | sorear++ | docs/compiler.pod:
Rewrite docs/compiler.pod for serialize

Probably gets rid of all the mberends++ magic that made it useful in the first place... will almost certainly need feedback and audience-widening.
06:43
colomon sorear: when you say "module packaging", do you mean at the S11 level, or are you thinking of making a stab at something like tadzik's panda? 06:47
dalek ecza: cccad74 | sorear++ | docs/overview.pod:
Get docs/overview.pod less hopelessly out of date ("compiler generates C#")
06:50
sorear colomon: somewhere in between
colomon: I want to reinvent S11, but I think S11 needs to concern itself more with packaging 06:51
06:51 sayu joined
sorear sleep 06:51
colomon o/
sorear nam.pod tracing.pod still need updating
moritz good morning 06:55
dalek kudo/nom: a2e2b96 | moritz++ | / (4 files):
Get rid of nqp::want usage in the setting

Also switches pir:: ops to nqp:: ops and adds return type annotations
colomon \o 06:56
07:12 wtw joined 07:13 lateau_ left 07:15 jdhore left 07:19 jdhore joined 07:25 lateau_ joined 07:33 sayu left
moritz o/ 07:34
07:43 envi_ left 07:54 envi_ joined 07:56 woosley joined
colomon still loves Perl 6 grammars and actions. 08:02
moritz too 08:03
dalek ast: 41a51d3 | (Solomon Foster)++ | S02-literals/radix.t:
Fudge for niecza.
08:11
colomon nom: say :16<aa> 08:12
p6eval nom a2e2b9: OUTPUT«170␤»
colomon nom: say :16<aa.a>
p6eval nom a2e2b9: OUTPUT«170.625␤»
colomon nom: say :16<aa.a>.WHAT
p6eval nom a2e2b9: OUTPUT«Num()␤»
colomon b: say :16<aa.a>.WHAT 08:13
p6eval b 1b7dd1: OUTPUT«Num()␤»
colomon I believe that's a Rakduo-bug
dalek ecza: a2e7b9b | (Solomon Foster)++ | src/NieczaActions.pm6:
Add actions needed to handle the basic :N<number_base_N> radix form of numeric literals.
ecza: 8e5e697 | (Solomon Foster)++ | t/spectest.data:
Turn on radix.t.
colomon I guess tests for the type returned should be added to radix.t. But I need to go back to bed and see if I can actually sleep some tonight. 08:14
Tests for bigints and radixs (radices?) as well 08:15
afk # sleep
fsergot good morning :) 08:19
08:21 daniel-s joined 08:22 Trashlord left, koban left 08:27 Trashlord joined 08:32 daniel-s left 08:39 mj41 joined 08:51 icovnik left
moritz good morning 08:56
08:58 mkramer joined 09:09 fsergot left, wk joined 09:11 ab5tract joined 09:13 icovnik joined 09:20 am0c left
Woodi www.xray.mpe.mpg.de/mailing-lists/p...00076.html <- about adding new hash native operations; atomic inc would be nice 09:22
uups
antirez.com/post/Sorting-in-key-val...model.html
here it is
Woodi coffe x 2 09:23
09:30 fsergot joined
mls morning! 09:37
09:39 woosley left 09:46 lateau_1 joined 09:50 lateau_ left 09:55 envi_ left 10:06 hypolin left 10:07 daxim joined
dalek p: 4bc5cae | moritz++ | src/PAST/NQP.pir:
bitwise str nqp:: ops
10:14
kudo/native-str-ops: 010ed9a | moritz++ | / (2 files):
add native str ops, add return type annotations, and use nqp:: opcodes for string bitwise ops
10:17
moritz nom: multi infix:<x>(str $x, int $i) { nqp::x($x, $i) }; 'foo' x 3 10:18
p6eval nom a2e2b9: ( no output )
moritz hm, in the setting that segfaults :(
10:24 Saran joined
moritz jnthn: rakudo/native-str-ops is again a branch that segfaults. This time I'm pretty sure I don't return anthing from pir:: directly 10:24
jnthn: but for example "foo" x 3 segfaults on that branch 10:25
Saran A newbie here..Willing to contribute for perl6
moritz hello Saran, welcome to Perl 6!
Saran Hello Moritz..Thanks..Glad to see your response.. 10:26
moritz Saran: what do you want to do? there are lots of ways you can help
10:26 wk left
Saran Moritz : Would like to contribute in solving some bugs.. 10:26
moritz write modules, write documentations, organize a conference, help newbies, blog about perl 6, hack on a compiler, write tests...
Saran moritz: more interested in writing modules.. 10:27
moritz Saran: modules.perl6.org/ is a list of what we have now
Saran moritz : And wish to Organise a conference in Bangalore,India
moritz Saran: so obviously a lot of stuff is missing... just pick something and implement it :-) 10:28
Saran Moritz : First i would like to start with fixing bugs in any existing modules..which can give some basic idea.
moritz or extend one of the existing modules
Saran ok..
10:29 ab5tract left
Saran My favourite module is "Data::Dumper" in Perl5..i use in most of the perl program 10:30
moritz well, Perl 6 has that built in
rakudo: say ('a', 'b', 35).prtl
p6eval rakudo a2e2b9: OUTPUT«Method 'prtl' not found for invocant of class 'Parcel'␤ in block <anon> at /tmp/tAfOSAw8AJ:1␤ in <anon> at /tmp/tAfOSAw8AJ:1␤»
moritz rakudo: say ('a', 'b', 35).perl 10:31
p6eval rakudo a2e2b9: OUTPUT«("a", "b", 35)␤»
Saran cool..
moritz ... and it helps if you spell it correctly :-)
Saran Do they have any modules to connect to windows box
moritz don't think so
Saran like Net::Telnet /Net::SSH::Perl in Unix..Do they have any modules for windows [ Remote desktop connection ] 10:32
moritz I don't think we have *any* remote connection stuff right now
Saran Is there any modules in perl 5 ?
moritz but we have sockets, so you could write some
Saran for the same..
sounds good.. 10:33
moritz Saran: dunno. You'd have to search CPAN
Saran searching..
10:34 envi_ joined
Saran Am readin this "www.perlmonks.org/?node_id=816239" 10:37
moritz ..What skill we require to hack on a compiler.. 10:38
moritz Saran: same as on any other program, really 10:39
a compiler is just a program that reads some text files and produces some output
10:39 lateau_1 left
moritz it's just a relatively large program 10:41
Saran moritz: any repository to see the source code of compiler program
moritz Saran: github.com/rakudo/rakudo/ and github.com/sorear/niecza are the two major Perl 6 compilers right now 10:43
Saran k.let me look at it 10:45
ooh! no..where do ppl file a bug while testing modules.. 10:50
moritz Saran: usually the modules are hosted on github, and each github project has its own bug tracker 10:53
nom: class A::B { ... }; my package A { class B { } } 10:54
p6eval nom a2e2b9: OUTPUT«===SORRY!===␤The following packages were stubbed but not defined:␤ A::B␤␤»
moritz that one hurts me currently
mls jnthn: PIR already evaluates the while body in void context
jnthn: you probably see the result of the optimizer inlining &infix<<> 10:59
Saran moritz: ok 11:05
11:08 benabik left 11:15 kaleem left
moritz thinks that detecting void context in for-loops would speed up things considerably 11:22
then at some point we'd know that we can discard the results, and iterate eagerly
and could optimize iteration over int ranges
11:24 kaleem joined
Woodi is: while $l = $!sock.get() { $info ~= $l ~ "\n"; } efficient ? 11:28
moritz Woodi: I guess .recv or .read is more efficient 11:29
Woodi k, thank you 11:30
11:36 lateau_ joined 11:38 Psyche^ joined
colomon sorear: actually, masak++ did roll. :) 11:41
11:42 Patterner left, Psyche^ is now known as Patterner 11:47 wk joined 11:51 benabik joined 11:58 satyavvd left 12:13 mkramer1 joined 12:15 mkramer left 12:18 risou_awy is now known as risou 12:21 mkramer1 left 12:24 Saran left 12:29 Trashlord left, \patch left, \patch joined 12:30 odoacre left 12:35 JimmyZ joined
Woodi b: say 1 12:42
p6eval b 1b7dd1: OUTPUT«1␤»
mls back from lunch...
moritz: yes, for statements always generate a closure at the moment, so the body cannot be inlined 12:44
moritz nom: for 1 { die '' }
p6eval nom a2e2b9: OUTPUT«␤ in block <anon> at /tmp/R0rOYMDKQ2:1␤ in method reify at src/gen/CORE.setting:3982␤ in method reify at src/gen/CORE.setting:3889␤ in method reify at src/gen/CORE.setting:3889␤ in method gimme at src/gen/CORE.setting:4251␤ in method eager at src/gen/CORE.settin…
moritz mls: part of what I want is to get rid of this very deep stack trace, that *can't* be fast
mls: even if it still involves calling a closure for every iteration 12:45
mls getting rid of the closure would also be nice, though. lexical lookups could be faster when the same context is used
moritz yes, but that's way beyond my reach of compiler hacking 12:46
12:46 nek left
mls I also thougt about getting rid of that long call chain (I saw it in the subprof output), but I think that's a job for pmichaud++ when he has some tuits 12:47
[Coke] drinks coffee
moritz that's the problem, ain't it?
[Coke] beware adding too much to pmichaud's plate.
moritz good morning [Coke]
[Coke] moritz: mumblegrumbleblarg.
[Coke] 's job now has him writing java instead of coldfusion. I honestly cannot tell if this is better or not. 12:48
moritz <sorear> my research suggests most of the attention niecza is getting is coming from twitter
mls does coffee help?
[Coke] guesses better, since it's different.
mls: coffee helps everything. except the problem of going to bed before midnight. 12:49
moritz I think that's pretty obvious, because niecza doesn't really have a website, mailing list or *anything* beyond IRC and the github page
tadzik and the irc is mainly Rakudo-dominated 12:50
12:51 benabik_ joined, benabik left, benabik joined, benabik_ left
moritz that's slowly shifting 12:53
and I try to point people to both rakudo and niecza when they ask for a Perl 6 compiler
not sure I succeed
flussence I've been using niecza a lot more... just because the features I want seem less broken in it at the moment 12:56
12:57 am0c joined
flussence (I still haven't got Text::Wrap to work in either compiler yet, and I'm close to giving up trying...) 12:57
moritz what's the problem with it? 12:58
12:58 am0c left
flussence niecza goes wrong at some point I can't seem to pin down, and ends up hitting a sanity check I put in that shouldn't be reachable; rakudo doesn't do /. ** {...}/ yet 13:00
moritz you can work around lack of .**{...} 13:01
<{".**$interpolate_range_here"}>
if I remember the syntax correctly
13:01 _jaldhar joined
moritz .u ね 13:03
phenny U+306D HIRAGANA LETTER NE (ね)
13:03 am0c joined
colomon niecza: say :16<1234567890abcdef1234567890abcdef1234567890abcdef> 13:08
p6eval niecza v11-5-g8e5e697: OUTPUT«446371678903360124661747118626766461972311602250509962735␤»
benabik That's a lot of numbers.
colomon niecza: say :16<1234567890abcdef1234567890abcdef1234567890abcdef.e> 13:09
p6eval niecza v11-5-g8e5e697: OUTPUT«3570973431226880997293976949014131695778492818004079701887/8␤»
13:09 envi_ left 13:14 kfo_ joined 13:17 kfo left
geekosaur "/"? not "." or ","? 13:18
moritz it seems that nieczas .gist defaults to .perl 13:19
colomon niecza: say :16<1234567890abcdef1234567890abcdef1234567890abcdef.e>.Str 13:21
p6eval niecza v11-5-g8e5e697: OUTPUT«3570973431226880997293976949014131695778492818004079701887/8␤»
colomon niecza: say :16<1234567890abcdef1234567890abcdef1234567890abcdef.e>.gist
p6eval niecza v11-5-g8e5e697: OUTPUT«3570973431226880997293976949014131695778492818004079701887/8␤»
colomon niecza: say :16<1234567890abcdef1234567890abcdef1234567890abcdef.e>.perl
p6eval niecza v11-5-g8e5e697: OUTPUT«3570973431226880997293976949014131695778492818004079701887/8␤»
moritz niecza: say :16<1234567890abcdef1234567890abcdef1234567890abcdef.e>.WHAT
p6eval niecza v11-5-g8e5e697: OUTPUT«Rat()␤»
moritz niecza: say 1/3 13:22
p6eval niecza v11-5-g8e5e697: OUTPUT«1/3␤»
moritz niecza: say (1/3).Str
p6eval niecza v11-5-g8e5e697: OUTPUT«1/3␤»
moritz github.com/sorear/niecza/issues/75 complains about that
benabik niecza: say 1/10 13:23
p6eval niecza v11-5-g8e5e697: OUTPUT«1/10␤»
colomon yes
it's probably easy-ish to fix
13:23 envi_ joined
colomon the biggest question is the right way to fix it. ;) 13:23
flussence perl6: my $t = 5; say ('abcdef' ~~ rx/ <{'\N ** 0..' ~ $t - 1}> /); 13:27
p6eval rakudo a2e2b9: OUTPUT«Null PMC access in find_method('MATCH')␤ in regex <anon> at /tmp/6sz0oJThdU:1␤ in method ACCEPTS at src/gen/CORE.setting:6569␤ in block <anon> at /tmp/6sz0oJThdU:1␤ in <anon> at /tmp/6sz0oJThdU:1␤» 13:28
..pugs b927740: OUTPUT«Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤ unshift @INC, '/home/p6eval/.cabal/share/Pugs-6.2.13.20111008/blib6/pugs/perl5/lib';␤ eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runtime::Match::HsBridge'␤"␤*** '<HAND…
..niecza v11-5-g8e5e697: OUTPUT«#<match from(0) to(0) text() pos([].list) named({}.hash)>␤»
flussence perl6: my Int $t = 5; my Str $r = '\N ** 0..' ~ $t - 1; say ('abcdef' ~~ rx/ <{$r}> /);
p6eval rakudo a2e2b9: OUTPUT«Null PMC access in find_method('MATCH')␤ in regex <anon> at /tmp/fJopPgiQp7:1␤ in method ACCEPTS at src/gen/CORE.setting:6569␤ in block <anon> at /tmp/fJopPgiQp7:1␤ in <anon> at /tmp/fJopPgiQp7:1␤»
..pugs b927740: OUTPUT«Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤ unshift @INC, '/home/p6eval/.cabal/share/Pugs-6.2.13.20111008/blib6/pugs/perl5/lib';␤ eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runtime::Match::HsBridge'␤"␤*** '<HAND…
..niecza v11-5-g8e5e697: OUTPUT«#<match from(0) to(0) text() pos([].list) named({}.hash)>␤»
flussence I'm not sure about niecza's output, but that NPMCA looks wrong. 13:29
moritz it does
flussence (and with the string interpolation rakudo passes 17 tests instead of 28...) 13:30
geekosaur oh 13:31
geekosaur missed it was outputting a rational :/
13:39 JimmyZ left
flussence rakudo: my $a = rx/./; my $b = rx/<{$a}>/; 13:44
p6eval rakudo a2e2b9: ( no output )
flussence rakudo: my $a = rx/./; my $b = rx/<{$a}>/; say 'c' ~~ $b
p6eval rakudo a2e2b9: OUTPUT«Null PMC access in find_method('MATCH')␤ in regex <anon> at /tmp/cJJmhZEFeP:1␤ in method ACCEPTS at src/gen/CORE.setting:6569␤ in block <anon> at /tmp/cJJmhZEFeP:1␤ in <anon> at /tmp/cJJmhZEFeP:1␤»
flussence seems it's the <{...}> and not the string itself causing that
moritz oh, I have an idea what might be going on 13:45
it might compile it into a nqp regex, not a p6 regex
13:48 grondilu joined
mls moritz: there's a type in core/Int.pm, line 88 13:49
(I think) 13:50
moritz mls: oops, thanks
mls should be prefix:<abs> instead of prefix<->
moritz indeed 13:51
mls (perl6 should warn about the redifinition, IMHO)
redefinition
moritz well, for multis that's not so easy
dalek kudo/nom: c838c1c | moritz++ | src/core/Int.pm:
fix copy/pasto in native int op name, mls++
13:56 lateau_1 joined, am0c left 13:58 lateau_ left
fsergot masak, i've problem with ufo :) 14:01
hmm, works now. :) 14:03
14:05 thowe left, lateau_1 left 14:08 lateau_ joined
flussence niecza: my Int $t = 5; my Regex $r = rx/\N ** {0.. $t.pred}/; say ('abcdef' ~~ rx/ <{$r}> /); 14:12
p6eval niecza v11-5-g8e5e697: OUTPUT«#<match from(0) to(0) text() pos([].list) named({}.hash)>␤»
moritz nom: say 'abc' ~~ /<?{ '.+' }>/ 14:13
p6eval nom a2e2b9: OUTPUT«=> <>␤␤»
moritz nom: say 'abc' ~~ /<{ '.+' }>/
p6eval nom a2e2b9: OUTPUT«Null PMC access in find_method('MATCH')␤ in regex <anon> at /tmp/ThxAYWsWrh:1␤ in method ACCEPTS at src/gen/CORE.setting:6569␤ in block <anon> at /tmp/ThxAYWsWrh:1␤ in <anon> at /tmp/ThxAYWsWrh:1␤»
flussence niecza: my Int $t = 5; my Regex $r = rx/\N ** {0.. $t.pred}/; say ('abcdef' ~~ rx/ $r /);
p6eval niecza v11-5-g8e5e697: OUTPUT«Match()␤»
flussence niecza: my Int $t = 5; my Regex $r = rx/\N ** {0.. $t.pred}/; say ('abcdef' ~~ rx/ $r /).perl;
p6eval niecza v11-5-g8e5e697: OUTPUT«Match␤»
flussence erm
moritz the match fails
flussence oh
moritz so it returns the Match type object
b: say 'abc' ~~ /<{ '.+' }>/
p6eval b 1b7dd1: OUTPUT«abc␤»
moritz that's more like it 14:14
moritz submits rakudobug 14:15
flussence niecza: my Int $t = 5; my Regex $r = rx/\N ** {0..4}/; say ('abcdef' ~~ rx/ $r /).perl;
p6eval niecza v11-5-g8e5e697: OUTPUT«Potential difficulties:␤ $t is declared but not used at /tmp/7rL2vwiQiZ line 1:␤------> my Int ⏏$t = 5; my Regex $r = rx/\N ** {0..4}/; ␤␤Match␤»
flussence niecza: my Regex $r = rx/\N ** 0..4/; say ('abcdef' ~~ rx/ $r /).perl;
p6eval niecza v11-5-g8e5e697: OUTPUT«Match␤» 14:16
flussence that's... odd
niecza: my Regex $r = rx/\N ** 0..4/; say ('abcdef' ~~ $r).perl;
p6eval niecza v11-5-g8e5e697: OUTPUT«#<match from(0) to(4) text(abcd) pos([].list) named({}.hash)>␤»
flussence oh.
moritz niecza: say so 'a' ~~ /\N/
p6eval niecza v11-5-g8e5e697: OUTPUT«Bool::True␤»
flussence if niecza won't interpolate regexes like that, then chances are that's why my code doesn't work... 14:17
(assuming it should've worked the first time and I'm not making some stupid mistake in the above code)
rakudo: my Regex $r = rx/\N ** 0..4/; say ('abcdef' ~~ rx/ $r /).perl; 14:18
p6eval rakudo a2e2b9: OUTPUT«Match.new(orig => "abcdef", from => 0, to => 4, ast => Mu, list => ().list, hash => EnumMap.new())␤»
flussence rakudo: my Regex $r = rx/\N ** 0..4/; say ('abcdef' ~~ rx/ $r /); 14:20
p6eval rakudo a2e2b9: OUTPUT«=> <abcd>␤␤»
flussence rakudo: my Regex $r = rx/\N ** 0..4/; say ('abcdef' ~~ rx/ $r $ /);
p6eval rakudo a2e2b9: OUTPUT«=> <cdef>␤␤»
flussence rakudo: my Regex $r = rx/\N ** 0..4/; say ('abcdef' ~~ rx/ $r $ /).Str;
p6eval rakudo a2e2b9: OUTPUT«cdef␤»
flussence niecza: my Regex $r = rx/\N ** 0..4/; say ('abcdef' ~~ rx/ $r $ /).Str;
p6eval niecza v11-5-g8e5e697: OUTPUT«␤»
flussence submits nieczabug 14:21
niecza: my Str $r = '\N ** 0..4'; say ('abcdef' ~~ rx/ <{$r}> $ /).Str; 14:24
p6eval niecza v11-5-g8e5e697: OUTPUT«␤»
flussence looks like interpolation flat out doesn't work there :(
moritz niecza: my Str $r = '\N ** 0..4'; say $str ~~ /<{$str}>/ 14:25
p6eval niecza v11-5-g8e5e697: OUTPUT«===SORRY!===␤␤Variable $str is not predeclared at /tmp/Tc_k6J0vMt line 1:␤------> my Str $r = '\N ** 0..4'; say ⏏$str ~~ /<{$str}>/␤␤Variable $str is not predeclared at /tmp/Tc_k6J0vMt line 1:␤------> y Str $r = '\N…
moritz niecza: my Str $r = '\N ** 0..4'; say $r ~~ /<{$r}>/
p6eval niecza v11-5-g8e5e697: OUTPUT«#<match from(0) to(0) text() pos([].list) named({}.hash)>␤»
flussence (I wonder if niecza misinterprets that as rx/ $ r /...) 14:26
14:27 daniel-s joined
flussence std: rx/ $ r / 14:27
p6eval std be1f10e: OUTPUT«ok 00:01 120m␤»
14:27 cosimo left
flussence it'd explain the lack of errors 14:27
14:30 grondilu left 14:33 cosimo joined 14:45 cosimo left
fsergot nom: sub a { 1; }; say a.WHAT; 14:52
p6eval nom a2e2b9: OUTPUT«Int()␤»
fsergot nom: sub a { 1; }; say &a.WHAT;
p6eval nom a2e2b9: OUTPUT«Sub()␤»
moritz nom: say 1.WHAT 14:53
p6eval nom a2e2b9: OUTPUT«Int()␤»
14:53 icovnik left
moritz nom: my int $x = 3; say $x.WHAT 14:53
p6eval nom a2e2b9: OUTPUT«Int()␤»
moritz that's curious, and probably not wrong
14:54 cosimo joined
fsergot :) 14:56
nom: sub do { 1; } 14:58
p6eval nom a2e2b9: ( no output )
fsergot nom: sub do { 1; }; do;
p6eval nom a2e2b9: ( no output )
fsergot We can use keywords as subs names? :)
name* 14:59
moritz sure
fsergot Great. :)
moritz nom: sub if() { say 'IFF' }; if()
p6eval nom c838c1: OUTPUT«IFF␤»
14:59 Trashlord joined
flussence nom: sub if() { say 'IFF' }; if if if; 14:59
p6eval nom c838c1: OUTPUT«===SORRY!===␤Missing block at line 1, near "if;"␤»
flussence heh :) 15:00
nom: sub if() { say 'IFF' }; if() if if();
p6eval nom c838c1: OUTPUT«IFF␤IFF␤»
moritz ... but sometimes you need () to disambiguate towards the function
fsergot :)
moritz nom: enum A <b c>; sub c() { 42 }; say c; say c()
p6eval nom c838c1: OUTPUT«A::c␤42␤»
flussence rakudo++ # letting me write stupid things :)
fsergot nom: %h = 1, 2; say %h.keys 15:02
p6eval nom c838c1: OUTPUT«===SORRY!===␤Variable %h is not predeclared at line 1, near " = 1, 2; s"␤»
fsergot nom: my %h = 1, 2; say %h.keys 15:03
p6eval nom c838c1: OUTPUT«1␤»
fsergot nom: my %h = sub { say 1; }, 2; say %h.keys
p6eval nom c838c1: OUTPUT«_block1011␤»
fsergot nom: my %h = sub { say 1; }, 2; say $_ for %h.keys; 15:04
p6eval nom c838c1: OUTPUT«_block1011␤»
fsergot nom: my %h = sub { say 1; }, 2; $_ for %h.keys;
p6eval nom c838c1: ( no output )
fsergot Why not "1" ? :)
nom: my %h = sub { say 1; }, 2; $_() for %h.keys; 15:05
p6eval nom c838c1: OUTPUT«Method 'postcircumfix:<( )>' not found for invocant of class 'Str'␤ in <anon> at src/gen/Metamodel.pm:3190␤ in block <anon> at /tmp/2ONvpQIa40:1␤ in method reify at src/gen/CORE.setting:3982␤ in method reify at src/gen/CORE.setting:3889␤ in method reify at src/ge…
fsergot nom: my %h = sub { say 1; }, 2; say %h.kv
p6eval nom c838c1: OUTPUT«_block1011 2␤»
fsergot nom: my %h = sub { say 1; }, 2; $_ for %h.keys; 15:06
p6eval nom c838c1: ( no output )
fsergot I want to see 1 :)
moritz you won't
hash keys are strings
fsergot Only? :)
benabik nom: my %h = sub { say 1; }, 2; say %h.perl 15:07
p6eval nom c838c1: OUTPUT«("_block1011" => 2).hash␤»
fsergot nom: my %h = <a b c>, <d e f>; say %h.kv;
p6eval nom c838c1: OUTPUT«a b c d e f␤»
fsergot nom: my %h = <a b c>, <d e f>; say %h.k.WHAT;
p6eval nom c838c1: OUTPUT«Method 'k' not found for invocant of class 'Hash'␤ in block <anon> at /tmp/dsPQYbPkll:1␤ in <anon> at /tmp/dsPQYbPkll:1␤»
fsergot nom: my %h = <a b c>, <d e f>; say %h.keys.WHAT; 15:08
p6eval nom c838c1: OUTPUT«List()␤»
moritz nom: my %h = <a b c>, <d e f>; say %h.perl
p6eval nom c838c1: OUTPUT«("a" => "b", "c" => "d", "e" => "f").hash␤»
fsergot Ok. :) 15:09
15:12 satyavvd joined 15:13 JimmyZ joined, nnunley joined 15:14 satyavvd_ joined 15:16 satyavvd_ left, satyavvd left 15:23 thou joined 15:33 sftp joined 15:41 am0c joined 15:44 wtw left
PerlJam masak: congrats on your grant! 15:51
JimmyZ congratulations!
15:53 lateau_ left
arnsholt masak: Did you ever do anything more with your "MAIN for Perl 5" idea? 15:57
16:00 ascent__ left, ascent_ joined 16:15 JimmyZ left, daniel-s left 16:16 colomon left 16:17 wolfman2000 left 16:20 Trashlord left, colomon joined 16:21 Trashlord joined 16:22 Trashlord left 16:24 Trashlord joined 16:28 krakan_ left 16:32 Trashlord left 16:34 kaleem left 16:42 Trashlord joined 16:45 lateau_ joined
fsergot What masak did? :) 16:47
16:47 krakan joined 16:48 mj41 left 16:49 daniel___ joined 16:50 kaleem joined 16:51 kaleem left, kaleem joined 16:53 Trashlord left 16:56 wolfman2000 joined
daxim fsergot, [16:49] * rssbot PerlFoundation: Hague Grant Accepted: Implementation of Macros in Rakudo (Karen) - news.perlfoundation.org/2011/11/hag...ement.html 17:01
join MagNET #news for news
fsergot Thanks daxim++. Congratulations masak++. :) 17:02
17:05 colomon left 17:08 colomon joined
colomon masak++! 17:09
17:14 benabik left 17:15 MayDaniel joined
jnthn o/ from Bratislava :) 17:17
(just for a moment, will be dinner time soon :))
daxim you decommuted! \o/
jnthn :D
17:22 daniel-s joined 17:23 benabik joined 17:26 daniel___ left
jnthn ok, dinner :) 17:27
17:37 molaf joined, daniel-s left 17:40 simcop2387 left 17:43 simcop2387 joined 17:45 kaleem left 17:51 MayDaniel left 17:53 lateau_ left 18:00 lateau_ joined 18:02 thou left 18:04 daniel-s joined 18:06 tlocalhos left, GlitchMr joined 18:08 tlocalhos joined 18:10 wk left 18:16 Chillance joined 18:17 lateau_ left
dalek ecza: 22aed0b | diakopter++ | docs/compiler.pod:
typo
18:20
moritz nom: class A::B { ... }; class A::B { }
p6eval nom c838c1: ( no output )
moritz wonders why that doesn't seem to work in the setting
tadzik Setting is Special :)
seen mberends 18:21
aloha mberends was last seen in #perl6 7 days 23 hours ago joining the channel.
tadzik :(
moritz mberends is special too :-)
tadzik that's why I'm looking for him :)
moritz if it's urgent, I could dig up his mobile phone number for you 18:22
tadzik I think I have it, but I don't think I need to bother him that much
I have to think of some nice database I'd like to design and implement, for my RDBMS classes. I thought about design something alike popolnik, the db storing smoketests of perl6 modules 18:23
18:29 ashleydev left, ashleydev joined 18:33 Trashlord joined 18:34 benabik left
[Coke] tadzik: ... there's a DB for storing smoketests of perl6 modules that isn't smolder? 18:34
tadzik [Coke]: nope
[Coke] tadzik: also see coke/muddle on github.
tadzik but there were plans for that
and it was also supposed to measure performance
[Coke] tadzik: muddle can probably do that to, if I ever get back to it. ;) 18:35
18:35 packetknife joined 18:36 MayDaniel joined
tadzik (: 18:37
I don't need _it_, I need to implement it :)
I just want something more appealing to me than another internet shop or such
18:38 wk joined
[Coke] tadzik: I am very happy to have another pair of hands. It's mojo, and I plan to jQuerify the front end. 18:38
18:39 benabik joined
tadzik [Coke]: I'm interested in db-side only; well, fsvo interested. I would probably be interested in every aspect of it, but what i need is the db side 18:39
[Coke] github.com/coke/muddle/blob/master...mpledb.sql 18:40
[Coke] restarts feather.perl6.nl:2653/rakudo/ 18:42
tadzik [Coke]: ohh, that will be useful to me, thanks!
[Coke]++
[Coke] tadzik: if nothing else, you've motivated me to carve out some time here. 18:43
tadzik++
tadzik I'll just need to put more bloat in it, they want like a 20-table-big database
flussence just stick a login system on it, that'll easily add 3-5 tables :) 18:44
tadzik I think performance measurement will put something in it
also, the number of things I can force into it and still make it some minimal of sense is much bigger than 20 tables :) 18:45
[Coke] tadzik: hey, don't forget to contribute upstream. ;)
tadzik [Coke]: only the good parts, ok? :P
18:46 daniel-s left
tadzik like, connecting contributors to commits, and then figuring out who commited the most performance improvements, introduced the most bugs... ;) 18:46
[Coke] tadzik: nifty. 18:49
tadzik shopping & 18:50
18:52 daxim left
[Coke] perl6.org - in IE8, if I mouse over camelia, the blue box contracts. mouse out, it expands. very distracting. 18:58
[Coke] tries to trick his boss into playing with Perl 6. 19:00
19:01 UncleFester6 joined
moritz [Coke]: does anything else change on mouse-over? 19:01
like, text underlining, borders or so?
diakopter doesn't do it in ie9 19:03
flussence maybe it just needs a use strict at the top... XHTML 1.0 Transitional triggers quirks mode
19:03 wolfman2000 left
UncleFester6 rakudo: package A { our %h; %h{'A'} = 2 } 19:03
p6eval rakudo c838c1: OUTPUT«Method 'at_key' not found for invocant of class 'Any'␤ in method postcircumfix:<{ }> at src/gen/CORE.setting:1039␤ in <anon> at /tmp/XrWJS1ZeNQ:1␤ in block <anon> at /tmp/XrWJS1ZeNQ:1␤ in <anon> at /tmp/XrWJS1ZeNQ:1␤»
UncleFester6 rakudo: package A { my %h; %h{'A'} = 2 }
p6eval rakudo c838c1: ( no output )
19:06 envi_ left
[Coke] moritz: nope. 19:06
19:07 risou is now known as risou_awy
moritz UncleFester6: looks like a bug in rakudo 19:07
[Coke] flussence: the page is rendering in Ie8 standards mode. 19:08
UncleFester6 Thx - still doing some research - if I don't find a good match I'll send it in ...
flussence oh well, I'm not all that familiar with IE8's rendering. IE6, I know more about than I'd like... 19:13
moritz broken browser is broken 19:15
19:18 packetknife left
Woodi »ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is o 19:24
19:20 <+dalek> niecza: review: github.com/sorear/niecza/commit/22aed0b992
19:20 < moritz> nom: class A::B { ... }; class A::B { }
19:20 <+p6eval> nom c838c1: ( no output )
19:20 * moritz wonders why that doesn't seem to work in the setting
19:20 < tadzik> Setting is Special :)
19:21 < tadzik> seen mberends
19:21 < aloha> mberends was last seen in #perl6 7 days 23 hours ago joining the channel.
19:21 < tadzik> :(
19:21 < moritz> mberends is special too :-)
19:21 < tadzik> that's why I'm looking for him :)
19:22 < moritz> if it's urgent, I could dig up his mobile phone number for you
19:22 < tadzik> I think I have it, but I don't think I need to bother him that much
19:23 < tadzik> I have to think of some nice database I'd like to design and implement, for my RDBMS classes. I thought about design something alike popolnik, the db storing
smoketests of perl6 modules
19:34 < [Coke]> tadzik: ... there's a DB for storing smoketests of perl6 modules that isn't smolder?
oops ?
moritz oops.
think before you paste
tadzik woot 19:25
Woodi sorry, mis-readed. and realy going sleep...
gn ppls
tadzik gn
flussence I'll be the creepy guy who points out that paste comes from, approximately, a terminal with 12px font maximised on a 1280x1024 screen... :) 19:27
(or is it 12pt...)
benabik I think px and pt are fairly similar on most computers. 19:28
colomon woah, wonder what mberends is off doing? 19:36
moritz probably traveling 19:46
(or teaching)
19:50 ksi joined 19:52 UncleFester6 left
dalek kudo/nom: 4b4f5ef | moritz++ | src/core/ (2 files):
throw X::OutOfRange exception from Date and DateTime constructors
19:52
19:56 MayDaniel left 20:09 fsergot left, fsergot joined 20:19 mj41 joined 20:20 GlitchMr left
masak oh hai #perl6! 20:25
PerlJam masak: congrats again in case you don't read the scrollback! :)
diakopter o.
masak thanks -- I didn't, but I will.
moritz \o masak
fsergot hey masak 20:26
20:31 soh_cah_toa joined 20:42 am0c left 20:44 mj41 left
dalek ecs: 9950d83 | masak++ | S13-overloading.pod:
[S13] unspec multiple signatures

S06 is fairly stable at this point, and the suggestion in S13 to support multiple signatures for one single routine never made it into S06. Neither of three major implementations support multiple signatures. There's no sense of a general demand for them. The feature is probably implementable, but the torment to the implementors isn't proportionate to the benefit for the users.
20:44
20:46 daniel-s joined
PerlJam masak++ 20:47
(besides, it's easily doable with macros! ;-) 20:48
masak whimpers :)
moritz PerlJam: is it?
PerlJam moritz: I don't know, I was just being flippant. 20:49
masak .oO( anything's possible with 'is parsed'... )
PerlJam masak: I think the question was about "easily"
masak nothing's easy with 'is parsed' :P
dalek ast: 5e7be3e | moritz++ | S02-types/native.t:
binding slurpy param to list of natively typed variables
20:50
PerlJam I was just thinking about how I'd do the equivalent of multiple sigs with only one routine body and it occurs to me that "is parsed" is "structured monkey typing" 20:53
(not really, but that's how we get augment and augmenting the grammar is what "is parsed" does) 20:54
[Coke] masak: is there a perl6-level tailcall? 21:00
(if I had to deal with multi-multis in another language, I'd just make the second one call the first one.) 21:01
moritz nextwith, nextsame
still one more dispatch 21:02
s/dispatch/call/
PerlJam [Coke]: me too :)
masak sorear: fwiw, I've been mostly on Niecza for the past month or so. 21:03
except when tinkering with macros. ;) 21:04
colomon masak: you know, it's not that hard to imagine cases where multiple signatures would be really nice in a DRY sense... 21:06
21:06 benabik left, benabik_ joined
dalek kudo/nom: 16b498b | moritz++ | docs/ChangeLog:
update ChangeLog
21:07
masak colomon: I actually agree.
colomon: I just don't like the proposed solution. 21:08
colomon masak: and (naively speaking) it doesn't seem like it would be wildly hard to implement.
masak colomon: I'll reinstate the spec if you implement the feature.
colomon heh.
21:08 thou joined
colomon I did add new actions to Niecza's grammar last night during a bout of insomnia... 21:09
21:10 Exodist_ is now known as Exodist, u2011 joined 21:11 daniel-s left 21:14 cooper left
ingy o/ 21:16
masak \o
colomon: I'd much rather see an 'is symmetric' subroutine trait for the case of symmetric binary operators. it's much less of an overkill feature than general multiple siggies. it doesn't necessarily have to be core. 21:17
jnthn Probably can be implemented in a module...Rakudo has most of what's needed to do that, I suspect. 21:19
21:20 donri joined
colomon ooooo, yes, is symmetric would indeed get every use case I've actually considered 21:21
masak: sounds like the implementation is in your court, then. ;)
masak dang. :) 21:22
21:22 donri left
masak I'll just charge you on the macro lateness account, then... :> 21:22
21:24 donri joined, mkramer joined
fsergot gn! o/ 21:31
21:35 donri left, donri joined
masak fsergot: 'branoc! 21:38
21:38 fsergot left
colomon jnthn: would the obvious way of implementing it in a module mean that one direction was slower than the other? 21:39
21:39 donri left
dalek odel: fb12a3b | diakopter++ | lua/ (14 files):
more bugfixes; jnthn++ jnthn++
21:40
jnthn colomon: Probably a little, but that may be possible to overcome too. 21:44
colomon: In fact, I can think of a way to do so...I think. :) 21:45
colomon :) 21:46
21:48 wolfman2000 joined
colomon how do you add a trait, anyway? 21:49
21:51 MayDaniel joined
jnthn Just declare a multi 21:53
See my Grammar::Debugger module for an example
21:55 thou left
jnthn sleep & 21:56
21:57 donri joined 21:59 donri left 22:01 wooden left, dorlamm joined 22:07 MayDaniel left
dalek odel: f41b903 | diakopter++ | lua/compiler/PAST2LSTCompiler.pm:
fix scoping problem for Context locals
22:10
22:11 slavik1 left 22:21 am0c joined 22:25 u2011 left 22:30 benabik_ left 23:13 thou joined 23:30 sunnavy left 23:31 sunnavy joined 23:33 dorlamm left 23:37 mkramer left 23:40 icovnik joined
dalek odel: 21470b5 | diakopter++ | lua/compiler/ (3 files):
store blocks in a table and use locals for one-off private functions. try.bat makes x.lua start by dofile('RakudoRuntime.lua');
23:52
23:55 ksi left