Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2013-04-03

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:07 Timbus joined #perl6
00:07 autumn joined #perl6
00:12 labster rn: '_' ~~ /<alpha>/
00:12 p6eval rakudo ffe441, niecza v24-35-g5c06e28:  ( no output )
00:12 labster rn: say '_' ~~ /<alpha>/
00:12 p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«「_」␤ alpha => 「_」␤␤»
00:13 labster Despite the fact that this is not well explained in the spec, I'm pretty sure this is wrong.
00:13 sivoais joined #perl6
00:15 rurban census: cygwin questions please @ #cygwin. And install gcc-4 as the error says, not gcc-3.
00:15 census rurban: thanks! i did post to #cygwin -- but there are not many perl folks there.  i have been downloading gcc-4 for the past 2 horus now.  at 95%  hopefully will find out the answer soon! :)
00:16 rurban Net::SSL is in the package perl_vendor
00:16 rurban find a faster mirror also :)
00:18 census rurban: what do you mean by mirror?
00:19 census and do you mean i should be downloading perl_vendor from cygwin?
00:19 colomon labster: it might be worth looking in roast for that one, though my first inclination is you are right.
00:19 census dakopter!  where ddi you go?
00:19 diakopter here
00:19 diakopter as my last msg said
00:19 diakopter :P
00:20 census OH
00:20 census i was confused
00:20 census i'm at 99%!
00:20 census what does rurban mean?
00:21 rurban rurban is my name
00:21 diakopter *headdesk*, or, alternately, "heh"
00:21 census i meant what did you mean in what you said earlier about the mirror and perl_vendor
00:21 rurban I'm the perl maintainer for cygwin, but #perl6 has nothing to do with it
00:21 census diakopter!  what is wrong?
00:21 census rurban -- you are!
00:21 diakopter I was being silly
00:21 census omg! :)
00:21 census awww
00:21 census i got sad :(
00:21 census i thought you were mad at me :(
00:22 diakopter no I was giggling at rurban's reply, which was ambiguously not tongue-in-cheek, so I replied both ways :)
00:22 labster colomon: One of the examples of class composition is: C<< <[_]+alpha+digit> >>
00:22 colomon labster: that certainly is very suggestive.  ;)
00:22 rurban Well, I try to answer literally
00:23 diakopter census: please google what is an internet mirror
00:23 labster emotion is hard to feel though IRC
00:23 sivoais joined #perl6
00:23 census ok! :)
00:23 census and what is meant by: "Net::SSL is in the package perl_vendor" ?
00:23 labster that's why we need to smile :) and raise our hands in the air \o/
00:24 diakopter labster: oh! I always thought those were legs!
00:24 rurban census: you should 1. find a faster mirror within the setup.exe mirror selection listbox, and 2. install the perl_vendor package if you need Net:SSL. Net::SSLey needs to be installed via cpan. Therefore you need to install 3. gcc-4
00:25 labster diakopter: oh, huh.  Oh!  Oh!  can't unsee :/
00:25 census how do i know which mirror is fastest?
00:25 diakopter you just have to try different ones
00:25 rurban See what perl_vendor contains with the package search: http://cygwin.com/cgi-bin2/package-cat.cgi?file=perl_vendor%2Fperl_vendor-5.14.2-3&amp;grep=perl_vendor
00:25 rurban and I have to go now... :)
00:26 census oh no!
00:27 census so you think now that i almost have gcc4 i should be able to install LWP::Protocol::socks, which needs Net::SSLeay ?
00:27 lue labster: S02/Names: "Underscore is always considered alphabetic." (presumably extends to regex rules too, at least S05 seems to imply it (S05/Simplified lexical parsing of patterns, see plaintext table))
00:28 census help
00:29 census It says:
00:29 census "These tests *will* *fail* if you do not have network connectivity. [n]"
00:29 census I think I do have network connectivity ...
00:29 lue rn: say "alpha_betic" ~ /<alpha>+/
00:29 p6eval niecza v24-35-g5c06e28: OUTPUT«alpha_beticRegex()<instance>␤»
00:29 p6eval ..rakudo ffe441: OUTPUT«alpha_betic␤»
00:29 diakopter census: I suspect rurban was giving you an alternative (Net::SSL), so I don't think you need to install perl_vendor right now
00:29 diakopter so yes, try installing the same thing you did earlier
00:29 census ok thanks!
00:30 census i'll try that next
00:30 census i'm doing cpan install Net::SSLeay right now
00:30 census the gcc4 JUST finished
00:31 labster lue: I'm sure that's going to surprise someone besides me
00:31 census diakopter: so how should i answer that question? y or n
00:31 census the default seem n
00:32 census i never got that q before!
00:32 diakopter what question
00:32 sivoais joined #perl6
00:32 census it is prompting me now
00:33 census Do you want to run external tests?  These tests *will* *fail* if you do not have network connectivity. [n]
00:33 lue r: say "alpha-betic?" ~~ /<alpha>+/
00:33 p6eval rakudo ffe441: OUTPUT«「alpha」␤ alpha => 「a」␤ alpha => 「l」␤ alpha => 「p」␤ alpha => 「h」␤ alpha => 「a」␤␤»
00:33 diakopter census: y
00:34 census ok.  said looks good for kit being complete :)
00:34 * lue thinks hyphen should be part of the definition of <alpha> if underscore is there.
00:34 census but i don't think it worked
00:34 census not sure
00:35 census http://scsys.co.uk:8002/239036?ln=on&amp;tidy=on&amp;hl=on&amp;submit=Format+it!
00:36 labster rn: say "alpha-betic" ~~ /<ident>/;
00:36 p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«「alpha」␤ ident => 「alpha」␤␤»
00:36 labster oh right, subtraction
00:38 lue ? I would think <ident> means identifier, which according the S02 section I cited is the "foo" in $foo, which allows hyphens..
00:38 leprevost joined #perl6
00:39 census rurban: turns out that I already have perl_vendor downloaded!
00:41 diakopter census: do you not see the error message in the thing you nopasted?
00:41 census i do see it :(
00:41 census i was in denial :(
00:41 diakopter which error message do you think you see
00:41 sivoais joined #perl6
00:41 census YAML not installed .... Failed during this command ...
00:42 census SSLeay.o failed
00:42 diakopter keep trying
00:42 census cygmrf-4.dall cannot open shared object file
00:42 diakopter yes
00:43 diakopter census: did you google search that error message?
00:43 diakopter I did, and found you need to install the libmpfr library in the cygwin package manager
00:44 census https://www.google.com/#hl=en&amp;q=%22cygmpfr-4.dll+cannot+open+shared+object+file%22&spell=1&sa=X&ei=bHtbUd27C6ip0AHYtICgCA&ved=0CCsQvwUoAA&bav=on.2,or.r_qf.&bvm=bv.44697112,d.dmQ&fp=f0796c14e625ae77&biw=1186&bih=410
00:44 diakopter it's not apparent to me why you pasted that url
00:44 census oh i'm sorry
00:45 census i thought you asked me if i googled
00:45 census and i wanted to show you what i googled
00:45 diakopter oh. :)
00:45 census so i need libmpfr ?
00:45 census there are 8 options ....2 of hiwhc i apparently already have ...
00:46 census i have libmpfr1 in libs and math
00:46 diakopter is there one with 4 in the name?
00:46 census yes!
00:46 census libmpf4 in libs, libmpf4 in math
00:46 census lifmpfr-devel in libs; lifmbfr-devel in math; lastly, libmpfr0 in obsolete.  7 total.
00:48 diakopter seems the missing dependency is a bug in the cygwin package
00:49 census are you implying then taht i should download the libmpf4 from the libs and from math?
00:49 diakopter for gcc
00:49 diakopter they're the same package
00:49 diakopter one will do
00:49 census ok!  thank goodness this one seems muchfaster!
00:51 census it's not letting me download for some reason ...
00:51 sivoais joined #perl6
00:56 Juerd An idea: http://perl6.org/compilers/features could have a column for Perl 5.
00:57 anuby joined #perl6
01:00 leprevost joined #perl6
01:01 sivoais joined #perl6
01:02 d4l3k_ joined #perl6
01:02 dbr joined #perl6
01:04 diakopter Juerd: why a column?
01:05 diakopter do you mean "the p5-in-rakudo version of the corresponding p6 feature"?
01:06 labster so we could compare how awesome Perl 6 is compared to the LTA Perl 5, I think he means.
01:08 diakopter <squint> p5 has its detriments, but I'm surprised anyone thinks they outweight the current p6 implementations' detriments..
01:08 diakopter I mean, the "ideal" p6, sure
01:08 diakopter but there's also the ideal p5
01:10 labster it's marketing, though.  I mean, we don't have checkboxes for "not slow as hell" and "has eleventy zillion modules" there.
01:11 sivoais joined #perl6
01:11 diakopter labster: we'll see about that...
01:12 diakopter (kidding, mostly)
01:20 sivoais joined #perl6
01:30 sivoais joined #perl6
01:40 sivoais joined #perl6
01:46 FROGGS_ joined #perl6
01:49 sivoais joined #perl6
01:51 thou joined #perl6
01:52 hypolin joined #perl6
01:55 sivoais joined #perl6
02:03 hypolin joined #perl6
02:12 drbean joined #perl6
02:17 lustlife joined #perl6
02:17 thou joined #perl6
02:32 dalek rakudo/extend-dump: 8976369 | moritz++ | src/Perl6/Compiler.nqp:
02:32 dalek rakudo/extend-dump: report -I and -M options in --help output
02:32 dalek rakudo/extend-dump: review: https://github.com/rakudo/rakudo/commit/8976369101
02:32 dalek rakudo/extend-dump: 9b7bf0d | (Geoffrey Broadwell)++ | src/Perl6/Compiler.nqp:
02:32 dalek rakudo/extend-dump: Merge branch 'nom' into extend-dump
02:32 dalek rakudo/extend-dump: review: https://github.com/rakudo/rakudo/commit/9b7bf0dfb0
02:32 dalek rakudo/extend-dump: 63fa63e | (Geoffrey Broadwell)++ | src/core/ (6 files):
02:32 dalek rakudo/extend-dump: Considerable DUMP refactoring, resulting in proper automatic handling of circular data structures -- but also some uninitialized value warnings that still require squashing
02:32 dalek rakudo/extend-dump: review: https://github.com/rakudo/rakudo/commit/63fa63e7a3
02:50 daniel-s joined #perl6
02:56 orafu joined #perl6
03:00 preflex_ joined #perl6
03:16 census joined #perl6
03:55 census joined #perl6
04:08 SamuraiJack joined #perl6
04:31 sftp joined #perl6
04:32 shachaf_ joined #perl6
04:32 shachaf_ joined #perl6
04:34 cooper joined #perl6
04:34 genehack joined #perl6
04:54 SHODAN joined #perl6
05:29 dmol joined #perl6
05:55 grondilu joined #perl6
05:56 grondilu rn: my Bag $b .= new: <foo foo bar>; say $b.kv;
05:56 p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«0 foo 1 bar␤»
06:01 rindolf joined #perl6
06:09 domidumont joined #perl6
06:33 kaleem joined #perl6
06:39 domidumont joined #perl6
06:42 drbean joined #perl6
06:59 drbean joined #perl6
07:00 dayangkun joined #perl6
07:07 FROGGS joined #perl6
07:08 snearch joined #perl6
07:13 domidumont joined #perl6
07:26 frdmn joined #perl6
07:32 dmol joined #perl6
07:36 rindolf joined #perl6
07:43 daxim joined #perl6
07:45 rindolf joined #perl6
07:48 frd|afk joined #perl6
07:50 FROGGS who is responsible for http://feather.perl6.nl/syn/ ?
07:50 FROGGS ahh, there is a note at the bottom
07:52 moritz everybody, and noone
07:53 dalek roast: e08e40f | (Tobias Leich)++ | S04-declarations/our.t:
07:53 dalek roast: (hopefully) fixed pod link to S04
07:53 dalek roast: review: https://github.com/perl6/roast/commit/e08e40f8d4
07:53 FROGGS moritz: can I change that file? is it on github?
07:55 moritz sure, and sure
07:55 moritz I think in the Mu repo
07:56 FROGGS ahh, found it
07:56 moritz mlenz@mlenz-workstation:~/p6/mu$ git ls-files|grep html|grep syn|head -n1
07:56 moritz docs/feather/syn_index.html
07:57 moritz https://gist.github.com/quchen/5280339 # how somebody tried to troll #haskell. Very amusing.
07:58 moritz thought the language is partially not quite SFW
07:58 rindolf joined #perl6
07:59 diakopter moritz: haha! thanks for posting
07:59 FROGGS "I assure you
07:59 FROGGS we have heterosexuals in our language as well" hehe
08:01 moritz "Haskell is invariant under gender. Really!"
08:02 tadzik haha
08:02 tadzik I admire their patience
08:03 labster lol awesome *troll gives up*
08:04 fhelmberger joined #perl6
08:05 dalek specs: 7afa4fe | (Brent Laabs)++ | S05-regex.pod:
08:05 dalek specs: clarification: add existing backslash classes, note <alpha> includes underscore
08:05 dalek specs: review: https://github.com/perl6/specs/commit/7afa4fe1c1
08:05 labster hopefully people like that ^
08:07 moritz the commit message sounds really good
08:07 moritz labster++
08:07 labster it creates a new rakudobug
08:07 dalek mu: ab9ab11 | (Tobias Leich)++ | docs/feather/syn_index.html:
08:07 dalek mu: fixed links to raw pod files
08:07 dalek mu: review: https://github.com/perl6/mu/commit/ab9ab11aab
08:07 moritz OH NOEZ
08:08 labster rn: /\b/
08:08 p6eval rakudo ffe441:  ( no output )
08:08 p6eval ..niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Unsupported use of \b as word boundary; in Perl 6 please use <?wb> (or either of « or ») at /tmp/qf1esHFLeg line 1:�------> [32m/\b[33m�[31m/[0m��Parse failed��»
08:08 FROGGS ahh, this one
08:12 rindolf joined #perl6
08:19 kresike joined #perl6
08:19 kresike hello all you happy perl6 people
08:23 drbean joined #perl6
08:24 rindolf joined #perl6
08:27 FROGGS hi kresike
08:41 dakkar joined #perl6
08:42 kresike hello FROGGS o/
08:54 sqirrel joined #perl6
08:57 drbean joined #perl6
09:02 masak good forenoon, #perl6
09:05 FROGGS hi masak
09:05 bbkr hi #perl6
09:05 FROGGS hi bbkr
09:05 * FROGGS is the new welcome manager
09:07 labster congrats FROGGS
09:08 FROGGS *g*
09:11 jnthn o/ masam
09:11 jnthn *masak
09:11 jnthn and bbkr
09:12 FROGGS hi jnthn
09:12 * jnthn is teaching today and for the rest of the week, but should have tuits again after this :)
09:18 labster I promised I'd blog about being a Perl 6 user, so here it is:  http://brentlaabs.blogspot.com/2013/04/why-i-use-perl-6.html
09:18 masak \o/
09:19 labster Of course, I had to actually start a blog to do this (I'm much more of a wiki person myself)
09:19 masak you could always get a bliki ;)
09:21 masak labster++ # excellent post
09:21 masak labster: I wish we had a hundred delurkers like you :)
09:22 masak you hear that, you hundred lurkers? :)
09:23 FROGGS labster++ # that makes me think of start blogging too
09:26 labster That tiny regex example really impressed census++ earlier today, so I felt like sharing.  From doing all of the porting of File::Spec, I have to say that I now am now quite sick of P5-style regexes and very happy to be working with the P6 version.
09:27 FROGGS labster: that is exactly what I am thinking
09:27 FROGGS a year ago it was like: damn have to do PHP while there is such a wonderful Perl 5 out there
09:28 FROGGS now I feel almost the same for Perl 5 like I do for PHP :o)
09:28 FROGGS (but there is still a huge gap between PHP and Perl 5)
09:31 labster no kidding
09:32 labster PHP, Python, and Perl are all crazy people.  Perl is crazy in a eccentric, mildly but happily intoxicated way.  PHP is crazy in a more manic-depressive way, where you never really know what to expect.  Python is the obsessive-compulsive, where everything must be just so or it'll get upset.
09:50 kresike labster++ #great post
09:50 kresike labster, in the last paragraph, you wrote 'of waiting' twice
09:57 labster fixed, thanks kresike++
09:57 labster good night all
10:02 census joined #perl6
10:05 census FROGGS: good morning!
10:06 FROGGS hi census
10:06 census thank you so much for your help! (can we chat in the other room for a quick second so as to not distract here... ?)
10:12 census (i menat the help room ...)
10:14 FROGGS census: currently busy at work...
10:15 census oh ok, i completely understand!  my questio pretty much was just that i could not remember exactly which packages i had downloaded to get perl up and running in cygwin.  that is the from the program manager ...
10:27 rafl joined #perl6
10:35 skids joined #perl6
11:00 masak labster++ # love your categorization of P-language craziness
11:05 kaleem joined #perl6
11:13 brrt joined #perl6
11:24 moritz labster++ # blogging, crazy p-languages
11:31 timotimo i lay awake in bed at night thinking about how to implement a maze generator in perl6. open up rosetta code in the morning and sure enough ...
11:39 daxim it puts the indentation in the code or else it gets the hose again!
11:40 masak timotimo: http://strangelyconsistent.org/blog/an-introduction-to-mazemaking-in-literate-perl-6
11:40 masak timotimo: if you don't know about union-find, then learn it. it's great stuff.
11:41 drbean joined #perl6
11:42 timotimo i know about it
11:42 timotimo in fact, i even knew it was the "perfect" way to make a maze
11:42 timotimo oh, actually i think i read that blog post before
11:43 masak :)
11:44 masak if any algorithm deserves the epithet "perfect", it's one with time complexity O( inverse of Ackermann function ) :)
11:46 timotimo indeed
11:53 sqirrel joined #perl6
11:57 gcole joined #perl6
12:07 kivutar joined #perl6
12:11 Woodi_ hallo
12:12 FROGGS hallo Woodi_
12:12 Woodi_ I cannot find * 2013.03... there wasn't one ?
12:17 FROGGS Woodi_: there is none yet as far as I know
12:17 timotimo that's true
12:18 Woodi_ just wanted to confirm, no problem for me
12:18 masak Woodi_! \o/
12:18 Woodi_ btw. is there any TeamSpeak3 server for perl6 ? :)
12:19 Woodi_ yo masak !
12:19 Woodi_ (ts3 is free for 32 persons, 512 for non-profit organizations)
12:21 daxim proprietary software begone
12:22 masak IRC is my teamspeak.
12:23 Woodi_ you see, irc is used by software devs and gamers+devs. but gamers (and their devs) use voice coms too
12:23 Woodi_ mumble is gpl :0
12:23 Woodi_ I would love to lurk on perl6 voice coms :)
12:24 timotimo i prefer mumble over ts3, but i do have to admit ts3 has some neat features.
12:24 Woodi_ but more seriously: there is a 'cache' inside perl6 implementations... can it be used as 'module' or like hash ?
12:25 daxim http://modules.perl6.org/#Cache::Memcached
12:26 Woodi_ daxim: it's bindings library ?
12:26 daxim I haven't looked at the code, have you?
12:27 Woodi_ yes (in a sec) :)
12:29 timotimo that anchor doesn't seem to work :o
12:29 Woodi_ it's library for Memcache :)
12:30 Woodi_ but I was thinking about reusing internals of implementations... you know, hashes sometimes are used internally, so maybe caches and other thing can be maked available for general use...
12:30 tgt joined #perl6
12:33 census joined #perl6
12:46 arnsholt joined #perl6
12:46 arnsholt labster++ # "I'm one of those mythical beasts that you've been hearing about for years but have never actually seen -- I am a Perl 6 user."
12:47 masak only unicorns use Perl 6.
12:48 arnsholt And their programs are inscribed into slabs of pure unobtainium
13:04 anant joined #perl6
13:07 daniel-s joined #perl6
13:11 shinobicl joined #perl6
13:24 pmichaud labster++  # great post
13:24 pmichaud good morning, #perl6
13:24 bluescreen10 joined #perl6
13:27 moritz good am, pm
13:30 kaleem joined #perl6
13:30 masak pmichaud! \o/
13:32 kaare_ joined #perl6
13:37 PacoAir joined #perl6
13:44 grondilu joined #perl6
13:45 * grondilu created http://rosettacode.org/wiki/FASTA_format because he's having trouble figuring out what's the best way to parse this format.
13:50 [Coke] labster++
13:50 [Coke] pmichaud: 'allo 'allo.
13:50 skids joined #perl6
13:51 arnsholt [Coke]: Is this when I say "Good moaning"? =)
13:52 [Coke] Good Show!
13:54 masak r: say "{.[0]}: {.[1].comb(/ \N+ /).join}" for ">Rosetta_Example_1\nTHERECANBENOSPACE\n>Rosetta_Example_2\nTHERECANBESEVERAL\nLINESBUTTHEYALLMUST\nBECONCATENATED\n".comb(/ '>' (\N+)\n (<!before '>' >\N+\n?)+ /, :match)
13:54 p6eval rakudo ffe441: OUTPUT«Rosetta_Example_1: THERECANBENOSPACE␤Rosetta_Example_2: THERECANBESEVERAL LINESBUTTHEYALLMUST BECONCATENATED␤»
13:54 masak grondilu: ^
13:54 PerlJam gutenMorgen #perl6!
13:54 masak PerlJam! \o/
13:54 PerlJam masak!  How are you today?
13:54 masak PerlJam: I can't complain. I literally can't. :P
13:55 masak grondilu: I whipped up this solution while at $work. feel free to add it to the page. it's a bit brief, and could be expanded with nice varaible names and such.
13:56 masak r: say "{.[0]}: {.[1].lines.join}" for ">Rosetta_Example_1\nTHERECANBENOSPACE\n>Rosetta_Example_2\nTHERECANBESEVERAL\nLINESBUTTHEYALLMUST\nBECONCATENATED\n".comb(/ '>' (\N+)\n (<!before '>' >\N+\n?)+ /, :match)
13:56 p6eval rakudo ffe441: OUTPUT«Method 'lines' not found for invocant of class 'Parcel'␤current instr.: '' pc 229 ((file unknown):171240541) (/tmp/puJomJBEe7:1)␤called from Sub '' pc 1411 ((file unknown):171240964) (/tmp/puJomJBEe7:1)␤called from Sub '' pc 274014 (src/gen/CORE.setting.pir:120247)…
13:56 masak ooh
13:56 masak r: say "{.[0]}: {(~.[1]).lines.join}" for ">Rosetta_Example_1\nTHERECANBENOSPACE\n>Rosetta_Example_2\nTHERECANBESEVERAL\nLINESBUTTHEYALLMUST\nBECONCATENATED\n".comb(/ '>' (\N+)\n (<!before '>' >\N+\n?)+ /, :match)
13:56 p6eval rakudo ffe441: OUTPUT«Rosetta_Example_1: THERECANBENOSPACE␤Rosetta_Example_2: THERECANBESEVERAL LINESBUTTHEYALLMUST BECONCATENATED␤»
13:56 masak that's better. &lines already means .comb(/ \N+ /)
13:57 arnsholt *sigh* The globbing feature in shell is nice, but it has terrible semantics (or lack thereof, perhaps) when nothing matches
13:58 PerlJam labster++ (reading scroll back and now your post :)
14:01 moritz ok, what I *really* want for the successor of planetsix.perl.org: a blog aggregator, and a few administrators can manually add single posts from elsewhere
14:01 am0c joined #perl6
14:01 PerlJam labster++ for the first sentence
14:01 PerlJam and labster++ again for the last two sentences.
14:01 [Coke] moritz: yes, that would be nice. I will ask if that feature could be added.
14:01 grondilu masak++
14:02 kresike bye folks
14:02 PerlJam actually ... has anyone started a Perl 6 quotes file?
14:04 pmichaud PerlJam: close might be pages on http://perl6.org/fun/
14:08 masak PerlJam: rindolf has some quotes on Perl 6. but they're a bit dated, and mostly talk about Perl 6 in a Duke Nukem Forever kind of way ;)
14:08 arnsholt grondilu: Isn't there someone in here who's been dealing with bioinformatics stuff? Or that's you, perhaps?
14:08 rindolf PerlJam: you can use XML-Grammar-Fortune for that.
14:08 rindolf masak: I have some more recent stuff.
14:09 rindolf https://duckduckgo.com/?q=chuck+norris+perl+6+site%3Ashlomifish.org
14:09 grondilu masak: how could I get rid of spaces in the second example?
14:09 [Coke] moritz: oh. here's a thought - we could have a single feed that only had curated articles in it, and add that feed to the planet. Then the special processing is in the one feed, not the planet.
14:10 masak grondilu: oh, oops.
14:10 masak r: say "{.[0]}: {[~] (~.[1]).lines}" for ">Rosetta_Example_1\nTHERECANBENOSPACE\n>Rosetta_Example_2\nTHERECANBESEVERAL\nLINESBUTTHEYALLMUST\nBECONCATENATED\n".comb(/ '>' (\N+)\n (<!before '>' >\N+\n?)+ /, :match)
14:10 p6eval rakudo ffe441: OUTPUT«Rosetta_Example_1: THERECANBENOSPACE␤Rosetta_Example_2: THERECANBESEVERAL LINESBUTTHEYALLMUST BECONCATENATED␤»
14:10 masak hrm.
14:11 masak r: say "{.[0]}: {.[1]>>.lines.join}" for ">Rosetta_Example_1\nTHERECANBENOSPACE\n>Rosetta_Example_2\nTHERECANBESEVERAL\nLINESBUTTHEYALLMUST\nBECONCATENATED\n".comb(/ '>' (\N+)\n (<!before '>' >\N+\n?)+ /, :match)
14:11 p6eval rakudo ffe441: OUTPUT«Method 'lines' not found for invocant of class 'Match'␤current instr.: '' pc 166558 (src/gen/CORE.setting.pir:72841) (src/gen/CORE.setting:1054)␤called from Sub 'hyper' pc 150036 (src/gen/CORE.setting.pir:65526) (src/gen/CORE.setting:13255)␤called from Sub 'hyper' …
14:11 masak should Match have a .lines method?
14:11 masak rn: say Match ~~ Cool
14:11 p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«True␤»
14:12 masak r: say "{.[0]}: {.[1]>>.comb(/\N+/).join}" for ">Rosetta_Example_1\nTHERECANBENOSPACE\n>Rosetta_Example_2\nTHERECANBESEVERAL\nLINESBUTTHEYALLMUST\nBECONCATENATED\n".comb(/ '>' (\N+)\n (<!before '>' >\N+\n?)+ /, :match)
14:12 p6eval rakudo ffe441: OUTPUT«Rosetta_Example_1: THERECANBENOSPACE␤Rosetta_Example_2: THERECANBESEVERALLINESBUTTHEYALLMUSTBECONCATENATED␤»
14:12 masak grondilu: there we go.
14:12 masak grondilu: .lines should work too, methinks.
14:15 arnsholt Hah! Good luck future self: $(DATADIRS): data/130314_parsereksperiment.tar.gz; DIR=$@ tar zxf $< -C data --strip-components=1 130314filer_til_arne/$${DIR#data/}
14:17 huf hope nobody ever puts spaces in paths :)
14:18 arnsholt I don't wanna talk about it =p
14:18 grondilu masak: I added your solution to RC but I mentioned that a more elegant way to do it would be welcome.
14:18 * masak submits Match.lines rakudobug
14:18 masak grondilu++
14:18 arnsholt huf: I'm the only one working on this (it's for my research), so that's not gonna happen. But yeah. A great big hack in the Unix tradition =)
14:18 masak r: "1\n2\n3" ~~ /.*/; say $/.lines
14:18 p6eval rakudo ffe441: OUTPUT«No such method 'lines' for invocant of type 'Match'␤  in block  at /tmp/u_Sd9GI3H5:1␤␤»
14:18 * grondilu would like to use a grammar to do these kind of stuff properly
14:19 masak my solution can easily be transformed into a grammar.
14:19 census joined #perl6
14:25 FROGGS joined #perl6
14:28 Psyche^ joined #perl6
14:28 timotimo i wonder if libtcod (the roguelike development library) is a good target to be NativeCall'd from perl6
14:29 * arnsholt googles
14:32 timotimo ooooh, 7 days ago the tcod dev bumped the version number to 1.6.0
14:33 arnsholt timotimo: From a skim of some of the docs, doesn't look entirely unreasonable
14:33 arnsholt As long as it doesn't need callbacks. 'Cause those appear to be broken =(
14:33 timotimo i'll just avoid callbacks if they are not required and stall the project if they are
14:34 timotimo i believe in the perl6 community's ability to get this problem out of the way :)
14:34 timotimo or maybe the parrot people. who knows!
14:34 masak callbaks are like the holy grail of NCI, it seems.
14:34 arnsholt For smallish stuff I think callbacks will still work
14:34 arnsholt Something seems to be broken once Parrot does a GC, so as long as you have enough RAM to avoid that, you should be good
14:35 pmichaud r:  say (12.34).lines
14:35 p6eval rakudo ffe441: OUTPUT«No such method 'lines' for invocant of type 'Rat'␤  in block  at /tmp/6SZMjjMahp:1␤␤»
14:35 * pmichaud wonders if .lines belongs on Cool
14:35 masak r: say Rat ~~ Cool
14:35 p6eval rakudo ffe441: OUTPUT«True␤»
14:35 arnsholt masak: For the time being I'm assuming it's my code doing something (more or less) stupid. Parrot is innocent until proven guilty =)
14:36 masak pmichaud: maybe not. that was my intuition about it, though. just like .comb or .split
14:36 arnsholt I think the general layout of the code handling the callbacks is sound. Just something breaking Parrot
14:36 masak *nod*
14:39 xilo joined #perl6
14:39 timotimo masak: got a time estimate for the next p6cc results? :)
14:40 masak timotimo: this coming weekend.
14:41 timotimo nice :)
14:42 masak my $work curses me repeatedly by having me live in interesting times. :)
14:42 masak so side activities go slowly at present.
14:43 timotimo oh my
14:44 jnthn The trick is to make it sufficiently painful for $work to make your times interesting... :P
14:45 timotimo jnthn: were you able to look at EXPORT_hash yet?
14:45 timotimo oh, interesting. my first post to perl.perl6.users did come through. although delayed by about one day
14:45 timotimo no software can be that slow o_O
14:46 jnthn timotimo: Not yet...mixture of jetlag/other stuff recovery plus needing to teach this week :)
14:46 timotimo oh,i actually read that you'll be teaching this week. i forgot it :|
14:46 jnthn I meant to look last night, but felt exhausted earlier than expected.
14:47 jnthn I have a horrible feeling the nasty sick people sat near me on the train yesterday may have shared their infections too :/
14:51 masak it's time to make a stand. boot sick people from crowded, non-ventilated public spaces.
14:53 shinobicl left #perl6
14:57 jerome joined #perl6
14:58 timotimo hm, i don't really see how i could properly TDD the bindings for the most part :(
15:04 jnthn hotel &
15:13 spider-mario joined #perl6
15:15 kaleem joined #perl6
15:17 timotimo hum. what operator do i override for equivalence testing? (in this case the color class)
15:19 telex joined #perl6
15:21 Guest61242 joined #perl6
15:23 moritz what kind of equivalence testing? infix:<eqv>?
15:25 timotimo it would dispatch to TCOD_color_equals
15:25 timotimo so i suppose eqv is the right one?
15:26 tgt joined #perl6
15:28 timotimo oh, yikes. the vim color scheme thinks $s in a parameter list starts a substitution
15:32 moritz I don't know which kind of equivalence testing you want to override; that's what I asked you :-)
15:33 timotimo i'm going with eqv, it seems to be the right one in this case
15:37 timotimo if there's a struct i want to bind, do i just have to say "is native 'TCOD_color_t'" and put a has int8 $.r and $.g and $.b in there if that's what the struct looks like in c?
15:37 pmichaud joined #perl6
15:38 moritz not quite
15:39 moritz you write   class TCOD_color_t is repr('cstruct') { has int8 $.r; has int8 $.r; has int8 $.g; }
15:39 timotimo ah, ok
15:39 moritz and then you use the new type as a type constraint
15:39 timotimo can i give it a different name and use is symbol('TCOD_color_t')?
15:39 sqirrel joined #perl6
15:40 moritz sub set_color(OpaquePointer, TCOD_color_t) returns int is native() {*}
15:40 timotimo also, if i have to stub the class, i don't have to put all the is in there at the beginning, right?
15:40 moritz timotimo: it's a Perl 6 level type. You can name it anything you want.
15:40 timotimo ah,good
15:42 timotimo and if a function expects a pointer to TCOD_color_t, i'll just use CArray[TCOD_color_t], correct?
15:42 moritz correct
15:42 timotimo what's that about "is native()", don't i have to give the library name?
15:42 timotimo maybe only once?
15:43 moritz yes, I forgot that
15:45 FROGGS timotimo: no ,not just once
15:45 timotimo got it
15:45 FROGGS and you only can omit it if you mean libc6
15:46 timotimo good to know
15:53 atta_ joined #perl6
15:55 timotimo huh. "Nominal type check failed for parameter ''; expected Any but got Color instead"
15:56 timotimo apparently it's in the ===infix from the core setting coming from nativecall's PARAMETERIZE_TYPE
15:59 crab2313 joined #perl6
16:00 timotimo the offending line seems to be "our sub TCOD_color_set_HSV(CArray[Color] $c, num32 $h, num32 $s, num32 $v) is native('libtcod.so') { * };
16:00 timotimo probably something wrong with my CArray type thingie?
16:07 timotimo woohoo, i segfault!
16:09 benabik joined #perl6
16:11 dalek rakudo/extend-dump: ba5e04f | coke++ | t/spectest.data:
16:11 dalek rakudo/extend-dump: run test we already pass
16:11 dalek rakudo/extend-dump: review: https://github.com/rakudo/rakudo/commit/ba5e04f9d0
16:11 dalek rakudo/extend-dump: 2441b01 | moritz++ | src/core/Pod.pm:
16:11 dalek rakudo/extend-dump: fix signature of Pod::Block.gist
16:11 dalek rakudo/extend-dump: review: https://github.com/rakudo/rakudo/commit/2441b0139a
16:11 dalek rakudo/extend-dump: ffe441f | (Tobias Leich)++ | / (2 files):
16:12 dalek rakudo/extend-dump: install our-scoped variables in the nextmost package
16:12 dalek rakudo/extend-dump: review: https://github.com/rakudo/rakudo/commit/ffe441fa9c
16:12 dalek rakudo/extend-dump: 5f169a3 | (Geoffrey Broadwell)++ | / (3 files):
16:12 dalek rakudo/extend-dump: Merge branch 'nom' into extend-dump
16:12 dalek rakudo/extend-dump: review: https://github.com/rakudo/rakudo/commit/5f169a37f2
16:19 colomon joined #perl6
16:25 grondilu joined #perl6
16:37 alester joined #perl6
16:44 masak hey, why was '$:foo' changed to '$!foo' many years ago?
16:45 flussence looks too much like :$foo?
16:46 domidumont joined #perl6
16:46 masak hm, it does, doesn't it?
16:46 perigrin it would be easy to typo when typing at speed
16:46 moritz now we have $:foo again :-)
16:47 moritz but with a different meaning
16:47 kivutar joined #perl6
16:47 moritz (implicit named parameter)
16:47 perigrin it might be easy to typo when typing at speed
16:54 eternaleye joined #perl6
16:55 * grondilu just laughed at this meme:  http://www.quickmeme.com/meme/3tnkv6/
16:56 masak heh.
16:56 masak I think I would stop and ask myself what the heck I was doing not writing tests, somewhere around line 55.
16:56 PerlJam masak: why do you remember that $!foo was once $:foo  ?   :)
16:58 masak PerlJam: parallel discussion over at #moe :)
16:59 japhb_ joined #perl6
16:59 japhb_ Is Rakudo::Debugger known not-panda-installable right now, or is it just me?
16:59 masak PerlJam: also, I remember the Apocalypses quite well. A12 was even released shortly before I ventured into #perl6 for the first time.
16:59 PerlJam Ah.
17:00 * masak , Perl 6 historian
17:04 japhb_ .seen jnthn
17:04 yoleaux I saw jnthn 15:04Z in #perl6: <jnthn> hotel &
17:04 SamuraiJack joined #perl6
17:05 japhb_ jnthn, is Rakudo::Debugger supposed to be installable with panda right now?
17:06 colomon jnthn: that reminds me, I found Grammar::Debugger completely non-functional a few days ago, some sort of internal error whenever I tried to enter a command.
17:06 colomon jnthn: I was talking with somebody about it here, but I don't know if it was ever properly noted or sorted.
17:10 arnsholt I think it's known to be bitrotted, unfortunately
17:10 arnsholt Dunno what it'll take to unbreak it
17:16 grondilu_ joined #perl6
17:18 * japhb_ starts placing 'say Backtrace.new.full' in strategic places out of frustration in tracking down his problem
17:23 FROGGS ó.ò
17:23 FROGGS poor japhb_
17:24 FROGGS japhb_: I believe I've installed rakudo::debugger yesterday
17:25 japhb hmm
17:26 FROGGS retrying currently
17:26 colomon joined #perl6
17:27 FROGGS ==> Successfully installed Rakudo::Debugger
17:27 japhb_ hmm
17:27 FROGGS japhb: that was `pandabrew rebootstrap`though
17:27 dalek perl6-roast-data: 390dc70 | coke++ | / (3 files):
17:27 dalek perl6-roast-data: today (automated commit)
17:27 dalek perl6-roast-data: review: https://github.com/coke/perl6-roast-data/commit/390dc70297
17:28 * japhb_ has not used pandabrew
17:28 japhb_ Clearly I missed something important in the last 3 weeks.
17:29 * [Coke] adds a barbershop pole to his bash prompt.
17:33 Chillance joined #perl6
17:34 FROGGS japhb: btw, if you would paste the error you get, we maybe can help
17:36 japhb_ For the Rakudo::Debugger install, I get this:
17:36 japhb_ $ panda install Rakudo::Debugger
17:36 japhb_ ==> Fetching Rakudo::Debugger
17:36 japhb_ ==> Building Rakudo::Debugger
17:36 japhb_ resolve stage failed for Rakudo::Debugger: Could not find Perl6::BOOTSTRAP in any of: /home/geoff/git/rakudo/install/lib/parrot/4.10.0-devel/languages/perl6/site/lib, /home/geoff/git/rakudo/install/lib/parrot/4.10.0-devel/languages/perl6/vendor/lib, /home/geoff/git/rakudo/install/lib/parrot/4.10.0-devel/languages/perl6/lib, /home/geoff/.perl6/2013.03-35-g5f169a3/lib, .
17:38 FROGGS hmmm, do you have several nqp's?
17:38 japhb Lots.  But I generally build with --gen-parrot, so I get a local NQP
17:38 FROGGS and there is no other nqp in path?
17:39 FROGGS that's just a guess, but that is treally something that causes trouble
17:39 FROGGS bbiab
17:39 jnthn japhb_: Last I knew, Rakudo::Debugger was pandaable
17:39 jnthn japhb_: Haven't tried it in a while
17:40 japhb_ jnthn, FROGGS just had success using pandabrew (which I've not seen before)
17:40 * japhb_ wonders if there was another NQP in path the last time he did a *full* Rakudo rebuild
17:43 japhb_ Well, I'll try a full flatten-and-rebuild of Rakudo, and see what happens.
17:46 jnthn FROGGS: I don't understand what ffe441f is doing
17:47 jnthn Just because a scope happens to have a $?PACKAGE in it doesn't mean that scope corresponds to the package itself...
17:53 SamuraiJack joined #perl6
17:59 census joined #perl6
18:04 dmol joined #perl6
18:11 dmol joined #perl6
18:19 japhb Hmmm, Rakudo flatten and rebuild did not help install Rakudo::Debugger.
18:19 thou joined #perl6
18:19 * japhb wonders if the fail is that 'which nqp' shows the symlinked location of nqp.
18:21 kaleem joined #perl6
18:24 tadzik japhb: pandabrew is just a convenience wrapper over panda
18:24 tadzik so it automatically detects when you've updated rakudo and need to rebootstrap panda
18:25 japhb_ Looks like a lib path mismatch.  Perl6::BOOTSTRAP exists in ./install/lib/parrot/4.10.0-devel/languages/nqp/lib/Perl6/BOOTSTRAP.pbc , but panda is looking in .../install/lib/parrot/4.10.0-devel/languages/perl6/lib
18:26 * japhb_ wonders why the mismatch between his rakudo and FROGGS'
18:27 tadzik FROGGS may be using his own hacked Rakudo :)
18:27 * tadzik tries locally
18:28 japhb_ tadzik, Ah.  I have a bash script that does the rakudo rebuild and panda rebootstrap, which takes care to save backup copies of the state file in case Rakudo can't rebuild, or rebuilds but only gets partway through the panda installs before failing, or the machine crashes partway through the process
18:28 tadzik I want pandabrew to do all that
18:29 tadzik I just installed Rakudo::Debugger with success locally
18:29 japhb_ dangitall
18:32 japhb_ r: .say for @*INC;
18:32 p6eval rakudo ffe441: OUTPUT«/home/p6eval/nom-inst/lib/parrot/4.10.0-devel/languages/perl6/site/lib␤/home/p6eval/nom-inst/lib/parrot/4.10.0-devel/languages/perl6/vendor/lib␤/home/p6eval/nom-inst/lib/parrot/4.10.0-devel/languages/perl6/lib␤/home/p6eval/.perl6/2013.03-12-gffe441f/lib␤»
18:32 japhb_ tadzik, could you do the same?
18:34 tgt joined #perl6
18:34 tadzik japhb_: https://gist.github.com/tadzik/5303877
18:36 japhb_ tadzik, what about `find . -name 'BOOTSTRAP*'`?
18:42 tadzik that's going to take a lot of time, even on this ssd :P
18:42 tadzik japhb_: https://gist.github.com/tadzik/5303984
18:43 thou_ joined #perl6
18:43 japhb_ Wait, there's a difference -- you're using a separate NQP build, not doing --gen-nqp (or --gen-parrot) in Rakudo
18:44 japhb_ .oO( But why does that matter ...?)
18:45 woolfy joined #perl6
18:49 japhb_ Gah, merely forcing that nqp directory into RAKUDOLIB just gives me a different problem
18:49 tadzik yes
18:50 japhb_ tadzik, what do you get for: nqp --version; perl6 --version
18:57 tadzik This is nqp version 2013.03-1-g5e85657 built on parrot 4.10.0 revision RELEASE_4_10_0
18:57 tadzik This is perl6 version 2013.03-9-g8976369 built on parrot 4.10.0 revision RELEASE_4_10_0
18:58 FROGGS jnthn: I thought that only packagish things have $?PACKAGE set
18:58 FROGGS jnthn: like packages, classes, roles ...
19:08 fgomez joined #perl6
19:12 FROGGS jnthn: okay, I see what you mean:
19:12 FROGGS r: class A; { my $?PACKAGE; our $thing = 7; }; say $thing
19:12 p6eval rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Variable '$thing' is not declared�at /tmp/rN0vruWBRB:1�------> [32m$?PACKAGE; our $thing = 7; }; say $thing[33m�[31m<EOL>[0m�    expecting any of:�        postfix�»
19:18 colomon joined #perl6
19:22 census hi!  does anybody know the channel in which people might be familiar with Tor?
19:22 moritz have you tried #tor?
19:23 moritz that would be my very first try :-)
19:23 census just now!  and i'm there alone :(
19:23 moritz maybe ##tor
19:24 nwc10 they seem to be on a different IRC network: https://www.torproject.org/about/contact.html.en#irc
19:24 census i find nottor ... not sure if that's the same thing!
19:25 census nwc10: does different irc network mean that i cannot join # room name from here?
19:25 census thank you for that link! :)
19:25 masak census: yes, it means that.
19:25 nwc10 correct, you can't join it from here just using /join
19:25 masak census: your IRC client joins different networks. this is the freenode network.
19:25 census oh ... is that the thing with xchat?  (although my xchat expired ...)
19:25 masak census: if you haven't joined the network where the Tor channel is, you can't join the channel either.
19:26 masak census: think of it like countries and cities. to go to the right city, you first have to be in the right country :)
19:26 masak there's no Stockholm in France.
19:26 census yes ... and i don't even know how to read the map .. or where to buy one :(
19:27 census taxicab -- take me to stockhol!! where ever that is! hahhah
19:28 sorear hmm, freenode web irc
19:29 sorear you probably can't connect to OFTC with that.
19:29 census what does that mean?  requested CTCP VERSION from census ?
19:29 census thank y'all for your help! :)
19:29 sorear http://www.oftc.net/oftc/WebChat
19:30 sorear i went to the tor page masak linked, clicked on the "OFTC" link, then read the "Connecting" section
19:34 census so i can log in from: http://webchat.oftc.net/ ?
19:34 masak yeah.
19:34 masak then you'll be on the right network.
19:35 * masak wouldn't recommend going from France to Stockholm by taxi
19:35 flussence It probably took longer to ask that question than to just try it.
19:36 Tene It probably took less time to recommend against going from France to Stockholm by taxi than it would have to just try it.
19:36 masak :P
19:36 FROGGS jnthn: https://github.com/rakudo/rakudo/commit/ffe441fa9cccb550f21f65a0b5ecd602f226b166#commitcomment-2938579
19:36 masak flussence: it's easy to look down on someone who hasn't learned to learn properly.
19:37 FROGGS are there other block declarations other than classes/packages/... ?
19:37 Tene looking down on people doesn't have a very steep learning curve.
19:38 flussence .oO( before you look down on someone, walk uphill a mile in their shoes first )
19:38 masak besides, people have been trying to teach census how to fish for a while now. he seems more amenable to be given fishes. :)
19:39 FROGGS flussence: are they allowed to put them off first?
19:44 zby_home joined #perl6
19:46 census awww ... census just gets overwhelmed by computers so easily.
19:46 census but appreciates your pateience :)
19:51 * masak .oO( like a fisherman out of the water )
19:51 census awww  i'm so sorry :(
19:51 census you guy are the best! :)
19:52 FROGGS \o/
19:52 masak flattery will get you anywhere.
19:52 census welli tis sincere flattery!! for real!
19:53 LlamaRider joined #perl6
19:53 PerlJam census: it's because we are fishers of men  ;-)
19:54 huf are you then?
19:54 huf stay the _hell_ away from seders
19:54 census huf: what is your question?
19:54 masak oh, so *that's* why there's only twelve of us!
19:54 census seders?   as in passover?
19:56 huf as in i made a joke about the last supper
19:57 PerlJam we just to figure out who denies Larry 3 times so that we know who to call pope
19:57 census i missed you huf!
19:57 PerlJam census: aim better next time!
19:58 census aim for what?
19:58 huf a better brain.
19:59 huf or level up in "pun understanding"
19:59 masak dang, I think I've denied TimToady more times than three... :/
19:59 huf (or whatever the hell kind of wordplay this one was>)
19:59 PerlJam #perl6 -- the RPG
19:59 * masak .oO( punderstanding )
19:59 huf all hail pope masak
19:59 gtodd anyone know anything about vmkit (llvm project) ?
19:59 masak no, I'm too denying to be pope.
19:59 masak I deny being pope.
20:00 huf you deny yourself three times
20:00 huf ?
20:00 huf that's it. you're superpope for life.
20:00 masak easily.
20:00 masak dang.
20:00 moritz gtodd: I've heard the name, and have a vague idea what it does. Does that qualify?
20:01 moritz oh, it's April again. There should be a new HPMoR progress note.
20:01 masak moritz: don't get your hopes up :/
20:01 * moritz czechs
20:02 * masak mopes
20:02 huf :)
20:02 nwc10 vmkit's mailing list doesn't seem to be massively active: http://lists.cs.uiuc.edu/pipermail/vmkit-commits/
20:02 nwc10 some months, no traffic
20:05 fgomez joined #perl6
20:07 PerlJam masak++ (for nudging #moe in good directions)
20:08 moritz nwc10: mailing list activity isn't always a good indicator
20:12 [Coke] moritz: really? our mailing list indicates we're mostly dead!
20:14 gtodd moritz: heheh guess so ... reading about it more it seems to be a tool for vm building  using llvm clang etc. but possibly defined/designed in a way that specifically would not allow it to work with dynamic interpreted languages
20:17 masak PerlJam: I guess I care because I think stevan_++ is doing a good thing, technically and socially.
20:17 stevan_ auuuh, thanks guys
20:18 flussence (more toys to play with)++
20:18 masak (community bridges)++
20:18 PerlJam (all you guys)++  :-)
20:18 stevan_ it was only a matter of time before I realized that an "ultra modern Perl 5" would basically turn into a "slightly stunted Perl 6"
20:20 masak stevan_: well from our perspective, that's a really good realization. "I ended up trying to make a better Perl 5, and I kept reinventing Perl 6!" :)
20:20 sorear o/ stevan_
20:20 stevan_ heya sorear
20:21 stevan_ masak: s/reinventing/referring to/
20:21 masak aye.
20:21 stevan_ WWP6D
20:21 * stevan_ is gonna make bumper stickers
20:22 jrockway joined #perl6
20:22 nwc10 moritz: yes, but that list seemed also to be the commit list
20:22 rindolf joined #perl6
20:23 nwc10 so sometimes several months gaps in commit activity
20:23 PerlJam The community bridge comment is very important too.  I noticed that there were some people on #moe who were not necessarily anti-perl6, but they weren't *anything-perl6*  and now they're reading and learning about it.
20:23 PerlJam s/were/are/ maybe
20:24 masak yeah.
20:26 kurahaupo joined #perl6
20:26 PerlJam If moe can bridge the laziness gap between p5 and p6, *that* would be major accomplishment IMHO
20:27 PerlJam All the other stuff seems easy to me by comparison
20:28 moritz laziness gap?
20:28 masak the reluctance to switch, I guess.
20:29 PerlJam p5 has mostly eager evaluations, while p6 has mostly lazy evaluations.
20:29 PerlJam Getting people used to this is the problem.
20:30 masak oh!
20:30 masak it's only lists that are lazy, though.
20:32 PerlJam and lists are used everywhere.
20:32 PerlJam maybe I'm making a mountain out of a molehill though.
20:37 masak and maybe not :)
20:37 masak sometimes it certainly surprises me when I go back to Perl 5 :)
20:37 bluescreen10 joined #perl6
20:40 PerlJam To me, it's one of those underlying currents throughout the language.   Like when you've only spoken a language that only had present-tense and then you learn about a language with both past and future tenses too.  Your thinking has to adapt to these new concepts for you to effectively use the language.
20:40 PerlJam (okay, I might be getting a little extreme in my comparison  ;)
20:41 PerlJam anyway, it's a difference that's more "within the programmer" than "within the language" IMHO
20:43 masak ...which is part of why we language people might not see that aspect very well. PerlJam++
20:48 lizmat joined #perl6
20:50 * lizmat thinks the topic is out of date
20:51 FROGGS well, there is always an end-of-month :o)
20:52 lizmat afaik the YAPC::NA talk submission window is closed
20:54 * felher is surprised that <alpha> is not equivalent to <+alpha-[_]> :)
20:57 FROGGS felher: why should it?
20:57 masak felher: that has surprised me too sometimes.
20:57 masak felher: also, that _ is considered alphanumeric ;)
20:58 PerlJam well, _ is *clearly* a number!   ;)
20:58 masak rn: say 1_000_000_00
20:58 p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«100000000␤»
20:58 LlamaRider felher: for me the bigger source of confusion both in P5 and P6  is why would \w+ match "vice_president" and not "vice-president" :)
20:58 masak PerlJam: you seem to be right :P
20:59 PerlJam of course I'm right!  (I jam at perl! ;)
21:03 LlamaRider PerlJam: by your logic, isn't -1 a number? Then - should also be in there ;)
21:03 FROGGS and 'e'
21:03 FROGGS err, nvm
21:03 FROGGS -.-
21:05 PerlJam LlamaRider: no, 1 is the number, - is the adjective describing the number.
21:06 snearch joined #perl6
21:06 LlamaRider PerlJam: that's a very positive take on things ;)
21:06 lizmat rn: say 100\ 000\ 000
21:06 p6eval niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Two terms in a row at /tmp/g_AIEBX3mM line 1:�------> [32msay 100\ [33m�[31m000\ 000[0m��Parse failed��»
21:06 p6eval ..rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Confused�at /tmp/YbI0EuDstU:1�------> [32msay 100\ [33m�[31m000\ 000[0m�    expecting any of:�        unspace�        horizontal whitespace�        postfix�»
21:07 masak lizmat: \ ends the term
21:07 lizmat expecting any of: unspace
21:07 lizmat but there is a an unspace there !
21:07 lizmat :-)
21:07 masak yeah, but after that :P
21:08 masak rn: "OH HAI"\      \     .say
21:08 p6eval rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Confused�at /tmp/GLc7SahIm9:1�------> [32m"OH HAI"\      [33m�[31m\     .say[0m�    expecting any of:�        unspace�        horizontal whitespace�        postfix�»
21:08 p6eval ..niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Method call found where infix expected (change whitespace?) at /tmp/yjAEiL5E1L line 1:�------> [32m"OH HAI"\      \     [33m�[31m.say[0m��Parse failed��»
21:08 masak *that*, however...
21:08 * masak submits rakuodbug
21:08 masak rakudo*
21:08 lizmat I was just thinking the same thing
21:08 lizmat rn: say 100\ \ 000\ 000
21:08 p6eval niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Two terms in a row at /tmp/fpQzbtkR06 line 1:�------> [32msay 100\ \ [33m�[31m000\ 000[0m��Parse failed��»
21:08 p6eval ..rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Confused�at /tmp/u0R2Xl1yad:1�------> [32msay 100\ [33m�[31m\ 000\ 000[0m�    expecting any of:�        unspace�        horizontal whitespace�        postfix�»
21:13 felher FROGGS: well, I didn't consider '_' to be alphanumeric.
21:13 felher LlamaRider: yeah, good point :)
21:15 felher I didn't even know that in p5, \w matches '_' :)
21:15 felher Which may have been a reason for me being surprised :)
21:16 FROGGS I always considered _ as alnum, but I can't explain why
21:19 LlamaRider FROGGS: That's a common bias coming from programming languages, since most langs allow _ in var names
21:19 LlamaRider at least that's how I always thought of it
21:19 FROGGS troo
21:20 timotimo in soviet timo's apartment, nap takes you
21:20 araujo joined #perl6
21:20 timotimo :S
21:22 am0c joined #perl6
21:23 tgt joined #perl6
21:26 lue std: say 100\  000
21:26 p6eval std 86b102f: OUTPUT«[31m===[0mSORRY![31m===[0m�Two terms in a row at /tmp/winx5Sgqq9 line 1:�------> [32msay 100\  [33m�[31m000[0m�    expecting any of:�       horizontal whitespace�  infix or meta-infix�    infixed function�       postcircumfix�  postfix�
21:26 p6eval ..postfix_prefix_meta_operator␤   postop␤ s…
21:27 lizmat std: say 100 000
21:27 p6eval std 86b102f: OUTPUT«[31m===[0mSORRY![31m===[0m�Two terms in a row at /tmp/TTsWjNFpxs line 1:�------> [32msay 100 [33m�[31m000[0m�    expecting any of:� infix or meta-infix�    infixed function�       statement modifier loop�Parse failed�FAILED 00:00 42m�»
21:27 lue .oO(now I see why that doesn't work)
21:27 * lizmat wonders whether it would make sense to simply concat numerics in this case
21:28 PerlJam and strings too!
21:28 PerlJam std: say "foo" " bar";
21:28 p6eval std 86b102f: OUTPUT«[31m===[0mSORRY![31m===[0m�Two terms in a row at /tmp/VvK5512npg line 1:�------> [32msay "foo" [33m�[31m" bar";[0m�    expecting any of:�   infix or meta-infix�    infixed function�       statement modifier loop�Parse failed�FAILED 00:00 42m�»
21:28 lue that's probably not a good idea (if you want visual space in numbers, use an underscore)
21:28 lizmat well, *that* would probably be hiding errors
21:28 moritz lizmat: forbidding two terms in a row is crucial for getting somewhat sensible parsing error messages
21:28 masak lizmat: I don't think so. the unspace indicates that we have already left "term" mode.
21:28 masak er, "term mode"*
21:28 * lizmat stops wondering
21:29 grondilu joined #perl6
21:29 timotimo is this "spelled" correctly for zavolaj? "our sub TCOD_color_set_HSV(CArray[Color] $c, num32 $h, num32 $s, num32 $v) is native('libtcod.so') { * };"
21:29 timotimo Color is my class that is repr('CStruct')
21:30 PerlJam I'm not even sure zavolaj groks num32.
21:30 masak r: say num32
21:30 p6eval rakudo ffe441: OUTPUT«(num32)␤»
21:31 timotimo i looked at the sources to find out and saw it there
21:31 timotimo it says num32 is how to spell float
21:31 [Coke] r: say num128
21:31 p6eval rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Undeclared routine:�    num128 used at line 1��»
21:33 FROGGS timotimo: I had problems using types at all
21:33 timotimo oh, i think i recognize the type of error!
21:33 FROGGS so I'd try to pass ($c, $h, $s, $v ..
21:33 timotimo last time i got it it was when i passed a class that's not composed yet!
21:35 timotimo i'm still getting wrong results and segfaults, though
21:35 PerlJam timotimo: pastebin the whole code?
21:35 timotimo haha, in the GC of all places :)
21:37 colomon joined #perl6
21:40 bruges joined #perl6
21:40 timotimo http://paste.ee/p/JdjGY there you go, PerlJam
21:42 FROGGS timotimo: it must now the structure of Color in order to unpack a piece of memory to its layout
21:42 labster joined #perl6
21:42 census hi labster!
21:42 timotimo how do i tell it the structure of Color? (originally called TCOD_color_t)
21:43 labster hi census
21:43 labster I saw the backlog.  That was an awful lot of ++es.  Thanks guys.
21:43 PerlJam timotimo: just like in README.markdown in the zavolaj distribution.
21:43 census labster++
21:44 PerlJam labster++ have some more.  :)
21:44 labster lol census++ (PerlJam++)++
21:45 FROGGS timotimo: line 33-35 tells it its structure
21:45 timotimo oooh, a readme. that would have been too obvious for me :D
21:46 PerlJam timotimo: why are all of your subs declared with "our"?
21:46 timotimo i'm not good at this modules thing.
21:47 timotimo i thought it would be okay to expose both a class-based interface and the methods from the library "directly"
21:47 timotimo should i have used "is export" instead?
21:48 bluescreen10 joined #perl6
21:48 PerlJam timotimo: I probably would have, but that doesn't mean it's the right thing for you  :)
21:48 timotimo right. so what's wrong about the way i created the class?
21:48 timotimo ah, in the paste i had the traits only once, in the stub
21:49 FROGGS nqp: say ord('?')
21:49 p6eval nqp: OUTPUT«Confused at line 2, near "say ord('?"␤current instr.: 'panic' pc 14698 (src/stage2/gen/NQPHLL.pir:5230) (src/stage2/gen/NQPHLL.pm:278)␤»
21:49 timotimo but it doesn't make it work if i repeat the "is repr" trait in the implementation
21:49 FROGGS nqp: say(ord('?'))
21:49 p6eval nqp: OUTPUT«Could not find sub &ord␤current instr.: '' pc 46 ((file unknown):154144071) (/tmp/0wTRfuiU4q:1)␤»
21:49 FROGGS nqp: say(nqp::ord('?'))
21:49 p6eval nqp: OUTPUT«63␤»
21:56 Chillance joined #perl6
22:11 labster r: {my $*CWD; chdir '/home'}; say $*CWD; say cwd;
22:11 p6eval rakudo ffe441: OUTPUT«/home/p6eval␤/home␤»
22:12 labster okay, how am I supposed to change the working directory in only a local scope?
22:13 Tene have an exit handler change back.
22:14 Tene that's dynamic scope, though, not lexical.
22:14 lizmat wrt to earlier underscore discussion: S02L2526 states: "Underscore is always considered alphabetic"
22:15 lizmat I wonder whether that shouldn't say "alphanumeric" instead
22:15 lizmat rn: say 100a100a100
22:15 p6eval rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Confused�at /tmp/kkTaKqNRyT:1�------> [32msay 100[33m�[31ma100a100[0m�    expecting any of:�        whitespace�»
22:15 p6eval ..niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Whitespace is required between alphanumeric tokens at /tmp/b_gwEsURSZ line 1:�------> [32msay 100[33m�[31ma100a100[0m��Two terms in a row at /tmp/b_gwEsURSZ line 1:�------> [32msay 100[33m�[31ma100a100[0m��Parse fail…
22:19 FROGGS nr: say '_' ~~ /<alpha>/
22:19 p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«「_」␤ alpha => 「_」␤␤»
22:21 FROGGS nr: say '_' ~~ /<alnum>/
22:21 p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«「_」␤ alnum => 「_」␤␤»
22:21 FROGGS nr: say '_' ~~ /<digit>/
22:21 p6eval niecza v24-35-g5c06e28: OUTPUT«Nil␤»
22:21 p6eval ..rakudo ffe441: OUTPUT«#<failed match>␤»
22:21 skids joined #perl6
22:22 lizmat rn: my ($a,$c); ($a, $, $c) = 1..3
22:22 p6eval rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Unsupported use of $, variable; in Perl 6 please use .join() method�at /tmp/yfoQnzrLgP:1�------> [32mmy ($a,$c); ($a, $,[33m�[31m $c) = 1..3[0m�»
22:22 p6eval ..niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Unsupported use of $, variable; in Perl 6 please use .join() method at /tmp/hQlgta0UNw line 1:�------> [32mmy ($a,$c); ($a, $,[33m�[31m $c) = 1..3[0m��Parse failed��»
22:23 lizmat according to S02L2574, this should give the message "Anonymous variable requires declarator"
22:24 lizmat I assume S02 is wrong here?
22:24 labster Tene: Exit handlers are all great until you start threading.  I've had issues with cwd changing underneath me in mod_perl.
22:24 FROGGS rn: $,
22:24 p6eval niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Non-declarative sigil is missing its name at /tmp/zi_RsGdhDk line 1:�------> [32m<BOL>[33m�[31m$,[0m��Confused at /tmp/zi_RsGdhDk line 1:�------> [32m<BOL>[33m�[31m$,[0m��Parse failed��»
22:24 p6eval ..rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Non-declarative sigil is missing its name�at /tmp/GS7nMqWi1x:1�------> [32m$[33m�[31m,[0m�    expecting any of:�        statement list�        prefix or term�        prefix or meta-prefix�»
22:25 FROGGS nr: $, $
22:25 p6eval rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Unsupported use of $, variable; in Perl 6 please use .join() method�at /tmp/I2sg_yQMvR:1�------> [32m$,[33m�[31m $[0m�»
22:25 p6eval ..niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Unsupported use of $, variable; in Perl 6 please use .join() method at /tmp/vb7T4WbT4q line 1:�------> [32m$,[33m�[31m $[0m��Parse failed��»
22:25 FROGGS rn: my ($a,$c); ($a, $ , $c) = 1..3
22:25 p6eval niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Non-declarative sigil is missing its name at /tmp/xwX8yqtySA line 1:�------> [32mmy ($a,$c); ($a, [33m�[31m$ , $c) = 1..3[0m��Confused at /tmp/xwX8yqtySA line 1:�------> [32mmy ($a,$c); ($a, [33m�[31m$ , $c) = 1..3[0…
22:25 p6eval ..rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Non-declarative sigil is missing its name�at /tmp/u7Rt00H9hd:1�------> [32mmy ($a,$c); ($a, $[33m�[31m , $c) = 1..3[0m�    expecting any of:�        postfix�        infix stopper�        infix or meta-infix�        prefix or term�…
22:26 labster lizmat: underscore is alphabetic because subs can start with _
22:26 lizmat indeed…
22:27 lizmat and identifiers can's start with numbers
22:28 ingy hi lizmat
22:28 lizmat Hi ingy
22:28 ingy :)
22:30 * lizmat calls it a night
22:30 labster The problem with my expectation of unicode classes clashes with the fact that the language uses the grammar more than my code does.  You can use the property directly if you have ICU installed (which I don't :( ), or just tell people to match <+alpha-[_]> if they mean to -- which is how I changed the spec.
22:30 lizmat night #perl6
22:31 labster good night lizmat
22:31 ingy lizmat: kisses
22:33 masak and hugs
22:34 lue <+alpha-[_]> means match alpha but not underscore, right?
22:35 woolfy left #perl6
22:35 FROGGS lue: right
22:37 lue r: say "foo_bar" ~~ /<+alpha-[_]>+/
22:37 p6eval rakudo ffe441: OUTPUT«「foo」␤␤»
22:38 lue r: say "foo_bar" ~~ /[<alpha> !~~ _]+/; # this should be a working alternative
22:38 p6eval rakudo ffe441: OUTPUT«[31m===[0mSORRY![31m===[0m�Unrecognized regex metacharacter ! (must be quoted to match literally)�at /tmp/aaMq6R7Wd5:1�------> [32msay "foo_bar" ~~ /[<alpha> [33m�[31m!~~ _]+/; # this should be a working alt[0m�Unrecognized regex metacharacter [ (must be qu…
22:39 lue n: say "foo_bar" ~~ /[<alpha> !~~ _]+/; # niecza's error is better
22:39 p6eval niecza v24-35-g5c06e28: OUTPUT«[31m===[0mSORRY![31m===[0m��Action method quantifier:sym<~~> not yet implemented at /tmp/kRFXMdc6lF line 1:�------> [32msay "foo_bar" ~~ /[<alpha> !~~ _[33m�[31m]+/; # niecza's error is better[0m��Unhandled exception: Check failed��  at /home/p6eva…
22:41 Tene labster: if you're threading, don't change CWD.  Period.  CWD is a per-process attribute.
22:41 dalek v5: 26ff8d5 | (Tobias Leich)++ | lib/Perl6/P5 (2 files):
22:41 dalek v5: make substitutions work
22:41 dalek v5: review: https://github.com/rakudo-p5/v5/commit/26ff8d544d
22:41 dalek v5: 11b22cf | (Tobias Leich)++ | / (3 files):
22:41 dalek v5: support \cA character sequences
22:41 dalek v5: review: https://github.com/rakudo-p5/v5/commit/11b22cf562
22:42 xilo joined #perl6
22:47 FROGGS tadzik: aww: http://de.webfail.com/eca15287507
22:49 census this is embarassing ... hope it is ok to ask ... is there a microsoft office/ word room somewhere?
22:49 census i tried /msg alis list for searches ...
22:49 * lue didn't know there was a <sp> rule in the regex
22:52 FROGGS census: you might google for office/word problems, you should find your answers there
22:53 census yep ... trying :)
22:53 timotimo also there's a built-in help tool that you can ask questions in human language, i believe
22:54 census hahaha yes i need human language :)
22:55 timotimo in the past i've also found answers to things on stack overflow (some excel formula weirdness)
22:55 timotimo so, i still have no idea what is wrong with my nativecall usage :(
22:57 census http://stackoverflow.com/questions/tagged/ms-word
22:57 census do peopole actually check that?
22:57 timotimo i can imagine tha.
22:57 census i'm so gonna get my arse downvoted
22:57 census i'm just feelign it
22:57 census hahaha
22:59 felher good night, good people :)
22:59 timotimo good night :)
22:59 masak night, felher
22:59 masak 'night, #perl6
22:59 timotimo 'night masak
23:06 colomon \o
23:21 fgomez joined #perl6
23:31 sivoais joined #perl6
23:33 Timbus joined #perl6
23:34 autumn joined #perl6

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

Perl 6 | Reference Documentation | Rakudo