pugs.blogs.com | pugscode.org | pugs.kwiki.org | paste: sial.org/pbot/perl6 | <stevan> Moose... it's the new Camel ":P | .pmc == PPI source filters!
Set by Alias_ on 16 March 2006.
00:11 buu is now known as buubot 00:12 buubot is now known as buu 00:13 buubot joined 00:14 ruoso joined 00:48 Hue-Bond left 00:56 hikozaemon joined 01:01 FB|zzz is now known as FB|very-very-ric, FB|very-very-ric is now known as FurnaceBoy
meppl gute nacht 01:43
FurnaceBoy n8 01:47
02:11 aufrank joined 02:24 SamB joined 02:50 buubot joined 02:53 buubot joined 02:56 particle_ joined, mjk joined 02:57 avar joined 02:58 buubot joined 03:13 weinig is now known as weinig|sleep 03:35 scw joined 03:54 azuroth joined 04:51 FurnaceBoy is now known as TheChannel 04:52 TheChannel is now known as FurnaceBoy 05:10 pdcawley joined 05:15 justatheory joined 05:43 pdcawley joined 06:34 scw joined 06:47 Quell joined 06:50 rashakil joined 07:00 iblechbot joined 07:05 SM_ax joined 07:14 drrho joined 07:28 Aankhen`` joined 07:58 bjoern_ joined 08:03 marmic joined 08:25 YetAnotherEric joined 08:32 elmex joined 08:34 xern joined 08:44 buubot joined 08:46 buubot joined 08:53 sri_ joined 09:11 takesako joined 09:56 ludan joined
ludan hi 09:56
10:15 xern_ joined
Juerd Hello 10:39
audreyt greetings. 10:40
theorbtwo G'localtime. 10:43
szbalint Hi 10:56
11:26 scw joined 11:28 cdfh joined
meppl guten morgen 11:32
11:34 nothingmuch joined
ingy hola 11:52
meppl good morning ingy 11:57
ingy hi meppl 12:05
12:06 khisanth_ joined 12:07 khisanth_ joined 12:09 khisanth_ is now known as Khisanth 12:27 Limbic_Region joined
Limbic_Region hey all, there is a basic "Getting started with Pugs" question at the Monastery that could use some attention 12:34
perlmonks.org/index.pl?node_id=550348 12:35
12:42 weinig|sleep is now known as weinig 13:06 dvorak_ joined 13:10 weinig joined
svnbot6 r10383 | fglock++ | PCR :ratchet - <after> 13:14
13:16 fglock joined 13:19 fglock joined 13:21 bjoern_ joined
fglock <after> was implemented by "reversing the syntax tree" as in S05 :) 13:31
13:38 bjoern_ joined 13:40 Steve_p_ is now known as Steve_p 13:48 malaire joined 13:50 hexmode joined 13:52 andara joined 13:53 jserv-- joined
andara while $line = =$fh { $_=$line; if m/somepattern/ {... => matches all lines; 13:54
wolverian I think you mean for =$fh -> $line { ... }
13:54 buu joined
andara while $line = =$fh { $_=$line; if $_ ~~ m/somepattern/ {... => matches pattern. 13:54
Juerd Unary = doesn't get less ugly over time 13:55
Steve_p rubs his eyes
andara well, this works kind of. But my question is: is $_ not impicitly assumed in p6?
13:57 FurnaceBoy joined
andara in p5: /.../; is equiv to $_=~/.../; 13:57
in p6 /.../; is not equiv to $_ ~~ /.../; or so it seems ...
PerlJam andara: pugs may not implement everything. 14:00
andara: but, m/.../ should match against $_ in perl6 (as in perl5) 14:01
andara That's what I asu
sumed. So I'll wait for the next version :-)
theorbtwo m/.../ will match against $_. IIRC, /.../ won't. 14:02
PerlJam theorbtwo: Are you talking about pugs specifically, or perl6? 14:03
theorbtwo Perl6, as specified, not neccessarly as implemented.
OTOH, my knowledge of the specification is somewhat outdated.
PerlJam theorbtwo: /.../ will match against $_ in "value context" 14:04
andara I tried m/.../ and rx:perl5/.../
PerlJam theorbtwo: otherwise you just get a Regex object
14:06 DaGo joined
theorbtwo That's more or less what I thought. 14:08
I was recommending what I thought was best practce -- being explicit about the m. Probably I should have been a bit more explicit. 14:09
14:09 fglock left
theorbtwo Er, in fact, a bit more correct, since "won't" says that it never will, not that it sometimes won't. 14:09
PerlJam Right. My personal best practice says to always use the m when you want a match 14:10
14:17 andara joined 14:21 hexmode joined 14:27 turrepurre joined 14:30 rdice joined
audreyt rdice: hi! 14:30
?eval 'hi rdice'
14:31 evalbot_10382 is now known as evalbot_10383
evalbot_10383 "hi rdice" 14:31
rdice audreyt, allo there.
audreyt ?eval [+] 1, 2, 3, 4, 5
evalbot_10383 15
14:43 particle_ joined 14:52 trym joined 14:58 Toaster joined 15:00 aufrank joined
audreyt aufrank: hi :) 15:01
15:01 shachaf joined 15:03 stevan__ joined
audreyt aufrank: the [,] behaviour in Capture.pg 15:06
aufrank: the old * was unary 15:07
but the new [,] is listop
so it seems that it now marks a "region" in a capture to be flattened later
(= at runtime)
\( 1, 2, [,](@x, %y), 3, 4) 15:08
or, without the () 15:09
\(1, 2, [,] @x, %y)
as such I think it's now better to _not_ parse it in Capture.pg at all 15:10
Gothmog_ ?eval 5 >>+<< (1, 2, [3, 4, [5, 6]])
evalbot_10383 (6, 7, 8.0)
audreyt Gothmog_: it's not recursive
Gothmog_ Okay. 15:11
audreyt aufrank: that is, the transformation for flattening is better expressed by marking [,] a macro
aufrank audreyt: ok
audreyt and hence outside the parser 's realm
it's also far more regular that way :)
aufrank so is there any indication in the parse of whether a splatted pair is named? 15:12
audreyt my $pair = :named<foo>
svnbot6 r10384 | scw++ | Pugs::Compiler::Rule ratchet: <rule>* work
audreyt \([,] $pair)
is the same as
aufrank this means that at parse time only adverbial pairs and bareword pairs are parsed as named arguments 15:13
audreyt \($pair)
aufrank and pair-ified hashes
audreyt to flatten it as named
you need to say
\([,] %$pair)
basically treating it as a hash
see line 377 S06 15:14
scw Any one has some tip on debuging generated code which is taken by eval? 15:16
aufrank audreyt: ok, that makes sense
scw It took me a really long time to fix the bug in Pugs::Compiler::Rule :( 15:17
aufrank so am I right in saying the only parse-level nameds are :named<foo> named=>foo and %named:<foo> ?
sorry, named=>'foo'
audreyt scw: perl-d doesn't work? 15:18
ingy hi audreyt
audreyt aufrank: well, [,] %foo will be genned as "delayed named"
but yes, the only things statically known as named are 15:19
:named<foo> named=>fooo :$foo
ingy: hi
scw audreyt: what's that?
audreyt oh, and :!foo
ingy audreyt: did you ever review the yaml tags proposal? 15:20
obra_ audreyt: when will you switch the primary identity on your PGP key?
audreyt scw: the perl debugger. oh also, Devel::ebug
ingy hi obra_
audreyt obra_: if you recv-key again...
obra_ hey ingy-san
audreyt: ah :)
ingy is heading back to the USSA soon
obra_ ingy: how come? 15:21
audreyt ingy: no. I didn't mark it in my todo
I now did
ingy audreyt: need the url? 15:22
audreyt no
ingy ok
audreyt Tomboy++ # my current todo-tool-of-choice
scw audreyt: perl -d doesn't show the code in eval :(
audreyt scw: oh uhm. hm. instead of eval
ingy audreyt: I was just going to ask you that :P
audreyt save the file externally using File::Temp
scw: and then "require" it in?
that may work better 15:23
scw seems a good idea
audreyt do it then :)
scw I'll try it next time, going home &
audreyt scw++
aufrank audreyt: yeah, the three forms of adverbial are :foo :!foo and :foo<bar> 15:25
I think I parse all of those
I'll check to make sure later today 15:26
audreyt k
:$foo
also
15:26 obra_ is now known as obra
audreyt which is short for foo=>$foo 15:26
aufrank right
I actually have a question about that in the file 15:27
obra audreyt: it's looking like my flights to NPW might not work :/
audreyt aw :/
aufrank when the value of a pair is a variable (or function, or anything other than a string or num), do I just store a string representation of its name in the match object?
obra I can't find something that isn't a redeye with me in the middle of the center section.
"Sure way to get sick and useless before I get there" 15:28
audreyt aufrank: uh, supposedly you store the parsed AST
for example, if you parse it with <expression> 15:29
then just store $<expression> as value
aufrank ok
audreyt: what can I work on that will make it possible to test these grammars I've been working on? or is it already? 15:30
also, should I be writing the grammars as Packages so that they can use each other? what is the right way to import a Grammar? 15:31
audreyt re test the grammars, you can run them with pmichaud's PGE 15:34
or with pugs itself
I'll hack in token/rule support tomorrow
manwhile you can also use Pugs::Compiler::Rule
to run them on top of perl5
look at scw's MiniPerl6 15:35
for how
aufrank ok
15:36 davidfetter joined
gaal moose 15:42
audreyt moose! 15:43
gaal sup?
audreyt $job surprises :/ 15:44
spec change _after_ the deadline. revised deadline coming monday.
gaal hmmpf. 15:45
aufrank yargh
audreyt "yes you did implement everything in our spec. we just realized our spec is totally bogus. here's some more money and four days of time."
audreyt praises jifty for whipuptitude.
gaal That's one thing Perl 6 won't be able to change, no matter how much hype there is!
audreyt you mean, perl6 won't fix your client? 15:46
gaal yeah
audreyt fix $ \client -> client
gaal specifically the software's world difficulty in, like, speccing software
local (const client) 15:47
audreyt well, I've been rolling out weekly iterative builds
it's just they are less motivated to TestItForReal before the FinalVersion ;)
(which sounds familiar...)
15:48 hexmode joined
audreyt so I need to 1)sleep 2)wake up 3)finish up the revised unit tests 15:48
hopefully in that order
gaal hmm, I have to start thinking of my yapc talk 15:49
davidfetter tries to picture how 1 followed by 3 would work
gaal nothingmuch: are you still giving one about tests too?
audreyt: isn't it a bit late at your localtim? 15:50
e
audreyt use somnambulism;
gaal: yes.
gaal well, looks like you can use sleep; to me :)
somnacheckining 15:51
fooprowling & 15:54
15:57 dvorak joined
audreyt & 15:58
obra night
15:59 stevan_ joined 16:02 amnesiac joined 16:11 weinig is now known as weinig|away 16:24 justatheory joined 16:28 cdfh joined 16:30 sri_ joined 16:35 trym joined 16:36 Bleadof joined 16:48 shachaf joined 16:51 prium joined 17:03 lichtkind joined 17:36 trym joined 17:58 stevan__ joined 18:04 rdice left
aufrank + Bag(3,8,[2,Seq(9,3)],8) >>-<< (1,1,2,1); # Bag(2,7,[2,Seq(9,3)],7) 18:22
why is the third element unmodified? 18:23
I would have expect Bag(2,7,[0,Seq(7,1)],7)
I guess that's a question for TimToady, if he's listening 18:25
wolverian looks like a typo 18:27
theorbtwo To me as well.
aufrank that's what I figured 18:37
18:38 trym joined 18:40 particle_ left, particle_ joined 18:42 weinig|away joined 18:44 weinig|away is now known as weinig 18:47 doubtm joined
doubtm i need to write a perl script to create a zip file, 18:47
i had a look at search.cpan.org/~smpeters/Archive-Z...ve/Zip.pod 18:48
however i want to use the default modules provided by perl
and i do not want to install anything extra
is there a way out?
Limbic_Region yes - /quit 18:49
this is #perl6
try #perl
doubtm fine
Limbic_Region or #perlhelp
doubtm thx 18:50
Limbic_Region not sure if that's on this network but the people in #perl will be more than happy to help
doubtm i'll check
thanx neways
19:22 doubtm left 19:24 buu joined
prium hmm 19:29
whats perl6
lol
yeah, yeah i know
19:29 prium left 19:31 trym joined 19:47 justatheory joined
buu Fascinating. 19:48
19:50 frederico joined 20:12 hexmode joined 20:14 ludan joined
ludan hi all 20:15
davidfetter hi
20:20 nothingmuch joined 20:23 DaGo joined 20:26 weinig joined 20:46 fglock joined 21:18 davidfetter is now known as there, there is now known as davidfetter 21:23 aufrank joined 22:05 kanru joined 22:28 YetAnotherEric left 22:32 Quell joined 22:36 larsen joined 22:43 Limbic_Region joined 23:00 buu joined 23:03 buubot joined 23:09 jsiracusa joined 23:28 Khisanth joined 23:41 weinig joined
Quell . 23:42