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. |
|||
01:05
cmarcelo joined
01:08
Limbic_Region joined
|
|||
wolverian | heh, a friend is none too happy that perl still isn't ditching the old dual type system in favour of return type mmd :) | 01:18 | |
he hates implicit flattening, because he thinks it makes people too lazy to really think about their data structures | 01:24 | ||
01:25
frederico joined
01:36
enantiodrome joined
02:11
PolettiX joined
02:13
PolettiX joined
|
|||
wolverian | > 2/5 | 02:16 | |
er | |||
?eval 2/5 | |||
evalbot_9946 | 2/5 | ||
wolverian | ?eval 2/4 + 2/3 | ||
evalbot_9946 | 7/6 | ||
02:24
PolettiX joined
02:26
PolettiX is now known as froh-doh
02:49
frodo72 joined,
r0nny joined,
frodo72 is now known as PolettiX
02:52
PolettiX is now known as frodo72
02:53
mako132_ joined
|
|||
svnbot6 | r9962 | geoffb++ | Added a new question directly to Capture.pod as per Audrey's request | 03:08 | |
geoffb | That was surreal. I committed, turned around to do something else, and my computer was beeping at me with a new message addressed to me. Of course, it was just the svn bot .... | 03:09 | |
04:31
coumbes joined
|
|||
PerlJam | geoffb: I think the example is flawed. | 04:38 | |
geoffb | PerlJam, fair enough. | ||
PerlJam | What's the thing called that Captures map to in a subroutine call? Is there a "Signature" object? | 04:41 | |
Captures are about arguments, what deals with parameters? | 04:42 | ||
04:50
cmarcelo left
|
|||
gaal | PerlJam: yes, it's called precisely that. | 04:53 | |
pmichaud | hello, pj | 04:54 | |
PerlJam | hey pm. I see you've been busy :) | 04:55 | |
pmichaud | yes, unfortunately I took a detour today and refactored the operator precedence parser a bit | 04:57 | |
(perhaps a bit much) | |||
otoh, the opp spec is much easier to read than the PIR code I used to have | |||
PerlJam | OPTable.pir looks *nothing* like I remember it :) | 05:00 | |
Then again, most things look nothing like I remember them. (in parrot and in pugs) | 05:03 | ||
Things change quickly | |||
gaal | geoffb: I think you're on to something :) | 05:07 | |
(r9962) | |||
PerlJam | gaal: Just that the example is wrong. | 05:09 | |
gaal | there may be something missing in the API, since you can't introspect optional bindings from without the function that declares them. | 05:11 | |
iow: if you write very introspective code that takes functions and Captures, you have to query both if you want to know which variables will be in scope inside the function. | 05:13 | ||
which probably even makes sense, but could be a gotcha. | 05:14 | ||
I don't know if the association between Captures and Signatures is fully fleshed out yet. | |||
pmichaud | perljam: the biggest place to see the change is in languages/perl6/lib/grammar_optok.pge (which defines the tokens for the operator precedence parser) | ||
perljam: (svn up to get r12269) | 05:15 | ||
PerlJam | gaal: It seems to me that Signatures are templates, and Captures fill them and that's about all there is to it. | 05:16 | |
gaal: though I'm not sure if there shouldn't be an object that represents a "filled in" Signature (i.e. the combination of Signature and Capture) | 05:17 | ||
(and boy Capture sure seems like a weird name!) | |||
pmichaud | perljam: so far nobody has come up with a better one, I fear | ||
gaal | PerlJam: @_ from within a function :) | 05:20 | |
I don't think it necessarily deserves a class of its own. | |||
because it behaves like a Capture | |||
$work & | 05:22 | ||
svnbot6 | r9963 | gaal++ | r10007@sike: roo | 2006-04-16 08:21:25 +0300 | ||
r9963 | gaal++ | * FAQ::Capture - trivial cosmetic reflow to keep long lines | |||
r9963 | gaal++ | from being eaten on the web rendition. | |||
06:11
ardder joined
|
|||
svnbot6 | r9964 | gaal++ | r10009@sike: roo | 2006-04-16 09:13:42 +0300 | 06:17 | |
r9964 | gaal++ | * FAQ::Capture - method delegation. hw !! 3 | |||
06:57
nnunley joined
07:02
Quell joined
|
|||
gaal | audreyt: ping | 07:06 | |
07:12
q[uri] joined
07:13
Aankhen`` joined
07:21
elmex joined
07:31
_mjk_ joined
07:38
drrho joined
07:42
ghenry joined
07:53
cognominal joined
|
|||
cognominal | audreyt++ # your blog is invaluable | 08:04 | |
08:23
manbou joined
08:35
larsen joined
|
|||
xinming | So $x = @y does not mean $x = \@y anymore. What does it mean then? | 08:39 | |
anyone would explain this for me? I don't understand what It said in audreyt's blog... :-/ | 08:40 | ||
gaal | xinming: reading it together with the question preceding it may help | 08:47 | |
09:03
iblechbot joined
09:21
_bernhard joined
|
|||
meppl | guten morgen | 09:50 | |
09:57
chris2 joined
10:34
larsen joined
10:51
siosiosios joined
|
|||
ruz coudln't build pugs :( paste.husk.org/5518 | 10:54 | ||
arcady | that's an odd message | 11:00 | |
have you tried a clean build and the like? | |||
TreyHarris | ?eval ~localtime | 11:24 | |
evalbot_9946 | "<obj:Time::Local>" | ||
TreyHarris | that's odd. shouldn't localtime stringify into a human-readable date? | 11:25 | |
?eval +localtime | |||
evalbot_9946 | Error: cannot cast from VObject (MkObject {objType = (mkType "Time::Local"), objAttrs = <ref>, objOpaque = Nothing, objId = 52}) to Double (VNum) | ||
ayrnieu | ?eval "" ~ localtime | 11:28 | |
evalbot_9946 | "<obj:Time::Local>" | ||
gaal | TreyHarris: it probably should, but the coercion hasn't been written yet. | 11:31 | |
in the mean time you can do | 11:32 | ||
?eval localtime().perl | |||
evalbot_9946 | "\\Time::Local.new((\"day\" => 16), (\"hour\" => 13), (\"is_dst\" => bool::true), (\"min\" => 33), (\"month\" => 4), (\"picosec\" => 138780000000), (\"sec\" => 3), (\"tz\" => 7200), (\"tzname\" => \"CEST\"), (\"wday\" => 1), (\"yday\" => 105), (\"year\" => 2006))" | ||
11:42
siosiosios is now known as DaGo
12:18
nnunley joined
12:23
chris2 joined
12:24
iblechbot_ joined
12:27
dakkar joined
12:34
larsen joined
13:09
cdpruden joined
13:13
KingDiamond joined
13:41
boobs joined
|
|||
boobs | Yo ! | 13:41 | |
13:47
larsen joined
13:52
enantiodrome left
13:57
cmarcelo joined
13:58
ruz joined
14:01
pmurias joined
|
|||
pmurias | hi | 14:01 | |
boobs | I just want fuck bad bitches | 14:18 | |
14:43
larsen joined
14:48
Odin- joined,
justatheory joined
14:50
Khisanth joined
15:04
weinig joined
|
|||
ruz | arcady: make clean didn't help, I found this www.nntp.perl.org/group/perl.perl6....iler/1327, such a change hides (fixes?) error, but later I get another similar | 15:09 | |
gaal | ruz: with the Syck stub, or another one? the patch described in that post is applied in the makefile. | 15:15 | |
15:16
xinming joined
|
|||
ruz | gaal: Syck | 15:25 | |
ok, now I tried to compile without embedding parrot or perl5 | 15:26 | ||
and it compiles with Beau's patch | |||
but when I turno embedding I get errors, I could share them if you want | 15:27 | ||
15:31
autark joined
15:35
xinming1983 joined
|
|||
gaal | ruz: please rm -rf dist/src/Data/Yaml and 'make' again | 15:40 | |
no need for clean yet | |||
eh, though switching from embed to non-embed does generally need clean | |||
(you can probably get away without it by very selective cleaning of dist/, if you know exactly what you're doing.) | 15:41 | ||
15:41
stclare joined
15:48
xinming joined
16:03
lichtkind joined
|
|||
lichtkind | hello | 16:04 | |
i found some little bugs in various docs like dev.perl.org/perl6/list-summaries/2...02-07.html | |||
dakkar | lichtkind: that's not a doc... that's a mailing list summary... | 16:05 | |
gaal | and it's from ancient history :-) | 16:06 | |
16:06
cdpruden joined
|
|||
lichtkind | :) | 16:07 | |
but nevertheless in svn.openfoundry.org/pugs/docs/getting_started i read that there is actually no real perl6 tutorial | 16:08 | ||
dakkar | lichtkind: never seen one... want to write one? | 16:10 | |
lichtkind | im actually write one | 16:11 | |
am on chapter 5 | |||
thats why oim here all days :) | |||
the downside for you is maybe that this tut is for the german perl-community.de aka de.perl.org | 16:12 | ||
but i would translate it | |||
when im done :) | |||
if you know german its on wiki.perl-community.de/bin/view/Wis...l6Tutorial | 16:13 | ||
16:13
mako132_ joined
|
|||
lichtkind | but i need to lern a lot more currently its too unacurate to be semiofficial | 16:15 | |
(1,2)Ā„(3,5)Ā„(9,8) == (1,3,9,2,5,8) ? | 16:19 | ||
dakkar | ?eval zip(zip([1,2],[3,5]),[9,8]) | 16:20 | |
16:20
evalbot_9946 is now known as evalbot_9964
|
|||
evalbot_9964 | (1, 9, 3, 8, 2, undef, 5, undef) | 16:20 | |
dakkar | ?eval zip(zip([1,2],[3,5]),[9,8,7,6]) | ||
lichtkind | dont can evalbot Y? | 16:21 | |
evalbot_9964 | (1, 9, 3, 8, 2, 7, 5, 6) | ||
dakkar | ?eval (1,2)Ā„(3,4) | ||
evalbot_9964 | Error: unexpected "\\" expecting term postfix, "#", operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input | ||
dakkar | IRC quoting problems, I suppose... | ||
lichtkind | ?eval (1,2)Y(3,5)Y(9,8) | 16:22 | |
evalbot_9964 | (1, 3, 9, 2, 5, 8) | ||
lichtkind | yeah | ||
dakkar | ?eval zip([1,2],[3,5],[9,8]) | ||
evalbot_9964 | (1, 3, 9, 2, 5, 8) | 16:23 | |
lichtkind | now i understand i always thought you can place zip between like Y | 16:24 | |
gaal | lichtkind: infix:<Y> ::= &zip | 16:25 | |
lichtkind | thanks :) | ||
16:31
SamB joined
|
|||
svnbot6 | r9965 | audreyt++ | * Capture.pod: expands the examples; revamped the section on single/multi dispatch versus method/sub calls | 16:31 | |
16:34
jserv-- joined
16:38
weinig is now known as weinig|out
16:42
FurnaceBoy joined
|
|||
audreyt | TimToady: pmichaud and I came up with an observation on a chunk in S02 | 16:55 | |
macro quote:<qX> (*%adverbs) {...} | |||
Note: macro adverbs are automatically evaluated at macro call | |||
time if the adverbs are included in the parse. If the adverbs are | |||
to affect the parsing of the quoted text of the macro, then the text must | |||
be parsed by the body of the macro rather than by an C<is parsed> rule. | |||
TimToady: it seems that having the macro body do the parsing is very klugy (and unspecced) | 16:56 | ||
16:56
mako132_ joined
|
|||
audreyt | as it must receive out of band info about parse state and return updated position as an out-of-band info in addition to the AST. | 16:56 | |
TimToady: an arguably far cleaner way is to make lexicals in the subroutine parameter svisible to the rules in the "is parsed" trait | |||
16:56
saorge joined
|
|||
audreyt | macro quote:<qX> (:$adv1, :$adv2) is parsed /...some rule that makes use of $adv1 and $adv2.../ { ... } | 16:57 | |
TimToady: sounds sane to you? if yes, S02 can get updated :) | |||
gaal | audreyt: did you see the method delegation question in FAQ::Capture? | 16:58 | |
it's bound to be an actual faq | |||
dakkar | how can a macro take parameters? by what rule would they be parsed? | 17:03 | |
dakkar starts looking at synopses | |||
17:05
_bernhard joined
17:10
stclare left
|
|||
audreyt | gaal: yes, see the commit | 17:10 | |
svnbot6 | r9966 | audreyt++ | * Capture.pod: postulate that | 17:14 | |
r9966 | audreyt++ | $arg = \($inv: $pos); | |||
r9966 | audreyt++ | $obj.meth(*$arg) | |||
r9966 | audreyt++ | means | |||
r9966 | audreyt++ | $obj.meth($pos) | |||
r9966 | audreyt++ | instead of an error. | |||
audreyt | TimToady: hopefully you are okay with that (which agrees with how scalars behave, if we treat the inv as the scalar slot in the fat typoglobby capture) :) | 17:15 | |
audreyt waves goodnight & | |||
gaal | audreyt: great, I like that semantic. night and thanks! | 17:16 | |
audreyt | :D | 17:18 | |
dakkar | argh... the 'quote' default parsing rule parses adverbial arguments right after the starting token? so that an eventual 'is parsed' trait on a 'quote'-type macro starts seeing characters only after the adverbs? | 17:28 | |
audreyt | dakkar: well, it's just speculative at this point... one may also do | 17:33 | |
macro quote:<qX> ($adv1, $adv2, $body is parsed /.../) {...} | 17:34 | ||
provided that per-parameter "is parsed" is allowed. | |||
dakkar | I'm having difficulty figuring out how the parser will manage... | 17:35 | |
audreyt | but I'd like things to stay simple, and defaulting quote: to parse adverbs uniformly seems like a win | ||
dakkar | yes, definitely | ||
audreyt | as indeed per-parameter is-parsed is quite difficult. | ||
17:36
bsb joined
|
|||
audreyt | TimToady: last thing... would you mind if all the "invocant parameters" in multi dispatch is renamed to "tiebreaking parameters" or some other name? | 17:36 | |
especially because we allow multilevel | |||
"multi-level tiebreaking" makes sense | |||
17:36
enantiodrome joined
|
|||
audreyt | but "multi-level invocation" really doesn't, at least to me | 17:36 | |
with this change, "invocant" can go back to mean what it means in p5, namely "self-tobe" | 17:37 | ||
(more details on my journal entry... bbl :)) & | |||
Daveman | :) | 17:45 | |
17:47
larsen joined
18:17
cm joined
|
|||
pasteling | "ruz" at 213.251.192.51 pasted "error with PUGS_EMBED="perl5" make" (19 lines, 1.6K) at sial.org/pbot/16763 | 18:26 | |
gaal | ruz: did you run 'perl Makefile.PL' with that env set? | 18:28 | |
ruz | gaal | 18:30 | |
yep | |||
full command is: 'make clean; PUGS_EMBED="perl5" perl Makefile.PL && make unoptimized' | 18:31 | ||
pasteling | "ruz" at 213.251.192.51 pasted "error with 'PUGS_EMBED="parrot" perl Makefile.PL && make'" (4 lines, 220B) at sial.org/pbot/16764 | 18:32 | |
ruz | I just paste it for those who knowns what is he doing :) cuz I don't yet | 18:33 | |
gaal | does that env propagate to the second command? | 18:34 | |
better export the setting and be safe. | 18:35 | ||
what shell are you using? | |||
ruz | no doesn't propagate I think | ||
bash | |||
gaal | I'm not sure, but it could be you need it set at make time and not just make generation time. | 18:36 | |
ruz 's trying | 18:37 | ||
18:43
nnunley joined
|
|||
ruz | don't help | 18:44 | |
cognominal | audreyt: why editng a FAQ, editing the synopsis would not be saner? | 19:11 | |
I have not read the backlog. but the Capture entity sonds like the siva pmc, I have proposed month ago. Is this intended to modelise tree nodes like ASTs or XML nodes as well? | 19:18 | ||
sorry I did not notice that the synopsus has been edited as well. | 19:21 | ||
audreyt++; TimToady++ | |||
19:24
boobs left
19:30
marmic joined
19:35
mako132_ joined
19:40
Odin- joined
19:47
elmex joined
19:53
KingDiamond joined
19:55
elmex joined
20:02
elmex joined
20:04
elmex joined
20:07
elmex joined
20:09
elmex joined
|
|||
pasteling | "ruz" at 213.251.192.51 pasted "[PATCH] for compiling with embedded perl5" (19 lines, 742B) at sial.org/pbot/16766 | 20:25 | |
gaal | hey ruz, sorry for not responing eariler, was away. got a commit bit? | 20:27 | |
if not, /msg me your email please | |||
or just say it here if you aren't registered on freenode and can't /msg | 20:28 | ||
obra | gaal: msging you his address | 20:30 | |
gaal | ruz, thanks for the patch, an invitation letter is en route to your mailbox. | 20:31 | |
please commit :) | |||
also, don't forget to add yourself to AUTHORS | |||
and welcome aboard :) | |||
and now if I can get up without distubing the cat asleep on my lap, I will go to sleep myself. see y'all :) | 20:33 | ||
bsb | 'night gaal & foo | ||
FurnaceBoy | n8 | 20:35 | |
20:40
elmex joined
20:53
elmex_ joined
21:08
mako132_ joined
21:14
KingDiamond joined
|
|||
buu | Hello happy people. Anyone happen to know off hand how I can increment a perl global from the perl source? | 21:16 | |
avar | use the eval routines in perlapi;) | 21:23 | |
arg, #perl6 | |||
buu | =[ | 21:25 | |
21:28
dduncan joined
21:33
justatheory joined
|
|||
buu | Arfg. Fucking perl. | 21:55 | |
pmurias | sleep& | 21:58 | |
22:07
vel joined
22:13
mako132_ joined
22:16
b_jonas joined
22:23
avar joined
|
|||
buu | Someone come debug my fucking perl. | 22:27 | |
arcady | perl's not for fucking! | 22:28 | |
maybe that's why it doesn't like you | |||
buu | arcady: =[ | 22:31 | |
SvIV_set(foo,0); is segfaulting | |||
I'm trying to understand why. | |||
22:45
mako132_ joined
22:47
b_jonas left
23:01
FurnaceBoy_ joined
23:18
elmex joined
23:20
weinig|out is now known as weinig
23:29
amnesiac joined
23:31
frodo72 is now known as froh-doh
23:33
khisanth_ joined
|
|||
ruz | gaal: I havn't got any message from you. | 23:35 | |
23:37
fglock joined
|
|||
ruz | ? 0 or say "woot"; | 23:41 | |
evalbot_9964: ? 0 or say "woot"; | |||
?eval 0 or say "woot"; | 23:42 | ||
23:42
evalbot_9964 is now known as evalbot_9966
|
|||
evalbot_9966 | OUTPUT[woot ] bool::true | 23:42 | |
23:46
Khisanth joined
|
|||
svnbot6 | r9967 | fglock++ | PCR/PCP - minor fixes | 23:55 | |
r9968 | fglock++ | PG-P6 - parses the first 10 files in t/01-sanity |