»ö« 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.
sorear Juerd: still ddosing? 00:13
00:14 sftp left, sftp joined
Juerd sorear: No, it has nothing to do with attacks of any kind, as far as we can tell. 00:19
One cable's link is disappearing at seemingly random intervals; every time it takes a litlte over 30 seconds for the link to reestablish due to STP. 00:20
benabik Is there a good reference for "what is 6model"? 00:21
Juerd It happens 1 to 4 times per hour. Hasn't happened for the past 30 minutes.
sorear STP?
Juerd Spanning Tree Protocol; prevents switch loops in large networks.
sorear whyyyy 00:22
redundancy is the best part of the internet
Juerd It's a feature that every managed switch has.
benabik sorear: It's a side effect of redundancy. You need to make sure two switches don't both see the other as the best route to somewhere.
Redunancy good, loops bad.
Juerd Because without it, you'd get loops. Loops lead to broadcast storms, and those kill switches. 00:23
While port bonding/trunking exists to combine two ports, it's not typically seen as a redundancy thing, and it's not enabled by default, or even discoverable in most cases. 00:24
So if there are two links between switches, it won't see that as a spare link, or to increase bandwidth. Instead, STP will kick in and decide which one to disable. 00:25
lichtkind greetings Juerd
Juerd STP has a learning state of approximately 30 seconds before it enters what's called forwarding state. Forwarding state is the normal state for switch ports.
Cheap switches forward immediately. 00:26
STP can be disabled per port but that's dangerous.
If these issues continue we'll have to do so, though.
00:29 PerlJam left 00:30 d4l3k_ joined, dalek left
Juerd Well, I guess it wasn't the switch port either then :( 00:30
00:30 PerlJam joined
Juerd That was another 30 second outage... 00:30
00:31 d4l3k_ is now known as dalek, masak left, masak joined
benabik Bad NIC? 00:31
benabik knocks on wood.
geekosaur ...nic-noc jokes? 00:38
Juerd benabik: No, the flapping connection is definitely between two switches 00:44
One of those is ours. The other one isn't. These are located at an internet exchange.
benabik Oh well that's... better? Harder to fix, but hopefully doesn't require new hardware... :-/ 00:45
Juerd Well, we first have to find out what the hell is going on.
But now I'm going back home. I've enabled STP PortFast so that it will skip the 30 second learning phase. 00:46
00:46 plobsing joined
Juerd That should bring the outages down to 4 to 5 seconds only and is probably much more bearable. 00:46
benabik Yay bandaids!
Juerd++
Juerd Yea.. :(
I hate leaving this place (extremely noisy datacentre-like room) without a real fix. 00:48
This is a marvellous place. Without leaving the room I could kill of a good part of the Dutch and probably European internet just by cutting cables until the security guys arrive. I just wish fixing things was as easy as breaking them :) 00:50
benabik I get that feeling every time I walk into the machine room at school... Although I can only really screw up one building from there.
Juerd Oh well, at least we've tried a few solutions; theoretically that means we're closer to knowing what the problem is.
00:51 wolfman2000 left
Juerd afk 00:51
benabik "On the contrary, I've learned a great many things that won't work."
Or however that quote goes.
"I have not failed. I've just found 10,000 ways that won't work." ~~ Thomas A Edison 00:52
01:07 retupmoca joined 01:15 mdupont left 01:17 whiteknight left 01:20 d4l3k_ joined, hugme left, dalek left 01:21 d4l3k_ is now known as dalek, PerlJam left 01:22 PerlJam joined 01:38 tokuhiro_ left 01:40 hugme joined, ChanServ sets mode: +v hugme 01:45 sisar joined 01:49 mdupont joined 01:50 cbk1090 left 01:56 fgomez left, fgomez joined
sisar r: say 5 ~~ int ; 02:02
p6eval rakudo 984dc7: OUTPUT«False␤»
sisar r: say 5 ~~ Int ;
p6eval rakudo 984dc7: OUTPUT«True␤»
sisar is 'int' incorrect? Data types _have_ to start with an uppercase letter ? 02:04
benabik int is a native type
Native types are lowercase. (int, num, str)
sisar what's a *native* type ? 02:05
benabik Ints are variable precision, ints are limited to whatever the (virtual) machine does by default.
However ints are likely to be faster.
sisar um, so why did 5 ~~ int fail ? 02:06
i mean, give False
jnthn Something forced it to box. 02:07
(The 5)
At which point it becomes an Int
sorear ~~ int feels wrong to me
sisar jnthn: 'to box' ? 02:08
jnthn sorear: Wrong in the sense of "hard to think of a sane model where it works"? :)
sisar i'm unfaniliar with the term
Teratogen can you do stuff like char broiled; in Perl 6?
jnthn sisar: Turning a native type into an object
sorear jnthn: wrong in the sense of "~~ takes Mu, so it will never ever see an int argument" 02:10
02:11 dalek left, d4l3k_ joined, tadzik left, d4l3k_ is now known as dalek 02:12 masak left, tadzik joined, sisar left, masak joined
jnthn Hmm, is dalek on the blink? 02:15
oh, just reached appropriate part of backlog... 02:16
02:31 lutok joined 02:32 leprevost joined 02:35 s1n left 02:39 lutok_ joined 02:43 lutok left, lutok_ is now known as lutok 02:44 lutok left, lutok joined 02:45 birdwindupbird joined 02:47 lutok left 02:50 s1n joined 02:57 envi_ joined 02:59 orafu left, orafu joined 03:00 Juerd left, d4l3k_ joined, Juerd joined, dalek left 03:01 d4l3k_ is now known as dalek 03:08 cbk1090 joined 03:26 birdwindupbird left 03:27 lestrrat left 03:28 lestrrat joined
lichtkind hai jnthn 03:35
03:36 colomon joined 03:39 envi_ left 03:43 lichtkind left 03:49 wolfman2000 joined 03:51 dalek left, d4l3k_ joined 03:52 d4l3k_ is now known as dalek 04:35 bbkr left, bbkr joined 04:38 leprevost left 04:39 agentzh joined 04:42 dalek left, dalek joined, ChanServ sets mode: +v dalek 04:45 constantined joined 04:52 NamelessTee joined 04:54 bbkr1 joined 04:56 bbkr left, wolfman2000 left 05:14 birdwindupbird joined 05:15 bharath joined, bharath left 05:27 mucker joined 05:28 kaare_ joined 05:31 kaare_ left, kaare_ joined 05:33 dalek left, dalek joined, ChanServ sets mode: +v dalek 05:34 pmichaud left, pmichaud joined 05:36 cbk1090 left 05:49 kaleem joined 05:59 wtw joined 06:02 NamelessTee left 06:05 fgomez left, constantined left 06:22 brrt joined 06:24 dalek left, dalek joined, ChanServ sets mode: +v dalek 06:34 Timbus left 06:35 Timbus joined, brrt left, sivoais left 07:03 sivoais joined 07:08 pnu joined 07:10 fhelmberger joined, tarch joined 07:12 overrosy left 07:15 d4l3k_ joined, dalek left 07:16 d4l3k_ is now known as dalek 07:18 cj left 07:21 BruceZu left 07:25 cj joined 07:36 BruceZu joined 07:41 overrosy joined 07:45 kaare_ left 07:46 cosimo joined, cosimo left 07:47 cosimo joined, cosimo left 07:54 cosimo joined 07:57 araujo left
moritz p6: say 1 <=> 2 08:01
p6eval rakudo da576f, niecza v16-17-g648c49b: OUTPUT«Increase␤»
..pugs: OUTPUT«-1␤»
dalek ast: 18ba63b | moritz++ | S32-num/fatrat.t:
test comparison ops on FatRats where fallback to Num would produce wrong results
08:03
08:06 BruceZu left, dalek left, dalek joined, ChanServ sets mode: +v dalek 08:16 bacek joined
moritz r: say ~ Bag.new({a => 5 b => 2}) 08:17
p6eval rakudo da576f: OUTPUT«===SORRY!===␤Unable to parse blockoid, couldn't find final '}' at line 2␤»
moritz r: say ~ Bag.new({a => 5, b => 2})
p6eval rakudo da576f: OUTPUT«a b␤»
moritz r: say ~ Bag.new({a => 5, b => 2}).pairs.map: { .key xx .value
p6eval rakudo da576f: OUTPUT«===SORRY!===␤Unable to parse blockoid, couldn't find final '}' at line 2␤»
moritz r: say ~ Bag.new({a => 5, b => 2}).pairs.map: { .key xx .value }
p6eval rakudo da576f: OUTPUT«a a a a a b b␤»
moritz Bag.Str is implemented as ~ self.pairs.map: { .key xx .value } 08:18
why doesn't it work in the setting?
08:18 BruceZu joined, kaare_ joined 08:20 kaare_ left
dalek kudo/nom: d344e96 | moritz++ | src/core/Rat.pm:
fix thinko in Int <=> Rat
08:31
kudo/nom: 68e7f8f | moritz++ | src/Perl6/ (2 files):
rename $=POD to $=pod
tadzik moritz: I'm quite sure that second commit broke all Pod tests 08:34
dalek ast: 25f5583 | moritz++ | S (10 files):
$=POD is now called $=pod
08:37
moritz tadzik: just because I haven't pushed that one yet
got called off, sorry for the delay
tadzik no worries :) 08:38
moritz++ 08:39
08:41 dakkar joined
tadzik random hack idea: write a Perl 6 example of oylenshpeegul.typepad.com/blog/2012...icity.html 08:43
would probably require some LWP and MuEvent hacking, but I find it quite possible
08:47 domidumont joined
dalek ast: 5d0290d | moritz++ | S (3 files):
rakudo refudges
08:52
08:57 dalek left, dalek joined, ChanServ sets mode: +v dalek
moritz any idea what's wrong with the Bag/KeyBag stringification, which I've mentioned in the backlog? 09:13
09:14 BruceZu left 09:23 BruceZu joined, constantined joined
moritz and any idea what's wrong with twitter? I keep getting search results that are in no way related to my actual search 09:28
09:29 bbkr joined
moritz and it's been happening for too long to be an april fool's joke 09:39
09:42 NamelessTee joined
moritz r: say ?^1 09:43
p6eval rakudo 68e7f8: OUTPUT«False␤»
moritz r: say ?^0
p6eval rakudo 68e7f8: OUTPUT«True␤»
moritz r: say ?^3 09:44
p6eval rakudo 68e7f8: OUTPUT«False␤»
09:44 Vespakoen joined
moritz n: say ?^3 09:44
p6eval niecza v16-17-g648c49b: OUTPUT«False␤» 09:45
dalek ast: 1fa6884 | moritz++ | S03-operators/boolean-bitwise.t:
prefix ?^
09:49 envi_ joined 09:51 d4l3k_ joined, dalek left, tadzik left, zhutingting joined 09:52 tadzik joined, d4l3k_ is now known as dalek
zhutingting perl6: my $str = '1a2b3c' and say $str ~~ m:g/\d/ 09:53
p6eval niecza v16-17-g648c49b: OUTPUT«===SORRY!===␤␤Regex modifier g not yet implemented at /tmp/zEUpGQyZGk line 1:␤------> my $str = '1a2b3c' and say $str ~~ m:g⏏/\d/␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1…
..rakudo 68e7f8: OUTPUT«False␤»
..pugs: OUTPUT«Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤ unshift @INC, '/home/p6eval/.cabal/share/Pugs-6.2.13.20111008/blib6/pugs/perl5/lib';␤ eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runtime::Match::HsBridge'␤"␤*** '<HANDLE>' tra…
zhutingting perl6: my $str = '1a2b3c' and say $str ~~ /\d/ 09:54
p6eval niecza v16-17-g648c49b: OUTPUT«#<match from(0) to(1) text(1) pos([].list) named({}.hash)>␤»
..rakudo 68e7f8: OUTPUT«=> <1>␤␤»
..pugs: OUTPUT«Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤ unshift @INC, '/home/p6eval/.cabal/share/Pugs-6.2.13.20111008/blib6/pugs/perl5/lib';␤ eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runtime::Match::HsBridge'␤"␤*** '<HANDLE>' tra…
zhutingting how to use global?
moritz r: for '1a2b3c'.match(:g, /\d/) { say ~$/ } 09:55
p6eval rakudo 68e7f8: OUTPUT«use of uninitialized value of type Any in string context␤␤use of uninitialized value of type Any in string context␤␤use of uninitialized value of type Any in string context␤␤»
moritz r: for '1a2b3c'.match(:g, /\d/) { say ~$_ }
p6eval rakudo 68e7f8: OUTPUT«1␤2␤3␤»
moritz r: for '1a2b3c'.comb(/d) { say $_ }
p6eval rakudo 68e7f8: OUTPUT«===SORRY!===␤Preceding context expects a term, but found infix / instead at line 1, near "d) { say $"␤»
moritz r: for '1a2b3c'.comb(/d/) { say $_ }
p6eval rakudo 68e7f8: ( no output )
moritz r: for '1a2b3c'.comb(/\d/) { say $_ }
p6eval rakudo 68e7f8: OUTPUT«1␤2␤3␤»
moritz it helps to actually type what you want :-) 09:56
Teratogen and *I* generate spam on this channel?
hmph!
moritz Teratogen: spam != noise 09:57
Teratogen: and I generate noise while trying to answer a question, which is signal. I haven't seen much signal from you yet
zhutingting thx ;-) and does have some style more perl5?
like $str =~ /\d/g 09:58
moritz zhutingting: I guess for $str ~~ m:g/\d/ { } should work, but it's not implemented yet
p6: say '1234' ~~ m:g/\d/ 09:59
p6eval rakudo 68e7f8: OUTPUT«False␤»
..pugs: OUTPUT«Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤ unshift @INC, '/home/p6eval/.cabal/share/Pugs-6.2.13.20111008/blib6/pugs/perl5/lib';␤ eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runtime::Match::HsBridge'␤"␤*** '<HANDLE>' tra…
..niecza v16-17-g648c49b: OUTPUT«===SORRY!===␤␤Regex modifier g not yet implemented at /tmp/g39T2ImGmV line 1:␤------> say '1234' ~~ m:g⏏/\d/␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1366 (die @ 3) ␤ at /…
moritz there's a design problem with this though
perlgeek.de/blog-en/perl-6/three-fu...match.html 10:00
r: $_ = '123'; say m:g/\d/
p6eval rakudo 68e7f8: OUTPUT«1 2 3␤»
zhutingting thx ;-)
moritz r: $_ = '123'; say (m:g/\d/).WHAT
p6eval rakudo 68e7f8: OUTPUT«List()␤»
moritz r: $_ = 'a1b2d34'; .say for m:g/\d/ 10:01
p6eval rakudo 68e7f8: OUTPUT«=> <1>␤␤=> <2>␤␤=> <3>␤␤=> <4>␤␤»
moritz r: $_ = 'a1b2d34'; say .Str for m:g/\d/
p6eval rakudo 68e7f8: OUTPUT«1␤2␤3␤4␤»
moritz that one does work in rakudo, but only while matching against $_
$_ = '123'; m:g/./; say $/.WHAT
r: $_ = '123'; m:g/./; say $/.WHAT 10:02
p6eval rakudo 68e7f8: OUTPUT«Any()␤»
moritz zhutingting: oh, and welcome to #perl6 :-)
10:05 mirc71 joined
mirc71 p6: say '1234' ~~ m:g/\d/ 10:07
p6eval rakudo 68e7f8: OUTPUT«False␤»
..niecza v16-17-g648c49b: OUTPUT«===SORRY!===␤␤Regex modifier g not yet implemented at /tmp/xGW4G8aAAg line 1:␤------> say '1234' ~~ m:g⏏/\d/␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1366 (die @ 3) ␤ at /…
..pugs: OUTPUT«Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤ unshift @INC, '/home/p6eval/.cabal/share/Pugs-6.2.13.20111008/blib6/pugs/perl5/lib';␤ eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runtime::Match::HsBridge'␤"␤*** '<HANDLE>' tra…
mirc71 wow
looks different in mirc
moritz std: say()
p6eval std 5740094: OUTPUT«ok 00:01 107m␤»
moritz std: say;
p6eval std 5740094: OUTPUT«===SORRY!===␤Unsupported use of bare 'say'; in Perl 6 please use .say if you meant $_, or use an explicit invocant or argument at /tmp/6paawcedCx line 1:␤------> say⏏;␤Check failed␤FAILED 00:01 107m␤»
moritz std: say ;
p6eval std 5740094: OUTPUT«===SORRY!===␤Unsupported use of bare 'say'; in Perl 6 please use .say if you meant $_, or use an explicit invocant or argument at /tmp/fe3ee7vCEv line 1:␤------> say⏏ ;␤Check failed␤FAILED 00:01 107m␤»
mirc71 much better
10:10 JimmyZ_ joined 10:12 JimmyZ_ left, JimmyZ_ joined
mirc71 I wonder what font I need in xchat to render perl 6 engine output here? 10:14
render it properly, that is 10:15
moritz mirc71: std and niecza emit ANSI color codes 10:16
mirc71: so you'd need some kind of extension that can handle those
JimmyZ_ chatzilla can't handle those 10:25
10:27 erkan joined
moritz IMHO compilers shouldn't ouput color codes if they write to pipes 10:27
(which means we wouldn't get colors on IRC, which is fine)
Teratogen www.intertwingled.net/perl6.png 10:29
that's what #perl6 looks like in my xchat 10:30
clearly the wrong character encodings are at work
I don't know how to fix it in xchat 10:31
maybe somebody on #xchat will know
constantined the same in pidgin. p6eval, use pastebin. please 10:36
10:39 constantined left 10:41 constantined joined
constantined this is a joke :) 10:42
10:42 constantined left 10:43 d4l3k_ joined, dalek left 10:44 d4l3k_ is now known as dalek 10:45 constantined joined 10:48 zhutingting left, zhutingting joined 11:01 cognominal_ left, cognominal_ joined 11:21 mirc71 left 11:35 dalek left, d4l3k_ joined, d4l3k_ is now known as dalek 11:39 gfldex left, dalek left, d4l3k_ joined 11:40 d4l3k_ is now known as dalek 11:41 gfldex joined 11:42 NamelessTee left 11:49 pernatiy left 11:50 tokuhiro_ joined 11:54 d4l3k_ joined, dalek left 11:55 d4l3k_ is now known as dalek, pmichaud left, pmichaud joined 11:59 betterworld left 12:03 cognominal_ left, cognominal_ joined, mtk joined 12:05 cognominal___ joined 12:08 cognominal_ left 12:14 fglock joined 12:16 betterworld joined 12:23 araujo joined, araujo left, araujo joined, fsergot joined
fsergot hi #perl6 o/ 12:23
bbkr hi 12:24
12:26 PacoAir joined
moritz \o 12:27
12:27 birdwindupbird left
tadzik hello fsergot 12:27
12:32 pernatiy joined 12:33 birdwindupbird joined
gfldex r: package P { our proto n(Int $i) { say $i }; our multi sub n(Str $s){ say $s}; } P::n(10); P::n('welp'); 12:36
p6eval rakudo 68e7f8: OUTPUT«===SORRY!===␤Confused␤at /tmp/HH7febdbRA:1␤»
gfldex r: package P { our proto n(Int $i) { say $i }; our multi sub n(Str $s){ say $s}; }; P::n(10); P::n('welp'); 12:37
p6eval rakudo 68e7f8: OUTPUT«10␤Nominal type check failed for parameter '$i'; expected Int but got Str instead␤ in sub n at /tmp/iGCIhnpwGE:1␤ in block <anon> at /tmp/iGCIhnpwGE:1␤␤»
moritz huh, I thought we disallowed 'our multi sub' 12:38
gfldex that would mean I can't use MMD in a package 12:39
moritz not at all
gfldex not going to kill me to do it in a class
how am I supposed to do it then?
moritz r: package P { our proto n(|$) {*}; multi n(Int $) { 'Int' }; multi n(Str $) { 'Str' } }; say P::n($_) for 42, 'foo' 12:40
p6eval rakudo 68e7f8: OUTPUT«Int␤Str␤»
gfldex tyvm
moritz yavw
12:43 dalek left, dalek joined, ChanServ sets mode: +v dalek, skids left 12:49 lutok_ joined 12:50 JimmyZ_ left 12:53 GlitchMr joined 12:56 snearch joined
fglock I was reading trac.parrot.org/parrot/wiki/Languages, and went to check Blizkost - I wonder if it makes sense to compile perlito5 to parrot (Blitzkost seems to be just a perl wrapper) 12:56
*Blizkost 12:57
moritz you mean as a way to interop between p5 and parrot?
that does make some sense, yes 12:59
fglock no, not as a way to interop, but as an actual implementation of perl5 in parrot 13:08
moritz ah, ponie 2.0
so, what would you emit? PIR? winxed? 13:10
fglock whatever performs better, I think 13:11
performance is high in my list
13:12 lutok_ left
fglock looking at winxed, it seems to be too high-level 13:14
13:14 JimmyZ_ joined
moritz well, it aims to mostly provide stuff that translates rather directly to parrot stuff 13:15
but still, PIR is closer to the metal
13:16 Vespakoen left
fglock I found this about ponie: news.perlfoundation.org/2006/08/pon..._past.html 13:18
JimmyZ_ emit M0! 13:19
moritz ... except that M0 doesn't run yet, much less JITs
JimmyZ_ if today is April Fools' Day, emit M0 is very easy 13:20
:)
moritz well, it hasn't been April 1st for well over 15 hours here :-) 13:21
13:21 gfldex left
fglock "Ponie was an attempt to drag the Perl 5 internals, kicking and screaming, into the Parrot Virtual Machine and have them run there" 13:21
moritz ok, then it's not an attempt to recreate ponie 13:22
just a p5-on-parrot
13:23 gfldex joined
fglock moritz: do you have a link to ponie? it seems to be a different project 13:24
moritz fglock: no, it's the same. And it's such an old project that all the websites about it seems to have gone down 13:25
fglock: it was an attempt to bring perl 5 to parrot, though I'm not sure how exactly they tried to do it 13:26
[Coke] most of the people around when that happened aren't with parrot anymore. 13:29
13:30 xinming left
moritz or with Perl 6, for that matter 13:30
GlitchMr Well, you can use "use v5" to run Perl 5 code in Perl 6, but...
perl6: use v5; my @array = 1; print $array[0];
moritz though at GPW I talked to Nicholas++, who seems to have vivid memories :-)
p6eval rakudo 68e7f8: OUTPUT«===SORRY!===␤Variable $array is not declared␤at /tmp/bzPtsKSlCx:1␤»
moritz GlitchMr: but only if it's implemented.
fglock there is some discussion here, from 2003 - www.gossamer-threads.com/lists/perl...ers/170165 - they wanted XS-level compatibility
13:31 xinming joined, cognominal_ joined
GlitchMr XS-level compatibility is insanity :P. That would mean that Perl 6 could be only written in C... 13:32
p6eval ..pugs: OUTPUT«Error eval perl5: "sub { use ops (':default', 'binmode', 'entereval');; my @array = 1; print $array[0];␤␤}"␤*** 'print' trapped by operation mask at (eval 2) line 1.␤␤Undefined subroutine &main:: called.␤» 13:33
..niecza v16-17-g648c49b: OUTPUT«===SORRY!===␤␤Variable $array is not predeclared (did you mean @array?) at /tmp/spCpeBE12E line 1:␤------> use v5; my @array = 1; print ⏏$array[0];␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/C…
GlitchMr ... seriously... five minutes to tell me this O_o... 13:34
13:34 dalek left
GlitchMr OK, three... but whatever... 13:34
13:34 dalek joined, ChanServ sets mode: +v dalek, cognominal___ left 13:35 tadzik left, tadzik joined
jnthn morning o/ 13:50
Around for just a little bit. :)
moritz \o jnthn 13:51
jnthn hi moritz :)
moritz++ # various Rakudo patches :)
moritz thanks :-) 13:52
though fixing URI and LWP::Simple was actually more work :-)
I wonder if should make a star release, or wait til after the April compiler release
13:52 kaleem left
moritz I'm not sold on the idea, but I could imagine doing a star release after the Oslo P6 hackathon 13:53
jnthn A Star release would need a patched NQP release because I failed to get the fix for pre-comp of NativeCall-using modules in. ;S
*:S
moritz ok, then it's probably more economic to wait 13:54
jnthn Yeah.
moritz maybe I'll get around to blogging that tonight 13:55
jnthn fwiw, I'm making the 20 hour journey home tomorrow, so will be digging back in to things later this week. :)
tadzik lol look: gist.github.com/2283587 13:56
I with I could make LWP work if it, instead of cheating horribly :)
moritz expects to find an event loop
woah! \o/ 13:57
tadzik they're mostly in order, for the event loop is slower than my wifi at the moment :) 13:58
but thanks to the ultimate slowness of FSM website you can see that it's async :)
moritz 'KOÅCIÃÅ' -- is that the way it should be?
or mojibake?
tadzik afks for a while 13:59
moritz tadzik++
14:05 kaleem joined
jnthn Looks like mojibake to me 14:06
tadzik++ though ;)
8:)
gah, keyboard skills have decreased due to lack of hacking :)
14:12 NamelessTee joined 14:16 skids joined 14:18 NamelessTee left
jnthn bbl 14:21
14:23 mucker left 14:24 snearch left 14:25 pmichaud left, d4l3k_ joined 14:26 pmichaud joined, dalek left 14:27 tadzik left, d4l3k_ is now known as dalek, tadzik joined 14:28 Ulti joined, snearch joined 14:29 JimmyZ_ left
gfldex r: say Order::Increase; 14:31
p6eval rakudo 68e7f8: OUTPUT«Increase␤»
gfldex r: say (Order::Increase).Int;
p6eval rakudo 68e7f8: OUTPUT«-1␤»
14:33 thou joined
bbkr rakudo: Order.^methods.say 14:35
p6eval rakudo 68e7f8: OUTPUT«too many named arguments: 2 passed, 0 used␤ in any parents at src/gen/Metamodel.pm:681␤ in any methods at src/gen/Metamodel.pm:398␤ in method dispatch:<.^> at src/gen/CORE.setting:783␤ in block <anon> at /tmp/UvMyerD1sC:1␤␤»
bbkr what happened here?
gfldex r: say Order.WHAT;
p6eval rakudo 68e7f8: OUTPUT«Order()␤»
gfldex r: say Order.^WHAT;
p6eval rakudo 68e7f8: OUTPUT«===SORRY!===␤Cannot use .^ on a non-identifier method call at line 1, near ";"␤»
moritz r: enum A <b c>; say A.^methods 14:36
p6eval rakudo 68e7f8: OUTPUT«too many named arguments: 2 passed, 0 used␤ in any parents at src/gen/Metamodel.pm:681␤ in any methods at src/gen/Metamodel.pm:398␤ in method dispatch:<.^> at src/gen/CORE.setting:783␤ in block <anon> at /tmp/lNDeV59Rnc:1␤␤»
moritz bbkr: looks like a regression
r: enum A <b c>; A.^methods
p6eval rakudo 68e7f8: OUTPUT«too many named arguments: 2 passed, 0 used␤ in any parents at src/gen/Metamodel.pm:681␤ in any methods at src/gen/Metamodel.pm:398␤ in method dispatch:<.^> at src/gen/CORE.setting:783␤ in block <anon> at /tmp/2sIV3gfwH1:1␤␤»
14:36 pmichaud left
bbkr known or should I report? 14:36
moritz report please
bbkr reports
14:37 d4l3k_ joined, pmichaud joined, dalek left
moritz bbkr++ 14:37
14:38 d4l3k_ is now known as dalek 14:40 PerlJam left, PerlJam joined
gfldex r: package P { class A { has $.a }; multi infix:<==>(A $a1, A $a2){ return $a1.a == $a2.a; } }; my $a1 = P::A.new; $a1.a = 10; my $a2 = P::A.new; $a2.a = 11; say $a1 == $a2; 14:41
p6eval rakudo 68e7f8: OUTPUT«Cannot assign to a readonly variable or a value␤ in block <anon> at /tmp/9A5LNdSEmN:1␤␤»
gfldex r: package P { class A { has $.a is rw; }; multi infix:<==>(A $a1, A $a2){ return $a1.a == $a2.a; } }; my $a1 = P::A.new; $a1.a = 10; my $a2 = P::A.new; $a2.a = 11; say $a1 == $a2; 14:42
p6eval rakudo 68e7f8: OUTPUT«Cannot call 'Numeric'; none of these signatures match:␤:(Mu:U \$v, Mu %_!)␤␤ in method Numeric at src/gen/CORE.setting:644␤ in sub infix:<==> at src/gen/CORE.setting:2340␤ in block <anon> at /tmp/9cmXVaTvQW:1␤␤»
gfldex is there any way for me to get A == A out of that scope? 14:43
r: package P { class A { has $.a is rw; }; multi infix:<==>(A $a1, A $a2){ return $a1.a == $a2.a; } }; my $a1 = P::A.new; $a1.a = 10; my $a2 = P::A.new; $a2.a = 11; say $a1 P::infix:<==> $a2;
p6eval rakudo 68e7f8: OUTPUT«===SORRY!===␤Confused␤at /tmp/g1ySlOsxhM:1␤»
gfldex r: package P { class A { has $.a is rw; }; multi infix:<==>(A $a1, A $a2) is export { return $a1.a == $a2.a; } }; my $a1 = P::A.new; $a1.a = 10; my $a2 = P::A.new; $a2.a = 11; say $a1 == $a2; 14:45
p6eval rakudo 68e7f8: OUTPUT«Cannot call 'Numeric'; none of these signatures match:␤:(Mu:U \$v, Mu %_!)␤␤ in method Numeric at src/gen/CORE.setting:644␤ in sub infix:<==> at src/gen/CORE.setting:2340␤ in block <anon> at /tmp/1AMqbuJ6tS:1␤␤»
moritz gfldex: I don't think there's a way to do it yet >(
erm, :(
gfldex: in theory it should work with infix:<==>(A, A) is export { } and then 'import'
gfldex: but I'm pretty sure it doesn't work in rakudo right now :/ 14:46
gfldex: the only way to make it work is to put P::A into a separate .pm file, and then 'use P::A;'
gfldex i'm writing a module anyway. Would have been nice to cheat until I really have to turn it into a module. :) 14:47
14:47 agentzh left
moritz agreed 14:48
14:48 leprevost joined
gfldex are >, >=, < etc pp "derived" from cmp? Or do I have to implement all of those? 14:48
moritz you have to implement them all 14:50
though I imagine that one could create a module that derives them for you 14:51
gfldex sounds like (mostly) macro work to me
moritz aye
for example for strings, eq and ne can easily short-cut when the length is different, but cmp needs to do the full comparison work
so in general, it's not a good idea to always derive all the comparators from the most general ones 14:52
gfldex masak++ for providing reason to say: that's for later :->
14:54 tokuhiro_ left 14:59 tarch left, birdwindupbird left 15:01 zipf joined
tadzik what's mojibake? 15:02
oh
"KOÅCIÃÅ" is just "Kościół" badly encoded 15:03
phenny: "kościół latającego potwora spaghetti"?
phenny tadzik: "Church of the flying spaghetti monster" (pl to en, translate.google.com)
15:03 HarryS left 15:04 leprevost left 15:06 wtw left 15:16 colomon left 15:17 HarryS joined
tadzik nom: my Num $a = (now - now).Numeric 15:19
p6eval rakudo 68e7f8: OUTPUT«Type check failed in assignment to '$a'; expected 'Num' but got 'Duration'␤ in block <anon> at /tmp/fPIIbFfJff:1␤␤»
tadzik disapproves
moritz nom: say Duration ~~ Numeric 15:20
p6eval rakudo 68e7f8: OUTPUT«True␤»
moritz tadzik: then change your type constraint to Numeric (or real), or call .Num
nom: my Num $a = (now - now).Num\
p6eval rakudo 68e7f8: OUTPUT«===SORRY!===␤Confused␤at /tmp/8qE7wXJapL:1␤»
moritz nom: my Num $a = (now - now).Num
p6eval rakudo 68e7f8: OUTPUT«Type check failed in assignment to '$a'; expected 'Num' but got 'Rat'␤ in block <anon> at /tmp/SA4fbusqbI:1␤␤»
moritz now *that* I disapprove of
tadzik yeah, that's the next thing :)
moritz let me just say "WTF" :-) 15:21
tadzik I'll just pass %s to sprintf :P
moritz ah, I think I know what's wrong
Duration.Bridge returns a Rat
and other parts of the setting assume (for performance reasons) that .Bridge returns a Num 15:22
15:27 xinming left, dalek left, dalek joined, ChanServ sets mode: +v dalek 15:28 xinming joined, tadzik left 15:29 pernatiy left, tadzik joined 15:35 fglock left
dalek ast: abc657a | coke++ | S0 (2 files):
pugs fudge
15:37
15:39 GlitchMr42 joined
tadzik wordpress is absolutely horrible 15:40
anyway, blog post! ttjjss.wordpress.com/2012/04/02/asy...in-perl-6/
15:41 GlitchMr left, GlitchMr42 is now known as GlitchMr 15:42 kaleem left
constantined > AnyEvent lookalike 15:42
15:45 [particle] joined 15:46 zipf left 15:48 zipf joined 15:50 Patterner left, zipf left 15:51 zipf joined 15:52 Psyche^ joined, Psyche^ is now known as Patterner 16:02 NamelessTee joined 16:06 kaleem joined
[Coke] supposed trying to learn to speak mandarin while eating lunch is asking for trouble. 16:06
(hard to time the speaking with the eating.) 16:07
16:08 kaare_ joined
gfldex You could talk about food and reach new levels of expressiveness. 16:09
sorear good * #perl6 16:11
[Coke] gfldex: I am still at the beginning, learning to say "I can speak a little Mandarin. Do you speak English?" 16:12
16:19 pyrimidine joined, kaleem left 16:20 dalek left, d4l3k_ joined, d4l3k_ is now known as dalek 16:21 zhutingting left, snearch left 16:46 fglock joined 16:50 brrt joined 16:56 dakkar left 16:57 GlitchMr left 17:00 lichtkind joined 17:01 kaleem joined 17:02 zipf_ joined, zipf_ left 17:03 zipf left
lichtkind its allrigth to make a category name signature symbol? 17:04
moritz Cannot parse: two terms in a row 17:05
17:06 tyatpi joined
lichtkind morit runs perl in his head 17:07
17:08 spider-mario joined
tadzik github.com/blog/1081-instantly-bea...ject-pages ooh 17:08
lichtkind in the index i have behind every identifier a category which it belongs to
like special var or regex metachar
now i look for a name of a cat for all the signature thingies like -> ? ! : and alike
moritz ah. yes. 17:09
timotimo githubcities much?
17:11 simcop2387 left
lichtkind so would be "signature symbol" be good 17:11
17:11 d4l3k_ joined, dalek left 17:12 simcop2387 joined, d4l3k_ is now known as dalek, tadzik left
moritz if it makes sense for grouping the stuff, yes 17:12
there's no syntactic category that contains ->, : and ! because they are parsed at different points in the program 17:13
17:13 tadzik joined
lichtkind i know thatswhy i ask :) 17:23
these i did yesterday
17:32 leprevost joined
masak o/, #perl6 17:33
[Coke] masak: ho. 17:34
moritz \o masak, [Coke] 17:36
[Coke] tries a hot tea in honor of his recent trip to england. 17:38
masak last week, I invested in a medium-sized box of Kusmi Prince Vladimir. best purchase, all categories, in quite a while. 17:45
17:45 envi_ left
tadzik hi masak 17:46
masak here, today's autopun, though a weak-ish one: '"What do we want?!" "TIME TRAVEL!" "When do we want it?!" "IRRELEVANT!"' 17:49
felher tadzik++ #blog post :) 17:50
masak (I'm more fond of the zombie joke: '"What do we want?!" "Braaaains" "When do we want it?!" "Braaaains"') 17:51
felher: url?
felher masak: ttjjss.wordpress.com/2012/04/02/asy...in-perl-6/
masak danke.
felher masak: gern geschehen :)
masak tadzik: nice. 17:52
felher -> bus
masak tadzik++