Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2013-12-23

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:00 BenGoldberg r: say sort ($a, $b) -> {$b leg $a}, (3, 20, 100).pick(*)
00:00 camelia rakudo-parrot d72797: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/EFxwCGHweFâ�¤Variable '$a' is not declaredâ�¤at /tmp/EFxwCGHweF:1â�¤------> [32msay sort ($a[33mâ��[31m, $b) -> {$b leg $a}, (3, 20, 100).pick([0mâ�¤    expecting any of:â�¤        postfixâ�¤Â»
00:00 camelia ..rakudo-jvm d72797: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/TaVzOGann9â�¤Variable '$a' is not declaredâ�¤at /tmp/TaVzOGann9:1â�¤------> [32msay sort ($a[33mâ��[31m, $b) -> {$b leg $a}, (3, 20, 100).pick([0mâ�¤    expecting any of:â�¤        postfixâ�¤Â»
00:00 Mouq r: say sort {$^b leg $^a}, (3, 20, 100).pick(*)
00:00 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«3 20 100␤»
00:00 Mouq r: say sort ->$b,$a{$b leg $a}, (3, 20, 100).pick(*)
00:00 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«100 20 3␤»
00:01 BenGoldberg r: say sort ->$a,$b{$b leg $a}, (3, 20, 100).pick(*)
00:01 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«3 20 100␤»
00:01 FROGGS r: say sort {$^a leg $^b}, (3, 20, 100).pick(*)
00:01 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«100 20 3␤»
00:01 BenGoldberg When I use $^foo, those get sorted by name when they're made into parameters?
00:02 FROGGS sorted by appearance AFAIK
00:02 BenGoldberg r: say sort {$^b leg $^a}, (3, 20, 100).pick(*)
00:02 FROGGS hmm, or not
00:02 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«3 20 100␤»
00:02 BenGoldberg r: say sort {$^a leg $^b}, (3, 20, 100).pick(*)
00:02 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«100 20 3␤»
00:02 FROGGS :o)
00:03 BenGoldberg Quite useful, if slightly surprising ;)
00:05 Mouq r: my $test = 'abcd' ~~ /a/; 'test' ~~ /\w/; my $v = {say $/}; {$/ := $test; $v()}
00:05 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«「a」␤␤»
00:05 Mouq \o/
00:06 Mouq also
00:06 ssutch joined #perl6
00:06 Mouq r: {my $/ = 'a' ~~ /a/} #rakudobug
00:06 camelia rakudo-parrot d72797, rakudo-jvm d72797: ( no output )
00:06 Mouq std: {my $/ = 'a' ~~ /a/} #rakudobug
00:06 camelia std 4731beb: OUTPUT«[31m===[0mSORRY![31m===[0m�Unsupported use of $/ variable as input record separator; in Perl 6 please use the filehandle's :irs attribute at /tmp/9hCm5oFWyt line 1:�------> [32m{my $/[33m�[31m = 'a' ~~ /a/} #rakudobug[0m�Parse failed�FAILED 00:0…»
00:12 dalek perl6-roast-data: 26c8fd7 | coke++ | / (6 files):
00:12 dalek perl6-roast-data: today (automated commit)
00:12 dalek perl6-roast-data: review: https://github.com/coke/perl6​-roast-data/commit/26c8fd7b64
00:12 ssutch joined #perl6
00:16 xenoterracide joined #perl6
00:25 Mouq r: role Xeger { method ACCEPTS (*@_) { say "{self.WHICH} matched against {@_}"; nextwith(@_) } }; sub something(Regex $a) { ([~] 'a'..'z') ~~ $a }; something(/abcd/ but Xeger)
00:25 camelia rakudo-parrot d72797: OUTPUT«Regex+{Xeger}|2267684913326976267 matched against abcdefghijklmnopqrstuvwxyz␤»
00:25 camelia ..rakudo-jvm d72797: OUTPUT«Regex+{Xeger}|781687463 matched against abcdefghijklmnopqrstuvwxyz␤»
00:25 Mouq I love Perl 6
00:34 BenGoldberg It's not bad ;)
00:36 Tene joined #perl6
00:37 djanatyn joined #perl6
00:51 rurban1 joined #perl6
01:08 Mouq joined #perl6
01:17 tgt joined #perl6
01:19 labster joined #perl6
01:33 gfldex joined #perl6
01:43 jnap joined #perl6
01:52 rurban1 joined #perl6
02:23 xenoterracide joined #perl6
02:24 dayangkun joined #perl6
02:27 timotimo r: 300.trans: /\d/ => { say $/ };
02:27 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«Nil␤Nil␤Nil␤Nil␤»
02:27 timotimo r: 300.trans: /\d/ => -> $/ { say $/ };
02:27 camelia rakudo-parrot d72797: OUTPUT«Not enough positional parameters passed; got 0 but expected 1␤  in block  at /tmp/p52RLGHHZG:1␤␤»
02:27 camelia ..rakudo-jvm d72797: OUTPUT«Not enough positional parameters passed; got 0 but expected 1␤  in method next_substitution at gen/jvm/CORE.setting:6303␤  in method trans at gen/jvm/CORE.setting:6345␤␤»
02:27 timotimo i think this bug is known
02:36 lue All of a sudden, I really wish there was a .chomp(" ") variant :)
02:41 labster p: say " foo   ".trim.perl
02:41 camelia rakudo-parrot d72797: OUTPUT«"foo"␤»
02:50 lue labster: turns out I forgot that  say @a;  puts spaces between elems. But I'd forgotten about trim and friends :)
02:52 labster Yeah, you want print @a, "\n"; for that.
02:52 rurban1 joined #perl6
02:53 lue labster: since I'm not printing the array directly, the function returning just uses [~] :P
03:13 colomon joined #perl6
03:19 TimToady .join works fine too
03:27 thou joined #perl6
03:27 labster Wow, there really is more than one way to do it.
03:32 Alpha64 joined #perl6
03:33 Alpha64 hello, what online tool like ideone can i use that has a somewhat recent version of perl6?
03:43 gfldex joined #perl6
03:48 dayangkun joined #perl6
03:53 rurban1 joined #perl6
04:06 dayangkun joined #perl6
04:27 jnap joined #perl6
04:40 kaleem joined #perl6
04:48 dayangkun_ joined #perl6
04:54 dwarring joined #perl6
04:54 rurban1 joined #perl6
04:55 preflex joined #perl6
04:56 rurban2 joined #perl6
05:04 raiph joined #perl6
05:26 lue Anyone got any ideas as to how adding a simple :my $*VAR = 1; and some <?{$*VAR}> checks in alternations can cause Parrot to eat memory until it's killed? :)
05:27 SamuraiJack joined #perl6
05:31 moritz lue: does the alternation consume any characters?
05:32 lue yeah, it's my way of doing if/else in regexes.  [$*OPTION '»' | '>']  for instance
05:32 lue rather, [<?{$*OPTION}> ...
05:33 lue (the idea being that the assertion ends up acting as either a <?> or <!> .)
05:35 moritz then I don't know
05:35 moritz maybe starting with --rxtrace is enlightening?
05:35 moritz or with Regex::Tracer
05:37 lue I'll try --rxtrace, though I'm very scared to freeze my computer again :D
05:37 lue moritz: I was half-expecting you to say "that's not how you should be doing that *at all*, of course it's going to eat up memory!" :)
05:44 lue --rxtrace didn't reveal anything, I'll try perl6-debug instead. At least then I don't have to wait for the kernel to do the killing :)
05:57 rurban1 joined #perl6
06:15 darutoko joined #perl6
06:23 jnap joined #perl6
06:49 araujo joined #perl6
06:55 brrt joined #perl6
06:57 rurban1 joined #perl6
06:59 kaleem joined #perl6
07:20 lue moritz: turns out, I needed to add a <?{!$*VAR}> to the "else" alternation, because otherwise the match went on.
07:22 lue the alternation was actually  [ <?{$*VAR}> <![»]> | <![>]> ]  for a "gather chars until end bracket" bit, so you can perhaps see why the not-check is necessary :) .
07:22 darutoko joined #perl6
07:24 jnap joined #perl6
07:56 rindolf joined #perl6
08:01 Entonian joined #perl6
08:10 Tene joined #perl6
08:10 Tene joined #perl6
08:25 jnap joined #perl6
08:32 dakkar joined #perl6
08:33 Piers joined #perl6
08:37 hoverboard joined #perl6
08:53 djanatyn joined #perl6
08:59 rurban1 joined #perl6
08:59 masak mornin', #perl6
09:00 brrt hi masak
09:01 masak my post got HN'd. even though it wasn't actually very special.
09:03 cosimo masak: what do you expect from hn?
09:03 cosimo and... Good $Morning!
09:05 masak even the HN discussion is civil.
09:06 masak about 2/3 "why Perl instead of Python" (with gentle answers) and 1/3 "what's the state of Perl 6?"
09:07 masak the only way to make people start caring about Perl 6 is to develop something indispensible in it that people can't afford to ignore :)
09:07 masak then they will stop saying "you can safely ignore Perl 6 for now" and start saying "I've been keeping an eye on Perl 6 for years -- you should check it out!"\
09:07 masak :)
09:08 tadzik ....like a useful Steam API support! :P
09:09 brother joined #perl6
09:09 tadzik I think my module is the only one on earth that can convert between usernames and userids
09:09 tadzik also, I think I'll sit down and write an HTTP client that one can rely on
09:10 tadzik I hope it turns out better than panda, in terms of reliability
09:11 masak tadzik: fwiw, I had reliability problems with pls too.
09:12 masak tadzik: you're just better than I am at enduring them and still making progress.
09:26 jnap joined #perl6
09:26 tadzik heh, am I
09:26 tadzik I don't see any endurance on progress from my side these days :P
09:29 denisboyun joined #perl6
09:30 dayangkun joined #perl6
09:36 spider-mario joined #perl6
09:41 rurban1 joined #perl6
09:46 fhelmberger joined #perl6
09:54 fhelmberger joined #perl6
10:07 retupmoca joined #perl6
10:07 xinming joined #perl6
10:07 revdiablo joined #perl6
10:09 ilogger2 joined #perl6
10:12 Util joined #perl6
10:13 [Coke] joined #perl6
10:23 mberends joined #perl6
10:29 dmol joined #perl6
10:30 anmol joined #perl6
10:31 town55 joined #perl6
10:37 denis_boyun joined #perl6
10:40 kurahaupo_mobile joined #perl6
10:44 mberends joined #perl6
10:50 cognominal joined #perl6
11:16 kivutar joined #perl6
11:19 rurban1 joined #perl6
11:25 SamuraiJack joined #perl6
11:27 jnap joined #perl6
11:51 cognominal joined #perl6
12:07 brrt joined #perl6
12:11 zakharyas joined #perl6
12:13 colomon http://dfw.pm.org/ hmmm….
12:17 atroxaper joined #perl6
12:20 kaleem joined #perl6
12:28 jnap joined #perl6
12:30 tgt joined #perl6
12:33 carlin joined #perl6
12:38 timotimo hurm. what's the address of the "things not implemented for perl6" rosettacode report page?
12:38 timotimo it irks me that i can't find it by looking through the website; or at least it's pretty well hidden :P
12:39 timotimo there is "Perl 6 examples needing attention" but not the other thing
12:40 atroxaper joined #perl6
12:43 brrt left #perl6
12:43 atroxaper joined #perl6
12:43 finanalyst joined #perl6
12:43 tgt joined #perl6
12:44 rxy joined #perl6
12:45 finanalyst r: my @x; say ?(@x[*-1] :exists); say @x[*-1]
12:45 camelia rakudo-parrot d72797: OUTPUT«True␤Cannot use negative index -1 on Array␤  in method gist at gen/parrot/CORE.setting:12065␤  in method gist at gen/parrot/CORE.setting:1014␤  in sub say at gen/parrot/CORE.setting:12974␤  in block  at /tmp/knmzPLjt4Q:1␤␤»
12:45 camelia ..rakudo-jvm d72797: OUTPUT«True␤Cannot use negative index -1 on Array␤␤»
12:46 finanalyst Why  does @x[*-1] :exists return true on an empty array?
12:46 xinming joined #perl6
12:47 finanalyst surely *-1 on an empty array must be non-existent
12:50 atroxaper joined #perl6
12:55 moritz finanalyst: I agree, it's a bug
12:59 timotimo r: my @x; say @x.DUMP; say (@x[*-1]).DUMP
12:59 camelia rakudo-parrot d72797: OUTPUT«Array<1>(␤    :$!flattens(▶Mu),␤    :$!items(▶Mu),␤    :$!nextiter(▶Mu)␤)␤Failure<1>(␤    :exception(▶X::AdHoc<2>(␤        :payload(▶"Cannot use negative index -1 on Array"),␤        :$!ex(Exception<4>(...))␤    )),␤    :$!h…»
12:59 camelia ..rakudo-jvm d72797: OUTPUT«Array<1>(␤    :$!flattens(▶Mu),␤    :$!items(▶Mu),␤    :$!nextiter(▶Mu)␤)␤Failure<1>(␤    :exception(▶X::AdHoc<2>(␤        :payload(▶"Cannot use negative index -1 on Array"),␤        :$!ex(BOOTException<4>(...))␤    )),␤    :$!…»
12:59 timotimo er, i better open that in a local terminal
13:01 timotimo huh
13:01 timotimo without the ? it returns False
13:01 kivutar joined #perl6
13:02 moritz p: my @x; say @x[*-1]:exists
13:02 camelia rakudo-parrot d72797: OUTPUT«False␤»
13:02 moritz p: my @x; say @x[*-1] :exists
13:02 camelia rakudo-parrot d72797: OUTPUT«False␤»
13:02 moritz p: my @x; say so @x[*-1] :exists
13:02 camelia rakudo-parrot d72797: OUTPUT«True␤»
13:02 moritz p: my @x; say ( @x[*-1] :exists).perl
13:02 camelia rakudo-parrot d72797: OUTPUT«(Bool::False,)␤»
13:03 moritz oh
13:03 moritz it returns a parcel containing a Bool
13:03 moritz and a one-elem parcel is True in boolean context
13:06 timotimo ooooh
13:06 timotimo yeah. and it's supposed to by spec
13:08 atroxaper joined #perl6
13:10 * moritz thinks about respeccing the spec
13:10 chingfantsou joined #perl6
13:11 * moritz has a postgres+postgis database of German zip codes and their locations, and is now happy
13:14 moritz select avg(st_distance(a.loc_center, b.loc_center, True)) FROM post_code_areas a, post_code_areas b WHERE a.plzort99 = 'Kiel' AND b.plzort99 = 'Konstanz'; -- 741252.334629163
13:21 colomon joined #perl6
13:22 wooden joined #perl6
13:27 atroxaper joined #perl6
13:28 colomon moritz++ # Advent post
13:29 jnap joined #perl6
13:30 atroxaper joined #perl6
13:30 pdurbin left #perl6
13:31 moritz colomon: thanks
13:32 colomon I take that so much for granted by now I would never have thought of writing it.
13:32 moritz me neither, if it hadn't been in topic-brainstorm file :-)
13:36 finanalyst moritz: shall i file a bug for @x[*-1] :exists ? or is it not a bug?
13:37 moritz finanalyst: it seems it's not a bug, strictly speaking, just very unintuitive
13:38 moritz more of a spec bug, IMHO
13:38 finanalyst better test for empty @x is @x.elems
13:39 moritz or simply @x in Boolean context
13:42 timotimo @x[*-1] :exists is also not a good way to test if a Positional is empty :)
13:43 moritz r: say so (my @x)[0]:exists
13:43 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«False␤»
13:43 moritz r: say so (my @x)[*-1]:exists
13:43 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«True␤»
13:43 moritz but why should those cases behave differently?
13:43 moritz that doesn't seem very intuitive
13:46 timotimo oh, weird
13:50 chingfan` joined #perl6
13:50 mberends joined #perl6
14:03 timotimo r: my @a will begin { say $_.WHAT };
14:04 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«(Mu)␤»
14:05 tgt joined #perl6
14:05 jnap joined #perl6
14:10 jnap joined #perl6
14:15 toebu joined #perl6
14:18 PacoAir joined #perl6
14:19 pecastro joined #perl6
14:27 gfldex joined #perl6
14:32 kaleem joined #perl6
14:34 ajr joined #perl6
14:42 colomon joined #perl6
14:45 lue joined #perl6
14:46 raiph joined #perl6
14:48 pecastro_ joined #perl6
14:51 denis_boyun__ joined #perl6
15:00 denysonique left #perl6
15:02 thou joined #perl6
15:03 nwc10 joined #perl6
15:15 Mouq joined #perl6
15:26 rjbs Day 11 of P6Advent: s/dristributions/distributions
15:32 FROGGS rjbs: fixed, thanks
15:33 rjbs FROGGS++
15:36 skids joined #perl6
15:42 rurban1 joined #perl6
15:45 atroxaper joined #perl6
15:48 denis_boyun joined #perl6
15:52 colomon r: ["A","b","C"].sort: *.lc, { $^b leg $^a }
15:52 camelia rakudo-parrot d72797: OUTPUT«Too many positional parameters passed; got 3 but expected between 1 and 2␤  in method sort at gen/parrot/CORE.setting:7814␤  in block  at /tmp/dJ7Wkv0Cec:1␤␤»
15:52 camelia ..rakudo-jvm d72797: OUTPUT«Too many positional parameters passed; got 3 but expected between 1 and 2␤  in method sort at gen/jvm/CORE.setting:7789␤␤»
15:53 colomon n: ["A","b","C"].sort: *.lc, { $^b leg $^a }
15:53 camelia niecza v24-108-g17d73e4: OUTPUT«Unhandled exception: Excess arguments to List.sort, used 2 of 3 positionals␤  at /home/p6eval/niecza/lib/CORE.setting line 0 (List.sort @ 1) ␤  at /tmp/AazBrjcHEN line 1 (mainline @ 3) ␤  at /home/p6eval/niecza/lib/CORE.setting line 4595 (ANON @…»
15:53 xenoterracide joined #perl6
15:55 treehug88 joined #perl6
15:56 rurban1 joined #perl6
15:57 nwc10 now that it seems that Parrot is no longer on a regular release schedule, is there a plan for how to redfine the Rakudo release schedule? if so, is it "Thursday following third Tuesday of the month" or is it going to move a bit?
15:57 nwc10 [And will there be heretics releasing on the old date? :-)]
15:57 nwc10 http://london.pm.org/about/faq.html#heretics
15:57 FROGGS "1987 - Larry Wall falls asleep and hits Larry Wall's forehead on the keyboard. Upon waking Larry Wall decides that the string of characters on Larry Wall's monitor isn't random but an example program in a programming language that God wants His prophet, Larry Wall, to design. Perl is born."
15:58 FROGGS http://james-iry.blogspot.co.uk/2009/05​/brief-incomplete-and-mostly-wrong.html
15:58 moritz nwc10: fwiw I'm in favor of doing the rakudo compiler release earlier in the month, so that more time remains to release R* in the same month
15:59 nwc10 also, does Rakudo actually support most recent parrot, now that the old Packfile code has gone?
15:59 nwc10 earlier makes sense for that reason
15:59 * moritz has no idea
16:02 Pleiades` joined #perl6
16:09 breinbaas joined #perl6
16:11 pecastro joined #perl6
16:11 pecastro_ joined #perl6
16:14 breinbaas joined #perl6
16:14 atroxaper Hello #perl6 !
16:15 atroxaper I have created pull request https://github.com/perl6/specs/pull/63
16:15 atroxaper S26 doesn't parse without that line.
16:15 dalek specs: 514de57 | atroxaper++ | S26-documentation.pod:
16:15 dalek specs: Fix S26 parsing.
16:15 dalek specs:
16:15 dalek specs: Close defn.
16:15 dalek specs: review: https://github.com/perl6/specs/commit/514de57c59
16:15 dalek specs: 4930c60 | (Tobias Leich)++ | S26-documentation.pod:
16:15 dalek specs: Merge pull request #63 from atroxaper/master
16:15 dalek specs:
16:15 dalek specs: Fix S26 parsing.
16:16 dalek specs: review: https://github.com/perl6/specs/commit/4930c6051d
16:16 atroxaper Could somebody merge that?
16:16 telex joined #perl6
16:16 FROGGS been there, done that :o)
16:16 atroxaper Thank you!
16:16 FROGGS you're welcome
16:18 logie joined #perl6
16:19 sftp_ joined #perl6
16:23 Pleiades` joined #perl6
16:28 moritz atroxaper: now you calso have a commit bit yourself
16:29 atroxaper moritz: what do you mean?
16:29 moritz atroxaper: in future you can push directly to perl6/specs
16:29 moritz atroxaper: ... and a few other repos in the 'perl6' organization
16:30 atroxaper moritz: oh. cool. Is it automaticly have done? Or is it your magic? )
16:30 moritz atroxaper: my manual non-magic
16:31 atroxaper moritz: thank you for trust. I appreciate that.
16:34 ajr joined #perl6
16:35 rurban1 joined #perl6
16:42 rindolf joined #perl6
16:42 colomon rn: constant √5 = sqrt(5); say √5
16:42 camelia rakudo-jvm d72797: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/4R6YcPyxuwâ�¤Missing initializer on constant declarationâ�¤at /tmp/4R6YcPyxuw:1â�¤------> [32mconstant [33mâ��[31m√5 = sqrt(5); say √5[0mâ�¤    expecting any of:â�¤        statement listâ�¤  â€¦Â»
16:42 camelia ..rakudo-parrot d72797: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/6IK68J88Y9â�¤Missing initializer on constant declarationâ�¤at /tmp/6IK68J88Y9:1â�¤------> [32mconstant [33mâ��[31m√5 = sqrt(5); say √5[0mâ�¤    expecting any of:â�¤        statement list…»
16:42 camelia ..niecza v24-108-g17d73e4: OUTPUT«[31m===[0mSORRY![31m===[0m��Missing initializer on constant declaration at /tmp/CSbttue2Kv line 1:�------> [32mconstant [33m�[31m√5 = sqrt(5); say √5[0m��Confused at /tmp/CSbttue2Kv line 1:�------> [32mconstant [33m�[31m…»
16:43 colomon drat
16:43 colomon rn: sub prefix:<√>($n) { $n.sqrt }; say √5
16:43 camelia rakudo-parrot d72797, rakudo-jvm d72797, niecza v24-108-g17d73e4: OUTPUT«2.23606797749979␤»
16:45 cotto joined #perl6
16:46 denis_boyun joined #perl6
17:00 SamuraiJack joined #perl6
17:04 FROGGS rn: sub √($n) { $n.sqrt }; say √ 5
17:04 camelia rakudo-jvm d72797: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/8qO5OkAAmEâ�¤Missing blockâ�¤at /tmp/8qO5OkAAmE:1â�¤------> [32msub [33mâ��[31m√($n) { $n.sqrt }; say √ 5[0mâ�¤    expecting any of:â�¤        statement listâ�¤        prefix or termâ�¤      â€¦Â»
17:04 camelia ..niecza v24-108-g17d73e4: OUTPUT«[31m===[0mSORRY![31m===[0m��Malformed block at /tmp/OscJDywAx6 line 1:�------> [32msub [33m�[31m√($n) { $n.sqrt }; say √ 5[0m��Parse failed��»
17:04 camelia ..rakudo-parrot d72797: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/bfza2bLNDtâ�¤Missing blockâ�¤at /tmp/bfza2bLNDt:1â�¤------> [32msub [33mâ��[31m√($n) { $n.sqrt }; say √ 5[0mâ�¤    expecting any of:â�¤        statement listâ�¤        prefix or termâ�¤   …»
17:09 arnsholt joined #perl6
17:11 dmol joined #perl6
17:20 colomon rn: say 1.2 ** 100
17:20 camelia rakudo-parrot d72797: OUTPUT«82817974.5220145␤»
17:20 camelia ..rakudo-jvm d72797: OUTPUT«8.281797452201454E7␤»
17:20 camelia ..niecza v24-108-g17d73e4: OUTPUT«82817974.522014245␤»
17:21 colomon rn: say (1.2 ** 100).WHAT
17:21 camelia rakudo-parrot d72797, rakudo-jvm d72797: OUTPUT«(Num)␤»
17:21 camelia ..niecza v24-108-g17d73e4: OUTPUT«Num()␤»
17:21 colomon rn: say (1.2.FatRat ** 100).WHAT
17:21 camelia rakudo-parrot d72797, rakudo-jvm d72797, niecza v24-108-g17d73e4: OUTPUT«(FatRat)␤»
17:22 FROGGS weird that it still .gists to Num()
17:23 colomon I did think I'd fixed all those.
17:24 TimToady Day 24 at http://perl6advent.wordpress.​com/?p=2218&amp;preview=true
17:25 FROGGS \o/
17:26 TimToady WARNING, do not attempt to read drunk
17:31 pera joined #perl6
17:32 pera I'm curious: is there anything like 'tie' in perl6? :)
17:33 geekosaur I imagine it's not core, since it's a role like any other that you can implement
17:35 TimToady tie was abandoned because it pessimizes every variable to always remain tieable
17:35 TimToady but we have several other more controlled mechanisms to accomplish similar things, as long as you set up your declarations right
17:35 FROGGS TimToady: is "beutiful" a typo or artistic freedom?
17:36 TimToady tyop, thnaks
17:36 FROGGS free thnaks for all!
17:37 FROGGS I like it, though I have to translate some more words :o)
17:37 fridim_ joined #perl6
17:37 pera TimToady: like what? :)
17:40 xenoterracide joined #perl6
17:44 Pleiades` joined #perl6
17:55 colomon TimToady++ # as always
17:55 TimToady pera: like binding a different container into a slot
17:55 TimToady or wrapping the routines used to access the data
17:59 TimToady for an example, see http://rosettacode.org/wik​i/History_variables#Perl_6
18:00 zakharyas joined #perl6
18:05 TimToady family stuff &
18:09 raiph timotimo: http://rosettacode.org/wiki/Report​s:Tasks_not_implemented_in_Perl_6
18:10 sjohnson TimToady: does that mean you're putting family stuff to the background so you can hang out here more?  :)
18:12 timotimo raiph: bookmark'd, thanks!
18:15 raiph timotimo: yw, took me way too long (about 15 minutes) to find it
18:18 ssutch joined #perl6
18:19 timotimo where did you find it?
18:25 Rotwang joined #perl6
18:38 ajr joined #perl6
18:39 tadzik TimToady++ # I really enjoyed that :)
18:39 tadzik is feather having some problems? I had a lot of trouble connecting to it
18:39 rurban do you know who runs dalek? it was getting too noisy today
18:42 diakopter where was it noisy
18:44 pera thanks TimToady that is really interesting
18:50 betterworld joined #perl6
18:52 raiph timotimo: ended up skimming for likely relevant village pump discussions, bingoed with http://rosettacode.org/wiki/Rosetta_Cod​e:Village_Pump/Automated_Infrastructure
18:53 timotimo ha! i reached the village pump at one point, too
18:55 kaare__ joined #perl6
19:03 colomon joined #perl6
19:07 diakopter rurban: where was it noisy
19:07 moritz TimToady++ # advent post
19:09 ajr_ joined #perl6
19:11 moritz wohoo, 4k views on the advent calendar today
19:14 diakopter ?!?! where was it linked from
19:14 FROGGS[mobile]2 HN
19:17 moritz reddit, I think
19:17 moritz http://www.reddit.com/r/programming​/comments/1tj059/perl6_unary_sort/
19:17 [Sno]_ joined #perl6
19:17 filly joined #perl6
19:17 moritz HN was yesterday :-)
19:19 GlitchMr- joined #perl6
19:20 amkrankr1leuen joined #perl6
19:20 gfldex_ joined #perl6
19:21 FROGGS[mobile]2 moritz: our calender appeared there twice
19:21 slavik1 joined #perl6
19:22 denis_boyun_ joined #perl6
19:22 moritz https://news.ycombinator.com/item?id=6953824 too, it seems
19:23 FROGGS[mobile]2 exactly
19:28 Pleiades` joined #perl6
19:37 Tedd1 joined #perl6
19:44 lue hello world! o/ /me reads TimToady's advent post-to-be
19:52 lue TimToady++ # I assume the entire post being <pre>'d is intentional?
19:54 andrers52 joined #perl6
19:55 andrers52 Hi!
19:55 andrers52 I'm starting to read "Using Perl 6"
19:56 andrers52 and I think I've found a bug in an example. So, I'd like to contribute :)
19:56 lue moritz: am I right in thinking you've released the December compiler now?
19:57 moritz lue: yes
19:57 rurban1 joined #perl6
19:57 moritz andrers52: that's very kind of you.
19:57 moritz andrers52: what's the bug?
19:58 andrers52 in the first example, the program to check who wins the games, the else allows the draw to be accounted as a win to player 2
20:00 andrers52 if $r1 > $r2 {
20:00 moritz andrers52: there are now draws in table tennis :-)
20:00 andrers52 %matches{$p1}++;
20:00 andrers52 } elsif $r1 < $r2 {
20:00 andrers52 %matches{$p2}++;
20:00 andrers52 }
20:00 timotimo linguist has perl6 support now!
20:00 moritz s/now/no/
20:01 andrers52 that's it for now. I'm not sure this was the best place to show this.
20:01 timotimo unfortunately, Using Perl 6 hasn't been updated in a long time :(
20:01 andrers52 I would like to thank you all for your efforts and I hope I can make much more contributions!
20:01 timotimo sure :)
20:01 timotimo hang out on this channel to absorb knowledge, if you want to :P
20:02 moritz andrers52: table tennis played as "best of 5" or "best or 7" sets, so no draws
20:02 logie joined #perl6
20:03 andrers52 timotimo: ah! I see... Thanks!
20:05 * moritz slowly tries to morph the contents of the book into doc.perl6.org
20:06 timotimo i'm still waiting for the rakudo-js port to happen to make an interactive teaching "experience" with in-lined runnable example code ...
20:06 andrers52 moritz: thaks for pointing that out!
20:06 andrers52 thaks -> thanks
20:07 PerlJam moritz++ (Day 23)
20:09 FROGGS[mobile]2 timotimo: so github highlights P6 now??
20:17 beastd joined #perl6
20:19 lue timotimo: I don't know of the "linguist" you refer to :)
20:22 FROGGS[mobile]2 lue: that is a github repo
20:23 FROGGS joined #perl6
20:23 jnap joined #perl6
20:27 lue Is there anyone dying to do an R* release? 'Cos I'm about to start otherwise :)
20:28 xenoterracide joined #perl6
20:34 woolfy TimToady++ for lovely poem, thanks!
20:36 timotimo FROGGS[mobile]2: "it's coming"
20:37 FROGGS[mobile]2 awesome
20:40 lue timotimo: is there a way to force a particular coloration on github? Notably, none of the files in rakudo/rakudo/src/core will be correctly highlit.
20:44 jnap joined #perl6
20:44 timotimo it's going to happen.
20:46 lue timotimo: really? All the src/core files end in .pm, which looking at the merge is handled by P5, not P6.
20:47 timotimo isn't there more to the decision than file names?
20:47 lue I don't know, I'm just going off the commit itself :)
20:48 timotimo pygments has a "what is this language?" feature
20:48 timotimo and linguist uses pygments behind the scenes iirc?
20:51 betterworld joined #perl6
20:52 lue timotimo: we'll see soon, in any case
21:00 raiph joined #perl6
21:17 dayangkun joined #perl6
21:22 cognominal joined #perl6
21:30 lue ☃ R* RELEASE MODE ACTIVATED
21:30 lue ✔ ① Update & sanitize local star repo
21:33 lue ✔ ② Update tools/star/Makefile
21:34 Rotwang ccccc combo breaker!
21:34 timotimo Releaser Instinct?
21:34 lue ✘ ③ nqp-2013.12.1 not available for download
21:35 timotimo why would we need a .12.1?
21:35 lue because that's what the compiler release for Rakudo demands :)
21:35 moritz lue: let me fix that
21:35 timotimo ah :)
21:36 lue moritz: thanks
21:36 moritz seems I accidentally called it 2013.11.1 in nqp :(
21:37 timotimo whoops :)
21:37 timotimo did you even know it's christmas time at all?
21:37 lue moritz: would that also explain the rakudo-2013.11 in that dir?
21:37 lue (somehow?)
21:37 moritz lue: http://rakudo.org/download​s/nqp/nqp-2013.12.1.tar.gz ftfy
21:37 moritz lue: nope
21:38 moritz lue: that's either from something you did previously, or from forgetting to bump some versions
21:38 lue no, I was looking at the webpage directory listing
21:39 moritz no, it says 22-Nov-2013 as the time stamp
21:39 moritz so, not my fault :-)
21:39 moritz (at least not this month :-)
21:39 lue ? I did the end-of-october release last time.
21:39 lue "gzip: stdin: unexpected end of file" is what I get from the nqp tarball :/
21:40 lue oh wait, my fault I believe
21:40 lue yep, it was :)
21:40 moritz phew.
21:41 * moritz deletes the stray rakudo download in the nqp/ dir
21:41 lue somehow the downloader (wget I think...?) doesn't delete files that turned out to not exist in the source location :/
21:41 timotimo hmm, not terribly many exciting changes this month
21:42 timotimo i better get my act together for next month's release!
21:42 lue ✔ ③ tools/star/Makefile completed successfully
21:43 lue are there any new modules to distribute with R* this month?
21:44 moritz I don't think so
21:45 lue What I thought. I'm almost tempted to say that submodule additions/removals/etc. should happen during the month, not as part of the release process. But oh well.
21:45 moritz +1
21:45 lue ✔ ④ Add 0 submodules to R*
21:45 timotimo that's a good point.
21:47 Rotwang dont you have automated release process?
21:47 lue it's either that or some sort of PLS_ADD_THESE_MODULES_TO_NEXT_RS_KTHXBAI.txt file :)
21:47 Rotwang like continuous delivery and stuff
21:48 lue uuhhh, Perl6-MIME-Base64 just gave me a MERGE_MSG to fill out. o.o
21:48 timotimo someone must have changed the star submodule to a fork or something
21:48 * lue backs out and investigates
21:48 timotimo use gitk or git log --graph --abbrev-commit --all to figure out what's going on?
21:49 lue well, it just said "Merge made by the 'recursive' strategy." after I backed out, so...
21:50 * lue 'll run gitk after the submodule foreach finishes
21:50 rurban1 joined #perl6
21:52 timotimo gitk is good, aye
21:53 lue never used it before though. I see something weird going on at the top of the tree. I wonder if deleting the submodule and trying to get it clean would help...
21:54 timotimo hah
21:54 timotimo the most important bit is the green rectangles
21:54 timotimo and the one that has bold text in it
21:54 timotimo the rectangles are branches, the bold one is the currently checked out branch
21:55 lue ...all the rectangled [remotes/origin/...] things have the same weight, i.e. no bold
21:58 BenGoldberg joined #perl6
21:58 * lue just does the remove/reobtain thing
22:11 lue timotimo: I got back a pre-merge Perl6-MIME-Base64, and gitk is showing no bolded rectangles. I think it may be in a detached HEAD state :/
22:12 BenGoldberg Like the headless horseman?
22:12 lue yeah, detached HEAD. No clue why :/
22:13 lue oh, wow. A random sampling of a couple other submodules shows similar detached HEADs.
22:14 FROGGS that would explain why we had outdated modules in a R* a few months back, right?
22:15 lue maybe. The random sample was all(PSGI, Math-Model) for the record
22:16 lue Lemme see if adding a --rebase to the submodule's pull command helps...
22:17 timotimo oh, wait
22:17 * lue just realized he could've done  git submodule foreach git branch  to see the attached-ness of every submodule :)
22:17 timotimo the submodule system checks out a specific commit
22:17 timotimo so yeah, that would be a detached head for every submodule
22:18 lue wait, I don't think a rebase is what I wanted. (gitk will likely show me how badly I screwed up Base64's tree this time :P)
22:20 timotimo you probably just want to checkout a more recent commit?
22:20 lue yeah, I just pulled a commit futureward with that --rebase :/
22:20 timotimo otherwise you'd also have to push to the upstream repo
22:20 lue timotimo: the issue is that the given command to update the submodules in the release guide causes that merge commit, and I don't know of another way to update the submodules.
22:23 lue I'll try the command once more, maybe getting a clean Base64 fixes it somehow?
22:23 timotimo you want to git fetch and then git reset --hard to a given commit
22:25 timotimo i'm going to bed now
22:25 timotimo gnite and good luck! :)
22:25 FROGGS gnight timotimo
22:25 lue bah!
22:27 lue timotimo: :/ Probably would work, but I shouldn't have to hunt for specific SHA1s
22:29 timotimo you don't have to
22:29 timotimo git reset --hard origin/master
22:29 timotimo it's that easy :)
22:29 lue ah :)
22:30 lue moritz: am I doing or did I do something fundamentally wrong to land in this mess? just curious
22:30 timotimo no, you didn't
22:30 timotimo what was the exact command the guide told you to run?
22:31 hoelzro hi all
22:31 lue git submodule foreach git pull origin master
22:31 lue (RG here for reference: https://github.com/rakudo/star/blob/​master/tools/star/release-guide.pod)
22:31 hoelzro I'm on holiday, but I wanted to point this out: https://github.com/github/linguist/pull/858
22:31 hoelzro \o\
22:31 hoelzro /o/
22:31 hoelzro \o/
22:32 lue 🙌 (we already found out about it though :P)
22:33 * hoelzro goes back to holiday
22:33 lue timotimo: is there something wrong with that git pull that you can spot?
22:34 timotimo well, it's obvious why the error came to be
22:34 timotimo someone went and checkout'd a commit in the submodule that diverged from master
22:34 timotimo and git pull origin master would cause a merge, because it's not a fast-forward any more
22:35 lue That wasn't obvious from the gitk screen :) . Perhaps I didn't have enough verbosity enabled...
22:35 timotimo right; did it show something marked HEAD?
22:36 timotimo or a commit that was in boldface?
22:36 lue timotimo: as I said, nothing was bolded. Which lead me to suspect there was a detached HEAD.
22:36 timotimo right.
22:36 lue (neither before nor after a merge, to be more clear)
22:36 timotimo well, detached HEAD is the normal state for submodules after init + update.
22:37 timotimo i can see why it would be, from an implementor's perspective, but it's still not cool :P
22:38 lue timotimo: in any case, it appears I got the changes to MIME-Base64 without merge now, so you can go to bed :) ♞ timotimo o/
22:38 dayangkun joined #perl6
22:38 lue ✔ ⑤ update submodules
22:38 * lue &
23:10 dalek star: 7cd92c5 | lue++ | tools/star/Makefile:
23:10 dalek star: [RG 2..3] Update tools/star/Makefile for Rakudo 2013.12.
23:10 dalek star: review: https://github.com/rakudo/star/commit/7cd92c54cb
23:10 dalek star: 50329c9 | lue++ | modules/Perl6-MIME-Base64:
23:10 dalek star: [RG 5] Update Perl6-MIME-Base64 submodule.
23:10 dalek star: review: https://github.com/rakudo/star/commit/50329c9e57
23:10 dalek star: 5f02bb1 | lue++ | docs/announce/2013.12.md:
23:10 dalek star: [RG 6] 2013.12 release announcement.
23:10 dalek star:
23:10 dalek star: Pending review, of course :) .
23:10 dalek star: review: https://github.com/rakudo/star/commit/5f02bb1f5a
23:10 lue ✔ ⑥ Create 2013.12 release announcement
23:12 lizmat lue++
23:12 jlaire joined #perl6
23:13 lue Just skimmed the README, and I'm not sure I like how you (seemingly) can't install R* to /usr/local. But that's not anything to fuss over right now.
23:16 dalek star: 79fc1fe | lue++ | / (2 files):
23:16 dalek star: [RG 7] Update README and tools/build/Makefile.in
23:16 dalek star:
23:16 dalek star: Note to the January releaser: don't forget to update the copyright
23:16 dalek star: end-year in the README! :)
23:16 dalek star: review: https://github.com/rakudo/star/commit/79fc1fe548
23:16 lue ✔ ⑦ Update README and Makefile.in
23:16 lue ✔ ⑧ push any remaining changes
23:19 lue ✔ ⑨ create tarball
23:26 treehug88 joined #perl6
23:31 djanatyn joined #perl6
23:38 Tene joined #perl6
23:38 Tene joined #perl6
23:39 gfldex joined #perl6
23:48 Tene joined #perl6
23:49 djanatyn joined #perl6

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

Perl 6 | Reference Documentation | Rakudo