»ö« 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.
colomon o/ 00:03
00:12 tokuhirom left 00:13 cooper left 00:17 lestrrat left 00:18 lichtkind left, lestrrat joined 00:22 patspam left 00:24 Radvendii left 00:26 colomon left 00:27 patspam joined 00:30 patspam left, patspam joined 00:32 Moukeddar joined 00:33 jaldhar joined 00:34 colomon joined 00:37 toebu left 00:39 jeffreykegler left 00:58 toebu joined
diakopter eagerly awaits Pm's appearance tomorrow 01:02
cognominal linuxfr published my news :) linuxfr.org/news/calendriers-de-lav...-et-perl-6 01:04
diakopter "About Perl 6, given the limited common with Perl 5 in terms of language, I wonder why it is still called Perl. I feel that there is about as much in common between Perl 5 and Perl 6 between the C and assembler (keeping in mind that we can carry the assembler in C very easily)." 01:06
the last comment, translated
01:07 Moukeddar left
sorear does the p6 faq have an entry for that yet? 01:08
cognominal I made a mistake about BigInt being a special type. I forgot that had become the regular Int.
diakopter is having fun using Eclipse for textbook-exercises in Java. what a great IDE. 01:09
01:09 cooper joined 01:11 am0c joined 01:12 aber joined 01:14 toebu left 01:15 Trashlord joined, hundskatt left 01:17 wolfman2000 left 01:23 aloha left 01:25 whiteknight joined, whiteknight is now known as Guest17755
sorear diakopter: I can't tell if that was sarcasm 01:26
colomon sorear: just added the ability to increase the number of iterations for a window 01:27
(not yet pushed)
01:33 shinobicl_ joined
diakopter sorear: not sarcasm 01:35
01:39 aloha joined 01:40 shinobicl_ left 01:41 bonsaikitten joined 01:48 cooper left 01:53 shinobicl_ joined 01:59 jaldhar left, jaldhar joined, odoacre joined
djanatyn moritz: I think I'm going to need an extension >_> 02:03
02:13 abercrombie joined 02:16 aber left 02:19 pat_js joined 02:20 shinobicl_ left 02:21 jeffreykegler joined 02:24 orafu left, orafu joined 02:27 shinobicl_ joined 02:38 pat_js left 02:39 Guest17755 left 02:41 donri left 02:59 cooper joined 03:00 shinobicl_ left 03:08 ggoebel left 03:11 ponbiki left 03:12 ponbiki joined, ggoebel joined 03:22 patspam left
colomon sorear: just pushed a patch which allows you to write out any fractal you're viewing as a PPM file. 03:29
03:32 agentzh joined
sorear nifty 03:32
03:33 yeltzooo joined 03:35 jimmy1980 left 03:38 locky88 joined 03:42 jimmy1980 joined 03:47 jeffreykegler left 04:00 envi_ joined, envi_ left 04:18 pochi left 04:20 pochi joined 04:40 aber joined 04:42 abercrombie left 04:43 abercrombie joined 04:45 aber left 04:51 ponbiki left 04:53 packetknife left
moritz good morning 05:02
djanatyn: deadline extended by 24h
djanatyn moritz: :D 05:03
05:03 locky88 left
djanatyn thank you. I've been playing around with roast, and Tene told me a bit about &[+] 05:03
moritz djanatyn: I'd recommened to use the example code from the ticket, and replace the call to say() with a call to a test function 05:04
05:06 plobsing left 05:08 natureboy joined, natureboy left 05:10 natureboy joined 05:11 natureboy left, cooper left 05:19 sftp left 05:28 overrosy left 06:23 kaleem joined 06:35 molaf joined 06:36 japhb_ joined
japhb_ On my local system: 06:36
> ':16«f.8*:4[2]**:2<1*2**2>»/-:60[1,0]'.Numeric.perl
-62/15
\o/
moritz \o/ 06:42
06:52 sayu joined 06:53 wk joined 06:57 hundskatt joined 07:11 koban joined 07:16 molaf left 07:30 wtw joined
jnthn *yawn* 07:46
morning, #perl6
sorear hi jnthn
jnthn japhb_: Nice .Numeric work! :)
o/ sorear
commute, bbs 08:00
08:02 mkramer joined 08:03 mkramer left 08:04 jerome__ left 08:05 jerome__ joined 08:07 mishin joined
tadzik gmorning 08:18
moritz \o 08:20
sorear hello
moritz jnthn: t/spec/S32-array/splice.rakudo segfaults here 08:21
jnthn: gist.github.com/1432838 08:22
japhb jnthn, thank you. :-) 08:30
g'night all! 08:33
moritz japhb: have you pushed that to a branch_ 08:34
s/_/?/
japhb: if not, please do so very soon
... and good night to japhb :-)
japhb Sure, give me a sec.
OK, should be there. 08:35
str-numeric
rebased on to nom a few hours ago.
dalek kudo/str-numeric: 499ce20 | (Geoffrey Broadwell)++ | src/core/Str.pm:
WIP snapshot of Str.Numeric rewrite
kudo/str-numeric: 7e86fa8 | (Geoffrey Broadwell)++ | src/core/Str.pm:
Remove no-longer-needed workarounds
kudo/str-numeric: d3645a8 | (Geoffrey Broadwell)++ | src/core/Str.pm:
Refactor Str.Numeric parse failures and pos updates so that failure messages can show exact position of error in source string; wrap a few long lines in same code sections
kudo/str-numeric: 6d35d8c | (Geoffrey Broadwell)++ | src/core/Str.pm:
Support :16<f.8*2**3> and :16«f.8*:4[2]**:2<1*2**2>» style radix/multiplier/exponent style numbers in Str.Numeric; add missing ASCII value comment
japhb It should *not* be merged until Failure handling is resolved. 08:36
moritz understood
japhb OK, *now* sleep & 08:37
sorear sleep
08:43 hundskatt left
moritz nomo: my class X::Foo { ... }; my class X::Foo { }; 08:44
nom: my class X::Foo { ... }; my class X::Foo { };
p6eval nom 48b979: OUTPUT«===SORRY!===␤The following packages were stubbed but not defined:␤ X::Foo␤␤»
moritz works with s:g/X/Y/
08:45 alvis left
sorear nom: say X; 08:50
p6eval nom 48b979: OUTPUT«X()␤»
sorear nom: my package X { }; class X::Foo { ... }; class X::Foo { } 08:51
p6eval nom 48b979: ( no output )
moritz nom: class X::Foo { ... }; class X::Foo { };
p6eval nom 48b979: OUTPUT«===SORRY!===␤The following packages were stubbed but not defined:␤ X::Foo␤␤»
moritz nom: ny package X { }; my class X::Foo { ... }; my class X::Foo { };
p6eval nom 48b979: OUTPUT«===SORRY!===␤CHECK FAILED:␤Undefined routine '&ny' called (line 1)␤» 08:52
moritz nom: my package X { }; my class X::Foo { ... }; my class X::Foo { };
p6eval nom 48b979: ( no output )
moritz (FWIW, the 'my' sometimes made a difference in the past)
09:08 mj41 joined
jnthn moritz: Delightful. A crash *inside* GC. :/ 09:09
tadzik yo dawg 09:10
jnthn moritz: I thought we patched that declaration thing last week...
moritz jnthn: it seems that the presence of other X:: packages make a difference 09:11
nom: my class Y::A { ... }; my class Y::A { }
p6eval nom 48b979: ( no output )
moritz without them, it works
09:12 Mowah_ joined
jnthn Oddness. That'd mean it was installing the stub in one place, but then failing to find it when it goes looking for an existing declaration. 09:12
moritz: I suspect the splice one is one of the romaing GC segfaults. I'm pretty sure it didn't happen locally for me. :( 09:16
moritz jnthn: if it helps, I could give you ssh access to a linux box where it's reproducable 09:17
jnthn moritz: May help. I will see if running under the debugger catches it, though will have to be this evening once I'm home. 09:20
moritz jnthn: I'm building as a separate user now, to see if it can reproduce the segfault 09:21
09:27 tzhs joined
moritz jnthn: hm, can't easily reproduce :/ 09:34
09:36 jimmy1980 left
moritz updated perl6advent.wordpress.com/2011/12/0...ndar-2011/ with links to the posts 09:40
09:42 jimmy1980 joined
jnthn moritz: yeah, that's always the issue with GC things :( 09:44
perl6advent.wordpress.com/2011/12/0...-operator/ seems to have linebreaks in odd places 09:45
moritz nom: say so 'ab' ~~ /(.)+/; say $/[0].WHAT 09:46
p6eval nom 48b979: OUTPUT«Bool::True␤Parcel()␤»
moritz nom: say so 'ab' ~~ /(.)+/; say $/[0].elems
p6eval nom 48b979: OUTPUT«Bool::True␤2␤»
moritz nom: say so 'ab' ~~ /(.)+/; say $/[0][0].Str
p6eval nom 48b979: OUTPUT«Bool::True␤a␤»
moritz nom: say so 'ab' ~~ /(.)+/; say $/.list.elems 09:47
p6eval nom 48b979: OUTPUT«Bool::True␤1␤»
moritz nom: say so 'ab' ~~ /(.)+/; say $/.list[0].elems
p6eval nom 48b979: OUTPUT«Bool::True␤2␤»
moritz fixes the line breaks
even the HTML view of the posts isn't the actual HTML that appears on the page 09:49
nom: my @a = @( 'a' ~~ /(.)+/ ); say @a.elems; say @a[0].elems 09:50
p6eval nom 48b979: OUTPUT«1␤0␤»
09:50 envi_ joined
moritz nom: my @a = @( 'a' ~~ /(.)+/ ); say @a[0].WHAT 09:50
p6eval nom 48b979: OUTPUT«Match()␤»
moritz hm, shouldn't that be a Parcel?
jnthn nom: my @a = @( 'a' ~~ /(.)+/ ); say @a.perl 09:53
p6eval nom 48b979: OUTPUT«Array.new(Match.new(orig => "a", from => 0, to => 1, ast => Any, list => ().list, hash => EnumMap.new()))␤»
jnthn nom: say @( 'a' ~~ /(.)+/ ).perl;
p6eval nom 48b979: OUTPUT«((Match.new(orig => "a", from => 0, to => 1, ast => Any, list => ().list, hash => EnumMap.new()),),).list␤»
jnthn moritz: I guess the parcel flattens?
moritz hm, right 09:55
10:18 alim joined 10:25 s1n1 left
dalek kudo/nom: e9733c5 | moritz++ | src/core/Any.pm:
implement item()
10:26
ast: 8d0856d | moritz++ | S32-array/splice.t:
unfudge an item() test
jnthn wonders what shape the star repo is in with respect to nom 10:28
10:30 overrosy joined 10:32 mishin left 10:38 sayu left 10:46 alim_ joined 10:47 alvis joined 10:49 alim left, alim_ is now known as alim 10:51 overrosy left 10:53 overrosy joined 10:55 alim left, alim joined 11:13 Maddingue joined 11:23 xinming left 11:24 overrosy left 11:25 xinming joined, alim left, alim joined 11:33 odoacre left 11:35 overrosy joined 11:40 overrosy left 11:41 overrosy joined 11:42 mj41 left 12:03 lestrrat left 12:04 lestrrat joined 12:13 Psyche^ joined 12:16 Patterner left, Psyche^ is now known as Patterner 12:19 bluescreen10 joined
dalek ast: 445d836 | moritz++ | S0 (2 files):
rakudo unfudges
12:33
ast: 97c4f95 | moritz++ | S03-smartmatch/any-hash (2 files):
rename a smartmatch file, and clean in up
kudo/nom: d0c1523 | moritz++ | t/spectest.data:
track test file rename
12:35
12:41 plobsing joined 12:59 jimmy1980 left 13:00 jimmy1980 joined 13:10 muixirt joined 13:12 plobsing left 13:13 araujo left 13:16 araujo joined, araujo left, araujo joined
dalek kudo/nom: 568aed7 | moritz++ | lib/Test.pm:
[Test] fix typo and error diagnostics
13:22
13:30 jimmy1980 left
felher happily reads through the perl6 advent calendar :) 13:33
13:35 jimmy1980 joined
dalek kudo/nom: cd3a5d7 | coke++ | t/spectest.data:
track failure modes
13:37
muixirt perl6: for 1..20 { .say if $_ == 9 ff $_ == 13; } 13:40
p6eval niecza v12-3-g193ca57: OUTPUT«9␤10␤11␤12␤13␤»
..pugs b927740: OUTPUT«*** No such subroutine: "&infix:ff"␤ at /tmp/WJIEomF78Z line 1, column 21-42␤»
..rakudo d0c152: OUTPUT«===SORRY!===␤Flip flop operators are not yet implemented at line 1, near " $_ == 13"␤»
13:43 kaleem left
dalek ast: ae9d8ff | moritz++ | S (2 files):
fudge and correct tests
13:44
moritz nom: class C1 { }; class C2 is C1 { }; sub f(C1 @x) { }; my C2 @y; f @y
p6eval nom d0c152: OUTPUT«===SORRY!===␤CHECK FAILED:␤Calling 'f' will never work with argument types (C2) (line 1)␤ Expected: :(Positional @x)␤»
moritz jnthn: bug, or NYI? 13:45
jnthn moritz: Definite bug, I know pretty much exactly what it is.
moritz jnthn: tested in S14-roles/parameter-subtyping.t 13:46
jnthn moritz: There's a far simpler case of it too
13:46 daxim joined
jnthn nom: my Int @x; my Int @y; @x := @y; 13:46
p6eval nom d0c152: OUTPUT«Type check failed in binding␤ in block <anon> at /tmp/3zslD9JDm7:1␤ in <anon> at /tmp/3zslD9JDm7:1␤»
jnthn nom: my @x; @x := 42; # also related
p6eval nom d0c152: ( no output )
dalek kudo/nom: 15ba074 | moritz++ | t/spectest.data:
run another test file
13:48
13:48 alvis left 13:52 cognominal_ joined 13:56 ispeak_ joined 14:05 shinobicl joined
colomon moritz++ 14:05
aloha Karma for moritz is now 2842
14:08 mtk joined
jnthn wonders why aloha found that number more noteworthy than, say, any other one, and decided to tell us about it :) 14:10
14:11 jimmy1980 left, jimmy1980 joined 14:16 tzhs left
moritz jnthn++ 14:17
aloha Karma for jnthn is now 2464
moritz oh NOE!
[Coke] aloha, source?
aloha, master?
it's github.com/bacek/aloha, btw. looking now. 14:18
14:19 koban left
[Coke] the source hasn't been updated since February 16, 2011. 14:20
moritz maybe it uses some modules that have been updated
14:22 tzhs joined
[Coke] search.cpan.org/~diz/Bot-BasicBot-P...e/Karma.pm 14:22
Responds with the new karma for <thing> unless karma_change_response is set to a false value. 14:23
looks fixable, anyway. ;)
moritz [Coke]++
[Coke] explain [Coke
aloha positive: nothing; negative: nothing; overall: 0.
[Coke] explain [Coke]
aloha positive: nothing; negative: nothing; overall: 0.
[Coke] explain moritz
aloha positive: | S02-types/hash.t: (dalek), | src/metamodel/how/NQPMu.pm: (dalek), | LHF.markdown: (dalek); negative: git commit -a without checking git diff first (moritz_), we have your karma. fix bug to get it back !:) (masak); overall: 2842.
[Coke] seen diz? 14:24
aloha diz was last seen in 15313 days 14 hours ago .
[Coke] nom: say 15313 / 365.24
p6eval nom 15ba07: OUTPUT«41.925856970759␤»
14:24 alim_ joined
jnthn ...is IRC evem 42 years old? :) 14:25
[Coke] seen thingthatdoesntexit?
aloha thingthatdoesntexit was last seen in 15313 days 14 hours ago .
[Coke] Looks like a bug, going back to epoch.
(which is slightly older than I am, so I spot it often. ;)
14:26 alim left, alim_ is now known as alim
[Coke] That's probably search.cpan.org/~diz/Bot-BasicBot-P...le/Seen.pm 14:26
14:31 alim left, alim joined
[Coke] iwbni perl's advent calendar shared a feed every year. 14:42
(perl 5, that is)
14:47 risou_awy is now known as risou 14:58 PacoLinux joined 14:59 sftp joined 15:04 Trashlord left 15:07 donri joined 15:12 agentzh left
[Coke] aloha: ask rjbs if we can get a perl5 advent calendar RSS feed that will show all years, not just the current year. 15:12
phenny: ask rjbs if we can get a perl5 advent calendar RSS feed that will show all years, not just the current year.
phenny [Coke]: I'll pass that on when rjbs is around.
dalek kudo/nom: d9a22f4 | moritz++ | src/core/List.pm:
coerce the RHS to Int in infix:<xx>

fixes things like $val xx @array
15:18
ast: d9bb314 | moritz++ | S03-operators/repeat.t:
rakudo unfudge
moritz enjoyed watching vimeo.com/9270320 15:21
15:23 Trashlord joined
moritz the information density isn't all that high, but it's... enjoyable nonethelss 15:24
15:30 tokuhirom joined
dalek kudo/nom: b8ee2ed | coke++ | t/spectest.data:
track failure modes
15:31
15:37 jimmy1980 left 15:43 jimmy1980 joined, kaare_ joined
moritz nom: sub f(:$a!, $b) { } 15:43
p6eval nom d9a22f: OUTPUT«===SORRY!===␤Cannot put required parameter after variadic parameters at line 1, near ") { }"␤»
moritz :$a! isn't optional, so that error message makes little sense 15:44
std: sub f(:$a!, $b) { }
p6eval std be1f10e: OUTPUT«===SORRY!===␤Cannot put required parameter after variadic parameters at /tmp/xI4t8RynP1 line 1:␤------> sub f(:$a!, $b⏏) { }␤Potential difficulties:␤ $b is declared but not used at /tmp/xI4t8RynP1 line 1:␤------> sub f(:$a!,…
jnthn hm, fail 15:45
Should probably say "after named parameters" or so...
At least Rakudo is consistent with STD here ;)
tadzik 6 failures in t/spec/S05-mass/properties-general.rakudo, known? 15:46
dalek ast: 3f59192 | moritz++ | S12-methods/what.t:
correct tests that called positional arguments by name
15:48 wtw left 15:51 fsergot left
[Coke] tadzik: I'll kick off a spectest here. 15:53
jnthn I have vague memories of hearing about differeing pass/results on those tests. 15:54
Maybe different ICU version or something...
tadzik moritz: commented github.com/perl6/roast/commit/3f591925fe 15:55
moritz (properties-general) fails here too
I suspect different ICU version too
tadzik: there's no mention of Multi or MultiSub in the specs 15:56
jnthn It doesn't make any sense since the multi spec changed 15:57
tadzik so what does this RT expect?
oh, it's outdated I guess
jnthn decommute ^ 15:58
&
moritz tadzik: it is
tadzik okay
15:59 ab5tract joined
moritz the ticket just wanted it to not Null PMC Access 16:00
tadzik okay 16:01
dalek ast: 3d1207b | moritz++ | S02-names-vars/names.t:
unfudge passing tests
16:02
16:02 ispeak_ left
dalek kudo/nom: bef928a | moritz++ | src/Perl6/Grammar.pm:
fix parsing of "enum" as identifier
16:02
16:04 lichtkind joined
lichtkind i think i have a advent topic 16:06
colomon \o/
lichtkind the new hash methods
or is that taken?
16:06 MayDaniel joined
lichtkind i checked old calendars 16:07
by taken i mean in your plan
tadzik new hash methods?
lichtkind y
moritz what new hash methods? 16:08
lichtkind allright last year they were new
moritz what hash methods?
classify? 16:09
... and categorize
lichtkind yes
moritz lichtkind: then please add your name and topic to the schedule file in the mu repo 16:10
lichtkind moritz: i better write first the text
moritz nom: $_ = 3; for 1 -> $a { $_ = 5 }; .say 16:11
p6eval nom b8ee2e: OUTPUT«5␤»
16:12 tzhs left 16:13 tokuhirom left 16:14 fsergot joined, alim_ joined
moritz nom: say &[<=>].WHAT 16:15
p6eval nom b8ee2e: OUTPUT«Sub()␤»
16:15 alim left, alim_ is now known as alim
moritz nom: say &[<=>].('1', '4'( 16:16
p6eval nom b8ee2e: OUTPUT«===SORRY!===␤Unable to parse postcircumfix:sym<( )>, couldn't find final ')' at line 1␤»
moritz nom: say &[<=>].('1', '4')
p6eval nom b8ee2e: OUTPUT«-1␤»
TimToady nom: say '1'.&[<=>]('4') 16:17
p6eval nom b8ee2e: OUTPUT«-1␤»
moritz nom: say sort &[<=>], <1 4 3 6 2> 16:18
p6eval nom b8ee2e: OUTPUT«No applicable candidates found to dispatch to for 'infix:<<=>>'. Available candidates are:␤:(int $a, int $b)␤:(num $a, num $b)␤:(Int $a, Int $b)␤:(Num $a, Num $b)␤:(Instant $a, Instant $b)␤:(Date $a, Date $b)␤:(Real $a, Real $b)␤:(Any $a, Any $b)␤␤ in sub infix:<<=>>…
moritz doesn't understand why
nom: say &[<=>].arity 16:19
p6eval nom b8ee2e: OUTPUT«1␤»
moritz nom: say &[<=>].count
p6eval nom b8ee2e: OUTPUT«1␤»
moritz ah 16:20
so it tries to invoke it with one argument only
jnthn: see above
moritz goes through the nom regressions in roast
TimToady though &[] is supposed to force 2-arg
moritz I know 16:21
TimToady maybe because chaining?
er, wait, no
moritz and that implies that the tests that do ok &infix:<==> === &[==] are wrong 16:22
TimToady nom: say &[cmp].arity
p6eval nom b8ee2e: OUTPUT«2␤»
moritz TimToady: no, default values for reduction
(I guess)
because if &[==] forces arity 2, and &infix:<==> does not, they can't be the same 16:23
TimToady nom: say &[leg].arity
p6eval nom b8ee2e: OUTPUT«1␤»
TimToady leg is also 1
but not cmp?!?
16:24 MayDaniel left 16:29 alim left, alim joined 16:37 MayDaniel joined 16:40 wk left
[Coke] gist.github.com/1434231 # for tadzik - i miss being able to just paste this into a bot on the web. 16:42
tadzik [Coke]: I didn't get that failures, and I have the same TODO passing 16:43
moritz I can declare a my constant i = 1i; if I put it into SAFE.setting
[Coke] tadzik: just unfudged that todo passing.
tadzik ok cool
moritz but it loops if I put it into src/core/ somwhere
[Coke] tadzik: you have a 64 bit box? 16:44
moritz (compilation loops, that is)
tadzik [Coke]: yes
dalek ast: 29ee946 | coke++ | S03-operators/range.t:
unfudge for rakudo/nom
jnthn moritz: compilation loops probably means exception handling fail :/ 16:45
[Coke] tadzik: that'll do it.
jnthn Or at least, that's what I've tended to encounter.
16:45 fsergot left
jnthn &[+] is kinda cheating at the moment - I didn't make it filter to arity 2. Not sure what they best way to do that is...it'd kinda suck to re-compute the arity-2 list every time, but I'm not sure where to stash it either. 16:45
PerlJam jnthn: got a second? Could you explain to me the process by which method lookup happens? I think the first time the method is called, we get find_method, and the result of that is put in the cache and then executed. Future method calls read from the cache. Is that correct? 16:47
jnthn PerlJam: no 16:48
PerlJam: At compose time, we pre-emptively populate the method cache.
PerlJam ah.
jnthn PerlJam: NQP doesn't have to support any kind of dispatch failover, so it goes a step further and marks the cache as authoritative, meaning that normal dispatches never have to call .^find_method
PerlJam Hmm 16:50
jnthn Well, I should say NQP's meta-objects
We have an interest in being able to say "no such method" quite fast in NQP. 16:51
PerlJam jnthn: I was looking at Grammar::Debugger ... correct me if I'm wrong, but doesn't it create a new routine on each method call?
jnthn: I was thinking the way to optimize that was to call .wrap() on the method once and put that in the cache, but I guess I'd have to introspect the method names and call .wrap on them at compose time to populate the cache appropriately. 16:52
jnthn PerlJam: If you wrap it then you'll damage to original. 16:53
*the
PerlJam: The answer is to cache the computed closures. 16:54
PerlJam: It'd make things faster, though I'm not sure how much.
PerlJam okay, thanks for the input (I just think about these things in the interstices when I'm procrastinating at work :) 16:56
17:02 kaleem joined
tadzik bug of the day: Foo *a = malloc(...); memset(&a, ...); 17:04
jnthn oops :) 17:05
tadzik (wtf, why did this malloc return 0)
mux yes, why? that's actually an interesting question
tadzik memset expects a pointer to the memory location
mux oh scratch that, I didn't see the erroneous &
tadzik me neither
mux I thought you were talking about something else entirely :D
tadzik me too 17:06
:)
flussence I vaguely remember reading somewhere that 0 is a valid return value for malloc...
mux flussence: it is
the thing is it rarely happens in practice
17:06 fsergot joined
tadzik it is, but it would be... extremely suprising :) 17:06
mux (by 0 I meant NULL here)
flussence or was it that it's a valid input value...
tadzik I started to think "so malloc got broken and the system still runs? wow"
17:09 mantovani left 17:10 fsergot left 17:15 ab5tract left 17:17 jeffreykegler joined
ashleydev on the iphone that wouldn't be as rare 17:25
but if you wait a while it'll clear out some memory space and it'll probably work the 2nd time 17:26
17:29 alim left 17:31 fsergot joined 17:33 cognominal___ joined 17:35 flussence_ joined, flussence left 17:36 cognominal_ left, flussence_ is now known as flussence
sorear good * #perl6 17:36
ashleydev * 17:38
17:38 jeffreykegler left 17:39 fsergot left
colomon o/ 17:42
arnsholt flussence: malloc will return NULL if it failed to allocate the requested amount of memory 17:43
colomon woah. one of the political blogs out there has just done a post inspired by the Flip-Flop operator post. 17:48
moritz colomon: URL? 17:50
colomon theothermccain.com
there's a trackback, that's how I learned about it.
theothermccain.com/2011/12/05/softw...flip-flop/
17:53 mj41 joined
arnsholt colomon: That was one of the less coherent posts I've read in a while =) 17:54
colomon I wouldn't be surprised if it doubles our page views just by accident, though. :)
arnsholt Indeed =) 17:55
Speaking of page views, has the advent calendar been submitted to HN/Slashdot?
moritz arnsholt: I'm not aware of a /. submission
arnsholt: but it would be great to have one 17:56
[Coke] colomon++ 17:58
aloha Karma for colomon is now 183
17:59 s1n1 joined
colomon [Coke]: er, what have I done now? ;) 17:59
arnsholt moritz: This is the third year of Perl 6 advent, no? 18:00
colomon arnsholt: yes
18:01 flussence left 18:02 flussence joined
[Coke] moritz: and still no real production release? ;) 18:05
colomon: whoops! I thought you wrote the blog post. anyway, thanks for noting the linkback. 18:08
arnsholt There we go. Submitted to slashdot as well: slashdot.org/submission/1870962/per...t-calendar
[Coke] PerlJam++ # No, I still don't think I'll ever use the flipflop operator.
aloha Karma for perljam is now 55
18:13 japhb_ left
colomon I've never used the flipflop, but after reading this it does feel to me like there is some cool application for it, hiding off in the shadows somewhere... 18:13
sorear flipflop's reason for existing is, like so many other Perl feaures, s2p 18:14
18:15 fsergot joined
sorear '/foo/,/bar/d' becomes 'print unless /foo/ ff /bar/' 18:15
PerlJam I used to used flip-flop all the time in Perl 5 (not so much lately) but I still had a hard time explaining it in words.
18:25 risou is now known as risou_awy 18:31 MayDaniel left 18:33 dakkar left
moritz PerlJam: the weird thing is that the flip-flop operator carries state 18:39
PerlJam: unlike any/most other operators
18:39 GlitchMr joined
colomon moritz: yeah, I was wondering how it was implemented.... 18:41
18:45 birdwindupbird joined, birdwindupbird left 18:50 fridim_ joined 19:06 kaleem left
[Coke] my $foo = 42; ($foo, "stuff")[0] = 24; say $foo; 19:09
perl6: my $foo = 42; ($foo, "stuff")[0] = 24; say $foo; 19:10
p6eval pugs b927740: OUTPUT«*** Can't modify constant item: VRef <Scalar:0x7f41cc366fa1>␤ at /tmp/g6RkzZzOIu line 1, column 15-38␤»
..rakudo bef928: OUTPUT«Cannot assign to a readonly variable or a value␤ in block <anon> at /tmp/eROaY_J02E:1␤ in <anon> at /tmp/eROaY_J02E:1␤»
..niecza v12-3-g193ca57: OUTPUT«24␤»
[Coke] std: my $foo = 42; ($foo, "stuff")[0] = 24; say $foo;
p6eval std be1f10e: OUTPUT«ok 00:01 124m␤»
[Coke] b: my $foo = 42; ($foo, "stuff")[0] = 24; say $foo;
p6eval b 1b7dd1: OUTPUT«24␤»
[Coke] are b and niecza right?
moritz I think so 19:11
19:11 shinobicl left 19:12 packetknife joined 19:14 hundskatt joined 19:17 GlitchMr42 joined 19:18 GlitchMr left, GlitchMr42 is now known as GlitchMr
dalek ast: 88b5007 | coke++ | S02-types/lists.t:
Convert regression to RT
19:18
19:35 alester joined 19:38 birdwindupbird1 joined, birdwindupbird1 left 19:43 GlitchMr left, Trashlord left 19:45 Trashlord joined 19:46 Trashlord is now known as Guest12550 19:47 alvis joined, raiph joined 19:51 bluescreen10 left 19:54 daxim left
raiph greetings, flying camels 19:55
tadzik hello raiph
20:02 mj41 left
colomon nom: say 'This "is" "really" a test'.comb(/ <-["]>/) 20:03
p6eval nom bef928: OUTPUT«T h i s i s r e a l l y a t e s t␤» 20:04
colomon oooo, right in one! :)
20:06 bluescreen10 joined 20:16 jaldhar left 20:19 mj41 joined 20:29 miso2217 joined 20:30 benabik left, benabik joined 20:34 ksi joined 20:36 localhost left 20:37 localhost joined 20:38 envi_ left 20:47 miso2217 left 20:49 fsergot left 20:53 muixirt left 20:56 molaf joined 20:58 s1n1 left 21:02 Moukeddar joined 21:05 kcwu left
felher If i have a grammar, consisting only of regexes (which i think do backtrack) and i have a regex of structure 'regex A { \h* [<B>] \h* }' and change it to 'regex A { \h* [<A>|<B>] \h* }', how can the first parse something that the second can not? I'm only adding alternatives, am i not? 21:08
[Coke] could have negative assertions in <A>, no? 21:09
arnsholt Or could be some kind of LTMy bug
jnthn We don't do LTM on alternations yet in nom, fwiw. 21:10
21:10 cognominal_ joined
arnsholt Then probably not an LTMy bug =) 21:10
felher What workes is paste.pocoo.org/show/516795/
what doesn't is: paste.pocoo.org/show/516793/
diakopter are you using nom? 21:11
21:11 Moukeddar left
felher diakopter: yes 21:11
21:11 fsergot joined
diakopter probably it doesn't work because backtracking into subrules doesn't work 21:12
21:13 cognominal___ left
felher diakopter: Yeah, that would explain it. Thnx :) 21:14
21:29 shinobicl joined 21:36 aloha left, bluescreen10 left 21:37 jimmy1980 left 21:43 jimmy1980 joined 21:47 molaf left 21:51 aloha joined 21:52 bluescreen10 joined 21:57 Mowah_ left 21:59 mberends joined
mberends \o/ 21:59
mberends iz riting teh next p6advent blogpost :0 22:00
colomon mberends++ 22:01
colomon is cooking noms and swearing at LilyPond
jnthn is feeling way too tired after somehow only managing 4 hours of sleep last night 22:02
colomon sometimes thinks LilyPond was designed by the STEP specific committee... 22:08
22:08 tokuhirom joined 22:20 mj41 left
jnthn manages to make 5000 tests fail 22:23
Fixed a longstanding RT though ;) 22:24
22:25 packetknife left
benabik 5000 failures to fix one bug? Nice ratio. ;-) 22:28
mux that's one badass fix
jnthn Yeah, turns out that losing the type constraints on every parameter works wonders for failing tests. 22:30
22:30 kaare_ left 22:32 envi_ joined 22:35 japhb_ joined, packetknife joined
japhb_ jnthn, I think you should call that a win. ;-) 22:35
22:38 ksi left 22:39 Guest12550 left
jnthn :P 22:40
Got it fixed now
22:40 Trashlord joined
jnthn Busted split...well, because it does something bad. 22:40
japhb_
.oO( Bad method! No biscuit! )
22:42
jnthn Relied on @foo := ... not actually enforcing the sigil. 22:43
Which I've got fixed locally.
benabik ouch.
jnthn Not sure Rakudo's ever got this right before
22:45 wolfman2000 joined
japhb_ jnthn, out of curiosity, what are you working on? 22:49
dalek ast: c486ab7 | jnthn++ | S14-roles/parameter-subtyping.t:
Correct a test, unfudge another.
22:50
ast: 4f77025 | jnthn++ | S14-roles/parameterized-type.t:
Turns out we still passed this test for the wrong reasons; fudge it. :(
kudo/nom: 375bbe8 | jnthn++ | src/ (3 files):
Refactor to static type handling, so it relies on the bind constraint rather than the container descriptor. Fixes my @foo := 42; not failing, plus avoids giving the optimizer a bunch of crappy type info so it gives false positives when analyzing parameterized role arguments.
22:51
kudo/nom: 32f00e7 | jnthn++ | src/core/Str.pm:
We now enforce the sigil when binding; fix split, which worked based on that check being missing.
kudo/nom: 40b3369 | jnthn++ | src/core/Array.pm:
First bit of enforcing typed array types.
22:52
kudo/nom: 104beb8 | jnthn++ | t/spectest.data:
We can now run and pass all of parameter-subtyping.t.
jnthn japhb_: That lot ;)
japhb_: Another yak shave for doing arrays in NCI decently.
japhb_ Ah, gotcha!
22:53 imarcusthis left
jnthn marks a 3 year old RT as testneeded 22:55
eek, German spam in the RT queue 22:56
"pray! Entspannt, Erfrischt, Macht fit!"
phenny: "pray! Entspannt, Erfrischt, Macht fit!"?
phenny jnthn: The de to en translation failed, sorry!
jnthn aww
jnthn wanted to learn 3 new words :)
benabik translate.google.com: Pray! Relaxed, refreshed, might fit! 22:57
jnthn ah 22:58
I'm pretty sure "might fit" is a bad translation.
22:58 plobsing joined
jnthn It's "might" as in "power", iiuc. 22:58
nom: my &foo = 42 23:00
p6eval nom bef928: OUTPUT«Type check failed in assignment to '&foo'; expected 'Callable' but got 'Int'␤ in block <anon> at /tmp/DXxkH5_axL:1␤ in <anon> at /tmp/DXxkH5_axL:1␤»
jnthn \o/ 23:01
23:07 wolfman2_ joined, jimmy1980 left 23:08 wolfman2000 left 23:17 jimmy1980 joined
dalek ast: 3f1e455 | jnthn++ | S16-filehandles/filetest.t:
Fudging; verification on a platform other than Windows would be helpful.
23:24
lichtkind jnthn: correct translation is: makes agile 23:25
dalek kudo/nom: e5cf070 | jnthn++ | src/core/IO.pm:
Re-instate getc.
kudo/nom: f346f0a | jnthn++ | t/spectest.data:
Run S16-io/getc.t.
kudo/nom: 7bc7c6e | jnthn++ | src/core/IO.pm:
Add back .z file test; filetest.t now seems close to working.
kudo/nom: 74c7491 | jnthn++ | t/spectest.data:
Run filetest.t.
jnthn Clearly the spam was trying to sll us scrum training. :)
*sell
lichtkind something like that :) 23:27
diakopter I will ScrumMaster your Requestor Sprint Backlog with Artifacts to Story 23:29
lichtkind diakopter: now i have a full row :) 23:30
23:30 tokuhirom left 23:32 cooper joined 23:37 envi_ left 23:44 dalek left, lestrrat left, dalek joined, ChanServ sets mode: +v dalek, lestrrat joined 23:45 risou_awy is now known as risou
dalek ast: 62c60f6 | jnthn++ | S12-introspection/walk.t:
Bring walk.t in line with the spec.
23:47
mberends perl6advent.wordpress.com/2011/12/0...on-niecza/ came out slightly early, please comment :-) 23:48
jnthn mberends++ # looks good 23:50
mberends thanks jnthn 23:51
diakopter +1
diakopter learns about the flip-flop operator for the first time 23:53
23:54 jimmy1980 left
dalek kudo/nom: 6a15ccd | jnthn++ | src/core/Mu.pm:
Implement Mu.WALK.
23:54
kudo/nom: ded9695 | jnthn++ | t/spectest.data:
Turn on S12-introspection/walk.t.
23:59 risou is now known as risou_awy