Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2012-11-10

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:04 Gothmog_ joined #perl6
00:13 tokuhiro_ joined #perl6
00:22 circlepuller joined #perl6
00:30 * flussence has only just now realised that starring a repo on github doesn't add its commits to the front page feed. That's annoying.
00:37 leont joined #perl6
00:43 wamba joined #perl6
00:58 skids joined #perl6
00:59 benabik joined #perl6
01:12 bevan joined #perl6
01:29 benabik_ joined #perl6
01:30 colomon joined #perl6
01:33 gongyiliao joined #perl6
01:48 [Coke] any haskell folks about that can help me figure out Pugs.hs's latest breakage?
01:48 * geekosaur semi haskellish but not in a good position to try to build stuff
01:49 geekosaur hm
01:49 geekosaur see if I can get the external drive with most of the dev stuff on it working
01:51 geekosaur hrm, right, hadn't upgraded HP to latest yet.  still don't know what;s involved there (and may become very unhappy if things go wrong, as I'm running this irc session under xmonad...)
01:55 [Coke] I am trying "sudo apt-get upgrade ghc" on feather.
02:01 tokuhiro_ joined #perl6
02:03 [Coke] it's asking me to trust some certs. Any suggestions? Trust any, none all?
02:05 geekosaur yep, I get to reinstall stuff, sigh
02:16 geekosaur the yaks are hairy...
02:29 benabik joined #perl6
02:30 cognominal joined #perl6
02:49 fgomez joined #perl6
02:50 cognominal_ joined #perl6
02:55 geekosaur hm, wonder how I had ghc-core installed before, pcre-light causes it to hit the iconv problem head on
02:59 [Coke] I have to think I upgraded too much stuff here accidentally on feather.
03:00 [Coke] ... and not ghc at all. WTF.
03:10 jaldhar_ joined #perl6
03:12 geekosaur so where am I pulling pugs from to see the problem, now that I'm sufficiently covered with yak hair?
03:37 clkao_ joined #perl6
03:44 raiph joined #perl6
03:49 jaldhar_ joined #perl6
03:54 cognominal joined #perl6
03:59 diakopter why is it when I go to shake a yak, it's just more yaks underneath, forever?
04:01 sorear diakopter: They're fractal yaks.
04:05 colomon fractal yaks. shudder.
04:05 * colomon spent 90 minutes bisecting a nonexistent bug this evening.
04:12 sorear sounds like fun, colomon
04:13 * diakopter imagine dissecting
04:15 colomon regular barrel of laughs.
04:16 colomon got it narrowed down to one patch, and it was all whitespace.
04:17 colomon eventually worked out the problem was that not everything had recompiled properly ever time.
04:57 * diakopter has been hunting a "bug" for several days
04:58 diakopter only to realize, finally, if I cut out 98% of the code paths I thought could have been causing the problem, the problem still exists. So it's a problem with my measurement and testing harness.
05:33 diakopter yes, I'm something enough to admit it sometimes takes me several days to diagnose a problem.
05:34 telex joined #perl6
05:35 Woodi hallo today
05:35 sorear hola Woodi
05:39 Woodi backlogging make mi think that Synopses could have additional web editable representation like c2.com wiki, eg: http://c2.com/cgi/wiki?PerlProgramming
05:39 Woodi at least for discusion
05:40 Woodi hallo sorear ! :)
05:42 Woodi so sorear you going to academia ? :)
05:45 sorear doubt it
05:48 Woodi I like to read D. Parnas articles lastly. he wanted to be physics scientist but one day he realized his life objective is "not to discover next digit in some constant representation". ant then he goes for better software...
05:49 Woodi "software crisis" was coined in 70s ? :)
05:50 * Woodi coffe...
05:50 sorear my life objective is to settle another world
05:51 diakopter surely that requires billions
05:52 diakopter (how would you like to earn billions)
05:56 sorear in order to have a proper settlement, we need to invent cost-cutting measures.  you can't build a proper settlement society out of billionaires.
05:56 sorear one needs more diversity than that
05:57 sorear and if I knew exactly what I needed to do.... I probably wouldn't be here ^_^
05:57 diakopter ohI didn't mean send billionaires there
05:58 diakopter I meant it sould require billions to send a monkey there
05:59 sorear right now my subgoal is more "cultivate every talent that could conceivably be of any use"
05:59 [Coke] geekosaur: github.com/perl6/Pugs.hs
06:00 sorear diakopter: we need to get the mass transit cost to $100k a head or so.
06:00 sorear I'm certain this will be easier than proving P!=NP
06:01 diakopter so do that first :)
06:02 sorear plausible designs for low-amortized-cost space transport are a dime a dozen in the SF literature
06:02 sorear _nobody_ has a plausible design for a proof of P!=NP
06:02 diakopter I didn't mean mazs transit cost. I meant research and development costs to send the first monkey
06:04 sorear 1. wait for global recession to end
06:04 sorear 2. worm my way into the ESA top brass
06:04 sorear 3. profit
06:05 sorear ISRO would also be a good candidate, but might be more difficult to infiltrate
06:07 sorear (for a visibly-foreign person)
06:08 kaare_ joined #perl6
06:08 Woodi hmm, transportation problem is probably just first step... but when team arive on place they can use that opensource "civilisation construction set" :)
06:09 sorear Woodi: the civilization construction set assumes you have access to plentiful wood.  it is no good for those who leave the biosphere entirely.
06:12 Woodi that's bad, you can settle only in Amazonia or 40 years after some apocaliptic event...
06:13 Woodi and I was worried about problem with proper certificates for theirs bakery oven... eh
06:14 * Woodi need to push bread into oven &
06:17 [Coke] bah. pugs works fine on my mac with ghc 7.4.1 - fails on feather.
06:17 [Coke] (same version)
06:37 Woodi this is fun :) : http://www.cs.utexas.edu/users/EWD/ewd03xx/EWD340.PDF
06:40 Woodi It starts: As a result of long sequence of coincidents I entered the programming proffesion oficially *on the first spring morning of 1952*...
06:44 Woodi he exactly remember morning in concret day in concret year. Looking in Leonard Cohen (singer/poet) there is similiar experience: he enter old books store, open some random book and... his life was "destroyed", cannot be the same as before... I foggy remember similiar discusion some time ago here...
06:44 Woodi no point :)
07:25 cognominal joined #perl6
07:45 [Coke] r: my $foo of Int;
07:45 p6eval rakudo ca9c30:  ( no output )
07:46 [Coke] r: my $foo of Int; $foo = "ABCD";
07:46 p6eval rakudo ca9c30:  ( no output )
08:03 jaffa4 joined #perl6
08:03 jaffa4 hi
08:03 jaffa4 if ($content ~~/^<[\x00..\z7f]>**1..9/)
08:11 vlixes joined #perl6
08:11 jaffa4 joined #perl6
08:11 cognominal joined #perl6
08:11 telex joined #perl6
08:11 jaldhar_ joined #perl6
08:11 clkao_ joined #perl6
08:11 fgomez joined #perl6
08:11 benabik joined #perl6
08:11 tokuhiro_ joined #perl6
08:11 colomon joined #perl6
08:11 circlepuller joined #perl6
08:11 Gothmog_ joined #perl6
08:11 eternaleye joined #perl6
08:11 bbkr joined #perl6
08:11 sivoais joined #perl6
08:11 xinming joined #perl6
08:11 nyuszika7h joined #perl6
08:11 tomaw joined #perl6
08:11 Pleiades` joined #perl6
08:11 obra joined #perl6
08:11 mtk joined #perl6
08:11 SHODAN joined #perl6
08:11 chee joined #perl6
08:11 Patterner joined #perl6
08:11 jerome joined #perl6
08:11 HarryS joined #perl6
08:11 dayangkun joined #perl6
08:11 awwaiid joined #perl6
08:11 wtw joined #perl6
08:11 Woodi joined #perl6
08:11 DarthGandalf joined #perl6
08:11 geekosaur joined #perl6
08:11 Timbus joined #perl6
08:11 bruges joined #perl6
08:11 jlaire joined #perl6
08:11 ranguard joined #perl6
08:11 Vlavv joined #perl6
08:11 cibs joined #perl6
08:11 mikemol joined #perl6
08:11 sftp joined #perl6
08:11 masak joined #perl6
08:11 felher joined #perl6
08:11 araujo joined #perl6
08:11 drbean joined #perl6
08:11 Khisanth joined #perl6
08:11 aloha joined #perl6
08:11 hugme joined #perl6
08:11 BillySeth joined #perl6
08:11 Krunch joined #perl6
08:11 erkan joined #perl6
08:11 jrockway joined #perl6
08:11 ggoebel joined #perl6
08:11 [particle] joined #perl6
08:11 broquaint joined #perl6
08:11 sorear joined #perl6
08:11 bapa joined #perl6
08:11 p6eval joined #perl6
08:11 tadzik joined #perl6
08:11 Util joined #perl6
08:11 [Coke] joined #perl6
08:11 topo joined #perl6
08:11 sergot joined #perl6
08:11 pmichaud joined #perl6
08:11 Juerd joined #perl6
08:11 dalek joined #perl6
08:11 PerlJam joined #perl6
08:11 snarkyboojum joined #perl6
08:11 rurban joined #perl6
08:11 SmokeMachine joined #perl6
08:11 imarcusthis joined #perl6
08:11 au joined #perl6
08:11 risou joined #perl6
08:11 odoacre joined #perl6
08:11 ilogger2 joined #perl6
08:11 MikeyG joined #perl6
08:11 robinsmidsrod joined #perl6
08:11 marloshouse joined #perl6
08:11 ponbiki joined #perl6
08:11 xdbr joined #perl6
08:11 PZt joined #perl6
08:11 hoelzro|away joined #perl6
08:11 Rix joined #perl6
08:11 mhasch joined #perl6
08:11 bonsaikitten joined #perl6
08:11 kcwu joined #perl6
08:11 REPLeffect joined #perl6
08:11 ChoHag joined #perl6
08:11 krunen_ joined #perl6
08:11 spanner_ joined #perl6
08:11 mikec_ joined #perl6
08:11 nebuchadnezzar joined #perl6
08:11 mst joined #perl6
08:11 twinshadow joined #perl6
08:11 larks joined #perl6
08:11 mj41 joined #perl6
08:11 gfldex joined #perl6
08:11 gugod joined #perl6
08:11 ashleydev joined #perl6
08:11 colo-work joined #perl6
08:11 ruoso joined #perl6
08:11 doy joined #perl6
08:11 ingy joined #perl6
08:11 patspam joined #perl6
08:11 infosophy joined #perl6
08:11 timotimo joined #perl6
08:11 yeltzooo joined #perl6
08:11 ivan`` joined #perl6
08:11 cotto joined #perl6
08:11 s1n joined #perl6
08:11 breinbaas joined #perl6
08:11 bbkr__ joined #perl6
08:11 baest joined #perl6
08:11 steven joined #perl6
08:11 felipe joined #perl6
08:11 Celelibi joined #perl6
08:11 BooK joined #perl6
08:11 smash joined #perl6
08:11 shachaf joined #perl6
08:11 szbalint joined #perl6
08:11 quietfanatic joined #perl6
08:11 buubot_backup joined #perl6
08:11 Hor|zon joined #perl6
08:11 kst joined #perl6
08:11 rummik joined #perl6
08:11 sunnavy joined #perl6
08:11 iemelianov joined #perl6
08:11 sjn joined #perl6
08:11 Maddingue joined #perl6
08:11 jnthn joined #perl6
08:11 diakopter joined #perl6
08:11 eiro joined #perl6
08:11 yves__ joined #perl6
08:11 TimToady joined #perl6
08:11 takesako_ joined #perl6
08:11 betterwo1ld joined #perl6
08:11 __sri joined #perl6
08:11 lumi__ joined #perl6
08:11 spacebat_ joined #perl6
08:11 moritz joined #perl6
08:11 cxreg joined #perl6
08:11 pnu_ joined #perl6
08:11 BinGOs joined #perl6
08:11 nuba joined #perl6
08:11 jtpalmer joined #perl6
08:11 zb joined #perl6
08:11 zamolxes joined #perl6
08:11 integral joined #perl6
08:11 renormalist joined #perl6
08:11 arnsholt joined #perl6
08:11 flussence joined #perl6
08:11 ServerSage joined #perl6
08:11 nwc10 joined #perl6
08:11 ironcamel joined #perl6
08:11 lorn joined #perl6
08:11 revdiablo joined #perl6
08:11 Pompel joined #perl6
08:11 simcop2387 joined #perl6
08:11 Bucciarati joined #perl6
08:11 LordVorp joined #perl6
08:11 LoRe joined #perl6
08:11 japhb joined #perl6
08:11 phenny joined #perl6
08:11 bakedb_ joined #perl6
08:11 cosimo joined #perl6
08:11 Exodist joined #perl6
08:11 mathw joined #perl6
08:11 sweet_kid joined #perl6
08:11 rafl joined #perl6
08:11 literal joined #perl6
08:11 `patch` joined #perl6
08:11 charsbar_____ joined #perl6
08:11 rhr joined #perl6
08:11 Tene joined #perl6
08:11 jfried joined #perl6
08:11 Ulti joined #perl6
08:11 lestrrat joined #perl6
08:11 pjcj joined #perl6
08:11 perigrin joined #perl6
08:11 rking joined #perl6
08:11 prammer joined #perl6
08:11 rjbs joined #perl6
08:11 Grrrr joined #perl6
08:11 Yappocall_ joined #perl6
08:11 crazedpsyc joined #perl6
08:11 groky joined #perl6
08:14 vlixes is there something like module-starter/h2xs for perl6?
08:17 xinming joined #perl6
08:18 cognominal joined #perl6
08:20 [Coke] vlixes: I'm unsure if such a thing exists.
08:21 tadzik there was one, hold on
08:21 tadzik https://github.com/tadzik/Module-Starter
08:21 [Coke] NativeCall makes it easier to get to the C, but I'm not sure that there's something to autogen it.
08:21 tadzik not sure if it still works
08:21 [Coke] tadzik++
08:24 vlixes [Coke]: yeah, I'm aware of NativeCall, I'm just looking for a way to setup my project's skeleton systematically
08:24 vlixes tadzik: thanks!
08:25 tadzik vlixes: let me know how it works for you :)
08:28 GlitchMr joined #perl6
08:28 cognominal_ joined #perl6
08:29 jaffa4 How would you catch all exception and die?
08:29 zby_home joined #perl6
08:34 [Coke] r: try { die "eek"; CATCH { when * { die "URK" } } ;
08:34 p6eval rakudo 2c6a52: OUTPUT«===SORRY!===␤Unable to parse expression in block; couldn't find final '}' at line 2, near ""␤»
08:34 [Coke] r: try { die "eek"; CATCH { when * { die "URK" } } };
08:34 p6eval rakudo 2c6a52: OUTPUT«URK␤  in block  at /tmp/CFbadlC1HD:1␤  in block  at /tmp/CFbadlC1HD:1␤␤»
08:35 jaffa4 n: try { die "eek"; CATCH { when * { die "URK" } } };
08:35 p6eval niecza v22-19-gd874a8e:  ( no output )
08:35 jaffa4 n: try { die "eek"; } CATCH { when * { die "URK" } } };
08:35 p6eval niecza v22-19-gd874a8e: OUTPUT«[31m===[0mSORRY![31m===[0m��Strange text after block (missing comma, semicolon, comment marker?) at /tmp/kM0CY6AT99 line 1:�------> [32mtry { die "eek"; }[33m�[31m CATCH { when * { die "URK" } } };[0m��Parse failed��»
08:35 jaffa4 n: try { die "eek"; } CATCH { when * { die "URK" } };
08:36 p6eval niecza v22-19-gd874a8e: OUTPUT«[31m===[0mSORRY![31m===[0m��Strange text after block (missing comma, semicolon, comment marker?) at /tmp/IrHkZUcEil line 1:�------> [32mtry { die "eek"; }[33m�[31m CATCH { when * { die "URK" } };[0m��Parse failed��»
08:36 jaffa4 n: try { die "eek"; } CATCH { when * { die "URK" } }
08:36 p6eval niecza v22-19-gd874a8e: OUTPUT«[31m===[0mSORRY![31m===[0m��Strange text after block (missing comma, semicolon, comment marker?) at /tmp/wfiYY7FQ7_ line 1:�------> [32mtry { die "eek"; }[33m�[31m CATCH { when * { die "URK" } }[0m��Parse failed��»
08:37 [Coke] jaffa4: the CATCH goes in the block, not after it.
08:37 jaffa4 n: try { die "eek";  CATCH { when * { die "URK" } }}
08:37 p6eval niecza v22-19-gd874a8e:  ( no output )
08:37 jaffa4 r: try { die "eek";  CATCH { when * { die "URK" } }}
08:37 p6eval rakudo 2c6a52: OUTPUT«URK␤  in block  at /tmp/CdhWnvgGLl:1␤  in block  at /tmp/CdhWnvgGLl:1␤␤»
08:37 [Coke] r: try { die "eek"; CATCH { when * { die "URK"; } } };
08:37 p6eval rakudo 2c6a52: OUTPUT«URK␤  in block  at /tmp/gstv2r4kwA:1␤  in block  at /tmp/gstv2r4kwA:1␤␤»
08:37 [Coke] weird. that works in the REPL.
08:38 jaffa4 ok, how to get the exception message?
08:46 cognominal_ joined #perl6
08:51 wk joined #perl6
08:57 cognominal_ joined #perl6
09:19 raiph joined #perl6
09:21 eiro joined #perl6
09:34 cognominal joined #perl6
09:35 cognominal joined #perl6
09:55 HarryS joined #perl6
10:15 kst joined #perl6
10:23 integral joined #perl6
10:28 masak r: given 1 { die "how do you get the exception message?"; CATCH { default { say .message; say "like this, jaffa4" } } }
10:29 p6eval rakudo 2c6a52: OUTPUT«how do you get the exception message?␤like this, jaffa4␤»
10:29 masak r: do { die "how do you get the exception message?"; CATCH { default { say .message; say "like this, jaffa4" } } }
10:29 p6eval rakudo 2c6a52: OUTPUT«how do you get the exception message?␤like this, jaffa4␤»
10:35 masak for some reason, the explicit outer block is needed. the CATCH doesn't catch if it's outermost.
10:37 jaffa4 ok
10:39 wamba joined #perl6
10:44 jaffa4 r : my %d;@(%d{'hello'}).push('you');
10:44 jaffa4 r: my %d;@(%d{'hello'}).push('you');
10:44 p6eval rakudo 2c6a52:  ( no output )
10:44 rindolf joined #perl6
10:45 jaffa4 masak: see the last one?
10:57 Woodi joined #perl6
11:01 masak jaffa4: yeah. not sure what you're pushing to there. some anonymous array view of the hash, probably.
11:08 raiph i'm going to sleep, but I note that no one has added any perl6 tasks to the google code-in...
11:11 MayDaniel joined #perl6
11:15 masak what tasks did we add last year?
11:33 am0c joined #perl6
11:40 leont joined #perl6
11:46 gaussblurinc_ joined #perl6
11:51 rindolf Hi all.
12:00 Woodi o/
12:05 birdwindupbird joined #perl6
12:18 masak r: say (bag "anoraknophobia".comb)<o>
12:18 p6eval rakudo 2c6a52: OUTPUT«3␤»
12:18 masak \o/
12:19 tokuhiro_ joined #perl6
12:19 jnthn .oO( the lack of fear of anoraks? )
12:20 masak jnthn: https://en.wikipedia.org/wiki/Arachnophobia https://en.wikipedia.org/wiki/Anoraknophobia
12:20 jnthn hah, I guessed it right ;)
12:21 jnthn Yes, I knew it was the Marillion album name :)
12:21 * masak wasn't aware of the slang meaning of "anorak"
12:21 jnthn Hadn't really thought about it much... :)
12:22 SamuraiJack joined #perl6
12:27 spider-mario joined #perl6
12:40 Psyche^ joined #perl6
13:15 kaare_ joined #perl6
13:16 bowtie joined #perl6
13:17 GlitchMr joined #perl6
13:33 am0c_ joined #perl6
13:35 jaffa4 longest token matching.. WHat is the point of that?
13:37 masak when you call a set of multimethods and several of them match, you want the one that matches the narrowest.
13:37 masak for example, if you pass (5, 42) to something with either the signature (Any, Any) or (Int, Int), you'd prefer the latter because it's narrower.
13:38 masak similarly, when parsing, you'd prefer the alternation or subrule that matches as long a prefix as possible, because it probable has the best idea of what it's doing.
13:39 masak for example maybe the input "sub foo" would match both a rule for function calls and function declarations. but the former would only match "sub" and the latter would match the whole "sub foo". so LTM (correctly) prefers the latter.
13:40 jaffa4 ok
13:41 masak there really is a deep, strange consistency between multi calls and LTM. they do start to differ at some point, though, namely when they fail. routines give up right away, but subrules/alternations start to backtrack and recursively try the second best match, etc.
13:44 jaffa4 another issue, how to copy the matches into variables...in Perl6? In Perl 5, there was a shortcut for that.
13:44 jaffa4 e.g. ($basename) = ( $filename ~~ /^(.+)[.][^\\]+$/ );
13:54 masak Perl 6 doesn't really have list context.
13:55 masak that said...
13:55 masak rn: my ($a, $b, $c) = ("abc" ~~ /(.)(.)(.)/).list; say $c
13:55 p6eval niecza v22-19-gd874a8e: OUTPUT«Potential difficulties:�  $a is declared but not used at /tmp/lPHe_SCPfN line 1:�------> [32mmy [33m�[31m($a, $b, $c) = ("abc" ~~ /(.)(.)(.)/).li[0m�  $b is declared but not used at /tmp/lPHe_SCPfN line 1:�------> [32mmy [33m�[31m($a, $b, $c) = ("ab…
13:55 p6eval ..rakudo 2c6a52: OUTPUT«「c」␤␤»
13:55 masak n: my ($a, $b, $c) = ("abc" ~~ /(.)(.)(.)/).list; say [$a, $b, $c].perl
13:55 p6eval niecza v22-19-gd874a8e: OUTPUT«[#<match from(0) to(1) text(a) pos([].list) named({}.hash)>, #<match from(1) to(2) text(b) pos([].list) named({}.hash)>, #<match from(2) to(3) text(c) pos([].list) named({}.hash)>]␤»
14:04 colomon rn: my ($, $, $c) = ("abc" ~~ /(.)(.)(.)/).list; say $c
14:04 p6eval niecza v22-19-gd874a8e: OUTPUT«#<match from(2) to(3) text(c) pos([].list) named({}.hash)>␤»
14:04 p6eval ..rakudo 2c6a52: OUTPUT«「c」␤␤»
14:05 jaffa4 $? placeholder?
14:06 colomon yup
14:06 * colomon was overjoyed to discover there has been a new release of Factor!  Thought the project was dead....
14:14 Woodi what is sigil for bag type ?
14:14 masak I have what I believe to be a rakudobug. would like someone to confirm.
14:14 masak nom -n -e '.say if /^...$/' /usr/share/dict/words
14:15 masak works on my box, but last word is "Fez", which is obviously not all output.
14:15 masak Woodi: there is no sigil for the bag type. it's not important enough.
14:15 masak Woodi: however, sigils are part of the (mutable) grammar, so presumably if you care enough you should be able to add one in user code. (eventually)
14:16 masak moritz: could the current factoring of cmdline options be extended to handle -ne ?
14:17 masak moritz: it's such a small shortcut, but I find I miss it...
14:20 Woodi masak: so @array and %hash are "aliases" ? eg. $array.push is valid ? I wonder if all varibles can be $ prefixed (threated as objects) and methods/subs called on them
14:22 masak Woodi: consider @ and % to be optional type annotations, yes.
14:22 masak rn: my $array_in_scalar_clothing = [1, 2, 3, 4]; say $array_in_scalar_clothing.elems
14:22 p6eval rakudo 2c6a52, niecza v22-19-gd874a8e: OUTPUT«4␤»
14:23 masak rn: my $really_a_hash = { foo => 1, bar => 2 }; .say for $really_a_hash.keys
14:23 p6eval rakudo 2c6a52, niecza v22-19-gd874a8e: OUTPUT«foo␤bar␤»
14:23 Woodi it's nice generalisation of Perl5
14:24 Woodi *Perl5 features :)
14:24 jaffa4 paste
14:24 jaffa4 !paste
14:24 masak jaffa4: http://gist.gihub.com
14:24 masak rn: my $bag = bag <do you know the muffin man the muffin man the muffin man do you know the muffin man who lives in drury lane>; say $bag<muffin>
14:25 p6eval rakudo 2c6a52, niecza v22-19-gd874a8e: OUTPUT«4␤»
14:25 masak jaffa4: http://gist.github.com , sorry :)
14:26 jaffa4 https://gist.github.com/4051258
14:28 jaffa4 when I tried this last time, it worked
14:28 jaffa4 now: 12 Malformed regex
14:29 masak jaffa4: I could help you, but I get tired just looking at the size of that program. could you perhaps golf the problem a bit?
14:30 jaffa4 line 12, malformed regex
14:30 am0c_ joined #perl6
14:30 jaffa4 What is wrong with line 12?
14:30 jaffa4 { [@<bracket1>=['(' <.ws>]]*  <lh......
14:32 Chillance joined #perl6
14:32 jaffa4 by the way, it works ok with Niecza
14:32 jaffa4 but not with Rakudo
14:33 masak um. line 12 is commented out.
14:34 jaffa4 it is in the rule expression, I guess
14:34 masak oh, sorry. my lines were out of alignment.
14:34 masak line 12 is 'rule expression'
14:34 masak nothing wrong with it, as far as I can see.
14:34 jaffa4 then bug in Rakudo
14:35 flussence std: https://gist.github.com/4051258
14:36 p6eval std 04216b1: OUTPUT«ok 00:02 59m␤»
14:36 masak seems so.
14:37 masak but it's not clear exactly what is the problem.
14:38 colomon Woodi, masak: Isn't % the sigil for a bag?
14:39 colomon r: my %bag = bag  a => 5, b => 3; say %b.perl
14:39 p6eval rakudo 2c6a52: OUTPUT«===SORRY!===␤Variable %b is not declared␤at /tmp/4ezpo9d9er:1␤»
14:39 colomon r: my %bag := bag  a => 5, b => 3; say %bag.perl
14:39 p6eval rakudo 2c6a52: OUTPUT«2 unexpected named parameters passed (a, b)␤  in sub bag at src/gen/CORE.setting:11757␤  in block  at /tmp/VK0cGeHSxI:1␤␤»
14:39 colomon r: my %bag := bag [a => 5, b => 3]; say %bag.perl
14:39 p6eval rakudo 2c6a52: OUTPUT«Bag.new(("a" => 5, "b" => 3).hash)␤»
14:39 colomon n: my %bag := bag [a => 5, b => 3]; say %bag.perl
14:39 p6eval niecza v22-19-gd874a8e: OUTPUT«Bag.new({"a" => 5, "b" => 3}.hash)␤»
14:39 colomon n: my %bag := bag(a => 5, b => 3); say %bag.perl
14:40 p6eval niecza v22-19-gd874a8e: OUTPUT«Unhandled exception: Excess arguments to bag, unused named a, b␤  at /home/p6eval/niecza/lib/CORE.setting line 0 (bag @ 1) ␤  at /tmp/aCnIXoc8J1 line 1 (mainline @ 3) ␤  at /home/p6eval/niecza/lib/CORE.setting line 4211 (ANON @ 3) ␤  at /home/p6eval/niecza…
14:40 colomon n: my %bag := bag <a a a b b>; say %bag.perl
14:40 p6eval niecza v22-19-gd874a8e: OUTPUT«Bag.new({"a" => 3, "b" => 2}.hash)␤»
14:40 colomon r: my %bag := bag <a a a b b>; say %bag.perl
14:40 p6eval rakudo 2c6a52: OUTPUT«Bag.new(("a" => 3, "b" => 2).hash)␤»
14:41 colomon r: my %bag := bag <a a a b b>; say %bag.WHAT; say %bag<a>
14:41 p6eval rakudo 2c6a52: OUTPUT«Bag()␤3␤»
14:41 colomon there you go
14:43 masak \o/
14:43 masak well, a Bag is unordered, so % makes sense.
14:44 Woodi shouldn't there be conversion to hash ?
14:44 masak what do you mean?
14:45 Woodi % is hash so %name = .... should be "casted" me think...
14:47 jnthn % means Associative
14:47 jnthn Well, in so far as what you can bind to it.
14:48 masak what jnthn said. % doesn't mean Hash.
14:48 colomon and Bag is Associative
14:49 Woodi and what cathegory Associative is ? :) I mean what kind of stuff that superset contains ?
14:49 masak Associative is a role.
14:49 masak it's quite a loose contract that expects .{} to be implemented on a type.
14:50 Woodi ok :) now what .{} means ? :)
14:51 masak r: my %h = foo => 42; say %h<42>; say %h{42}; say %h.{42}
14:51 p6eval rakudo 2c6a52: OUTPUT«Any()␤Any()␤Any()␤»
14:51 masak er.
14:51 masak r: my %h = foo => 42; say %h<foo>; say %h{'foo'}; say %h.{'foo'}
14:51 p6eval rakudo 2c6a52: OUTPUT«42␤42␤42␤»
14:51 Woodi so it need to return value on given key...
14:52 masak and hash slices.
14:53 masak r: my %h = 1..100; say %h<30 40 50>
14:53 p6eval rakudo 2c6a52: OUTPUT«Any() Any() Any()␤»
14:53 masak oh!
14:53 colomon it needs to have .kv, .keys, and .values too, right?
14:53 masak jnthn: I expected that one to come back with 31 41 51...
14:53 masak oh wait.
14:53 jnthn masak: You made the odds the keys
14:53 masak r: my %h = 1..100; say %h<29 39 49>
14:53 p6eval rakudo 2c6a52: OUTPUT«30 40 50␤»
14:53 masak right.
14:53 masak rakudo++ masak--
14:54 skids joined #perl6
14:55 Woodi r: my %h = 1 .. 4 ; say %h<1>
14:55 p6eval rakudo 2c6a52: OUTPUT«2␤»
14:55 Woodi r: my %h = 1 .. 4 ; say %h<4>
14:55 p6eval rakudo 2c6a52: OUTPUT«Any()␤»
14:57 masak r: my %h = 1..4; %h.push(%h.invert); say %h<4>
14:57 p6eval rakudo 2c6a52: OUTPUT«3␤»
14:57 masak \o/
15:04 geekosaur src/Language/Perl5.hs:103:29:\n    Not in scope: data constructor `DynException'
15:04 geekosaur cute
15:04 Woodi seen whiteknight
15:04 aloha whiteknight was last seen in #parrot 1 days 13 hours ago saying "well, that's what I was planning to do originally, but mod_parrot has motivated me to do it".
15:21 raiph joined #perl6
15:22 geekosaur ok, that was easy enough once I foundthe documentation
15:28 geekosaur woo, first time I've had a pugs build since 2007ish :)
15:29 geekosaur nt that that helps you, unless your issue was the DynException thing (fix:  just delete the "DynException $ ")
15:29 geekosaur [Coke]: ^^
15:53 [particle]1 joined #perl6
15:54 leont joined #perl6
15:59 jaffa4 r: my $b = \@(1,2,3); print $b[0]
15:59 p6eval rakudo 2c6a52: OUTPUT«123»
15:59 jaffa4 Should not this be 1?
16:00 masak seems you added an extra layer of reference with that \ there.
16:00 masak r: my $b = @(1,2,3); print $b[0]
16:00 p6eval rakudo 2c6a52: OUTPUT«1»
16:00 jaffa4 r: my $b = \@(1,2,3); print $$$b[0]
16:01 p6eval rakudo 2c6a52: OUTPUT«123»
16:01 jaffa4 r: my $b = \@(1,2,3); print $$b[0]
16:01 p6eval rakudo 2c6a52: OUTPUT«123»
16:04 masak additional $ symbols do not do dereferencing in Perl 6.
16:05 [Coke] geekosaur: I tried removing DynException $ and it still doesn't build.
16:07 geekosaur what error are you getting?  also I'm using the latest Haskell Platform that just came out
16:08 leont left #perl6
16:08 kst joined #perl6
16:08 [Coke] I am using 7.4.1 on feather.
16:09 [Coke] (ghc --version == 7.4.1)
16:09 [Coke] geekosaur: https://gist.github.com/4051505
16:09 geekosaur I have 7.4.2.  I don't recall any major changes between the two offhand
16:10 geekosaur oh.  it's failing to find the perl5 devel headers
16:11 geekosaur I don't think I can help with that, need to find someone who knows how perl5 is installed on feather/can do something about it
16:11 geekosaur I don't even have an account on feather
16:11 [Coke] I have root on feather. :)
16:12 [Coke] I just don't know what to do with it.
16:13 geekosaur is libperl-dev installed?
16:14 geekosaur (I think I recall feather running debian?)
16:19 domidumont joined #perl6
16:25 orafu joined #perl6
16:30 [Coke] libperl-dev is installe.
16:30 geekosaur so the configure script isn't finding it for some reason
16:32 geekosaur perl −MConfig −e 'print "−I$Config{archlibexp}/CORE"'
16:33 geekosaur check if the directory that wants to use exists and has the right perl headers in it
16:41 geekosaur specifically the one the error message is complaining about
16:42 [Coke] Can't open perl script "−MConfig": No such file or directory
16:42 * geekosaur just got that too, and is confused
16:43 geekosaur ...works with macports perl, not with system perl. huh?
16:43 geekosaur hm, maybe it's soemthing weird in the paste, I just did it manually
16:44 geekosaur yeh, I think it copy-pasted nonbreaking spaces or
16:44 geekosaur something
16:44 PacoAir joined #perl6
16:44 [Coke] ok. so there's a dir.
16:45 geekosaur hm, was going to ask if that headrr was in it but it's not there on my system either.  digging
16:47 geekosaur oh, wait, I'm looking att the wrong thing
16:47 geekosaur that header shouldbe installed by HsPerl5
16:48 geekosaur you need to install the stuff in that repo in the proper order or cabal will install out of date versions from hackage, which might be causing you issues
16:48 domidumont joined #perl6
16:49 geekosaur the order I used was:  MetaObject HsSyck pugs-DrIFT pugs-compat HsParrot HsPerl5 Pugs
16:50 [Coke] is cabal just installing things in ~/.cabal, neh?
16:50 geekosaur "ghc-pkg unregister" any installed versions first
16:50 geekosaur there and ~/.ghc
16:50 geekosaur .ghc is where packages actually get installed, .cabal is where cabal-install puts its own metadata
16:56 kst joined #perl6
16:58 domidumont1 joined #perl6
16:58 geekosaur (this is assuming you aren't using --global)
16:59 [Coke] ok. blowing away .ghc and .cabal and trying again.
17:11 cognominal joined #perl6
17:20 masak rn: say (7 + 3i).base(2)
17:20 p6eval rakudo 2c6a52: OUTPUT«No such method 'base' for invocant of type 'Complex'␤  in block  at /tmp/yHRGYJJjNJ:1␤␤»
17:20 p6eval ..niecza v22-19-gd874a8e: OUTPUT«Unhandled exception: Unable to resolve method base in type Complex␤  at /tmp/WgPR4jYE6n line 1 (mainline @ 3) ␤  at /home/p6eval/niecza/lib/CORE.setting line 4211 (ANON @ 3) ␤  at /home/p6eval/niecza/lib/CORE.setting line 4212 (module-CORE @ 578) ␤  at /ho…
17:20 masak LHF for somebody? S32/Numeric says there should be one.
17:21 masak oh, no. I'm misreading things.
17:21 masak nevermind :)
17:21 masak it's Real that has a .base
17:28 [Coke] apt-get pkgnames shows a libpcre3-dev - how do I install this with apt-get? (apt-get install libcpre3-dev says "unable to locate package")
17:30 Woodi strange... I have such one installed
17:31 Woodi "apt-get update" first ? /etc/apt/sources.list ok ?
17:32 GlitchMr42 joined #perl6
17:34 [Coke] update doesn't help
17:37 geekosaur looks like it should be there.  I have no idea what might be up on feather though
17:39 raiph (Follow up to my earlier comment; (it looks like) it's too late for Perl 6 to be part of TPF google code-in application)
17:41 [Coke] raiph: Sorry we couldn't get you any tasks in time- hope p5 has enough tasks to feed the goog.
17:42 [Coke] geekosaur: oh! spelling is important.
17:43 Woodi [Coke]: apt-get -f install sometimes helps if previous update failed. sometimes apt-get dist-upgrade but this can be dangerous on development box :)
17:44 [Coke] and now I'm back to: * Missing (or bad) header file: perl5/p5embed.h
17:49 geekosaur :(
17:50 geekosaur hmmm
17:50 geekosaur actually this cabal file thinks HsPerl5 was merged into (or not yet separated fully from) Pugs...
17:50 kst joined #perl6
17:51 geekosaur so perl5/p5embed.g should be under Pugs.hs/Pugs
17:51 geekosaur 2@haral:110220 Z$ pwd; ls perl5
17:51 geekosaur p5embed.c    p5embed.h    perlxsi.c    pugsembed.c  pugsembed.h
17:51 geekosaur ...something missing there
17:51 geekosaur oh duh
17:52 geekosaur 2@haral:110220 Z$ pwd; ls perl5
17:52 geekosaur /Users/allbery/src/Pugs.hs/Pugs
17:52 geekosaur p5embed.c    p5embed.h    perlxsi.c    pugsembed.c  pugsembed.h
17:55 GlitchMr42 joined #perl6
17:55 raiph [Coke]: I'm not one of the organizers. Just trying (and failing! :( ) to be helpful.
17:56 [Coke] You did your best to poke us, and I appreciate that.
18:02 * geekosaur wonders what makes an include file "bad" wrt cabal-install
18:13 cognominal joined #perl6
18:35 kst joined #perl6
18:49 xinming_ joined #perl6
18:52 tadzik 81 modules ok, 53 not ok (134 total), Testing took 51 minutes and 46 seconds
18:52 tadzik I didn't do that for a while :)
18:53 tadzik (http://tjs.azalayah.net/index.html)
18:53 colomon_ joined #perl6
19:04 rindolf joined #perl6
19:05 diakopter yay, perl6.com is up
19:12 [Coke] diakopter++
19:29 kst joined #perl6
19:31 Chillance joined #perl6
19:37 Woodi is there something like "make spectest" for nqp ? or make test-more ?
19:38 Woodi nqp from R* 2012.10 failed 3 tests in bigint
19:39 Woodi ... on Parrot 4.9.0
19:44 sorear o/
19:44 Woodi morning sorear :)
19:47 [Coke] Woodi: just "make test"
19:50 sorear heya, Woodi.
19:56 Woodi R* 2012.10 rakudo-test passed on Parrot 4.9.0
19:57 benabik joined #perl6
20:08 kst joined #perl6
20:41 colomon joined #perl6
20:46 mikemol joined #perl6
20:51 kst joined #perl6
20:54 cognominal_ joined #perl6
21:01 bloonix joined #perl6
21:09 cognominal_ joined #perl6
21:28 kst joined #perl6
21:41 Woodi and rakudo-spectest failed only IO-Socket-INET.t
21:41 domidumont joined #perl6
22:14 rindolf joined #perl6
22:19 jlaire joined #perl6
22:29 kst joined #perl6
22:30 flussence joined #perl6
22:49 lue joined #perl6
22:51 lue Trying to use example 1 of WWW::App results in a 500 error :/ (I don't need to be running a webserver to make it work, do I?)
22:57 lue Well, seems I do. /me installs
23:03 [Coke] IO-socket-INET has been failing sporadically on the roast run.
23:06 lue Ah. Well, the SCGI module's readme talks about configuring for various webservers, so it seems like it's needed. (Even if it isn't, I was thinking I would eventually need to to experiment with Perl6 web apps)
23:13 kst joined #perl6
23:14 cognominal_ joined #perl6
23:25 masak diakopter++ # perl6.com
23:26 lue diakopter++ indeed.
23:31 jnthn diakopter++ # so happy somebody in the community has that.
23:45 japhb diakopter++ # Hear, hear!
23:50 colomon diakopter++ # amen!
23:51 am0c joined #perl6

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

Perl 6 | Reference Documentation | Rakudo