»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:08 fgomez joined 00:17 havenn_ left, havenn joined 00:21 havenn left, Chillance left 00:23 Khisanth joined 00:25 am0c left 00:27 atrodo left 00:30 benabik joined 00:33 wamba left 00:44 cognominal_ joined
cotto Every single time I see what's getting implemented in Rakudo I get sad that most of the people who are hiring are looking for someone to maintain a pile of crappy PHP code. 00:45
00:47 cognominal left 00:49 clkao left 00:51 obra left 00:54 vlixes left 00:55 fgomez left
timotimo jnthn: that looks beautiful 00:57
00:59 daniel-s_ joined 01:00 daniel-s__ joined 01:03 anuby joined 01:04 daniel-s_ left 01:05 Khisanth left 01:06 hypolin joined 01:09 bowtie left, clkao joined, obra joined 01:13 clkao left, woosley joined 01:15 obra left 01:18 Khisanth joined 01:19 fgomez joined, cognominal_ left 01:20 cognominal joined 01:39 snearch left, hugme left, plobsing joined 01:40 hugme joined, ChanServ sets mode: +v hugme 01:41 tokuhiro_ joined 01:42 gongyiliao joined 01:43 gongyiliao left 01:48 cognominal left 01:54 cognominal joined
colomon jnthn++ 01:55
02:11 tokuhiro_ left 02:18 aloha left 02:19 aloha joined
benabik jnthn++ # "I’m still not sure if this is beautiful or horrifying, but now it’s in place." 02:22
cotto I liked that quote. 02:23
gfldex i cheated a little but beaten the python folks: codegolf.stackexchange.com/question.../8925#8925 02:26
colomon gfldex++ 02:31
02:35 Khisanth left 02:53 skids joined 03:10 gootle joined 03:39 sftp_ left 03:42 cognominal left 03:45 cognominal joined
diakopter .. that thing where you can't find a bit of code you wrote in a program, but you swear is there somewhere 03:56
benabik deja code? 03:57
03:58 cognominal left 04:04 cognominal joined 04:07 telex left 04:08 telex joined
cotto I usually end up rewriting it then finding the original version 30 seconds later. 04:17
04:23 kaleem joined 04:33 cognominal left 04:35 cognominal joined 04:43 fgomez left, cognominal left 05:08 fgomez joined 05:12 jaldhar left 05:15 fgomez left 05:27 SamuraiJack joined 05:30 fgomez joined 05:34 dayangkun joined 05:35 dayangkun left, dayangkun joined 05:39 jaldhar joined 06:06 Khisanth joined 06:08 skids left 06:13 jaldhar left 06:14 jaldhar joined
diakopter this is a new one. Vince Vaughn and Bruce Willis in the same movie.. 06:19
06:28 obra joined
diakopter </[OT]> 06:28
sorear doesn't even know the topic 06:29
06:30 obra left
diakopter heh 06:32
06:42 _jaldhar joined 06:43 plobsing left, jaldhar left 06:47 kaleem left 06:50 kaleem joined 06:51 benabik left 06:55 benabik joined 07:03 clkao_ joined, cognominal joined 07:05 kurahaupo left 07:27 flightrecorder joined 07:32 benabik left 07:49 benabik joined 08:00 FROGGS joined
FROGGS morning 08:03
diakopter o/
08:04 domidumont joined
tadzik good morning 08:07
08:07 grondilu joined, domidumont left
grondilu r: my &plus = *+*; sub infix:<+> { ($^a + $^b) % 10 }; say 7+6 08:08
p6eval rakudo f81716: OUTPUT«maximum recursion depth exceeded␤current instr.: 'print_exception' pc 88987 (src/gen/CORE.setting.pir:42692) (src/gen/CORE.setting:9121)␤called from Sub 'infix:<+>' pc 175 ((file unknown):202) (/tmp/J_sp9SzpJl:1)␤called from Sub 'infix:<+>' pc 201 ((file unknown):2…
grondilu r: my &plus = *+*; sub infix:<+> { &plus($^a,$^b) % 10 }; say 7+6 08:09
p6eval rakudo f81716: OUTPUT«maximum recursion depth exceeded␤current instr.: 'print_exception' pc 88987 (src/gen/CORE.setting.pir:42692) (src/gen/CORE.setting:9121)␤called from Sub 'infix:<+>' pc 175 ((file unknown):234) (/tmp/FfE0FdoDB5:1)␤called from Sub '' pc 168 ((file unknown):226) (/tmp…
08:09 brrt joined
grondilu r: BEGIN { our &plus = *+* }; sub infix:<+> { &plus($^a,$^b) % 10 }; say 7+6 08:09
p6eval rakudo f81716: OUTPUT«No such method 'Nil' for invocant of type 'Parcel'␤ in at src/gen/BOOTSTRAP.pm:845␤ in at src/gen/BOOTSTRAP.pm:839␤ in any at src/gen/BOOTSTRAP.pm:836␤ in sub infix:<+> at /tmp/2NSTCA9RJ1:1␤ in block at /tmp/2NSTCA9RJ1:1␤␤»
08:09 drbean joined 08:10 brrt left
diakopter r: my &plus = BEGIN { &infix:<+> }; sub infix:<+> { &plus($^a,$^b) % 10 }; say 7+6 08:10
p6eval rakudo f81716: OUTPUT«3␤»
08:11 domidumont joined
grondilu diakopter: thanks! 08:11
diakopter yw
08:13 brrt joined
diakopter anyone happen to know of any fancy spiffy novel queue lock algorithms? 08:14
unbounded concurrency, no timeouts
08:14 wamba joined 08:15 fhelmberger joined, fhelmberger left
diakopter unbounded concurrency (so no array-based, unless it's an ever-doubling two-level array), don't need abortable/timeouts 08:17
08:20 SamuraiJack_ joined 08:21 domidumont left 08:22 domidumont joined, kaleem left 08:23 SamuraiJack left 08:26 kaleem joined 08:28 azawawi joined
azawawi hi 08:28
jnthn: ping
star: sub ncurses_initscr() is native('libncurses') { ... }; 08:29
p6eval star 2012.10: OUTPUT«===SORRY!===␤Cannot call 'trait_mod:<is>'; none of these signatures match:␤:(Mu:U $child, Mu:U $parent)␤:(Attribute:D $attr, :rw(:$rw)!)␤:(Attribute:D $attr, :readonly(:$readonly)!)␤:(Attribute:D $attr, :box_target(:$box_target)!)␤:(Routine:D $r, :rw(:$rw)!)␤:(Routi…
azawawi star: use NativeCall; sub ncurses_initscr() is native('libncurses') { ... };
p6eval star 2012.10: ( no output )
azawawi star: use NativeCall; sub ncurses_initscr() is native('libncurses') { ... }; ncurses_initscr;
p6eval star 2012.10: OUTPUT«Cannot locate native library 'libncurses.so'␤ in method postcircumfix:<( )> at /home/p6eval/star/lib/parrot/4.6.0/languages/perl6/lib/NativeCall.pm6:122␤ in at src/gen/BOOTSTRAP.pm:827␤ in any at src/gen/BOOTSTRAP.pm:811␤ in block at /tmp/oUculDXx6J:1␤␤»… 08:30
08:32 GlitchMr joined
azawawi star: use NativeCall; sub ncurses_initscr() is native('libncurses.5.so') { ... }; ncurses_initscr; 08:40
p6eval star 2012.10: OUTPUT«Cannot locate native library 'libncurses.5.so'␤ in method postcircumfix:<( )> at /home/p6eval/star/lib/parrot/4.6.0/languages/perl6/lib/NativeCall.pm6:122␤ in at src/gen/BOOTSTRAP.pm:827␤ in any at src/gen/BOOTSTRAP.pm:811␤ in block at /tmp/h_35n0nGGt:1␤␤»…
azawawi star: use NativeCall; sub initscr() is native('libncurses.5.so') { ... }; initscr;
p6eval star 2012.10: OUTPUT«Cannot locate native library 'libncurses.5.so'␤ in method postcircumfix:<( )> at /home/p6eval/star/lib/parrot/4.6.0/languages/perl6/lib/NativeCall.pm6:122␤ in at src/gen/BOOTSTRAP.pm:827␤ in any at src/gen/BOOTSTRAP.pm:811␤ in block at /tmp/RmwsfE_Qvp:1␤␤»…
08:51 azawawi left
diakopter if I can find/discover an appropriate scalable queue lock, I can get rid of 5million failed CAS/s 08:56
bonsaikitten why is the locking needed? (iow, are lockless algos maybe useful here?) 08:58
diakopter the "lock" is really just access to the memory each wants to CAS. So, to remove contention on that location, a queue lock can be used. it's for implementing a lock-free algorithm 09:00
heh. 09:01
well hmm, never mind, seems I confused myself there again. a queue lock wouldn't help. sry nm 09:02
but I need something to reduce CAS contention. simple exponential backoff is helping a little, but it's constraining throughput 09:03
diakopter heads out for a midnight snack 09:04
09:23 sqirrel joined 09:25 fhelmberger joined 09:27 fhelmberger_ joined, fhelmberger left 09:33 wamba left, fhelmberger_ left, fhelmberger joined 09:34 fhelmberger left, fhelmberger joined 09:36 fhelmberger left 09:37 fhelmberger joined 09:47 fhelmberger_ joined, fhelmberger left, GlitchMr left, GlitchMr joined 09:50 dakkar joined 09:52 fhelmberger_ left 09:53 fhelmberger joined 09:58 araujo joined 10:05 hypolin left 10:08 anuby left 10:31 wamba joined
Woodi diakopter: google for "linked list lazy concurent" in pdf by Nir Shavit, there is nice explanation. Shavit is good source for new concurency things :) 10:49
i can paste link if you want 10:50
diakopter sure 10:53
10:57 masak left, felher joined, masak joined
flussence wants fork() just to write sane http server tests... I'm half tempted to use NativeCall 10:58
arnsholt Well, the good news are that it won't require any NativeCall hacks =) 10:59
But I'm not sure how happy Parrot is with random forking
flussence I tried it on the repl once. It works, fsvo "work" :) 11:00
Woodi diakopter: link: www.google.pl/url?sa=t&rct=j&am...FNb67_vPrg 11:06
or better this: people.csail.mit.edu/shanir/publica...urrent.pdf :) 11:08
11:09 wamba left 11:10 Gothmog_ left 11:15 wamba joined 11:22 cognominal left 11:26 Gothmog_ joined
flussence just got a nice shock at $dayjob: I ran "grep cron /var/log/*" on an old debian 3.0 box to try and figure out if it was in use. It ran aptitude and passed a bunch of garbage input to it... 11:27
huf wha 11:28
flussence: how did this happen?
flussence dunno, probably seriously screwed up handling of control characters
huf heh :) 11:29
flussence (this thing is so old bash doesn't even have *readline support*)
moritz wtf? 11:30
11:30 cognominal joined, cognominal left 11:31 cognominal joined 11:37 brrt left, bowtie joined, brrt joined 11:42 brrt left 11:45 gootle left
grondilu posted a question about style for plural form for names of variables: perlmonks.org/?node_id=1002881 11:56
^ what dyou think about this, guys? 11:57
I know it's not a big problem but it's kind of annoying me each time I have to chose a name for an array variable. 11:58
cognominal grondilu, where are you living? 11:59
grondilu France. Why?
cognominal near Paris?
grondilu No. I left Paris a few months ago. I live in Picardie, now. 12:00
cognominal do you know the mongueurs?
grondilu Not much.
cognominal ha, too bad.
I have seen you are taking over the French wp article about Perl 6. that's good because I have not updated it much the last few years 12:01
there is some crap (about history mostly) added by well intentionned people I did not remove to not discourage further collaboration that did not materialize. I hope you will be more drastic than I was. 12:03
grondilu, there is a french channel #perlfr on irc.perl.org 12:05
12:05 cognominal left
grondilu "taking over" is not the right expression. I just thought is need a sreious update indeed. But I don't have much more ideas about what to add now. 12:05
12:05 cognominal joined
grondilu 'thought it needed a serious' (cold fingers) 12:06
12:06 _daniel-s__ joined
cognominal grondilu: about the plural for arrays, I think it is considered as a best practice in Damian's book 12:07
I don't think there is anything about roles because they were not implemented when I wrote the article. 12:08
12:09 daniel-s__ left
grondilu If I were to change something, I would probably split the whole big section in two. One part for the differences with P5, and an other for the totally new features. 12:09
12:10 Gothmog_ left, bluescreen10 joined 12:15 chee left 12:16 chee joined 12:18 chee left, chee joined 12:34 Psyche^ joined 12:35 Patterner left, Psyche^ is now known as Patterner 12:36 wamba left
grondilu rn: my $pos = 0; for <G T A> { "ACGTACGTGACG" ~~ m:c($pos)/$_/; say $pos = $/.from; } 12:47
p6eval rakudo f81716, niecza v22-19-gd874a8e: OUTPUT«0␤0␤0␤»
moritz grondilu: don't use $_ on the RHS of ~~ 12:49
because ~~ sets $_ to the LHS
grondilu rn: my $pos = 0; for <G T A> -> $l { "ACGTACGTGACG" ~~ m:c($pos)/$l/; say $pos = $/.from; }
p6eval rakudo f81716, niecza v22-19-gd874a8e: OUTPUT«2␤3␤4␤»
grondilu indeed. Thanks
jnthn afternoon o/ 12:50
moritz \o jnthn
bowtie hi, could some please kick me in the direction some documentation on how to implement __DATA__ and extract in perl6 please 12:51
moritz bowtie: see S26, it's supposed to be done with POD directives
=for DATA or so 12:52
it mostly works, but the variables for installing the stuff aren't installed yet
bowtie moritz, thanks, but what is S26
FROGGS the tests in roast are helpful too about $=pod (DATA)
bowtie: S26 is the spec of that feature; how it should be implemented 12:54
daxim perlcabal.org/syn/S26.html
FROGGS have a look at these files: github.com/perl6/roast/blob/master...mentation/
13:01 sftp joined 13:02 tokuhiro_ joined 13:03 spider-mario joined
lumi__ r: role Disposing { method dispose { say self ~ " disposed" } }; macro RAII($res, $code) { quasi { my $x = {{{$res}}}; {{{$code}}}($x); LEAVE $x.dispose } }; class C does Disposing {}; RAII C.new, -> $res { say "Processing..." } 13:06
p6eval rakudo f81716: OUTPUT«Cannot assign into a PMCNULL container␤ in at /tmp/QtyefRqAMZ:1␤ in block at /tmp/QtyefRqAMZ:1␤␤»
bowtie thanks for the info on 'Data Blocks' in S26, when I tried the examples they don't work, is that to be expected at this time 13:12
lumi__ r: macro foo($res) { quasi { my $x := {{{$res}}} } }; foo []
p6eval rakudo f81716: OUTPUT«Lexical '$x' not found␤ in at /tmp/kiHqOaE_vO:1␤ in block at /tmp/kiHqOaE_vO:1␤␤» 13:13
jnthn bowtie: I seem to recall seeing that on the roadmap, so I guess it's in need of some implementation. 13:15
13:16 bluescreen10 left
bowtie jnthn, thanks for that, I will go and look at some other bit's of 6 for now :) 13:16
lumi__ So what's up with those weird errors? 13:17
Is that the blocks-in-macros thing?
jnthn lumi__: More generally, declarations in macros. 13:19
lumi__: Though I think masak knows a bit of why this happens now, so hopefully it can be fixed a bit... :) 13:20
13:26 SamuraiJack_ left 13:31 bluescreen10 joined 13:36 cognominal left 13:43 cognominal joined 13:48 cognominal left 13:50 cognominal joined 13:59 SamuraiJack_ joined 14:01 am0c joined 14:04 wtw joined 14:09 flightrecorder left 14:10 flightrecorder joined 14:11 FROGGS left, plobsing joined 14:12 PacoAir joined 14:18 spider-mario left, thou joined 14:19 thou left 14:22 atrodo joined 14:23 FROGGS joined 14:26 cognominal left 14:27 atrodo left 14:29 domidumont left 14:31 atrodo joined 14:32 isBEKaml joined, cognominal joined
isBEKaml [Coke]: (backlogs) I see that you had failed pugs builds. Are you on an updated GHC, by any chance? 14:33
14:34 daniel-s joined 14:37 _daniel-s__ left
isBEKaml weird, I can't seem to access jnthn++'s blog. 14:40
I only got back a google-cached version.
GlitchMr isBEKaml: You can read it on Planet Six 14:41
Also, I can read jnthn's blog...
isBEKaml yeah, that's what I'm doing now. 14:42
but it takes a long time to load for me (too much content there...)
more weirdness: this page doesn't give me any results either -> en.search.wordpress.com/?q=6guts 14:44
I can view wordpress.com fine, though.
14:44 colomon joined 14:49 att__ joined, isBEKaml left 14:53 domidumont joined, tokuhiro_ left 14:58 arlinius joined 15:03 stopbit joined 15:08 brrt joined, wamba joined
brrt hi #perl6 15:18
15:20 skids joined 15:30 colomon left 15:33 colomon joined
[Coke] phenny: tell isBEKaml that I'm using whatever is installed on feather. 15:34
phenny [Coke]: I'll pass that on when isBEKaml is around.
15:35 brrt left, brrt joined 15:38 am0c left 15:47 supernovus joined
Ulti bowtie one thing to be aware of is $=pod doesn't work from compiled modules atm unless someone has fixed that in the last couple of months 15:55
15:59 cognominal left, dayangkun left 16:03 cognominal joined 16:10 supernovus left 16:16 domidumont left, FROGGS left 16:17 domidumont joined 16:18 daniel-s_ joined 16:21 daniel-s left 16:29 brrt left 16:34 wamba left 16:39 flightrecorder left 16:40 flightrecorder joined, flightrecorder left 16:44 zby_home joined 16:45 mikemol joined 16:50 kshannon joined 16:51 kaleem left 16:52 kaleem joined, kaleem left 17:02 domidumont left 17:04 flightrecorder joined 17:10 kaleem joined 17:13 kaleem left 17:19 cibs joined 17:21 MayDaniel joined 17:22 MayDaniel left, MayDaniel joined 17:26 Vlavv left 17:29 domidumont joined 17:36 Vlavv joined 17:53 fgomez left 18:02 dakkar left 18:05 bluescreen10 left, bluescreen10 joined 18:06 bluescreen10 left, bluescreen10 joined, bluescreen10 left 18:07 bluescreen10 joined 18:08 bluescreen10 left
tadzik good evening #perl6 18:10
18:12 bluescreen10 joined, bluescreen10 left
diakopter o/ 18:13
[Coke] quiet today. jnthn must be recuperating after filling up the changelog. :)
18:14 bluescreen10 joined
PerlJam Maybe everyone is busy writing posts for the 2012 Perl 6 Advent Calendar ... 18:15
18:15 cognominal left
jnthn spent most of the day resting, since last night's headache turned into an everythingache by this morning. 18:16
18:21 cognominal joined
[Coke] fluish? 18:21
jnthn I seem to lack any other flu symptoms. 18:22
PerlJam The dreaded oldage virus? :) 18:23
masak .oO( jnthn? old? ) :P 18:24
jnthn Yeah, seems a bit early for that one :P 18:26
masak old age doesn't hit until 28 or 29... :) 18:31
huf that age is certainly the "oldest" 18:32
in the sense that they complain most about being old
at least in my experience :)
PerlJam It's all downhill after age 25 ... luckily the downslope is quite a bit shallower than the upslope
daxim iunex with 30 (or 32 when counting base 2), senex with 60 (or 64)
18:46 ranguard joined 18:48 xinming joined 18:52 xinming_ left 18:56 kaare_ joined 18:58 bluescreen10 left, bluescreen10 joined, bluescreen10 left 18:59 bluescreen10 joined, bluescreen10 left, bluescreen10 joined 19:00 bluescreen10 left 19:01 bluescreen10 joined, bluescreen10 left 19:02 bluescreen10 joined, bluescreen10 left, bluescreen10 joined 19:03 bluescreen10 left, Chillance joined 19:04 bluescreen10 joined, bluescreen10 left, colomon left 19:05 bluescreen10 joined, bluescreen10 left 19:06 bluescreen10 joined, bluescreen10 left 19:07 bluescreen10 joined, bluescreen10 left 19:08 bluescreen10 joined 19:09 bluescreen10 left, bluescreen10 joined, bluescreen10 left 19:10 bluescreen10 joined, bluescreen10 left 19:11 bluescreen10 joined, bluescreen10 left 19:12 bluescreen10 joined, bluescreen10 left 19:13 bluescreen10 joined, bluescreen10 left
bowtie Ulti, thanks for the heads up 19:16
19:19 bluescreen10 joined 19:24 SamuraiJack_ left 19:28 fhelmberger left
masak a person has sent me an email in my role as "an author of a web-master program writen in perl6". 19:28
jnthn The word "web-master" is still used? :) 19:29
masak he's planning to write a web application (in Perl 6) that uses mysql.
he's asking about prior art and whether anything in my program is stealable.
(not sure if he's referring to November or psyde, but nevermind)
19:29 Chillance left
masak I have half a mind to just refer him to github.com/tadzik/zblog -- any other suggestions? 19:30
19:30 Chillance joined
tadzik well, źblog is hardly a good example of a proper web application :) 19:30
19:31 colomon joined
tadzik but probably is a short, useful example 19:32
masak it's small. it uses Bailador and DBIish. it works.
tadzik true 19:33
masak sent a short, working reply :) 19:36
sorear o/ 19:53
masak sorear! \o/
19:57 cognominal left 20:07 vlixes joined 20:09 flightrecorder left 20:12 wamba joined 20:15 leont joined 20:18 fgomez joined 20:19 kurahaupo joined
masak 'night, #perl6. 20:25
colomon \o
20:32 leont left 20:36 fgomez left 20:39 jlaire left, fgomez joined 20:41 jlaire joined 20:44 fgomez left 20:45 grondilu left 20:47 zby_home left 20:55 am0c joined 20:56 bluescreen10 left 20:57 cognominal joined, cognominal left 20:58 cognominal joined 21:06 leon_ joined, wamba left
felher jnthn++ # latest blog post 21:10
21:10 am0c left, GlitchMr left 21:21 wamba joined 21:26 kaare_ left 21:37 bruges_ left 21:38 bruges joined 21:39 domidumont left 21:40 nyuszika7h left 21:42 nyuszika7h joined 21:44 fgomez joined 21:57 fgomez left 22:07 skids left 22:13 fgomez joined 22:21 wamba left, rindolf joined, _jaldhar left 22:23 att__ left, bowtie left 22:35 vlixes left 22:38 rindolf left 22:47 am0c joined 22:59 PacoAir left 23:00 leon_ left 23:04 stopbit left 23:16 _jaldhar joined 23:22 geekosaur left 23:24 Timbus joined 23:25 MayDaniel left 23:27 geekosaur joined 23:33 jaldhar_ joined, _jaldhar left 23:40 skids joined
felher r: say << a b c d 'ab cd' >>.perl; 23:44
p6eval rakudo f81716: OUTPUT«(("a", "b", "c", "d"), "ab cd")␤»
felher Not what i expected. Is this correct? 23:46
r: << a b c d e 'ab cd' >>.tree>>.say
p6eval rakudo f81716: OUTPUT«ab cd␤a b c d e␤»
sorear not really correct but not really wrong either 23:47
.tree is one of those "I know what I'm doing" buttons 23:48
I don't think you're supposed to care about parcel layout except in some specific cases, like zip operators
felher sorear: okay, thanks :) 23:49
23:59 dayangkun joined