»ö« 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! | Rakudo Star Released!
Set by diakopter on 6 September 2010.
00:06 bacek_at_work left
lue ohai again o/ 00:28
00:31 justatheory left
sorear hi lue! 00:36
00:38 justatheory joined 00:46 uniejo joined 00:52 QinGW joined 00:57 araujo left
dalek ecza: 02d5341 | sorear++ | / (6 files):
Eliminate multi-rx-lists

We just keep all methods in order now and look by method name. This means that multi regexes are less redundant with ordinary methods.
00:57
00:58 justatheory left 00:59 patrickas left 01:01 justatheory joined, redicaps joined 01:03 justatheory left, justatheory joined
dalek odel: b2c2823 | diakopter++ | / (3 files):
[dotnet] implement quoted-string (indirectly named) method calls; add 26-methodops.t
01:13
01:13 araujo joined, justatheory left, justatheory_ joined 01:15 justatheory joined 01:17 justatheory_ left 01:19 redicaps left 01:20 risou left 01:24 ch3ck3r joined 01:29 TobiO|ref left, ch3ck left 01:30 nine left 01:43 uniejo left 02:01 nine joined 02:10 justatheory left 02:16 whiteknight left 02:21 envi joined 02:28 meppl left 02:57 agentzh joined 03:11 justatheory joined 03:20 timbunce_ left 03:24 satyavvd joined 03:25 lidden left 03:28 ggoebel left 03:32 justatheory left 03:34 sidek joined
sidek perl 03:34
jasonmay yes! 03:36
simon jasonmay, if it were a boolean statement, I'd say yes, too!
colomon 6! 03:37
simon colomon, I liked that response, too! then, maybe "> " would be a good one, too, since of the interactive interpreter :) 03:38
03:41 justatheory joined 03:45 araujo left
sjohnson hi 03:53
sorear Hi 03:54
03:55 plobsing joined
colomon \o 03:57
plobsing o/ 03:58
04:02 justatheory left 04:11 colomon left 04:12 justatheory joined 04:15 colomon joined
sjohnson -_- 04:15
04:16 Chillance left 04:38 _twitch left 04:44 am0c^ joined 04:45 am0c^2 joined, am0c^ left 04:51 _twitch joined 05:00 _twitch left 05:03 justatheory left 05:07 dduncan joined 05:08 dduncan left 05:12 stkowski left 05:13 justatheory joined 05:54 am0c^2 left 06:03 justatheory left
dalek ecza: 9a2974a | sorear++ | / (3 files):
[v6] Fix runaway string detection, start operators
06:12
06:13 justatheory joined 06:15 wamba joined 06:19 kjeldahl joined 06:30 justatheory left 06:43 kjeldahl left
sorear std: sub prefix:<@>() {}; @ 5 06:49
p6eval std a194beb: OUTPUT«ok 00:01 122m␤»
06:50 araujo joined
dalek ecza: f9f8ef3 | sorear++ | v6/tryfile:
[v6] Make basic categoricals work
06:53
diakopter std: sub prefix:<@>() {}; @5 07:04
p6eval std a194beb: OUTPUT«ok 00:01 122m␤»
07:05 _kaare joined
diakopter std: sub prefix:<@> {}; @5 07:05
p6eval std a194beb: OUTPUT«ok 00:01 120m␤»
moritz_ std: @5 07:09
p6eval std a194beb: OUTPUT«ok 00:01 118m␤»
sorear @5 is @( $/[5] ) 07:12
I'm debugging categoricals, though
and there's a shortage of good unused ASCII punctuation
07:18 TobiO|ref joined
moritz_ \o/ www.modernperlbooks.com/mt/2010/11/...s-out.html 07:22
07:25 wtw joined 07:30 wtw_ joined 07:45 REPLeffect left 08:01 REPLeffect joined 08:38 kjeldahl joined
sorear perl6: say substr("Hello",3,10) 08:40
p6eval pugs, rakudo d85964: OUTPUT«lo␤»
sorear niecza: say substr("Hello",3,10)
p6eval niecza f9f8ef3: OUTPUT«Unhandled exception: System.ArgumentOutOfRangeException: startIndex + length > this.length␤Parameter name: length␤ at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0 ␤ at SAFE.G645substrC (Niecza.Frame th) [0x00000] in <filename
..unknown>…
sorear I suspect niecza may be wrong here 08:41
moritz_ suspects that too 08:42
sorear S32-str backs up pugs and rakudo 08:43
dalek ecza: b6a7764 | sorear++ | v6/tryfile:
[v6] Categoricals need to be tokens, not rules
08:48
ecza: c119c38 | sorear++ | lib/Cursor.cs:
Rewrite handling of outer frames in regexes

Named prefix:<> categoricals work now.
08:49 kensanata joined, kensanata left, kensanata joined
sorear std: sub circumfix:<open close>() {}; open 1 close 08:53
p6eval std a194beb: OUTPUT«ok 00:01 127m␤»
sorear std: sub circumfix:<open close>() {}; open 2 + 2 close
p6eval std a194beb: OUTPUT«ok 00:01 129m␤»
dalek ecza: a1bb48f | sorear++ | v6/tryfile:
Set terminator for circumfix blocks
09:01
sorear STD on niecza can now handle all the usual categorical cases 09:04
tadzik hello 09:05
sorear hi
09:24 ilogger2 joined, ChanServ sets mode: +v ilogger2
sorear out 09:43
tomorrow: JSYNC freeze/thaw. Try to get tryfile.exe to support a setting.
moritz_ sounds nice :-)
09:44 gavv\w joined 09:46 mavrc joined 09:53 Lorn joined 10:07 nymacro joined 10:11 dakkar joined, tzhs joined 10:29 masonkramer joined 10:40 tzhs left 10:41 daxim joined 10:44 daxim left 10:45 daxim joined 11:01 ggoebel joined 11:03 masak joined
masak oh hai, #perl6! 11:04
moritz_ lolitsmasak!
11:06 wallberg joined 11:08 ggoebel left 11:10 tzhs joined
tadzik oh hai 11:10
masak how are you gentlemen? 11:15
moritz_ wonders if 'gentlemen' includes him :-) 11:16
moritz_ finally got the contract for a side job he's been working on for two weeks 11:17
masak nice.
moritz_ the amount of beaurocracy at the university is unbelievable 11:18
tadzik university?
moritz_ yes 11:19
tadzik imagines moritz_ as the guy giving studens programming projects to comlete
"laborant"
moritz_ I had to fill out a questionaire about possible contacts to organizations that might endanger democracy
then a separate questionaire about contacts to the Scientology organization 11:20
+ about 4 regarding social insurance, pension funds, my wife, ... 11:21
and all that for superwising a lab.
tadzik: actually for the university I'm a physicist
s/w/v/
and I have to do all the programming myself 11:23
(with one exception; I did supervise a tutorial in theoretical computer science 2 years ago. It was fun. ) 11:24
moritz_ feels like he killed conversation, if there was one... 11:38
tadzik was there?
masak don't think so.
tadzik you started some. It comes and it goes
masak fwiw, I found the description about questionnaires informative. 11:39
moritz_ nom&
11:52 wallberg left 12:01 exodist joined 12:28 REPLeffect joined, orafu joined 12:34 meppl joined 12:37 bluescreen joined, bluescreen is now known as Guest79835
gfldex www.schockwellenreiter.de/blog/2010...content-6/ 12:39
12:40 risou joined
masak I'd say that's a very patient, understanding cat. clearly it allows its human servant a false sense of mastery, as a sort of generous gesture. 12:46
12:48 snearch joined
takadonet morning all 12:48
Util Morning, takadonet 12:50
12:53 pmurias joined 12:57 Chillance joined 13:04 TobiO|ref joined 13:17 mavrc left
takadonet rakudo: my $limit=5; "I want this to work so badly!" ~~ /(\N**0..$limit)/ ; say $0; 13:17
p6eval rakudo d85964: OUTPUT«===SORRY!===␤Only integers or '*' allowed as range quantifier endpoint at line 22, near "$limit)/ ;"␤»
takadonet rakudo: my $limit=5; "I want this to work so badly!" ~~ /(\N**0..*) <?{$0.chars < $limit} > / ; say $0;
p6eval rakudo d85964: OUTPUT«===SORRY!===␤regex assertion not terminated by angle bracket at line 22, near " > / ; say"␤»
takadonet rakudo: my $limit=5; "I want this to work so badly!" ~~ /(\N**0..*) <?{$0.chars < $limit}> / ; say $0; 13:18
p6eval rakudo d85964: OUTPUT«I wa␤»
takadonet masak: finally got a work around
masak \o/
takadonet so might have a chance to get all of Text-Wrap-Tabs working 13:19
13:20 risou_ joined
masak moritz_++ # "Don't be scared, it's just a collection of text documents :-)" 13:21
moritz_ :-)
13:21 risou left
takadonet ? 13:21
13:21 MayDaniel joined
masak takadonet: p6l 13:22
moritz_ thinks it would be a good idea of sombody with more experience with async IO could comment on the ideas 13:23
it seems that Ben has some concrete, solid ideas about how it should not look like, and more importantly how it should look like 13:25
even if it's not what we'll end up with, it would be much better to have some like that in the spec, just as a general direction for exploration 13:26
masak aye. 13:27
13:29 plainhao joined
colomon takadonet++ 13:29
13:33 sftp joined 13:34 Psyche^ joined, Psyche^ is now known as Patterner 13:35 MayDaniel left 13:44 exodist is now known as Exodist 13:49 s1n joined 14:10 nymacro_ joined, nymacro left, nymacro_ is now known as nymacro 14:17 wamba joined 14:21 KyleHa joined 14:28 fhelmberger joined 14:29 daxim left 14:32 daxim joined 14:34 ggoebel joined
masak what's the purpose of role Container? 14:41
frettled masak: to contain our enthusiasm. :) (c'mon, give us those Japanese warriors) 14:42
masak はい! 14:43
anyway, it seems to me Container is only there because somebody thought that there has to be a parent role for List and Hash. (an odd pair. shouldn't that be Array and Hash...? or List and EnumMap...?) 14:45
and I don't see why there need be.
moritz_ back in the days there was no EnumMap 14:48
masak I'm not saying there isn't a good reason, mind you. I'm saying that if there is one, it's not apparent in the synopses.
it doesn't seem to me, for example, that Container is the role responsible for containing things. in fact, it's empty. 14:49
which is, I guess, Zen and all.
but not particularly useful. 14:50
moritz_ masak: maybe FETCH and STORE really want to live there; but maybe that's a different Container notion
14:50 [Coke] joined
[Coke] moritz_: ping. 14:50
moritz_ [Coke]: pong.
[Coke] so, is rakudo just ignored parrot's revision # for now?
*ing
masak moritz_: maybe. if so, that could be a motivation. but scalars have FETCH and STORE too, don't they. are scalars Containers as well? 14:51
moritz_ [Coke]: no, it barfs until we have a working solution
[Coke]: dukeleto is working on the parrot side, and I on the Rakudo side
[Coke] ... so development is stuck at last svn revision?
moritz_ for now, yes
unless you comment out a line from Configure.pl 14:52
[Coke] Ok. I'll go back to lurking until this is working again, then. Thanks.
moritz_ [Coke]: if you happen to know how to add key-value pairs to parrot_config, that knowledge would be greatly appreciated :-) 14:53
masak actually, I'm not at all sure that the C<Container> type mentioned under S10/Autoloading is the same C<Container> type that S32/Containers declares. 15:00
frettled Fun. 15:02
[Coke] moritz_: in a config step, $conf->data->set('key',$val); 15:06
moritz_ dukeleto: see above 15:07
[Coke]++
dukeleto moritz_: hmmm, i did something very close to that 15:09
moritz_ ah, I see it now 15:11
$conf->data->set( describe => $describe );
dukeleto I am almost done.
gonna push in a few
auto::git_describe - Determine Parrot's git-describe string...RELEASE_2_9_1-229-g2e10036.
moritz_ \o/ 15:12
dukeleto moritz_: the commits i just pushed may be what you need
moritz_: i am testing it manually now 15:13
moritz_ looks like it
dukeleto $ ./parrot_config --dump|grep 'git_describe =>' 15:15
git_describe => 'RELEASE_2_9_1-229-g2e10036'
moritz_ \o/ seems to work
dukeleto moritz_: have fun. I need to do conferency things :)
moritz_: i will unsharpen some of the edges in the next few days. Have fun and wear gloves!
15:18 alester joined, TobiO|ref left 15:19 thundergnat joined
thundergnat Hi #perl6 15:20
I've got something that seems like it should be simple but I can't figure out.
colomon o/ 15:21
masak greetings, thundergnat.
thundergnat I'm trying write a sub routine that needs to access its variables twice.
masak rakudo: sub foo($x) { say $x; say $x }; foo(42) 15:22
p6eval rakudo d85964: OUTPUT«42␤42␤»
thundergnat I cna do it by witing out my long complicated expressions twice but it is offending my sense of DRI.
this works: sub c ($a,$b) {[leg] $a.lc~'long expression'~0.chr~$a, $b.lc~'long expression'~0.chr~$b}; say c('abc', 'AbC'); 15:23
15:23 MayDaniel joined
thundergnat bu tI would like something like: sub c ($a,$b) {[leg] ($a,$b)>>.lc>>~>>'long expression'>>~>>0.chr>>~>>*}; say c('abc', 'AbC'); 15:23
masak thundergnat: $stuff-using-$_ given 'long expression'
moritz_ thundergnat: seems like you want a local sub that replaces 'long expression'
or map
masak or a local variable.
moritz_ ($a, $b).map({ .long-expression }) 15:24
colomon I'm confused as to why you are using [leg] here?
thundergnat colomon: it is a comparison routine
masak hm, can you really reduce leg?
colomon no
moritz_ why not?
masak that doesn't make much sense.
thundergnat masak yep 15:25
moritz_ rakudo: say [leg] 'a', 'b'
colomon I mean, you can, but it will be bad
p6eval rakudo d85964: OUTPUT«-1␤»
masak how does leg associate?
moritz_ not at all
colomon yes, but that has no advantage I can see over 'a' leg 'b'
thundergnat The [leg] is a red herring. that works
masak colomon: indeed.
moritz_ thundergnat: so. map() or a local sub 15:26
masak so [leg] over more than two elements would be an error.
dalek kudo: 3996180 | moritz++ | src/builtins/Str.pir:
make qx and qqx return proper Perl strings
15:26 Guest79835 left
moritz_ my sub foo($x) { $x.long.expression }; foo($a) leg foo($b) 15:26
colomon masak: I don't think it's an error, it's just a crazy idea
I mean,
rakudo: say [leg] 'a', 'b', 'c' 15:27
p6eval rakudo d85964: OUTPUT«-1␤»
thundergnat I'm trying to rewrite this in a DRI way (actual code)
[leg] $a.lc.subst(/(\d+)/,->$/{0~$0.chars.chr~$0},:g)~"\x0"~$a, $b.lc.subst(/(\d+)/,->$/{0~$0.chars.chr~$0},:g)~"\x0"~$b
that WORKS, it''s just offensive
colomon is something like 'a' leg 'b' leg 'c' is -1 leg 'c'
(might be the other way around, 'a' leg -1)
masak it shouldn't be either. 15:28
it should protest.
thundergnat I thought maybe this would work:
[leg] $a,$b)>>.lc>>.subst(/(\d+)/,->$/{0~$0.chars.chr~$0},:g)>>~>>"\x0">>~>>*
but no
err: [leg] ($a,$b)>>.lc>>.subst(/(\d+)/,->$/{0~$0.chars.chr~$0},:g)>>~>>"\x0">>~>>*
masak infix:<leg> is listed in S03 as being non-associative.
it's an interesting question whether you should still be allowed to [leg] two things.
probably should. 15:29
colomon masak: probably should not, if being non-associative means you cannot reduce.
masak I always thought it does.
thundergnat masak Isn't it just a string specific cmp?
masak thundergnat: yes, but the problem is there for cmp as well.
colomon or <=>
masak thundergnat: it doesn't associate.
hence reducing it doesn't make sense. 15:30
this is a rakudobug, but I'm on the move and can't submit it right now.
colomon thundergnat: moritz_'s solution is almost certainly the best
masak someone else is welcome to.
colomon masak++ # spec clearly indicates [leg] should be illegal 15:31
rakudo: say [leg] 'a', 'b', 'c'
p6eval rakudo d85964: OUTPUT«-1␤»
15:31 tzhs left
thundergnat huh. It accidentally works. 15:31
moritz_ thinks [leg] with two arguments is fine
thundergnat I sorta assumed it should
colomon "Any infix operator (except for non-associating operators) can be surrounded by square brackets...." 15:32
moritz_ because &[foo] is really a short-hand for ...
oh
colomon wins by citing the spec :-)
colomon masak wins by making me look there
moritz_ colomon wins, masak meta-wins :-)
masak \o/ 15:33
15:33 rgrau joined
masak Rakudo just fails to throw an error there. 15:33
thundergnat Hmmm. Alright. I'm just wrong i guess.
masak thundergnat: yes, but in a way that merits investigation. try to realize why [leg] is an insane notion. 15:34
thundergnat Well that completely makes my question irrelevent
moritz_ thundergnat: it "works" by comparing -1 to 'c'
masak thundergnat: thanks anyway for bringing this up.
thundergnat if I can't reduce leg or cmp, I HAVE to repeat myself.
masak it resulted in a rakudobug, which is good.
moritz_ rakudo: say [leg] <c b a>
p6eval rakudo d85964: OUTPUT«-1␤»
15:34 wamba left
moritz_ rakudo: say [leg] <a b c> 15:34
p6eval rakudo d85964: OUTPUT«-1␤» 15:35
thundergnat Ah well DRI suffers but life goes on.
masak thundergnat: or you could do what moritz_++ suggested.
colomon reporting now...
moritz_ rakudo: say [leg] <a b 1>
p6eval rakudo d85964: OUTPUT«-1␤»
moritz_ rakudo: say [leg] <a b -1>
p6eval rakudo d85964: OUTPUT«0␤»
masak colomon++
moritz_ it just returns the last comparison
a before b, so it's just -1 leg -1, which returns 0
dynamic typing ftf 15:36
masak there's a lot of machinery in Perl 6 for "generic comparison". I've yet to see it work well in practice.
dalek kudo: 0939ad8 | moritz++ | build/PARROT_REVISION:
bump PARROT_REVISION to something that can report a git-describe-ish revision

note that that's currently from a parrot branch (git_describe), so that parrot branch must be merged before we merge this rakudo branch
masak my, I seem to have gotten a lot grumpier lately. :)
moritz_ rakudo: say <a b c> cmp <a b a> 15:37
p6eval rakudo d85964: OUTPUT«1␤»
moritz_ rakudo: say <a b c> cmp <a b d>
p6eval rakudo d85964: OUTPUT«-1␤»
moritz_ I think cmp is smart enough on its own
colomon RT 79116
PerlJam moritz_: would RELEASE_2_9_1 work there as well? 15:38
moritz_ PerlJam: not yet
but it should be trivial to add
masak train & 15:39
15:39 masak left
thundergnat Anyway, thanks for your help. Even if it amounted to "What the hell were you thinking!?" 15:39
15:40 thundergnat left 15:41 Guest79835 joined
moritz_ well, we did have some ideas :-) 15:41
colomon moritz_: I get the feeling he stubbornly resisted your excellent suggestion. :(
15:42 kaare_ joined
moritz_ that's fine. I can't do more than offering them. 15:42
maybe he really wants something like 15:43
sub transform($x) { .... }
15:43 MayDaniel left
moritz_ first { $_ }, @a>>.&transform Zleg @b>>.&transform 15:43
moritz_ likes that line, and should blog about it :-) 15:44
colomon woah, that's quite a line!
PerlJam Zleg makes me think you're writing some slavic language or something
moritz_ PerlJam: I've just updated my local code for revision comparing to handle just RELEASE_1_2_3 15:47
15:54 kanishka joined 16:00 TobiO|ref joined 16:01 KyleHa left 16:03 KyleHa joined 16:07 mavrc joined, thundergnat joined
thundergnat colomon, moritz_: no, no! Your suggestions were quite useful! 16:08
Didn't mean to sound disparaging.
moritz_ no problem 16:09
thundergnat: did you see my suggestion with Zleg?
thundergnat moritz_ Actually, after being kicked in the right direction, your suggestion turned out to be exactly what I was looking for. 16:10
moritz_ \o/
thundergnat I did, but I don't really need the Z. I was only ever using two terms. Cool idea though. 16:11
16:11 nymacro left
takadonet developers.slashdot.org/story/10/11...a?from=rss 16:11
So glad we don't have any corporate backing
16:12 hercynium joined 16:15 lidden joined 16:17 justatheory joined
moritz_ it really depends on the kind of backing 16:22
if it's organized through an independent foundation, I wouldn't mind a bit more financial support 16:23
thundergnat \o/ That worked out very well! thanks guys! gist.github.com/674282 16:26
takadonet i agree , backing from apache foundation would be great
apache like anyway
thundergnat Refering to my Gist above: Is there any opinion on whether I should make the naturally subs our? 16:27
I could see situations where someone might want to do caching, but I also hate to clutter up the namespace.
Or is there a way to expose them on demand? 16:28
moritz_ you can add 'is export', but that won't work well if they live in a monkey-typed classed
takadonet still does not understand monkey-typed classes 16:29
thundergnat moritz_: the naturally subs are not in the monkey-typed class, they are just called from there. 16:31
What does "is export" imply? or, better perhaps, where in the spec can I read about is export? 16:32
moritz_ thundergnat: yes, but if you put them in a package (in order to make them properly exportable), you remove them from the lexical scope in which they are called now 16:33
thundergnat ah
moritz_ 'is export' implies that you can use YourModule; and get a lexical sub installed in your scope
of course you can always
do
module Sort::Naturally { our sub naturally($x) is export { ... } } 16:34
and then refer to &Sort::Naturally::naturally in class Any
thundergnat Is there a way to only load exportable subs where specifically desired? use Sort::Naturally qw/naturally/; 16:35
Like p5? 16:36
or is that what is export does?
TimToady std: [leg] 1,2,3; 16:37
p6eval std a194beb: OUTPUT«===SORRY!===␤Can't reduce with leg because structural infix operators are diffy and not chaining at /tmp/ZgV_6OuzjF line 1:␤------> [leg]⏏ 1,2,3;␤Check failed␤FAILED 00:01 120m␤»
16:40 KyleHa left 16:42 buubot joined 16:43 KyleHa joined 16:44 kjeldahl joined
colomon thundergnat++ 16:49
16:49 MayDaniel joined
colomon TimToady++ # why do I never think of trying std: for things like this?! 16:51
16:53 pmurias left 17:06 icwiener joined 17:09 REPLeffect left 17:10 spacebat left 17:11 spacebat joined 17:21 Bzek_ joined
PerlJam structural infix ops are "diffy"? 17:21
17:21 lestrrat joined 17:22 REPLeffect joined 17:27 TobiO|ref left
moritz_ their output type are too different from the input types to allow meaningfull chaning 17:29
17:31 REPLeffect left, mindos1 joined
tadzik o/ 17:31
17:33 TobiO|ref joined
moritz_ has a new laptop 17:34
17:34 wamba joined
moritz_ it come with suse preinstalled, which seems pretty decent at first glance 17:34
tadzik nice 17:35
jnthn sounds nice
moritz_ as the next step I'll install Debian :-) 17:37
jnthn huh, not Windows? ;-) 17:38
tadzik > perl Configure.pl --gen-parrot 17:40
Argument "RELEASE_2_9_1-233-gb18101c" isn't numeric in addition (+) at Configure.pl line 25, <$REQ> line 1.
known?
[Coke] I believe dukeleto and moritz are in the middle of fixing that. 17:41
moritz_ tadzik: uhm, I meant to push that to branch gitparrot, not to master 17:43
moritz_ should revert that last commit
17:43 fhelmberger left
tadzik that's why I was suprised when PARROT_REVISION changed when I pulled from master :) 17:43
17:45 REPLeffect joined 17:47 cdarroch joined, cdarroch left, cdarroch joined
moritz_ apologizes 17:47
17:48 lestrrat left 17:49 REPLeffect left 17:51 toebu joined, toebu is now known as TobiO|tom, lestrrat joined
moritz_ rakudo: say 1 cmp 0 17:52
p6eval rakudo d85964: OUTPUT«1␤»
takadonet .... 17:53
dalek kudo: c548b87 | moritz++ | build/PARROT_REVISION:
Revert "bump PARROT_REVISION to something that can report a git-describe-ish revision"

It was meant to go into a different branch, not yet into master. Sorry.
This reverts commit 0939ad808deb7edec6bcdaa3be89ecd6341689cd.
moritz_ rakudo: say 'a' cmp 'b' 17:54
p6eval rakudo d85964: OUTPUT«-1␤»
17:58 daxim left 18:00 impious joined
takadonet :) 18:00
moritz_ am I right in assuming that Configure.pl always runs from within the rakudo directory?
jnthn has certainly never done otherwise... 18:01
18:01 dakkar left
jnthn moritz_: Also the README explicitly says to change into the rakudo directory before running Configure. 18:02
moritz_ ok, great
then I'll rely on that
18:02 kanishka left 18:03 impious left 18:10 ash__ joined
dalek : 31e831d | moritz++ | misc/dalek-conf.json:
[dalek-conf] monitor "parrotgit" rakudo branch
18:12
colomon Ack! no - in variable names in p5! 18:17
18:21 risou_ left, risou joined, icwiener_ joined 18:22 ash__ left 18:23 ash__ joined 18:25 icwiener left 18:28 ash__ left 18:30 icwiener_ left 18:33 icwiener_ joined 18:34 ash__ joined 18:37 bphillips joined, bphillips_ joined, bphillips left 18:41 bphillips_ left 18:45 TobiO|tom left, TobiO|ref left 18:46 kanishka joined
sorear good * #perl6 18:50
tadzik hello sorear
ash__ does nqp have a $* with its version or anything? 18:51
18:51 TobiO|ref joined, TobiO|tom joined
sorear ping moritz_ 18:52
ash__ nqp: say($VERSION);
p6eval nqp: OUTPUT«Symbol '$VERSION' not predeclared in <anonymous>␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (compilers/pct/src/PCT/HLLCompiler.pir:109)␤»
moritz_ sorear: pong 18:53
jnthn ash__: Not afaik, though it could be a good idea. We'll likely want a $*VM or some such at some point too.
ash__ $*NQP<version> (to mimic) $*PERL<version> ? 18:54
rakudo: say $*PERL<version>
jnthn Yeah, perhaps that.
p6eval rakudo c548b8: OUTPUT«2010.10-21-gc548b87␤»
sorear moritz_: if you'd like to not have to add branches to dalek-conf.json ever again, take a look at dalek-push.txt
moritz_ sorear: I don't have admin access to the rakudo repoi
s/i$//
18:56 kanishka left 18:57 M_o_C joined
sorear oh. 18:58
18:59 ch3ck joined 19:00 toebu_ joined
ash__ anyone using tm, i added 2 new commands to my perl bundle, so you can "Run as Perl6" and "Run as NQP" 19:01
19:01 TobiO|ref left 19:02 envi joined, TobiO|tom left
tadzik tm? 19:02
colomon textmate 19:03
19:03 envi left
colomon ash__: Where is your bundle again? :) 19:03
ash__ github.com/ashgti/perl-tmbundle 19:04
colomon thanks!
ash__ git clone github.com/ashgti/perl-tmbundle ~/Library/Application\ Support/TextMate/Bundles/perl.tmbundle should more or less work (assuming directories exist) 19:05
Cmd+Shift+R will run the current file as perl6 19:08
thats the more useful one, i think, unless you do a lot of nqp, thats Cmd+Ctrl+R (but you can re-map them) 19:09
19:11 ash__ left
tadzik where do metaops live in Rakudo source? 19:11
jnthn src/core/metaops.pm iirc 19:12
And code that maps the parsed stuff into using those is in Actions.pm, search for meta_ or so. 19:13
19:15 TobiO|ref joined 19:22 ash__ joined
lue ohai o/ 19:26
sorear hello lue
colomon sorear++ # p6l post 19:28
sorear moritz++ # posted first 19:29
lue how do I make it so this regex: /^^ '=begin' \s+ <blocktype> [\s+ <option>]* $$/ won't go past a newline in a string? [or will I need to split the string into an array?]
sorear \h+
'h'orizontal whitespace
lue thank you sorear. That worked perfectly. 19:31
19:40 rgrau left
[Coke] colomon: (p6l post) really? that didn't read as helpful to me. 19:42
19:43 wamba left 19:49 silug joined 19:50 thundergnat left 19:54 drewrockshard joined 19:55 mikehh joined, drewrockshard left
sorear [Coke]: Should it have been helpful? The OP read as a request for criticism to me. 20:01
dalek : 560e262 | sorear++ | misc/dalek-conf.json:
Remove pull notification for parrot.git
20:03
dukeleto [Coke]: i made a branch on partcl for getting it to work with parrot.git called 'parrotgit'
20:09 toebu_ left
[Coke] dukeleto: danke. 20:09
20:09 TobiO|ref left
lue There's no info on it in the spec, but I assume .parsefile($str, :rule<A>) will continually try to match the regex|token|etc. named A until it's done with the string. Am I correct? 20:10
colomon huh. 20:11
sorear No
it will match 1 copy of A against the entire string
20:12 risou left
lue so it's no different that .parse then. 20:13
moritz_ well, .parsefile opens a file and parse its contents
lue yeah, but it essentialy does the exact same thing, right? Just does the extra step of opening a file. 20:14
moritz_ corrrect
also note that the only difference in name is the 'file' part
lue Then my problem would be that I can't get my regex to match against every line in the string (without turning it into an array of course. If that's the only way then fine.) 20:17
sorear lue: you need the * quantifier
moritz_ lue: if your file format is intrinsically line based, splitting in lines first is easiest
\o/ perl Configure.pl --gen-parrot works again in the parrotgit branch 20:19
colomon \o/
moritz_ please test it
lue I use +, as in <regexthing>+. Does that make a difference? 20:20
ash__ colomon: i am trying to add some unit tests to the tm bundle, since it now has a tool for testing its grammars (see lists.macromates.com/textmate/2010-...30881.html if your interested), so, maybe i'll have some better support soon, i am trying to fix the old issues of doing: package Foo; sub bar { }; and having it show the symbols in the symbol table properly 20:21
tadzik Argument "RELEASE_2_9_1-233-gb18101c" isn't numeric in addition (+) at Configure.pl line 25, <$REQ> line 1.
# On branch parrotgit
moritz_ lue: depends on whether you want allow an empty file
tadzik: did you pull again?
colomon ash__++ 20:22
tadzik hmm, I pulled before switching
right, something was not there
hmm, not-so-bug, but still: wklej.org/id/417814/ 20:23
moritz_ so, is your parrot still an svn checkout? 20:24
lue It matches the first line perfectly, but won't do anything after that.
tadzik moritz_: not anymore, but this error should've stop spitting errors earlier, no? 20:25
moritz_ lue: do you have any rule that matches the \n at the end
tadzik: it should
I'm confused 20:26
if (-d 'parrot') {
if (-d 'parrot/.svn') {
die "===SORRY===\n"
so, there's no parrot/.svn, but you still get the error? 20:27
lue I use $$ at end… waitaminute. (I've got a whole tree of <regex>es in regexes going on.)
tadzik no, there was one, error was ok. But there were a few perl warnings, and that error message is die, no?
moritz_ lue: $$ matches line end, but not the \n 20:28
tadzik: yes, but it's in gen_parrot.pl, which is spawned from COnfigure.pl - which in itself doesn't detect unsuccessful return
tadzik: which is unfortuneate, but nothing new - so not a high priority for me 20:29
tadzik I see
duh, Parrot repo is Big 20:32
lue So replace $$ with \n ? 20:33
moritz_ \n? $$
that way you also match the last line in a file that doesn't end in \n 20:34
sorear $$ \n? surely
$$ won't match after \n
tadzik \n and then the end of the line
moritz_ rakudo: say ?( "a\n" ~~ /\n $$/ ) 20:35
p6eval rakudo c548b8: OUTPUT«Bool::False␤»
moritz_ rakudo: say ?( "a\n" ~~ / $$ \n/ )
p6eval rakudo c548b8: OUTPUT«Bool::True␤»
moritz_ ok,, you're right
tadzik moritz_: branch seems to work for me, Parrot is building itself
moritz_ \o//
tadzik wow, where did you grow that third arm? 20:36
jnthn moritz_: I can try it on Win32 later on today, but don't let that hold up merging it if you're otherwise ready.
moritz_ jnthn: well, it actually requires a merged parrot branch too
jnthn ah, ok
moritz_++ # working on fixing this up 20:37
lue grr. I match to regex TOP { <directive>+ } anything wrong in trying to get that to match more than one line? [where <directive> is regex directive { <A>|<B>|<C>|<D> }, and each of those begin with ^^ and end with $$ \n] 20:40
20:41 molaf joined
moritz_ nothing wrong with that 20:42
though it might be easier to match ^^ and $$\n in <directive>
lue and remove ^^ and $$\n from the others. [trying...] 20:43
tadzik moritz_: everything works like a charm 20:44
20:44 rgrau joined
tadzik One day I'll consider Rakudo fast, when I could watch ForestFire.pl more often than one frame every 15 seconds :) 20:48
moritz_ tadzik: I fixed the bug with further errors from Configure.pl
tadzik moritz_++
lue hm, could greediness be the issue in my regex TOP?
moritz_ what makes you think so? 20:49
lue: perlgeek.de/en/article/debug-a-perl-6-grammar
20:50 Guest79835 left
moritz_ $ ./perl6 --version 20:51
This is Rakudo Perl 6, version 2010.10-20-g08fb200 built on parrot 2.9.1 rRELEASE_2_9_1-233-gb18101c
uhm, the r is still wrong 20:52
tadzik (:
moritz_ tadzik: fixed. 20:53
sorear: dalek doesn't seem to report commits from the parrotgit branch 20:54
mindos1 Hi, I just build Rakudo on OSX server 10.6.4, and it failed on some test. Where can I report to?
moritz_ how long should it take to pick up new branches
sorear 5 minutes
moritz_ mindos1: mailto:rakudobug@perl.org
though a failure in pid.t is known
sorear the first push to any branch will always be missed 20:55
mindos1 Oh, I got that one. I also got t/spec/S32-io/IO-Socket-INET.rakudo failed.
moritz_ mindos1: does that fail deterministally if you run it multiple times?
./perl6 t/spec/S32-io/IO-Socket-INET.rakudo 20:56
20:56 M_o_C left
sorear fetch_url: failure fetching github.com/api/v2/yaml/commits/lis.../parrogit: 404 Not Found 20:56
moritz_ dammit, typo
moritz_ stupid
dalek : cfe4b79 | moritz++ | misc/dalek-conf.json:
fix typo, moritz--
20:57
21:02 y3llow_ joined, pothos_ joined 21:04 y3llow_ is now known as y3llow
mindos1 moritz_: failed 3/3 times, only succeed on Test 1 is-a test. 21:04
21:05 pothos_ is now known as pothos
lue do | (disjunctions) only work right inside some set of brackets? [or would its probability of working increase in brackets?] 21:06
flussence they should work anywhere, but there's always op precedence stuff to remember. When in doubt, write lisp. 21:10
sorear | and || are synonymous in Rakudo 21:11
tadzik . o O (will have to remember that)
Tene lue: probability of working? 21:12
sorear: you only mean in Rakudo's grammars, right?
21:13 proller joined, plainhao left, nrr joined 21:14 kaare_ left 21:27 MayDaniel left 21:32 proller left
sorear Tene: yes 21:32
21:33 proller joined, proller_ joined, proller_ left
lue grr. I'm thinking of scrapping and starting over this grammar of mine. Maybe then it'll be easier to catch mistakes. 21:42
21:42 slavik1 joined
tadzik neutro can now install local modules, not only those git-fetched 21:45
21:47 TobiO|ref joined
moritz_ (dpkg --{g,s}set-selections)++ 21:50
mindos1 moritz_ : I sent the bug report. It seems that the qqx{ } refused to work on my build. 21:53
moritz_ mindos1+ 21:54
mindos1++
moritz_ -> sleep
mindos1 A newbe here... 21:55
Night.
tadzik mindos1: everyone says so at the beginning :)
mindos1 :P
21:56 risou joined, snearch left 21:57 ash__ left
mindos1 I am really excited about the changes in Perl 6. It seems you guys just wanna make it better -- with thought. 21:57
tadzik we just wanna make it. There will be time for making it better then :) 21:59
22:00 ash__ joined, risou left 22:03 ash___ joined, toebu_ joined 22:04 ash__ left
tadzik self!sleep; # g'night 22:04
Juerd mindos1: It has been changing for the past decade so your excitement is probably infinite by now :) 22:05
mindos1 tadzik: Good night.
Juerd : Actually, I started to touch Perl6 just few days ago. But I know many people have worked on it for quite a long time. 22:10
TimToady hopefully it's turning into a real version of Perl in the sense that it rewards you at every level of participation 22:11
22:28 hercynium left 22:29 masonkramer left, masonkramer joined
sjohnson yo 22:30
mindos1 Yo~ 22:31
22:38 araujo joined
sjohnson hows it going 22:39
mindos1 Reading Perl 6 documents, wondering where should I start. 22:43
22:45 alester left
sorear Start... what? 22:46
Using? Contributing? In what way?
ash___ anyone getting an error like: /bin/sh: line 0: cd: src/pmc: No such file or directory when building rakudo? 22:49
sjohnson start learning perhaps 22:50
mindos1 sorear : start to contribute something or find some program to write. 22:51
ash___ oh 22:52
hmm
figured it out
CDPATH causes a problem if you have it set
odd
an easy fix would be to set CDPATH to '' for the duration of the build process, or use ./ in front of paths that need them (hence why src/pmc failed, if it was ./src/pmc it would of been fine) 22:53
or say: CDPATH='' make same effect 22:55
22:56 MayDaniel joined 22:59 ash___ left 23:01 KyleHa left 23:02 TobiO|ref left 23:06 toebu_ left, masak joined
masak oh hai! \o/ 23:06
masak is at jnthn's place
and I blogged! strangelyconsistent.org/blog/novemb...-of-attack
jnthn lolmasakblogged
sorear hello masak 23:07
masak ahoy sorear
sorear: how's niecza going? working on freeze/thaw and setting support? 23:09
sorear yeah
TimToady "guns against gnus"?
sorear lots of questions for ingy
JSYNC spec is slushier than it looks
jnthn But not against unix...
masak TimToady: I had a brain slip. it's being fixed as we speak.
TimToady masak: did you mean emus, or is there some joke I'm not getting 23:10
sorear jsync is supposed to be semantically isomorphic with yaml, but I don't see how - foo versus - "foo" is handled, for instance
masak TimToady: I think my brain might be conflating emus and gnus in places.
TimToady well, I guess they're both warm blooded...
unlike the hot-blooded aussies 23:11
23:16 jaldhar joined
TimToady s/attach/attack/ 23:16
lue hai masak o/
masak TimToady: also fixed. you can refresh now :)
lue: hey there.
23:17 ilogger2 joined, ChanServ sets mode: +v ilogger2
masak seems the only way to get it right is to inline some of the CSS, and that'd mean quite a bit of manual, repetitive CSS styling. not sure what to do about that. 23:17
23:18 ch3ck joined
TimToady wonders if he should upgrade to 64-bit Ubuntu this weekend, since his laptop will support it... 23:18
sorear is studying PyYAML
TimToady and moar is obviously bettor
masak watched a ST-TNG episode the other day where Cmdr. Data informed someone that binary language is made up of 0s and 1s in "groups of eight or sixteen" 23:19
TimToady of course, he's referring to Latin-1 vs UCS-2 23:20
masak heh.
TimToady you guys having a mini-hackathon? 23:21
lue
.oO("Oh no, Commander! This binary data is in groups of 8 *and* 16!")
diakopter is
jnthn TimToady: Well, so far we mostly just discussed what we're going to eat... :)
lue continues staring at his grammar in silent anger. 23:22
23:22 patrickas joined
TimToady lue: you're approaching this all wrong; instead of staring you must bang your head against it until it dissolves from all the blood on it. 23:23
jnthn: sorry...
masak TimToady: I popped over to jnthn over the weekend for some nomz, hacking, and puns. 23:27
sorear ping pmichaud_
TimToady somehow I don't think it'll be a mini-nomathon
sjohnson TimToady: when was the last time you played Perl golf?
diakopter did he ever stop?
TimToady does reducing the size of risottocode entries count?
masak sorear: fwiw, pmichaud_ wrote what I was thinking in reply to your p6l email. sorear++
diakopter mmmm risotto
lue or the LCD juice from mu once=functoning scredn,
diakopter TimToady: if I recall, you increased the size of my risottocode entry greatly :P .. but mine wasn't exactly idiomatic Perl 6. or even hardly.
masak lue: you working on Pod?
TimToady sjohnson: see, for instance, the second entry of rosettacode.org/wiki/Constrained_ra...cle#Perl_6
diakopter: which one was that? 23:28
lue yes, and I think I'm going to murde— replace the grammar I conceived, so I can hopefully catch errors faster (I wrote the small bit that currently exists all at once :/)
diakopter TimToady: the turtle one 23:32
TimToady ah, I took a different approach
masak lue: I've probably suggested it before, but once too many probably doesn't hurt: make sure to check the prior art that's out there.
lue I did before [should look again] 23:33
masak specifically L18-25 in gist.github.com/500732 has references to the three implementations I know of.
dalek odel: a8aa9f7 | jnthn++ | dotnet/ (2 files):
[dotnet] A little tweak to diakopter++'s patch for indirect method calls to avoid needing the operator in RakudoObject (I think we may need that some day, but will need it to do a coercion rather than just an unbox, and need it for .Net language interop).
odel: 2c99e45 | jnthn++ | dotnet/runtime/Runtime/Ops/Comparison.cs:
[odd] More git oddness - line ending issue?
odel: 805378f | jnthn++ | dotnet/compiler/ROADMAP.txt:
[dotnet] Remove indirect method calls from ROADMAP (diakopter++).
sorear jnthn: ping
jnthn sorear: pong
sorear jnthn: how would you like near-instant reporting against all branches in 6model?
jnthn sorear: I don't find it excessively tardy at the moment. ;-)
23:34 ilogger2 joined, ChanServ sets mode: +v ilogger2
tadzik oh, pls is evolving 23:37
lue LTM is NYI, correct? 23:44
dalek odel: a8aa9f7 | jonathan++ | dotnet/ (2 files):
[dotnet] A little tweak to diakopter++'s patch for indirect method calls to avoid needing the operator in RakudoObject (I think we may need that some day, but will need it to do a coercion rather than just an unbox, and need it for .Net language interop).
odel: 2c99e45 | jonathan++ | dotnet/runtime/Runtime/Ops/Comparison.cs:
[odd] More git oddness - line ending issue?
odel: 805378f | jonathan++ | dotnet/compiler/ROADMAP.txt:
[dotnet] Remove indirect method calls from ROADMAP (diakopter++).
jnthn sorear: Done \o/
diakopter heh
jnthn sorear: Remove from dalek-conf.json if needed - is it needed for me?
23:45 ilogger2 joined, ChanServ sets mode: +v ilogger2
jnthn I just use command line one 23:45
diakopter in cygwin?
jnthn Not had the issue in any other repos.
No
tadzik TimToady: about this risottocode, pick(:replace) did turn to .roll, didn't it?
sorear jnthn: If you're migrating an existing project it's needed
jnthn Just plain old Win32 msys bulid, used from Windows command line.
sorear: OK
sorear: Removing my entry
sorear jnthn: the poller and the post-receive script are independant; if both of them are tracking a repo, then commits will be double-reported
I should make that clearer 23:46
23:46 whiteknight joined
tadzik fixes 23:46
TimToady tadzik: yes, but we really want normal pick without replacement semantics here anyway, despite the problem description's seeming bias toward roll semantics 23:47
dalek : bf9469c | jonathan++ | misc/dalek-conf.json:
[dalek-conf] Remove 6model; reported by push notifs now.
23:48
tadzik TimToady: yeah, I noticed second solution using pick 23:49
dalek : 4ac82c5 | sorear++ | misc/dalek-push.txt:
[misc] Clarify requirements for step 7 a bit
23:49 toebu_ joined 23:54 flatwhatson joined
TimToady arguably, roll will be more efficient, but could (in theory) produce only a single point, albeit with probability (1/404) ** 100, which is pretty darn unlikely 23:54
justatheory produces a couple of points
TimToady looks like about 18 points to me
vertically, anyway
masak mindos1: welcome! hope you'll feel right at home here on #perl6. 23:57
mindos1 :) 23:59
masak mindos1: wondering where to start? pick a random feature in the synopses, and try it out on the channel. something will happen.
example: let's try out multi subs.
rakudo: sub foo(Int $x) { say "Int" }; sub foo(Str $x) { say "Str" }; foo(42)
diakopter multi subs with explicit return types
p6eval rakudo c548b8: OUTPUT«===SORRY!===␤Can not re-declare sub &foo without declaring it multi at line 22, near "; foo(42)"␤»
masak rakudo: multi sub foo(Int $x) { say "Int" }; multi sub foo(Str $x) { say "Str" }; foo(42); foo("OH HAI")
p6eval rakudo c548b8: OUTPUT«Int␤Str␤»
masak \o/
TimToady hugme: hug masak
hugme hugs masak and blushes
masak hugs hugme and blushes