Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2012-10-28

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:10 bapa joined #perl6
00:15 aindilis joined #perl6
00:20 bapa joined #perl6
00:22 jlaire joined #perl6
00:32 mental joined #perl6
00:32 mental left #perl6
00:44 havenn joined #perl6
00:59 bro_grammer joined #perl6
01:09 [Coke] phenny: tell jnthn I bisected the segfault on build failure to https://github.com/perl6/nqp/issues/64
01:09 phenny [Coke]: I'll pass that on when jnthn is around.
01:09 jlaire joined #perl6
01:12 armitage81 joined #perl6
01:33 flightrecorder joined #perl6
01:42 benabik joined #perl6
02:04 stocks joined #perl6
02:31 flightrecorder joined #perl6
02:59 adu joined #perl6
03:18 orafu joined #perl6
03:36 skids .oO(Are &= and |= junctive assignment useful enough that they should not be simply caught as C-isms during syntax)
03:38 TimToady if you're really doing bit-oriented ops, chances are that the variable is declared int32 or some such anyway, which would rule out a junction
03:42 skids That sounds reasonable,
03:46 thou joined #perl6
04:12 _jaldhar joined #perl6
04:48 moritz \o
04:48 phenny moritz: 27 Oct 20:11Z <rindolf> tell moritz that's OK - I found juerd's E-mail address in a an old E-mail.
05:33 sorear o/
05:40 cognominal joined #perl6
06:11 sivoais joined #perl6
06:12 azawawi joined #perl6
06:12 azawawi hi #perl6
06:12 phenny azawawi: 27 Oct 08:22Z <moritz> tell azawawi I'll upgrade p6eval once 2012.10 is released
06:13 birdwindupbird joined #perl6
06:31 moritz r: sub f(|$a) { }
06:31 p6eval rakudo 9d50d6: OUTPUT«Obsolete use of | or \ with sigil on param $a␤»
06:31 moritz r: sub f(|$a) { }; say 'alive';
06:31 p6eval rakudo 9d50d6: OUTPUT«Obsolete use of | or \ with sigil on param $a␤alive␤»
06:33 dalek star: 25a969b | moritz++ | docs/announce/2012.10:
06:33 dalek star: update deprecations
06:33 dalek star:
06:33 dalek star: include those from rakudo 2012.10, and remove one that was carried out in .09
06:33 dalek star: review: https://github.com/rakudo/star/commit/25a969b2d3
06:45 infosophy joined #perl6
06:45 felher joined #perl6
06:45 Psyche^ joined #perl6
06:48 jrockway_ joined #perl6
06:48 sivoais joined #perl6
06:48 benabik joined #perl6
06:48 bapa joined #perl6
06:48 perigrin joined #perl6
06:48 spanner joined #perl6
06:48 rummik joined #perl6
06:48 rking joined #perl6
06:48 cibs joined #perl6
06:48 silug joined #perl6
06:48 wooden joined #perl6
06:48 REPLeffect joined #perl6
06:48 prammer joined #perl6
06:48 obra joined #perl6
06:48 krunen joined #perl6
06:48 larks joined #perl6
06:48 p6eval joined #perl6
06:48 pmichaud joined #perl6
06:48 hugme joined #perl6
06:48 sunnavy joined #perl6
06:48 [particle]1 joined #perl6
06:48 kst joined #perl6
06:48 bonsaikitten joined #perl6
06:48 Khisanth joined #perl6
06:48 rjbs joined #perl6
06:48 mst joined #perl6
06:48 Hor|zon joined #perl6
06:48 drbean joined #perl6
06:48 Grrrr joined #perl6
06:48 rurban joined #perl6
06:48 felipe joined #perl6
06:48 Yappocall_ joined #perl6
06:48 crazedpsyc joined #perl6
06:48 Woodi joined #perl6
06:48 buubot_backup joined #perl6
06:48 patspam_ joined #perl6
06:48 BooK joined #perl6
06:48 smash joined #perl6
06:48 shachaf joined #perl6
06:48 szbalint joined #perl6
06:48 quietfanatic joined #perl6
06:48 mikec_ joined #perl6
06:48 ashleydev joined #perl6
06:48 groky joined #perl6
07:03 daniel-s joined #perl6
07:12 dalek rakudo/nom: ccc4d74 | moritz++ | src/core/IO.pm:
07:12 dalek rakudo/nom: carry out IO::Path.dir deprecation
07:12 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/ccc4d74b32
07:34 cognominal joined #perl6
07:40 cognominal nr: my @a := < 1 2 3 >
07:42 cognominal rn: my @a := < 1 2 3 >
08:00 rindolf joined #perl6
08:29 mst joined #perl6
08:29 Khisanth joined #perl6
08:29 bonsaikitten joined #perl6
08:29 kst joined #perl6
08:29 pmichaud joined #perl6
08:29 p6eval joined #perl6
08:29 rummik joined #perl6
08:29 jrockway_ joined #perl6
08:29 bbkr joined #perl6
08:29 GlitchMr joined #perl6
08:29 ashleydev joined #perl6
08:29 sivoais joined #perl6
08:29 benabik joined #perl6
08:29 bapa joined #perl6
08:29 perigrin joined #perl6
08:29 spanner joined #perl6
08:29 rking joined #perl6
08:29 cibs joined #perl6
08:29 silug joined #perl6
08:29 wooden joined #perl6
08:29 REPLeffect joined #perl6
08:29 prammer joined #perl6
08:29 obra joined #perl6
08:29 krunen joined #perl6
08:29 larks joined #perl6
08:29 hugme joined #perl6
08:29 sunnavy joined #perl6
08:29 [particle]1 joined #perl6
08:29 rjbs joined #perl6
08:29 drbean joined #perl6
08:29 Grrrr joined #perl6
08:29 rurban joined #perl6
08:29 Yappocall_ joined #perl6
08:29 crazedpsyc joined #perl6
08:29 Woodi joined #perl6
08:29 patspam_ joined #perl6
08:29 mikec_ joined #perl6
08:29 groky joined #perl6
08:30 am0c joined #perl6
08:31 Hor|zon joined #perl6
08:31 buubot_backup joined #perl6
08:31 quietfanatic joined #perl6
08:31 szbalint joined #perl6
08:31 shachaf joined #perl6
08:31 smash joined #perl6
08:31 BooK joined #perl6
08:35 HarryS joined #perl6
08:37 SamuraiJack joined #perl6
08:41 HarryS joined #perl6
08:42 rindolf joined #perl6
08:46 sivoais joined #perl6
08:50 flightrecorder joined #perl6
09:06 daniel-s joined #perl6
09:06 araujo joined #perl6
09:08 araujo joined #perl6
09:13 kaare_ joined #perl6
09:13 eternaleye joined #perl6
09:13 jerome joined #perl6
09:13 aindilis joined #perl6
09:13 skids joined #perl6
09:13 pjcj joined #perl6
09:13 SmokeMachine joined #perl6
09:13 ranguard joined #perl6
09:14 lestrrat joined #perl6
09:14 Ulti joined #perl6
09:14 baest joined #perl6
09:14 tadzik joined #perl6
09:14 jfried joined #perl6
09:14 aloha joined #perl6
09:14 Tene joined #perl6
09:14 rhr joined #perl6
09:14 ruz joined #perl6
09:14 charsbar_____ joined #perl6
09:14 `patch` joined #perl6
09:17 araujo joined #perl6
09:17 araujo joined #perl6
09:22 domidumont joined #perl6
09:24 SamuraiJack_ joined #perl6
09:32 domidumont joined #perl6
09:35 HarryS joined #perl6
09:37 daniel-s joined #perl6
09:38 SamuraiJack_ joined #perl6
09:38 `patch` joined #perl6
09:38 charsbar_____ joined #perl6
09:38 ruz joined #perl6
09:38 rhr joined #perl6
09:38 Tene joined #perl6
09:38 aloha joined #perl6
09:38 jfried joined #perl6
09:38 tadzik joined #perl6
09:38 baest joined #perl6
09:38 Ulti joined #perl6
09:38 lestrrat joined #perl6
09:38 ranguard joined #perl6
09:38 SmokeMachine joined #perl6
09:38 pjcj joined #perl6
09:38 skids joined #perl6
09:38 aindilis joined #perl6
09:38 jerome joined #perl6
09:38 eternaleye joined #perl6
09:38 kaare_ joined #perl6
09:38 rindolf joined #perl6
09:38 BooK joined #perl6
09:38 smash joined #perl6
09:38 shachaf joined #perl6
09:38 szbalint joined #perl6
09:38 quietfanatic joined #perl6
09:38 buubot_backup joined #perl6
09:38 Hor|zon joined #perl6
09:38 mst joined #perl6
09:38 Khisanth joined #perl6
09:38 bonsaikitten joined #perl6
09:38 kst joined #perl6
09:38 pmichaud joined #perl6
09:38 p6eval joined #perl6
09:38 rummik joined #perl6
09:38 jrockway_ joined #perl6
09:38 bbkr joined #perl6
09:38 GlitchMr joined #perl6
09:38 ashleydev joined #perl6
09:38 benabik joined #perl6
09:38 bapa joined #perl6
09:38 perigrin joined #perl6
09:38 spanner joined #perl6
09:38 rking joined #perl6
09:38 cibs joined #perl6
09:38 silug joined #perl6
09:38 wooden joined #perl6
09:38 REPLeffect joined #perl6
09:38 prammer joined #perl6
09:38 obra joined #perl6
09:38 krunen joined #perl6
09:38 larks joined #perl6
09:38 hugme joined #perl6
09:38 sunnavy joined #perl6
09:38 [particle]1 joined #perl6
09:38 groky joined #perl6
09:38 mikec_ joined #perl6
09:38 patspam_ joined #perl6
09:38 Woodi joined #perl6
09:38 crazedpsyc joined #perl6
09:38 Yappocall_ joined #perl6
09:38 rurban joined #perl6
09:38 Grrrr joined #perl6
09:38 drbean joined #perl6
09:38 rjbs joined #perl6
09:38 flightrecorder joined #perl6
09:39 spider-mario joined #perl6
09:40 sunnavy joined #perl6
09:42 SamuraiJack_ joined #perl6
09:46 sunnavy joined #perl6
09:54 jrockway_ joined #perl6
09:54 rummik joined #perl6
09:54 p6eval joined #perl6
09:54 pmichaud joined #perl6
09:54 kst joined #perl6
09:54 bonsaikitten joined #perl6
09:54 Khisanth joined #perl6
09:54 mst joined #perl6
09:54 flightrecorder joined #perl6
09:56 Hor|zon joined #perl6
09:56 buubot_backup joined #perl6
09:56 quietfanatic joined #perl6
09:56 szbalint joined #perl6
09:56 shachaf joined #perl6
09:56 smash joined #perl6
09:56 BooK joined #perl6
10:19 SamuraiJack_ joined #perl6
10:24 jnthn morning
10:24 phenny jnthn: 01:09Z <[Coke]> tell jnthn I bisected the segfault on build failure to https://github.com/perl6/nqp/issues/64
10:28 SamuraiJack__ joined #perl6
10:29 mr007x joined #perl6
10:35 HarryS joined #perl6
10:44 masak good antenoon, #perl6
10:45 jnthn o/ masak
10:45 masak hehe. the backlog on feather's irssi contains two repetitions of the interval 02:00 -- 03:00 :P
10:45 tadzik ha :)
10:46 jnthn The daylight. It has been saved.
10:46 masak "where were you at 02:45 last night?" -- "which 02:45 do you mean, officer?"
10:46 tadzik ahaha
10:47 tadzik you can write a crime story based on that
10:47 tadzik "Time is difficult"
10:48 masak similarly, there's a whole hour in the end of March which *does not exist*.
10:54 flightrecorder joined #perl6
10:56 PacoAir joined #perl6
10:56 MayDaniel joined #perl6
11:05 Celelibi joined #perl6
11:05 flightrecorder joined #perl6
11:06 rindolf joined #perl6
11:12 flightrecorder joined #perl6
11:13 dalek rakudo/Q: 6fcac2e | jnthn++ | src/Perl6/Actions.pm:
11:13 dalek rakudo/Q: Add postprocessor invocation.
11:13 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/6fcac2e902
11:13 dalek rakudo/Q: f0291ac | jnthn++ | src/Perl6/Grammar.pm:
11:13 dalek rakudo/Q: Switch comments from quote_EXPR to quibble.
11:13 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/f0291acb01
11:14 SamuraiJack joined #perl6
11:30 flightrecorder joined #perl6
11:35 HarryS joined #perl6
11:41 flightrecorder joined #perl6
11:46 pmurias joined #perl6
11:46 flightrecorder joined #perl6
11:47 pmurias jnthn: the values in a .symtable are shared for all instances of the lexpad?
11:54 SamuraiJack_ joined #perl6
11:54 SamuraiJack_ joined #perl6
11:57 flightrecorder joined #perl6
12:02 jnthn pmurias: Things in symtable with a value will, I think always, have had things arranged so that the symbol is in the static lexpad (and thus each invocation of a frame gets that value).
12:07 birdwindupbird joined #perl6
12:09 felipe joined #perl6
12:12 dalek rakudo/Q: 1d1d0bf | jnthn++ | src/Perl6/ (2 files):
12:12 dalek rakudo/Q: Replace qx and qqx special forms with x quote_mod.
12:12 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/1d1d0bf71a
12:12 dalek rakudo/Q: 1a1ee94 | jnthn++ | src/Perl6/ (2 files):
12:12 dalek rakudo/Q: Implement :w, and eliminate special-cased qw.
12:12 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/1a1ee94c27
12:22 pmurias jnthn: so serialising them to js, and then just looking them up seems a sane approach?
12:26 jnthn pmurias: The way NQP does it is when the runtime pad is created, it gets all of the things from the static lexpad copied into it.
12:26 flightrecorder joined #perl6
12:29 pmurias so it's the same way as I'm planning to do
12:29 pmurias jnthn: would looking them up directly from the static lexpad make a difference?
12:34 jnthn pmurias: I think not in NQP. Rakudo does one extra bit of magic here though; it can be set to clone things as it copies. Thus a scalar container installed in the static lexpad is fresh per invocation.
12:35 HarryS joined #perl6
12:43 flightrecorder joined #perl6
12:52 jnthn bah, star Makefile doesn't work out too well....
12:52 jnthn tar: unrecognized option `--xform'
12:53 hash_table joined #perl6
12:53 rindolf joined #perl6
13:00 flightrecorder joined #perl6
13:04 Psyche^ joined #perl6
13:11 flightrecorder joined #perl6
13:13 fgomez joined #perl6
13:24 mucker joined #perl6
13:25 nwc10 jnthn: sorry if I'm pre-empting a blog post explanation, or missed this earler, but what's the benefit of Q? More grammar shared with std?
13:27 jnthn nwc10: STD convergence (including getting a bunch of quoting things right that we currently get wrong), supporting quote adverbs (mostly easy to implement once these changes are done), and having things factored in a way that makes doing heredocs approachable.
13:29 nwc10 Rakudo doesn't have heredocs yet? So Perl 3 is better than Perl 6, for some things? :-)
13:29 jnthn For heredocs, sure :)
13:30 * jnthn personally doesn't miss heredocs terribly, but plenty of folks seem to really want them
13:32 SamuraiJack__ joined #perl6
13:35 HarryS joined #perl6
13:36 nwc10 it's a slippery slope - give them herdocs, and then they'll be asking for formats
13:36 nwc10 and then typeglobs :-)
13:37 jnthn Formats aren't my problem, because they're not in the core language, but pushed out into module space. :D
13:41 rindolf joined #perl6
13:42 flightrecorder joined #perl6
13:47 cognominal rn: for gather for 1..2 { say "take $_"; take $_   } { say "gathered $_" }
13:48 p6eval rakudo ccc4d7: OUTPUT«take 1␤take 2␤gathered 1␤gathered 2␤»
13:48 p6eval ..niecza v22-14-g136ddcf: OUTPUT«take 1␤gathered 1␤take 2␤gathered 2␤»
13:52 adu joined #perl6
13:55 flightrecorder joined #perl6
14:09 Chillance joined #perl6
14:14 flightrecorder joined #perl6
14:24 dbr joined #perl6
14:33 SamuraiJack joined #perl6
14:34 am0c joined #perl6
14:35 HarryS joined #perl6
14:41 dalek rakudo/Q: d530f01 | jnthn++ | src/Perl6/ (3 files):
14:41 dalek rakudo/Q: Switch quote words over.
14:41 dalek rakudo/Q:
14:41 dalek rakudo/Q: A little fiddly as this affected colonpair in name handling. Also had
14:41 dalek rakudo/Q: to move shell words over, though this isn't completely done yet, so a
14:41 dalek rakudo/Q: few tests fail.
14:41 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/d530f01cfa
14:41 dalek rakudo/Q: 2f83583 | jnthn++ | src/Perl6/ (2 files):
14:41 dalek rakudo/Q: Move shell world handling over.
14:41 dalek rakudo/Q:
14:41 dalek rakudo/Q: This unbusts the shell words spectests broken by the previous commit.
14:41 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/2f83583925
14:41 flightrecorder joined #perl6
14:41 jnthn r: say <>.WHAT
14:41 p6eval rakudo ccc4d7: OUTPUT«===SORRY!===␤Unsupported use of <>;  in Perl 6 please use lines() to read input, ('') to represent a null string or () to represent an empty list␤at /tmp/WSq1zspgTT:1␤»
14:42 jnthn r: (class { method postcircumfix:<{ }>(\a) { say a.WHAT } })<x>
14:43 p6eval rakudo ccc4d7: OUTPUT«Str()␤»
14:43 jnthn r: (class { method postcircumfix:<{ }>(\a) { say a.WHAT } })<x y>
14:43 jnthn r: (class { method postcircumfix:<{ }>(\a) { say a.WHAT } })<>
14:43 p6eval rakudo ccc4d7: OUTPUT«Parcel()␤»
14:43 p6eval rakudo ccc4d7: OUTPUT«Not enough positional parameters passed; got 1 but expected 2␤  in method postcircumfix:<{ }> at /tmp/LAv8sX4T5t:1␤  in block  at /tmp/LAv8sX4T5t:1␤␤»
14:44 jnthn r: say qw//.WHAT
14:44 p6eval rakudo ccc4d7: OUTPUT«Parcel()␤»
14:46 flightrecorder joined #perl6
14:55 jnthn away for a bit
14:55 birdwind1pbird joined #perl6
14:55 mucker joined #perl6
14:57 SamuraiJack joined #perl6
14:58 bro_grammer joined #perl6
15:09 NamelessTee joined #perl6
15:13 bowtie joined #perl6
15:13 bowtie is there an equivalent of the llama for perl6, please
15:15 geekosaur https://github.com/perl6/book but it's still in progress
15:15 bowtie geekosaur, thanks
15:20 mtk joined #perl6
15:31 masak bowtie: in general, check out http://perl6.org/documentation/
15:31 masak the book is nice but is considered an abandoned project at this point.
15:33 bowtie masak, thanks for that
15:33 masak you're welcome. good luck with your Perl 6 learning. we're here for any questions you have.
15:35 dalek rakudo/Q: 7226b0a | jnthn++ | src/Perl6/ (2 files):
15:35 dalek rakudo/Q: Switch postcircumfix angles over.
15:35 dalek rakudo/Q:
15:35 dalek rakudo/Q: Following STD more closely here seems to get us passing a few TODO'd
15:35 dalek rakudo/Q: tests also.
15:35 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/7226b0ac86
15:35 jaldhar joined #perl6
15:35 HarryS joined #perl6
15:38 masak TimToady: STD.pm6 doesn't use 'let' or 'temp' anywhere. are there places where it could but doesn't?
15:47 hash_table joined #perl6
15:48 SamuraiJack joined #perl6
15:50 dalek rakudo/Q: 28d4bf1 | jnthn++ | src/Perl6/Actions.pm:
15:50 dalek rakudo/Q: Delete dead code.
15:50 dalek rakudo/Q: review: https://github.com/rakudo/rakudo/commit/28d4bf1ad1
15:51 jnthn Q is looking fairly good. Only two mentions of quote_EXPR (calls to the old quote handling) remain in Grammar.pm.
15:51 masak nice.
15:51 jnthn Has been more straightforward than I'd feared.
15:51 masak why those two, ooc?
15:52 jnthn Just didn't get to them yet. One is mostly LHF.
15:52 jnthn The other one is the s/// one.
15:52 jnthn And I want to look more closely at what STD does there.
15:52 masak *nod*
15:54 jnthn Also want to do some tidying up once they're done, and deal with quote adverbs.
15:55 masak r: macro twice($code) { quasi { {{{$code}}}; {{{$code}}} } }; my $counter = 0; twice $counter++; say $counter
15:56 masak p6eval?
15:56 jnthn p6eval is hazing a slow Sunday
15:56 p6eval rakudo ccc4d7: OUTPUT«0␤»
15:56 masak should be 2.
15:57 jnthn o rly?
15:57 jnthn :)
15:57 masak :)
15:57 flussence "response hazy, try again later"
15:57 masak goal: fix this.
15:58 masak the '{{{$code}}}' things in the one-liner above are replaced, at macro apply time, with the macro argument '$counter++'.
15:59 masak however, they currently don't get the right environment. they get something static instead of the runtime lexpad that contains the $counter we want to ++.
16:00 jnthn bah
16:00 masak current consensus is that the solution that needs to be applied already exists in the Rakudo codebase: it's what's being done to make roles get the right environment, even if they are applied "early".
16:00 jnthn So the box I was gonna do the * release on at first has...a versin of tar that doesn't support something the Makefile needs.
16:00 jnthn So I thought...fine...I set up an Ubuntu virtual box...they have the latest shit
16:01 jnthn Try to log into it and...compiz crashes, whatever that is. :/
16:02 masak jnthn: "Compiz is a 3D desktop for your computer."
16:02 xinming_ joined #perl6
16:03 jnthn 'cus that's just what I want!
16:03 masak because to be really productive, your desktop needs to have an axis that intersects with your nose.
16:03 masak jnthn: srsly, stick with Debian.
16:03 masak it's like Ubuntu, except that it works.
16:04 jnthn bah, screw this, now the thing hangs on startup while doing some network config
16:05 jnthn OK. * release isn't happening today.
16:05 jnthn (Unless somebody else cuts it.)
16:06 jnthn linux--
16:06 flussence what's the thing tar doesn't support?
16:06 jnthn flussence: -xfrom, whatever that is.
16:07 masak uh?
16:07 masak I have an -x flag, but no -xfrom.
16:07 masak oh, -xform!
16:07 masak also known as --transform
16:07 jnthn uh, xform
16:08 masak `use sed replace EXPRESSION to transform file names`
16:08 flussence erm
16:08 jnthn https://github.com/rakudo/star/bl​ob/master/tools/star/Makefile#L30
16:08 flussence my tar doesn't have that either
16:08 jnthn pmichaud++ must just have tar from the future or something... :)
16:08 masak I do, too, then.
16:08 flussence it's got --transform though...
16:09 masak it's GNU tar, fwiw.
16:09 masak tar (GNU tar) 1.26
16:09 xinming joined #perl6
16:09 flussence "tar (GNU tar) 1.26"
16:10 jnthn "tar (GNU tar) 1.20" on the box I used to do the * releases on.
16:10 jnthn masak: so, uh, if I want to upgrade my tar program on a Debian box...? :)
16:10 flussence oh wait... it has it in --help but not in the manpage...
16:11 geekosaur manpages are typically crap for gnuware
16:11 geekosaur 'cause the only legitimate documentation format in existence is texinfo
16:13 tadzik 'evening
16:13 masak jnthn: apt-get upgrade <package> ?
16:13 masak tadzik! \o/
16:13 tadzik \o/
16:14 flussence geekosaur: yeah, but Debian usually does a good job of fixing them so other people can actually use them :)
16:14 geekosaur masak: only if you're willing to switch to testing or unstable
16:14 geekosaur (the latter of which is called "sid" for a reason...)
16:14 masak oh, I see.
16:15 cognominal joined #perl6
16:15 moritz \o
16:16 tadzik sid, like the boy who broke toys
16:16 jnthn masak: hm, and apt-get thinks I already have unmet dependencies and offers to upgrade 100 packages for me to help. No thanks...
16:16 jnthn hi moritz
16:17 moritz tadzik: speaking of broken toys, did you already review my panda branch?
16:18 moritz (I hope I didn't break that toy in the branch=
16:18 moritz s/\=/)/
16:18 tadzik nah, was partying the entire day :) I'll have tuits in handy this evening, I have a few things to look atk :)
16:18 tadzik sorry for this taking so long
16:22 flussence jnthn: I'm no debian expert, but if you run aptitude and pick "Cancel pending actions" from the F10 menu it should stop trying to upgrade everything for the time being
16:35 HarryS joined #perl6
16:40 havenn joined #perl6
16:45 TimToady masak: STD uses temp, but only on dynamic variables
16:46 masak oh, I missed those.
16:47 masak I thought the common use case for temp was on dynamic variables.
16:48 TimToady well, temp was supposed to replace local, but with copy-down semantics when you don't initialize it
16:48 TimToady we just borrowed the semantics of temp %*FOO initializing %*FOO to whatever it was outside contextually
16:49 TimToady and left beind the normal localization of a variable by copying its value to a save stack
16:50 TimToady it's true that STD doesn't temporize any normal variables, but that's mainly because we emulate contextuals with local anyway
16:50 masak *nod*
16:54 Pleiades` joined #perl6
17:00 leont joined #perl6
17:09 cognominal_ joined #perl6
17:30 SamuraiJack_ joined #perl6
17:34 HarryS joined #perl6
17:47 jaffa4 joined #perl6
17:49 jaffa4 r: my $progline; my $pos_progline = 0; $progline ~~  m:c($pos_progline)!\N*?\*\/\s*!;
17:49 p6eval rakudo ccc4d7: OUTPUT«===SORRY!===␤Confused␤at /tmp/MBFupSA1N7:1␤»
17:50 jaffa4 std: my $progline; my $pos_progline = 0; $progline ~~  m:c($pos_progline)!\N*?\*\/\s*!;
17:50 p6eval std edd7715: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Regex missing terminator (or semicolon must be quoted?) at /tmp/Fco1T_aE6_ line 1 (EOF):â�¤------> [32mine ~~  m:c($pos_progline)!\N*?\*\/\s*​!;[33mâ��[31m<EOL>[0mâ�¤Parse failedâ�¤FAILED 00:00 45mâ�¤Â»
17:51 jaffa4 std: my $progline; my $pos_progline = 0; $progline ~~  m:c($pos_progline)x\N*?\*\/\s*x;
17:51 p6eval std edd7715: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Alphanumeric character is not allowed as delimiter at /tmp/QDnfLcbKjL line 1:â�¤------> [32mne = 0; $progline ~~  m:c($pos_progline)[33mâ��[31mx\N*?\*\/\s*x;[0mâ�¤    expecting any of:â�¤      desigilnameâ�¤    statement modifier loopâ�¤
17:51 p6eval ..twigil␤Parse f…
17:51 masak std: my $progline; my $pos_progline = 0; $progline ~~  m :c($pos_progline)!\N*?\*\/\s*!;
17:51 p6eval std edd7715: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Regex missing terminator (or semicolon must be quoted?) at /tmp/g7y9KClhar line 1 (EOF):â�¤------> [32mne ~~  m :c($pos_progline)!\N*?\*\/\s*​!;[33mâ��[31m<EOL>[0mâ�¤Parse failedâ�¤FAILED 00:00 45mâ�¤Â»
17:52 jaffa4 it does not like !
17:52 jaffa4 std: my $progline; my $pos_progline = 0; $progline ~~  m:c($pos_progline)/\N*?\*\/\s*/;
17:52 p6eval std edd7715: OUTPUT«ok 00:00 45m␤»
17:57 adu joined #perl6
17:57 nyuszika7h joined #perl6
17:59 jnthn std: 'abc' ~~ m!foo!;
17:59 p6eval std edd7715: OUTPUT«ok 00:00 43m␤»
17:59 jnthn std: 'abc' ~~ m:c(42)!foo!;
17:59 p6eval std edd7715: OUTPUT«ok 00:00 44m␤»
17:59 jnthn std: 'abc' ~~ m :c(42)!foo!;
17:59 p6eval std edd7715: OUTPUT«ok 00:00 44m␤»
17:59 adu hi jnthn
18:00 jnthn o/ adu
18:00 jnthn jaffa4: I need to keep an eye on my nom cooking, but it doesn't seem to be the !
18:01 adu anyone here in the US?
18:01 [Coke] yes.
18:02 adu everyone's freaking out about the storms in the northwest, and southeast
18:02 * diakopter oblivious
18:02 adu I stocked up on Chai :)
18:03 adu hopefully we won't loose power, so I can do some hacking
18:03 armitage81 joined #perl6
18:05 armitage81 joined #perl6
18:06 MayDaniel_ joined #perl6
18:06 masak is "loose power" when the power hose jumps free and starts thrashing around on the lawn?
18:08 flightrecorder joined #perl6
18:12 adu masak: hahaha, I meant "lose"
18:13 masak :P
18:16 bro_grammer joined #perl6
18:20 armitage81 joined #perl6
18:21 havenn joined #perl6
18:22 pmurias joined #perl6
18:22 pmurias jnthn: nqp::istype doesn't work on metaobjects?
18:23 armitage81 joined #perl6
18:32 flightrecorder joined #perl6
18:34 HarryS joined #perl6
18:36 fgomez joined #perl6
18:39 jnthn pmurias: Meta-objects are just objects, so it should work
18:39 jnthn r: say Int.HOW ~~ Metamodel::ClassHOW # for example
18:39 p6eval rakudo ccc4d7: OUTPUT«True␤»
18:40 jnthn r: say nqp::p6box_i(nqp::istype(Int.HOW, Metamodel::ClassHOW))
18:40 p6eval rakudo ccc4d7: OUTPUT«1␤»
18:40 jnthn r: say nqp::p6box_i(nqp::istype(Int.HOW, Metamodel::GrammarHOW))
18:40 p6eval rakudo ccc4d7: OUTPUT«0␤»
18:46 kijanka joined #perl6
18:47 masak r: Int.HOW ~~ Str.HOW
18:47 p6eval rakudo ccc4d7:  ( no output )
18:47 masak r: say Int.HOW ~~ Str.HOW
18:47 p6eval rakudo ccc4d7: OUTPUT«False␤»
18:47 masak r: say Int.HOW.HOT ~~ Str.HOW.HOT
18:47 p6eval rakudo ccc4d7: OUTPUT«No such method 'HOT' for invocant of type 'Perl6::Metamodel::ClassHOW'␤  in block  at /tmp/V5Wm7gFP4U:1␤␤»
18:48 masak er.
18:48 jnthn HOT?
18:48 masak r: say Int.HOW.HOW ~~ Str.HOW.HOW
18:48 p6eval rakudo ccc4d7: OUTPUT«No such method 'ACCEPTS' for invocant of type 'NQPClassHOW'␤  in block  at /tmp/mgZ44krZSV:1␤␤»
18:48 masak jnthn: Freudian slip, apparently :)
18:48 jnthn Congrats, you went two levels up and left the Perl 6 type system :P
18:48 maotm joined #perl6
18:48 masak jnthn: the keys are right next to each other.
18:49 jnthn :P
18:49 moritz r: nqp::say(nqp::istype(Int.HOW.HOW, Str.HOW.HOW)
18:49 p6eval rakudo ccc4d7: OUTPUT«===SORRY!===␤Unable to parse expression in argument list; couldn't find final ')' at line 2, near ""␤»
18:49 moritz r: nqp::say(nqp::istype(Int.HOW.HOW, Str.HOW.HOW))
18:49 p6eval rakudo ccc4d7: OUTPUT«0␤»
18:49 moritz r: say Int.HOW.HOW
18:49 diakopter r: print .HOW.HOW.HOW
18:49 p6eval rakudo ccc4d7: OUTPUT«No such method 'gist' for invocant of type 'NQPClassHOW'␤  in sub say at src/gen/CORE.setting:7304␤  in block  at /tmp/PTWaNFl0Fg:1␤␤»
18:49 p6eval rakudo ccc4d7: OUTPUT«No type check cache and no type_check method in meta-object␤  in method print at src/gen/CORE.setting:7482␤  in sub print at src/gen/CORE.setting:7298␤  in block  at /tmp/BFJ7IbqKUj:1␤␤»
18:49 diakopter I win
18:49 moritz r: say Str.HOW.HOW
18:49 p6eval rakudo ccc4d7: OUTPUT«No such method 'gist' for invocant of type 'NQPClassHOW'␤  in sub say at src/gen/CORE.setting:7304␤  in block  at /tmp/5GMuuiMAIs:1␤␤»
18:50 diakopter jnthn: 6model error ^^
18:50 jnthn diakopter: It's probably telling the truth... :)
18:50 diakopter yeah
18:50 jnthn diakopter: But I'm surprised we get it...
18:50 moritz diakopter: not 6model error, rather metacicularity error, I think
18:51 diakopter "always try print when say will do"
18:52 flightrecorder joined #perl6
18:52 jnthn diakopter: No, you did one more .HOW :)
18:53 diakopter how now brown cow
18:54 masak did I ever list this as an autopun? http://bash.org/?3936
18:54 moritz jnthn: are you aware of any Rakudo LHFs I might attack tonight?
18:55 jnthn moritz: hered...<duck>
18:55 masak hereducks?
18:55 moritz jnthn: here, have a document :-)
18:55 jnthn moritz: If you want to help with the quote branch, quote adverbs should be very do-able now :)
18:55 jnthn (I did much of the things already)
18:55 jnthn moritz: But I'm happy to do that also.
18:56 jnthn moritz: I was looking at the features page earlier and wondered why we miss andthen and orelse
18:56 moritz jnthn: because of the exception-y bits
18:57 moritz currently the are synonyms for || (or was it //?) and &&
18:57 moritz but IMHO they are supposed to do a bit more
18:57 jnthn Yes, looking at S03 at the moment
18:57 masak yes, they do more.
18:57 masak they contextualize on stuff.
18:58 jnthn I can't see anything fundemental that we're missing, fwiw
18:58 jnthn I guess the trick is to thunk anything that's not already a block
18:58 jnthn So for: test1() orelse -> $! { test2() }
18:59 jnthn Thunk the left argument, then pass them along to an infix:<orelse> that goes through its arguments, calls them in order until one works out, and uses .count to know whether to pass the exception, or so.
19:00 moritz r: say 1 andthen 2
19:00 p6eval rakudo ccc4d7: OUTPUT«===SORRY!===␤Confused␤at /tmp/abFHh8m4TZ:1␤»
19:01 jnthn r: say 1 orelse 2
19:01 p6eval rakudo ccc4d7: OUTPUT«1␤»
19:02 moritz multi infix:<orelse>(Mu \a, Mu \b)    { a // b }
19:02 jnthn moritz: STD has it as list associative.
19:02 moritz r: say 1 orelse say 42
19:02 p6eval rakudo ccc4d7: OUTPUT«1␤»
19:03 moritz I don't see how there the thunking happens
19:03 jnthn moritz: Which means it really can be done the loopy way I suggested :)
19:03 jnthn moritz: You'd have to thunk it in Actions.
19:03 jnthn lemme find an example...
19:03 moritz jnthn: but my example above shows that it already thunks
19:03 moritz r: say 1 orelse say 42
19:03 p6eval rakudo ccc4d7: OUTPUT«1␤»
19:03 moritz no 42
19:03 moritz so it thunks
19:04 moritz but it's not even mentioned in Actions.pm
19:04 jnthn moritz: Oh
19:04 moritz oh
19:04 jnthn Becuase || is special
19:04 moritz :pasttype<defor>
19:04 jnthn Yeah
19:04 jnthn So I'm not sure if it ever calls the thing in the setting.
19:05 moritz ah, it's probably only there for reduction meta ops
19:05 jnthn Yeah, I think so
19:06 jnthn moritz: xx_op shows you how xx ends up thunked.
19:07 jnthn well, one side of it
19:07 moritz block_closure(make_thunk_ref($lhs, $/)),
19:07 jnthn *nod*
19:08 jnthn Apart from it's list associative (or should be) so you'd not end up with an lhs and rhs, but rather loop over the things.
19:08 jnthn Also things that are already blocks needn't be thunked
19:14 flightrecorder joined #perl6
19:16 moritz how do I check if a QAST node is a Perl 6 block?
19:16 moritz with .returns?
19:17 jnthn moritz: No, it will have a <past_block> set on it
19:18 jnthn if $ast<past_block> { ... }
19:18 moritz jnthn: takk
19:19 birdwindupbird joined #perl6
19:24 * masak .oO( it's as if Norwegians get Swedish spelling almost right... ) :P
19:25 jnthn .oO( but why mention the roof? )
19:29 moritz r: say  (-> $a, $b?).arity
19:29 p6eval rakudo ccc4d7: OUTPUT«===SORRY!===␤Missing block␤at /tmp/LQyV_JLPQo:1␤»
19:29 moritz r: say  (-> $a, $b? {}).arity
19:29 p6eval rakudo ccc4d7: OUTPUT«1␤»
19:30 havenn joined #perl6
19:31 sorear o/
19:32 jnthn o/ sorear
19:34 HarryS joined #perl6
19:38 jaldhar joined #perl6
19:47 moritz r: sub f($x) { say $x }; f |2
19:47 p6eval rakudo ccc4d7: OUTPUT«2␤»
19:47 NamelessTee joined #perl6
19:52 flightrecorder joined #perl6
20:01 moritz ack -l andthen t/spec/|wc -l
20:01 moritz 0
20:01 moritz :(
20:09 kurahaupo joined #perl6
20:09 * moritz catches himself adding a trailing 1; to a Perl 6 file
20:09 tadzik better safe than sorry :)
20:10 flightrecorder joined #perl6
20:10 moritz at work we have each function in a separate file, and a magic Loader.pm that adds package declarations and sorta-lazily loads them. That loader needs trailing 1;s
20:11 tadzik moritz: did you have a chance to test your branch on windows?
20:11 tadzik panda/custom-lib, that is
20:11 moritz tadzik: no
20:11 tadzik moritz: I must say I don't quite get https://github.com/tadzik/panda/c​ompare/master...custom-lib#L2R10 :)
20:12 tadzik oh, $prefix
20:12 tadzik I read that as 'my $prefix' for some reason, nevermind me
20:13 moritz fwiw the branch works locally
20:13 moritz though I guess it doesn't handle all corner cases directly
20:14 tadzik yeah, I'm just double-allergic to touching bootstrap.pl after it finally started working on windowses :)
20:14 tadzik I'm testing it locally now, it looks ok by looking at it
20:14 moritz like if there's a non-writable  panda dir, it'll simply bootstrap into another one
20:14 moritz not sure if that's the correct thing to do, or if it should die instead
20:15 moritz phenny: ask FROGGS if we he could please test the panda/custom-lib branch on windows (requires a pretty recent rakudo, for example the 2012.10 release)
20:15 phenny moritz: I'll pass that on when FROGGS is around.
20:16 bruges_ joined #perl6
20:16 tadzik seen FROGGS?
20:16 aloha FROGGS was last seen in #perl6 2 days 3 hours ago joining the channel.
20:17 tadzik moritz: when do we plan the star release?
20:17 jnthn tadzik: I tried to make it today and failed :/
20:17 tadzik jnthn: star release? Panda? Panda/custom-lib?
20:17 jnthn tadzik: star release.
20:18 armitage81 hi
20:18 tadzik hello armitage81
20:18 armitage81 i have a question
20:18 armitage81 about perl5
20:18 tadzik jnthn: could you test the last one?
20:18 armitage81 if you can help me
20:18 tadzik armitage81: perl5 is better asked at #perl probably
20:18 tadzik this channel is dedicated to Perl 6
20:18 armitage81 nobody is answer there
20:19 tadzik I'm there
20:19 tadzik they may react better to questions than to "hi"s though :)
20:22 pmurias has anyone looked into the results for Rakudo::Star on cpantesters?
20:23 pmurias looking at the UNKNOWN results there a build failures
20:27 moritz so far I've seen "permission denied" while installing, and a segfault during building CORE
20:27 flightrecorder joined #perl6
20:29 pmurias s/a/are
20:29 pmurias moritz: the first one in a wierd linker error
20:30 pmurias http://www.cpantesters.org/cpan/report​/033688ea-00ec-11e2-bdcc-373e3b6b8117
20:31 pmurias the second a wierd header error: http://www.cpantesters.org/cpan/report​/1a822510-00e0-11e2-8d3a-af090e115ead
20:31 pmurias but that seems something more for #parrot
20:34 HarryS joined #perl6
20:41 pmurias but if somebody managed to build Rakudo::Star on all those machine we could likely make cpan testers test perl6 modules
20:42 flightrecorder joined #perl6
20:43 dalek rakudo/nom: c82a6d5 | moritz++ | / (4 files):
20:43 dalek rakudo/nom: implement infix:<andthen>
20:43 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/c82a6d5436
20:44 moritz thats as a nice LHF, but I was so unconcentrated that I needed many, many recompile cycles, which took up all of the time
20:45 moritz (even though I implemented the actual operator in userspace first; you can't believe how many typos and thinkos I can make in the small piece of code in Actions.pm)
20:46 jnthn moritz++
20:47 jnthn moritz: while ($i < $e) { # don't need no parens ;-)
20:48 jnthn moritz: Looks like the sub andthen can become a sub cascade_op that takes 'andthen' or 'orelse' as a parameter too, once orelse is built in a similar way :)
20:52 cognominal__ joined #perl6
21:00 fgomez joined #perl6
21:00 flightrecorder joined #perl6
21:06 flightrecorder joined #perl6
21:18 _jaldhar joined #perl6
21:23 flightrecorder joined #perl6
21:30 masak moritz++ # andthen
21:31 flussence it makes slightly less sense to me than a monad :(
21:34 HarryS joined #perl6
21:35 masak flussence: the comparison is apt, though. the do notation does (structurally) something very similar to what andthen does.
21:35 masak the do notation in Haskell, I mean.
21:36 pmurias joined #perl6
21:38 flightrecorder joined #perl6
21:47 flightrecorder joined #perl6
21:56 flightrecorder joined #perl6
22:03 plobsing joined #perl6
22:08 whiteknight joined #perl6
22:11 sivoais joined #perl6
22:12 flightrecorder joined #perl6
22:19 kijanka left #perl6
22:23 flightrecorder joined #perl6
22:32 fgomez joined #perl6
22:34 HarryS joined #perl6
22:53 flightrecorder joined #perl6
23:00 flightrecorder joined #perl6
23:02 armitage81 joined #perl6
23:05 cognominal joined #perl6
23:08 flightrecorder joined #perl6
23:12 thou joined #perl6
23:13 flightrecorder joined #perl6
23:22 flightrecorder joined #perl6
23:24 adu joined #perl6
23:32 cognominal joined #perl6
23:34 HarryS joined #perl6
23:34 daniel-s joined #perl6
23:38 flightrecorder joined #perl6
23:41 cognominal joined #perl6
23:47 Rix joined #perl6
23:54 [Coke] anyone have any suggestions on my nqp segfault?
23:55 [Coke] or is there more data I can provide/
23:55 [Coke] ?
23:57 flightrecorder joined #perl6

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

Perl 6 | Reference Documentation | Rakudo