»ö« 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:05 atrodo left 00:27 cognominal left
jnthn morning, #perl6 00:34
sorear o/ jnthn
not back in .sv I take it 00:35
er, .se
sorear must've been thinking Svenska, not El Salvador 00:36
jnthn :)
No, in Tokyo right now, but going out to Hakone for a few days before I head back to Sweden. 00:37
00:45 cognominal joined 00:52 aharoni left 00:54 cognominal left 01:00 cognominal joined 01:02 whiteknight left
sjohnson jnthn: hi. long time no chat. you're still a win user, right? 01:08
jnthn sjohnson: yes 01:09
diakopter win ftw
sjohnson diakopter: you too? 01:10
diakopter yes
sjohnson nice
me too. :)
i use windows 7 x64
diakopter win8 here
sjohnson i was worried making the chance from XP a few years ago, but it was a smart move.
for the longest time i've wanted to grab stdout to the clipboard in windows 01:11
thinking it was impossible and determined to write me own, i looked for available names i could use under cmd.exe
i thought of clip. checked for it, and sure enough, it already exists
dir | clip
.. i wish I knew that years ago!
i wanted to share that with jnthn, but you too diakopter 01:12
diakopter that's neat; thanks
jnthn omgz! 01:13
sjohnson++
I'm gonna use that, like, quite a bit :)
sjohnson happy to share
diakopter now what about paste
sjohnson you mean to print clipboard stuff to pipe to something else?
colomon It's pbpaste / pbcopy on OS X. ;) 01:14
sjohnson diakopter: unxutils.sourceforge.net/ (look for gclip.exe) 01:15
if i read your question right
then again, it might be possible in windows 7 too, not sure what the command would be
probably not though. 01:16
diakopter: sorry, pclip.exe
01:34 mtk left 01:35 Targen joined 01:40 mtk joined 02:01 cognominal left 02:44 benabik left 02:45 orafu left 02:47 orafu joined 02:48 Targen left 02:49 jerome joined 02:51 mtk left 03:01 benabik joined 03:04 tokuhiro_ joined 03:07 mtk joined 03:20 jerome left 03:33 jerome joined
TimToady @ LAX 03:34
03:34 mikemol joined
sorear yay! 03:36
TimToady still need to hop to SJC in some kind of puddle jumper 03:39
sorear I thought you lived in Pasadena these days 03:40
or Palo Alto
TimToady I haven't lived in Pasadena since 1963 :)
Mountain View 03:41
which is next door to Palo Alto
sorear and closer to SJC than LAX then
TimToady but Palo Alto is about 350 miles from Pasadena
残念ですが、風邪をひきました。。。 03:47
lestrrat oh no!
diakopter squints upside down
sorear vocabulary page fault 03:48
eep 03:49
TimToady ~。~。 03:50
・え 03:52
~。
heh 03:54
no wonder ~. didn't work, I was still in anthy...
sorear oh, you were trying to kill ssh? 03:55
what is .e?
geekosaur heh
TimToady we probably trying to type /e
geekosaur was actually wondering if that was what was going on
TimToady which goes back to then end of my window 03:56
but I lost the backchannel, so was typing blind
s/we/was/
wifi a a bit flakey here at LAX
sorear meh, TimToady, we know you're a plural entity 03:57
TimToady we are sometimes amused
03:59 tokuhiro_ left 04:25 kaleem joined
dalek p: 82452e6 | jonathan++ | / (4 files):
Implement (?i) modifier.
04:28
04:33 telex left 04:34 telex joined 04:37 tomaw left
jnthn & 04:52
05:07 wk left 05:14 hash_table left 05:32 GlitchMr joined 05:48 birdwindupbird joined 06:25 nyuszika7h left 06:44 aharoni joined 06:57 replore joined 07:05 tomaw_ is now known as tomaw 07:06 flightrecorder joined 07:10 GlitchMr left
moritz good morning 07:10
07:16 kurahaupo joined 07:22 kurahaupo left 07:23 cognominal joined
sorear good morning 07:24
07:26 cognominal left 07:30 cognominal joined, cognominal left 07:32 cognominal joined 07:33 cognominal left 07:34 Patterner left, Psyche^ joined, Psyche^ is now known as Patterner 07:35 cognominal joined
TimToady -> home 07:36
07:36 kurahaupo joined 07:37 cognominal left 07:39 SamuraiJack joined, cognominal joined 07:41 cognominal left, kresike joined
kresike good morning all you happy perl6 people 07:42
07:43 thou left, cognominal joined
sorear is a little suprised TimToady found a flight departing at 12:36a local time 07:45
07:46 cognominal left
TimToady is at home, not leaving for home 07:48
07:49 cognominal joined
sorear ah! welcome home. 07:51
frettled moritz: happy happy 07:52
07:53 hoelzro|away is now known as hoelzro 07:57 cognominal left 07:59 flightrecorder left 08:00 cognominal joined 08:02 fgomez left 08:03 cognominal left 08:04 cognominal joined 08:05 cognominal left 08:09 perigrin left, perigrin joined 08:10 cognominal joined 08:11 fgomez joined 08:17 gerhard_ joined 08:18 gerhard_ left 08:19 gerhard2 joined 08:26 Chillance joined 08:32 dakkar joined 08:37 cognominal left 08:40 kaleem_ joined 08:41 cognominal joined 08:43 fuleo joined 08:44 kaleem left, am0c joined, kaleem joined, kaleem_ left 08:45 kaleem_ joined 08:49 kaleem left, cognominal_ joined, kaleem joined, wk joined 08:50 cognominal left, kaleem_ left 08:51 kaleem_ joined 08:52 brrt joined, gerhard2 left 08:54 kaleem left 08:56 kaleem_ left 08:58 kaleem_ joined 09:04 kaleem_ left, kaleem_ joined 09:05 cognominal_ left 09:06 kaleem joined 09:09 kaleem_ left, kaleem_ joined 09:10 kaleem left 09:11 kaleem joined 09:12 kaleem left, kaleem joined, cognominal_ joined 09:13 kaleem_ left 09:14 kaleem_ joined 09:16 kaleem left 09:18 kaleem_ left 09:20 kaleem_ joined 09:22 kaleem joined 09:24 kaleem_ left, kaleem_ joined 09:25 kaleem_ left 09:26 kaleem left 09:27 kaleem joined 09:31 kaleem_ joined, cognominal_ left, kaleem left 09:32 kaleem joined 09:35 kaleem_ left 09:36 kaleem_ joined, kaleem left 09:37 kaleem joined 09:40 kaleem_ left 09:42 kaleem left, kaleem joined 09:43 kaleem_ joined 09:46 cognominal joined 09:47 kaleem left, kaleem joined, kaleem_ left 09:49 kaleem_ joined 09:51 daxim joined, kaleem left 09:53 cognominal left 09:54 kaleem_ left, kaleem_ joined 09:58 kaleem joined, kaleem_ left 10:00 kaleem_ joined, brrt left 10:02 cognominal joined, kaleem left 10:03 kaleem joined 10:04 kaleem_ left 10:06 kaleem_ joined 10:09 kaleem left 10:10 kaleem_ left 10:11 kaleem_ joined 10:15 kaleem joined 10:16 kaleem_ left, kaleem_ joined 10:19 kaleem left, kaleem joined 10:21 kaleem_ left, kaleem_ joined
kresike everyone who thinks kaleem should switch internet providers raise their arms and hands high :) 10:23
\o/
10:24 kaleem left 10:34 replor___ joined 10:36 replore left, replor___ left 10:40 xinming_ joined 10:43 xinming left
tadzik ¯\_(ツ)_/¯ 10:45
10:49 replore_ joined 11:05 Su-Shee_ joined 11:07 gootle left 11:08 Su-Shee left 11:14 benabik left 11:16 fhelmberger joined 11:27 cognominal left 11:44 buubot_backup left 11:49 rindolf joined
jnthn evening o/ 11:55
moritz good morning jnthn 11:56
rindolf jnthn: goof afternoon.
jnthn For a Japanese hotel room, this place is oddly spacious :) 11:57
Benefit of being in the countryside. Downside: everything seems to close by 7pm! 11:58
moritz do Japanese hotel rooms have awesome internet connection?
jnthn moritz: This one seems to. :) 11:59
moritz \o/
jnthn Also a fridge loaded with rather large beer bottles :)
moritz those are just decoration :-)
jnthn no, they really do contain beer :D
eval "b" =~ /(a)|(b)/; $1 12:02
eval: "b" =~ /(a)|(b)/; $1
Hmm, didn't we have a Perl 5 evalbot...
r: "b" ~~ /(a)|(b)/; $1 12:03
p6eval rakudo c1ddea: ( no output )
jnthn r: "b" ~~ /(a)|(b)/; say $1
p6eval rakudo c1ddea: OUTPUT«Any()␤»
jnthn r: "b" ~~ /(a)|(b)/; say $0
p6eval rakudo c1ddea: OUTPUT«「b」␤␤»
jnthn rn: "b" ~~ /(a)|(b)/; say $0
p6eval niecza v22-6-g9e5350d: OUTPUT«#<match from(0) to(1) text(b) pos([].list) named({}.hash)>␤»
..rakudo c1ddea: OUTPUT«「b」␤␤» 12:04
jnthn rn: "b" ~~ /(a)|(b)/; say $1
p6eval rakudo c1ddea, niecza v22-6-g9e5350d: OUTPUT«Any()␤»
12:05 buubot_backup joined 12:07 buubot_backup left 12:08 telex left 12:10 telex joined
aharoni There's only one bug marked as [EASY] in Perlbug, and it doesn't seem very easy to me. 12:11
I understand the problem, but I have no idea how to start solving it. 12:12
rt.perl.org/rt3/Public/Bug/Display...l?id=82308
If anybody thinks that it's really easy and can give me some guidance, I can try solving it.
jnthn It's easy in so far as it can be solved completely by writing Perl 6 code and all the pre-requisite bits are there. It's tricky in so far as it's an unslvable problem in general ;) 12:14
It's mostly about implementing a Signature.ACCEPTS candidate that takes another Signature 12:15
It then involves looking through the parameters and considering those
jnthn finds another 89 pasing tests 12:17
dalek p: 94286df | jonathan++ | src/QRegex/P5Regex/Actions.nqp:
Perl 5 capture/alternation semantics.
12:22 cognominal joined
dalek ast: 5efc2af | jonathan++ | S05-modifier/perl5_3.t:
Fudge a rx:P5/.../ test file for Rakudo.
12:24
aharoni jnthn, so... solvable or unsolvable? 12:25
And can you update the bug report with whatever thought that you have about it? 12:26
rindolf aharoni: hi. 12:27
dalek kudo/nom: fb11f13 | jonathan++ | t (2 files):
Run S05-modifiers/perl5_3.t.

Also bumps NQP_REVISION to get (?i) support and alternation fix.
aharoni shalom rindolf.
rindolf aharoni: what's new?
aharoni: Hag Same'ach.
jnthn aharoni: Well, making as much as the bug report noted didn't work happen is fairly easy at least.
jnthn looks to see if there's any tests etc. 12:28
hm, seems not, at least in S03-smartmatch
moritz++ may know if we have some elsewhere that I didn't find... 12:29
[Coke] drinks a coffee, trying to clear the cobwebs from his head. ACHOOO. oh, not exactly cobwebs, whoops.
jnthn eww :P 12:30
aharoni rindolf, I've got a new laptop to replace my 2006 rust bucket, and among other things I can finally try to hack on Perl 6. I dreamt about this for a long time.
rindolf aharoni: nice.
aharoni: what are your laptop's SPECs?
aharoni lenovo, 8gb RAM, i7. nothing fancy except that, but that's more than enough to git clone, run tests, and try to fix a thing or two. 12:31
rindolf aharoni: ah. 12:32
12:32 buubot_backup joined
rindolf aharoni: I have 8GB of RAM and Core i3. 12:32
felher I know there is '.^parents' in rakudo. Is there also something like '.^children'? 12:33
12:33 cognominal left
felher o/ everybody, btw :) 12:33
rindolf felher: hello.
aharoni rindolf, if you have time and mood, you're welcome to take a look at github.com/perl6/roast/pull/25
jnthn aharoni: Quicky and dirty example to get you started: gist.github.com/3826700 12:34
rindolf aharoni: I'm not a Perl 6 committer.
flussence .^children would have to search the entire lexpad for objects using that class as a parent. Doesn't sound like something that would be available by default.
jnthn felher: There's nothing like that so far. 12:35
felher: And I don't think it'd be good to have it by default as it would lead to leaks, I expect.
felher flussence, jnthn: okay, thnx :) 12:36
rindolf aharoni: github.com/amire80/roast/commit/7d...fb6dd4ea37 - I think you should extract a function for the until+unlink lines.
felher i build my own list of Events then :)
12:36 buubot_backup left
aharoni rindolf++, the eternal refactorer :) 12:37
rindolf aharoni: thanks. :-)
aharoni is there any reason why you aren't a Perl 6 committer? 12:38
jnthn aharoni: I suggest building up a set of tests for signature comparison. My example doesn't care about positional vs named, or optional vs required.
aharoni: Developing by augmenting means you can experiemnt quickly without having to rebuild CORE.setting each time you change something :) 12:39
[Coke] jnthn: I have several things here covered in snot which would agree with you.
12:39 cognominal joined
jnthn [Coke]: Hopefully not cow orkers :) 12:40
12:40 cognominal left, cognominal joined 12:41 leprevost joined 12:44 rindolf left
aharoni jnthn, I guess that I'll need an explanation about a few things. To begin with, I suppose that <Signature:D:> is the invocant parameter, according to S06... but what exactly is an invocant parameter? 12:51
Why is it needed if it's already in class Signature?
12:52 fhelmberger left
aharoni (that said, I mostly understand the code; I just want to be sure that I get all the bits and pieces.) 12:53
12:54 mucker joined
[Coke] invocant == self 12:56
jnthn aharoni: Because we only want to take invocants that are instances, not the type object. 12:57
Consider Signature ~~ Signature vs :(Str) ~~ :(Str)
12:58 atrodo joined 12:59 PacoAir joined 13:00 hash_table joined 13:03 leprevost left, carlin left 13:08 am0c left 13:11 cognominal left 13:30 fhelmberger joined 13:31 hash_table left 13:35 birdwindupbird left, birdwindupbird joined 13:42 skids left 14:00 stopbit joined
[Coke] ~[ ●_● ]~ . o O (ooh, more unimotes) 14:00
14:01 benabik joined
colomon just wrote a little p5 script, and is impressed both at how fast it is and how relatively clumsy to code compared to p6 14:02
colomon discovered (as a result), that eliminating the ten slowest files from his test suite should speed it up by three or four hours. 14:08
daxim show the clumsy code, I want to see what can be backported next 14:09
colomon I don't think it's really much of a candidate for backporting.
I'm thinking join('', map { sprintf("%02d", $_); } split(/\:/, DateCalc($start, $end))) 14:10
versus DateCalc($start, $end).split(":").map({ sprintf("%02d", $_); }).join('')
daxim yeah, already fix'd in perl5i/autobox::Core 14:11
flussence .map(*.fmt('%02d')) :)
colomon also foreach syntax, if (bool) versus if bool, etc
daxim: really?
(pulls up documentation) interesting... 14:12
I suppose for a really proper comparison I should rewrite the code in p6, but that would involve porting Date::Manip. 14:14
14:15 GlitchMr joined 14:18 cognominal joined 14:19 wk left 14:21 _jaldhar left
dalek p: 2d70bfa | jonathan++ | src/QRegex/P5Regex/ (2 files):
Lookahead, positive and negative.
14:22
14:23 nyuszika7h joined
jnthn 'night o/ 14:24
diakopter o/
14:31 bluescreen10 joined
flussence r: for ^10 { state $ = warn 'warn once' } # neat thing I just found out I could do in perl5 too 14:35
p6eval rakudo fb11f1: OUTPUT«warn once in block at /tmp/c2AuYCtAnY:1␤␤»
moritz eval: for (0..10) { state $ = warn "once" } 14:40
ENOBUUBOT 14:41
14:41 hash_table joined
moritz ah, but you need to name the variable :-) 14:41
14:41 aindilis left 14:42 aindilis joined 14:44 Tanktalus left 14:46 Exodist joined, kaare__ joined 15:05 tokuhiro_ joined 15:06 rindolf joined 15:10 bluescreen10 left 15:16 cognominal_ joined 15:17 replore_ left 15:19 cognominal left 15:20 Circlepuller left
aharoni This is spam: rt.perl.org/rt3/Ticket/Display.html?id=115094 . How can I mark it for removal? 15:21
Or closing or whatever.
15:21 Circlepuller joined
[Coke] I got it. 15:23
I have a "mark spam" button when looking at that in the "open, take" menu on the top right. doy ou?
(if so, mark it. if not, I'll get it.) 15:24
aharoni [Coke], I have "Comment · Reply" on top right... is it near that? 15:25
15:31 Su-Shee_ is now known as Su-Shee 15:32 Chillance left 15:33 skids joined
kresike bye folks 15:35
15:35 kresike left 15:39 kurahaupo1 joined 15:41 kurahaupo left 15:45 bphillips joined
moritz jnthn++ # blag 15:45
15:46 zby_home joined
GlitchMr Why spam bots even attempt to spam bug tracker with robots.txt: rt.perl.org/robots.txt 15:46
No search engine will notice those attempts 15:47
oh, wait, it's not website spam
bphillips hi - is there a Term::Readline equivalent for perl6 yet?
GlitchMr I know that Rakudo REPL uses Readline
But... I dunno... 15:48
moritz I don't think there are user-space bindings available
15:49 kaleem_ left, hoelzro is now known as hoelzro|away
moritz though it seems it should be easy to use with NativeCall.pm6 15:50
bphillips I was just watching jnthn++ 's YAPC::Asia talk and was getting inspired to try writing something :-)
(but writing lower-level libraries is a bit intimidating as an entry point) 15:51
moritz star: use NativeCall; sub readline(Str) returns Str is native('libreadline') { ... }; say readline('foo:')
p6eval star 2012.07: OUTPUT«Cannot locate native library 'libreadline.so'␤ in method postcircumfix:<( )> at /home/p6eval/star/lib/parrot/4.6.0/languages/perl6/lib/NativeCall.pm6:102␤ in <anon> at src/gen/BOOTSTRAP.pm:811␤ in any <anon> at src/gen/BOOTSTRAP.pm:807␤ in block <anon> at /tmp/n…
moritz star: use NativeCall; sub readline(Str) returns Str is native('libreadline5') { ... }; say readline('foo:') 15:52
p6eval star 2012.07: OUTPUT«Cannot locate native library 'libreadline5.so'␤ in method postcircumfix:<( )> at /home/p6eval/star/lib/parrot/4.6.0/languages/perl6/lib/NativeCall.pm6:102␤ in <anon> at src/gen/BOOTSTRAP.pm:811␤ in any <anon> at src/gen/BOOTSTRAP.pm:807␤ in block <anon> at /tmp/…
moritz star: use NativeCall; sub readline(Str) returns Str is native('libreadline.so.5') { ... }; say readline('foo:') 15:53
p6eval star 2012.07: OUTPUT«foo:Land der Berge, Land am Strome,␤Land der Berge, Land am Strome,␤»
bphillips very cool
15:54 tokuhiro_ left
moritz I have a mini module locally that can read from readline, but segfaults when I press the Arrow-Up key 16:00
gist.github.com/3827804 16:01
16:01 tokuhiro_ joined
[Coke] aharoni: yes, it's in that menu. I'll mark it. 16:04
GlitchMr Shouldn't prompt use ReadLine? 16:06
16:06 MayDaniel joined, cognominal_ left 16:09 jlaire left 16:10 baarthor joined, tokuhiro_ left, tokuhiro_ joined 16:15 tokuhiro_ left 16:16 birdwindupbird left
[Coke] as opposed to the vm builtin? possibly. rakudo doesn't always use the parrot builtins. 16:17
aharoni jnthn, I submitted two pull requests about that Signature bug we discussed earlier. I'm a newbie, so they are probably naive. Thanks for any constructive criticism. 16:24
(And rebuilding CORE.setting wasn't that bad. Do you suggest to avoid it and use augment just because it takes some time in the build process?) 16:25
moritz if you need 10 recompiles instead of 2, you think differently :-) 16:27
aharoni But it's just a matter of getting it automatically rebuilt during `make', right? It's all automatic. 16:29
The re-building is a good time to focus on $dayjob.
moritz aye
[Coke] yah, it's mainly because it takes so long. used to take even longer.
16:29 nyuszika7h left
[Coke] does wish he could get paid to perl for his dayjob. 16:30
aharoni writes PHP at $dayjob, but otherwise it's fantastic.
16:31 nyuszika7h joined, nyuszika7h left
dalek ast: 748aace | (Amir E. Aharoni)++ | S03-smartmatch/signature-signature.t:
Add a test for smartmatching Signature and Signature
16:32
ast: e50ae20 | (Конрад Боровски)++ | S03-smartmatch/signature-signature.t:
Merge pull request #27 from amire80/bug82308_signature_smartmatch_tests

Add a test for smartmatching Signature and Signature
16:32 nyuszika7h joined
[Coke] aharoni: I have you beat, I write CF at $DAYJOB. 16:33
aharoni Retro cool. 16:34
moritz rewriting the segfaultiing program in C stops it from segfaulting :/
16:35 thou joined
aharoni GlitchMr++, thanks for merging :) 16:35
moritz I wonder if add_history gets a different pointer when going through nativecall
aharoni: can't you push directly too? 16:36
16:36 tokuhiro_ joined
moritz I thought I gave you a commit bit the other day 16:36
aharoni I can, you gave me the permission. I'm just trying to be modest while I'm doing the first steps.
I can push directly, if you prefer.
16:36 tokuhiro_ left
moritz it's just less work for us others if you push directly 16:37
16:37 tokuhiro_ joined 16:42 tokuhiro_ left 16:47 wk joined 16:51 cognominal joined
cognominal rakudo: Int.WHAT == Int 16:52
p6eval rakudo fb11f1: OUTPUT«Parameter '' requires an instance, but a type object was passed␤ in method Bridge at src/gen/CORE.setting:2837␤ in sub infix:<==> at src/gen/CORE.setting:2760␤ in block at /tmp/CfNL5w6qtP:1␤␤»
16:53 wk left
cognominal question out of pure curiosity. how to test that an value is class? 16:56
the previous expression was an attempt at that
aharoni jnthn, GlitchMr, moritz, now I'm dying to know whether github.com/rakudo/rakudo/pull/84 is any good. 16:59
16:59 wk joined
[Coke] rakudo: say Int.WHAT == 3.WHAT 16:59
p6eval rakudo fb11f1: OUTPUT«Parameter '' requires an instance, but a type object was passed␤ in method Bridge at src/gen/CORE.setting:2837␤ in sub infix:<==> at src/gen/CORE.setting:2760␤ in block at /tmp/90RKP_yjV0:1␤␤»
[Coke] rakudo: say 3.WHAT == Int 17:00
p6eval rakudo fb11f1: OUTPUT«Parameter '' requires an instance, but a type object was passed␤ in method Bridge at src/gen/CORE.setting:2837␤ in sub infix:<==> at src/gen/CORE.setting:2760␤ in block at /tmp/1fPAoSNwhM:1␤␤»
cognominal rakudo: Int.WHAT === Int
p6eval rakudo fb11f1: ( no output )
cognominal rakudo: say Int.WHAT === Int
p6eval rakudo fb11f1: OUTPUT«True␤»
[Coke] ah, there you go.
cognominal == must be numeric equality 17:01
17:01 dakkar left
rjbs Why does this happen: 17:03
rakudo: role SomeRole { } say 1
p6eval rakudo fb11f1: OUTPUT«===SORRY!===␤Confused␤at /tmp/xAyDIGQMIq:1␤» 17:04
rjbs Ah, I need a ;
[Coke] rjbs++
rjbs rakudo: role X {} ; say X.WHAT === X
p6eval rakudo fb11f1: OUTPUT«True␤»
rjbs So, That doesn't tell us that X is a class.
(Unless I misunderstand the class:role relationship in 6.) 17:05
17:05 sivoais left
cognominal rjbs, can we do anything in Perl runtime with a role without instanciating it? :) 17:06
[Coke] no, but it tells us that X is an X.
rjbs cognominal: Can you instantiate a role *at all*?
[Coke] I assumed he meant a particular class, not any ole class.
rjbs [Coke]: I'm just wondering how to answer the question as asked: how do you tell that X is a class? 17:07
[Coke] rakudo: role X {}; my $x = X.new();
p6eval rakudo fb11f1: ( no output )
rjbs Or, if he didn't mean that, then I'm wondering!
[Coke] rakudo has 637 open tickets, with 80 blocking on tests. 17:08
'one'); doit('two'); doit('three'); 17:09
ww
17:10 SamuraiJack left
[Coke] masak: can you please re-evaluate rt.perl.org/rt3/Ticket/Display.html?id=62224 ? 17:11
17:12 SamuraiJack joined 17:14 sivoais joined
cognominal rjbs: I meant, it is instanciated into a class by the runtime. 17:17
17:18 wk left 17:19 pyrimidine joined
cognominal Another question. I fail to understand the difference between a container type as defined in S02:1693 and representation defined in s12:2188 . Currently rereading them both. 17:22
I don't see where it is tested in the *.t files 17:24
17:25 mucker left
[Coke] moritz: please recheck rt.perl.org/rt3/Ticket/Display.html?id=75640 - is that behavior better? 17:30
17:33 jeffreykegler joined
[Coke] cognominal: cn we close out rt.perl.org/rt3/Ticket/Display.html?id=101562 ? 17:33
cognominal [coke] I think so. We don't want implementers wasting time making internals user friendly 17:38
17:42 fhelmberger left 17:46 bluescreen10 joined 17:48 wk joined 17:51 jlaire joined
[Coke] r: "abcd".substr(2,*); 17:52
p6eval rakudo fb11f1: OUTPUT«No such method 'Int' for invocant of type 'Whatever'␤ in method substr at src/gen/CORE.setting:3639␤ in block at /tmp/m1A_vN7zaR:1␤␤»
17:52 jeffreykegler left 17:53 cognominal_ joined 17:55 cognominal left 17:57 wk left 18:00 benabik_ joined 18:01 benabik left, benabik_ is now known as benabik 18:15 cognominal_ left, sirrobert joined
sirrobert hallo p6 18:15
sorear hello. 18:16
18:19 bphillips left 18:20 _nyuszika7h_ joined
[Coke] Guten abend. 18:21
the best kind of ABEND.
GlitchMr aharoni: back - the patch looks fine, but I don't work on Rakudo ;-) 18:24
18:24 rindolf left
GlitchMr But thanks for interest :-) 18:25
18:27 cognominal joined 18:28 Targen joined 18:29 wk joined, daxim left
dalek ast: af67d0b | GlitchMr++ | S03-smartmatch/signature-signature.t:
Instead of !(), we can use nok() function
18:29
ast: 5249f85 | GlitchMr++ | S03-smartmatch/signature-signature.t:
Remove useless block.
18:32 cognominal left 18:34 _nyuszika7h_ left 18:35 rindolf joined 18:37 cognominal joined 18:40 SamuraiJack left 18:44 supernovus joined
supernovus Who would I talk to about getting gist.github.com/3812996 merged in rakudo/nom? 18:45
GlitchMr Send a patch. I think that Rakudo repository has instructions for that 18:51
supernovus: github.com/rakudo/rakudo
Read "Submitting patches" section
supernovus GlitchMr: Ah, thank you! I'd done this a few times before, but it's been a while. 18:53
There, sent. 18:56
19:00 erkan left
felher Is there a Perl6 solution for testing parts of a module that you wouldn't like to export? 19:02
19:14 erkan joined, erkan left, erkan joined 19:15 skids left 19:22 birdwindupbird joined
supernovus Okay, IO::Socket::INET.recv() returns a Str, but I need a Buf... the spec docs for IO could use some tweaking. Maybe once I figure out all the methods that exist, and that should exist, I'll update them... 19:23
sorear I think you can use .read() ? 19:24
colomon thinks the spec docs for IO could use a rewrite, unless something has changed since the last time he looked.... 19:26
supernovus I think .read() will work. I need to change how streams are done anyway, as I need to read the header first, figure out the content-length of the record, then read that much in. Rinse, repeat.
Well, I've gotten farther... now some debugging, I love an error like "This type cannot unbox to a native integer" 19:37
Well, break's over, back to paid work. I'm so close to having FastCGI working, but hobby code doesn't pay the bills. Catch ya'll later #perl6 ! :-) 19:45
19:46 supernovus left 19:56 benabik_ joined 19:58 benabik left, benabik_ is now known as benabik 19:59 sirrobert left 20:02 GlitchMr left 20:12 rindolf left
moritz phenny: ask jnthn to please check my latest reply to rt.perl.org/rt3/Ticket/Display.html?id=75640 for sanity 20:15
phenny moritz: I'll pass that on when jnthn is around.
20:16 birdwindupbird left, hash_table left
cognominal "ProjectRosalind: @cognominal We'll fix it soon, thank you for notifying us!" 20:16
apparently, we will soon be able to type code with $_ in their comment system 20:17
mst hahahahahahaha 20:18
sorear *blink* 20:19
20:20 zby_home left 20:26 _edwin joined
_edwin added rosettacode.org/wiki/Verify_distrib...est#Perl_6 20:26
sorear cool, _edwin++ 20:27
welcome to #perl6
_edwin thanks
comments welcome, especially if someone has an idea to improve the numerical stability
these gamma functions are tough to compute 20:28
sorear be aware that perl 6 likes to switch between computing using exact rationals and floating point 20:30
mathw phenny: tell jnthn his YAPC::Asia talk is awesome
phenny mathw: I'll pass that on when jnthn is around.
sorear code that is numerically stable when implemented using consistant double-precision floating point *may* not be if p6 is allowed to chose representations
20:30 pyrimidine left
_edwin yes. I cannot claim to understand what effect the different numerical types have in my implementation 20:31
:)
before I had a version using continued fractions. that was more fun, but even more unstable :/ 20:32
20:41 kurahaupo1 left 20:46 sirrobert joined 20:47 grondilu joined
grondilu how would you check endianess? 20:49
r: printf "%08x", my int $ = 1; 20:50
p6eval rakudo fb11f1: OUTPUT«00000001»
grondilu r: printf "%08x", my int $ = -1;
p6eval rakudo fb11f1: OUTPUT«ffffffff»
grondilu r: printf "%08x", my int $ = -2;
p6eval rakudo fb11f1: OUTPUT«fffffffe»
grondilu ^ does that mean little endian?
_edwin I don't think so 20:51
grondilu yeah I don't think either on second thought.
_edwin it would be a bug if you could find out about endianness this way, I guess
grondilu unless using pack, which is mostly NYI, is there a way, then? 20:52
sorear you could probably find out using NativeCall 20:53
_edwin somehow you have to get around the type system if you want to derive endianness from the data representation 20:55
20:55 kaare__ left
grondilu can't I use a int overflow or something? 20:56
_edwin I don't see how. It could tell you something about the ALU you are running on, but not about endianness I think 20:58
endianness pretty much only shows its ugly head when you reinterpret one data type as another one 21:01
21:01 supernovus joined
grondilu Isn't there an environnement variable about it? 21:03
dalek osystem: db6baab | (Timothy Totten)++ | META.list:
Added FastCGI
21:04
sorear grondilu: ints don't overflow in perl 6 21:06
grondilu: why do you want to know endianness?
supernovus Well, SCGI is still faster (by far) but those needing FastCGI can use it. Like SCGI, it uses a PSGI compliant interface so it'll work with WWW::Request (included in WWW::App) 21:07
grondilu sorear: I want to read an Array[int] returned by a native call of a digest function. 21:08
21:09 MayDaniel left
supernovus For 2.0 I'll look at renaming FastCGI::Protocol to FastCGI::Protocol::PP and adding FastCGI::Protocol::NativeCall, which may increase the speed significantly. 21:10
grondilu nevermind, I'll figure out something 21:15
21:16 grondilu left 21:17 hash_table joined
colomon has a vague memory he meant to be adding gamma to p6? 21:17
21:17 ashleydev joined
supernovus Basic importing of subs and constants works in Rakudo. How about re-exporting imported stuff? The spec talks about an :EXPORT flag to the 'use' statement, but that seems to be NYI. 21:19
21:19 kurahaupo joined
_edwin grondilu: you could use the known digest of some constant data to find out 21:23
e.g. digest of empty message 21:24
phenny: tell grondilu you could use the known digest of some constant data to find out (e.g. digest of empty message) 21:25
phenny _edwin: I'll pass that on when grondilu is around.
sorear phenny: tell grondilu Why not just have the digest function return a Buf?
phenny sorear: I'll pass that on when grondilu is around.
_edwin maybe Buf is NYI for native calls? otherwise I certainly agree 21:27
colomon++ (meaning to add the gamma function) 21:28
supernovus Oh, and it occurred to me, FastCGI won't work until the patch I submitted earlier is added to rakudo.
21:29 pmurias joined
_edwin anyone know a good algorithm for this problem: find a longest path in a directed multi-edge graph that uses each edge at most once? (repeated vertices allowed) 21:35
sorear I'd be suprised if that problem *wasn't* NP-complete 21:36
wait 21:37
_edwin too bad, because that's basically the pokemon concatenation problem :}
rosettacode.org/wiki/Last_letter-fi...etter#Perl
good thing is there can be at most 26 vertices
but the number of edges is unbounded (or only bounded by the imagination of pokemon creators) 21:39
I did not yet check how smart the existing solutions for this task are 21:41
sorear a path in a directed multi-edge graph that uses each edge at most once is called a trail, according to w:Glossary_of_graph_therory 21:43
my google-fu is failing me for 'longest trail problem np-complete' 21:45
_edwin thanks, didn't know that. o O (it is impossible to read #perl6 and not learn something new :)
sorear I can tell you right now that if you require *vertices* to be used once, it's NP-complete by reduction to DIRECTED HAMILTONIAN CIRCUIT 21:46
_edwin: so you're not actually new here? 21:47
_edwin i must confess I am a long-time lurker :) 21:48
21:48 cognominal left
_edwin a couple of years ago I wrote a blog with perl6-related mailing list summaries for some time: lith-ology.blogspot.co.at/2010/02/s...camel.html 21:51
couldn't keep that up due to tuit shortage unfortunately
sorear ah, well, I joined #perl6 in feb 10 and I have never seen anything actually relevant discussed on the mailing lists 21:52
21:53 cognominal joined
_edwin i never knew doing summaries was *that* much work. I have a lot of respect for anyone who can keep it up over a significant time 21:53
ISTR mailing lists were more active back then. but I also used IRC and commits as sources IIRC 21:54
IRC is even harder to summarize
sorear yeah, raiph++ just started doing irc summaries 21:55
_edwin raiph++ indeed
supernovus Wow, the speed difference between my SCGI and FastCGI libraries is far more significant than I'd have imagined. SCGI request returning "Hello World" takes between 0.015s and 0.025s on my machine. FastCGI requests with the same output take 0.420 and 0.650 seconds.
sorear supernovus: why is there a difference? 21:56
supernovus sorear: I figured there would be a slight difference due to the vast differences in protocols, SCGI is far simpler and requires no calls to pack/unpack. It also has no support for multiplexing requests, and uses a single request record for input/output where FastCGI uses multiple records (some of them are streams). My next version of FastCGI I want to try making a NativeCall wrapper to libfcgi as an alternative to the pure perl im 21:59
plementation and see how big of a difference that makes.
_edwin time to sleep here, bye
21:59 baarthor left
sirrobert wave 22:00
22:00 _edwin left
sirrobert supernovus++: I've been using your SCGI bit and it's working great. Thanks =) 22:00
supernovus sirrobert: I recently rewrote SCGI, introducing version 2.0 which is a little more complex. It requires a Perl 6 implementation that supports exporting constants (I know it works with recent rakudo builds.) 22:02
sirrobert ok! I'll check it out
I'm using rakudo-star 2012-09 right now
so no prob there
22:04 bluescreen10 left
supernovus I'm not sure when rakudo added the ability to import/export constants, but 2012-09 should be new enough. It's probably a bad habit of mine, but I use a custom compiled rakudo from bleeding edge git. Actually the version on my computer is currently more customized, as it has my own "add 'x' to pack()" patch applied so I can test FastCGI. 22:06
sirrobert worst case scenario: I'll revert to v1 until rakudo catches up
I know it's a small thing (in some ways), but being able to off-load logic paths to method sigs is a HUGE convenience. 22:09
over p5, I mean
supernovus Module versioning in rakudo and panda would be nice. So both versions could live side by side. 22:10
sirrobert yeah 22:11
Especially, it would be great for panda to default to local path installation of modules
so you could specify per-project
There's a setting for that, but ... =)
22:26 PacoAir left 22:27 whiteknight joined
supernovus Well, shaved a bit off of the FastCGI speed with a quick optimization. 22:27
sirrobert =)
supernovus I realized it was parsing the header twice, no need for that. 22:28
22:28 benabik left, tokuhiro_ joined
sirrobert nice 22:28
what was the time loss on that?
ooc
supernovus not much I'm afraid, but instead of 0.420 to 0.650, I seem to be getting 0.380 to 0.600 now. 22:29
sirrobert every bit helps =)
supernovus 50ms if I'm reading those numbers correctly. Not too shabby. 22:30
For reference, I'm using lighttpd as the web server, and wget as the client for all of these tests. 22:31
sirrobert I've been using lighttpd in front too. It's been very smooth for me 22:32
22:32 Circlepuller_ joined 22:33 tokuhiro_ left
supernovus It seems to work really well with both SCGI and FastCGI. 22:34
22:34 Circlepuller left 22:35 stopbit left 22:39 pmurias left 22:40 Circlepuller joined 22:41 Circlepuller_ left 22:48 Patterner left 22:55 Psyche^ joined 22:56 cognominal left 22:59 Psyche^ left 23:00 Psyche^ joined, Psyche^ is now known as Patterner 23:02 benabik joined
sirrobert r: say (<a b> X <c d> X <1 2>).perl 23:05
p6eval rakudo fb11f1: OUTPUT«(("a", "c", "1"), ("a", "c", "2"), ("a", "d", "1"), ("a", "d", "2"), ("b", "c", "1"), ("b", "c", "2"), ("b", "d", "1"), ("b", "d", "2")).list␤»
sirrobert how do I convert that into an array of arrays?
r: say (<a b> X <c d> X <1 2>).Array.perl
p6eval rakudo fb11f1: OUTPUT«Array.new("a", "c", "1", "a", "c", "2", "a", "d", "1", "a", "d", "2", "b", "c", "1", "b", "c", "2", "b", "d", "1", "b", "d", "2")␤»
sirrobert r: say (<a b> X <c d> X <1 2>)>>.Array.perl
p6eval rakudo fb11f1: OUTPUT«(Array.new("a"), Array.new("c"), Array.new("1"), Array.new("a"), Array.new("c"), Array.new("2"), Array.new("a"), Array.new("d"), Array.new("1"), Array.new("a"), Array.new("d"), Array.new("2"), Array.new("b"), Array.new("c"), Array.new("1"), Array.new("b"), Array.ne…
sirrobert neither of those is right ...
TimToady r: say (<a b> X <c d> X <1 2>).lol.perl # in theory 23:06
p6eval rakudo fb11f1: OUTPUT«LoL.new(ListIter.new())␤»
sirrobert hmmm list of lists
TimToady maybe in practice
r: say (<a b> X <c d> X <1 2>).tree.perl
p6eval rakudo fb11f1: OUTPUT«(["a", "c", "1"], ["a", "c", "2"], ["a", "d", "1"], ["a", "d", "2"], ["b", "c", "1"], ["b", "c", "2"], ["b", "d", "1"], ["b", "d", "2"]).list␤»
sirrobert ahh 23:07
never heard of 'tree' before =)
thanks 23:08
diakopter you [re]learn something new every day
TimToady n: say (<a b> X <c d> X <1 2>).tree.perl
p6eval niecza v22-6-g9e5350d: OUTPUT«Unhandled exception: Unable to resolve method tree in type List␤ at /tmp/qBlX6NPX2G line 1 (mainline @ 4) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4198 (ANON @ 3) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4199 (module-CORE @ 574) ␤ at /home/p…
TimToady n: say (<a b> X <c d> X <1 2>).lol.perl
p6eval niecza v22-6-g9e5350d: OUTPUT«Unhandled exception: Unable to resolve method lol in type List␤ at /tmp/PKBpj4JkEQ line 1 (mainline @ 4) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4198 (ANON @ 3) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4199 (module-CORE @ 574) ␤ at /home/p6…
TimToady looks like rakudo is a bit ahead here 23:09
sirrobert this is kind of interesting:
say ((1) X (2)).tree.perl; say ((1, 2) X (2)).tree.perl;
r: say ((1) X (2)).tree.perl; say ((1, 2) X (2)).tree.perl;
p6eval rakudo fb11f1: OUTPUT«([1, 2],).list␤([1, 2], [2, 2]).list␤»
sirrobert the first version has an empty element in the second position
TimToady r: say ((2)).perl 23:10
p6eval rakudo fb11f1: OUTPUT«2␤»
TimToady r: say (\(2)).perl 23:11
p6eval rakudo fb11f1: OUTPUT«Capture.new( list => (2,).list, hash => EnumMap.new())␤»
TimToady r: say ((2,)).perl
sirrobert is there a version of X that will give, say, 2 out of 3?
p6eval rakudo fb11f1: OUTPUT«(2,)␤»
sorear singleton Parcels are marked with a trailing comma, a la Python
this does not mean that there is an empty second element
TimToady sirrobert: don't understand your Q
diakopter r: say X:: X X:: # lolz timeout
sirrobert (e.g. <a b c> to (a,b),(b,c),(c,a))
p6eval rakudo fb11f1: OUTPUT«(timeout)use of uninitialized value of type Inheritance in string context in block at /tmp/qOgox2Z0hp:1␤␤use of uninitialized value of type Inheritance in string context in block at /tmp/qOgox2Z0hp:1␤␤use of uninitialized value of type Inheritance in string con…
diakopter what's type Inheritance 23:12
sorear I think it might be referring to the role Perl6::Metamodel::Inheritance
r: say Perl6::Metamodel::Inheritance 23:13
p6eval rakudo fb11f1: OUTPUT«Could not find symbol '&Inheritance'␤ in method <anon> at src/gen/CORE.setting:9934␤ in at src/gen/Metamodel.pm:2380␤ in any find_method_fallback at src/gen/Metamodel.pm:2368␤ in any find_method at src/gen/Metamodel.pm:922␤ in at src/gen/BOOTSTRAP.pm:827␤ i…
diakopter is that leaky?
sorear seems wrong to me 23:14
diakopter I wonder why it times out
sirrobert TimToady: something like that passes in <a b c> and gets out all combinations with at most two elements
TimToady r: say <a b c>.rotate
sorear infinite print loop
p6eval rakudo fb11f1: OUTPUT«No such method 'rotate' for invocant of type 'Parcel'␤ in block at /tmp/v2h8GwDKll:1␤␤»
TimToady r: say [<a b c>].rotate
p6eval rakudo fb11f1: OUTPUT«b c a␤»
TimToady r: say [<a b c>].rotate.rotate
p6eval rakudo fb11f1: OUTPUT«c a b␤»
TimToady is that the sort of thing you're talking about, modulo a .[0,1] or two? 23:15
or are you looking for combinations taken 2 at a time?
sirrobert r: say [1,2,3].rotate: 2;
p6eval rakudo fb11f1: OUTPUT«3 1 2␤»
sirrobert combinations taken 2 at a time
or x at a time
$x 23:16
TimToady but you only took the ordered ones
sirrobert trying to get combinations with at most Int $x elements
r: my @list = 1, 2, 3; for 1..@list.elems { say @list.rotate($_).[0,1]; } 23:20
p6eval rakudo fb11f1: OUTPUT«2 3␤3 1␤1 2␤»
23:21 Patterner left, Psyche^ joined, Psyche^ is now known as Patterner
TimToady rotate will not work as a generic k-combinations generator for more complicated examples 23:25
23:28 fgomez left 23:29 cognominal joined, Chillance joined
flussence from playing around I've managed to get rakudo to spit out some completely bizarre errors... 23:40
r: gist.github.com/3830585
p6eval rakudo fb11f1: OUTPUT«50␤47␤51␤56␤47␤86␤51␤next without loop construct␤ in block at src/gen/CORE.setting:378␤ in block at src/gen/CORE.setting:441␤ in block at /tmp/n7gmaIBTZR:2␤ in block at /tmp/n7gmaIBTZR:1␤␤»
flussence (I won't spam the backlog with them, the code's there though) 23:41
23:56 whiteknight left
supernovus Well, I've tracked down the parse_params() function in FastCGI::Protocol as eating about 0.280 seconds. I'll leave the task of optimizing it for another day. Good * #perl6 :-) 23:58
[Coke] is getting this error in nqp: Cannot look up attributes in a type object 23:59