pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by diakopter on 11 July 2007.
masak I'm back to leafing through the pugs tests, finding simple things to fix 09:31
I have some questions about the `proto` keyword 09:32
is it relatively fresh in the spec? how much does pugs implement it?
masak S06 doesn't have much to say about protos that's applicable here 09:55
I'll put together a nopaste which specifies my question
pasteling "masak" at 130.238.45.242 pasted "a bit of struggling with proto subs -- 'd be happy for directions" (43 lines, 1.2K) at sial.org/pbot/27785 10:03
masak S06 doesn't seem to mention that the "proto" keyword is used to predeclare subs 10:10
either I got that wrong, or it's in some other synopsis, or it should be added 10:11
pmurias masak: i think the fully implemented version wasn't declared at that moment 10:16
masak pmurias: it wasn't
pmurias so pugs invokes the default proto implementation
masak this all seems vaguely dangerous 10:17
pmurias it's a bug :)
masak it's not what I expect at all
thank gosh
pmurias the code snippet at the top should also work
masak oh
no proto needed anywhere?
pmurias only if you do multis 10:18
masak ah
then I'll take back that thing about S06 needing an update
though I did head TimToady++ say the other day that things cannot be called that weren't declared already
but maybe that only goes for things without the & sigil 10:19
pmurias masak: proto is descriped also in S12 10:20
searching in S*...
pmurias S2: 2523 10:21
it explains the provisional calls
* S02
Aankhen`` Does KP6 just handle signatures as lists of variables? 10:22
masak pmurias: a provisional call being a call from a sub declared before the called sub?
pmurias pmurias: call of a sub 10:23
Aankhen``: look into Grammar/Sub.pm
the AST represents the as ::Sig 10:24
pmurias Aankhen``: token sig in Grammar.pm does the parsing 10:25
Aankhen`` Ah, it's in Grammar.pm. I was wondering where it popped up from. :-) 10:26
pmurias Aankhen``: from there source control repo ;) 10:27
* the 10:28
Aankhen`` Heh. 10:29
The AST can't represent *@foo yet, I take it. 10:30
Not that KP6 can parse it either, it would seem.
pmurias Aankhen``: you can add it if you like 10:32
Aankhen`` 's jaw drops. "Alter the parser and AST?!"
pmurias afraid of the recompile time ;) 10:33
?
Aankhen`` No, just afraid of breaking something. :-)
Lunch! & 10:34
pmurias it's easier to fix then to breake with source control 10:37
pmurias * break 10:38
pugs_svnbot r18242 | Aankhen++ | [kp6-lisp] 11:46
r18242 | Aankhen++ | * implemented binding.
r18242 | Aankhen++ | * removed variable manipulation functions without /p, renamed /p versions to regular versions.
r18242 | Aankhen++ | * added /c lexical variable cell manipulation functions.
diff: dev.pugscode.org/changeset/18242
lambdabot Title: Changeset 18242 - Pugs - Trac
pugs_svnbot r18243 | Aankhen++ | * [kp6-lisp] regenerated EmitLisp.pm 11:49
diff: dev.pugscode.org/changeset/18243
lambdabot Title: Changeset 18243 - Pugs - Trac
Aankhen`` Ugh, the binding commit message is woefully inadequate. 11:51
pmurias svn should support annotations on commits 12:27
you could correct the commit msg than
pmurias or better versioned controled commit msg's 12:27
pugs_svnbot r18244 | pmurias++ | [kp6] commited everything i forgot, matche objects are created with match_new() 12:56
r18244 | pmurias++ | added tokeninline which runs the new emitter on a simple grammar
diff: dev.pugscode.org/changeset/18244
lambdabot Title: Changeset 18244 - Pugs - Trac
pmurias Match isa Capture?
Aankhen`` pmu: Subversion does support changing the commit message as a property, actually, but there's all sorts of gotchas and the repository has to have certain hooks enabled. 13:57
Whoops. 13:58
allbery_b huh, I thought commit messages were non-versioned properties, no special hooks needed 14:01
Aankhen`` subversion.tigris.org/faq.html#change-log-msg 14:03
lambdabot Title: subversion: Subversion FAQ
allbery_b ah, ok 14:04
so it is a non-versioned property but it gets special treatment
Aankhen`` Yeah. 14:05
pmurias Aankhen``: the ability to change the commit msg is restricted to the repo admin, because it can cause data loss, but if it was a versioned propery then it could be more avalible 16:15
allbery_b svn versioning doesn't work that way sadly 16:18
pmurias S03 uses the words "Match is a kind of Capture", does it mean a subclass of Capture
allbery_b: do you know why> 16:19
?
masak pmurias: without evidence to the contrary, I'd say Match isa Capture
allbery_b pmurias: think about it. versioning is tied to revisions. if the revision's commit message is itself versioned, then is a commit message change part of the revision or is changing it a new revision?
pmurias masak: thanks
masak I don't think Larry would write "is a kind of" without thinking of subclassing 16:20
allbery_b it's a chicken-or-egg situation
pmurias allbery_b: one would have nested revisions 1023.3.2.4 ;)
s/would/could/ 16:21
pugs_svnbot r18245 | pmurias++ | [kp6] failing test for inheritance 16:36
diff: dev.pugscode.org/changeset/18245
lambdabot Title: Changeset 18245 - Pugs - Trac
pmurias allbery_b: <repository revision>.<content revision> would be an option, althought not IMHO not worth choosing 16:40
pmurias s:1st/not// 16:41
allbery_b sure, but svn doesn't support that; it only has linerar revisions. (see also the weirdness used for tags and branches) 16:42
allbery_b linear. 16:43
allbery_b as usual can't type to save his life
pmurias allbery_b: i do not find subversions handling of tags and branches strange 16:45
allbery_b I do. tags especially. fork the entire repo?! 16:49
TimToady yes, Match isa Capture; it adds .from and .to attributes, and maybe others 16:54
rhr TimToady: is the :my $x; syntax used recently in STD Real Perl (I don't see anything in S05) or part of the cheating? 17:48
TimToady I believe it is likely to end up real, but likely with some restrictions on just where you can put it 17:50
since the order of the regex is not necessarily the order of the code that results 17:51
one can implement /a b/ as (match a).map: { match b } or map { match b }, match a 17:52
and I've had it both ways already, and several other ways. :)
I like the :my syntax better than, say, <my ...> 17:53
TimToady since it's not an assertion, and :foo influences the subsequent lexical scope anyway 17:53
:my just does it more violently 17:54
biab &
rhr OK, interesting 17:54
ludan hi 19:37
lichtkind hallo ludan 19:40
rindolf Hi lichtkind 19:43
lichtkind hello rindolf
rindolf lichtkind: what's up?
lichtkind howisgowinman you knwwaddimsayn
haha
pretty good
doin my stuff man 19:45
reprazentin perl 6 and so on :)
rindolf: im currently wrining on the so long promised perl 6 tutorial 19:47
rindolf lichtkind: "wrining"?
lichtkind: what's "wrining"?
lichtkind writing
no whining :) 19:48
will see im mostly slow :) 19:49
lichtkind i was in spain and in czech 2 month 19:50
rindolf: and yourself?
rindolf lichtkind: right now, I'm writing stuff in wikis, editing tags in cpanforum.com and chatting on the IRC.
Previously I worked on quad-pres.berlios.de/ 19:51
lambdabot Title: Quad-Pres
lichtkind rindolf: in what wiki?
rindolf lichtkind: perl.net.au/ and now www.perlfoundation.org/perl5/index....r_testing#
lambdabot Title: Main Page - PerlNet
rindolf Today I woke up at 06:30 and shortly afterwards went to sleep again. I woke up after 11:00 or 12:00. 19:53
lichtkind ah i will link the tpf wik from our wik :) 19:55
wiki
rindolf: so you sleepy now?
rindolf lichtkind: it's 22:00 now. 19:56
I don't know if I'm tired or not.
It's a bit confusing. 19:57
lichtkind rindolf: do you program in perl 6 ? 20:10
rindolf lichtkind: not a lot.
lichtkind thats more that i do 20:11
i only check my examples in the tuts i write :)
rindolf: not much content in that wiki as far es i can see :) 20:14
rindolf lichtkind: which wiki? 20:15
lichtkind rindolf: the tpf wiki the link you send
rindolf lichtkind: oh.
lichtkind i lost a bit interest in wikis lately but in times i build up german wiki / perl section we have more content :) 20:19
rindolf lichtkind: wanna hear a mathematical riddle? 20:29
lichtkind sure
rindolf lichtkind: shlomif.livejournal.com/46776.html 20:42
lambdabot Title: shlomif: Mathematical Riddle
rindolf lichtkind: ping. 20:50
lichtkind rindolf: its not the kind of riddle i expected, any way im on the way to bed 20:52
buu Argh, sql sucks.
Aankhen`` KP6 question. I'm working on Var::emit_lisp and I need to print out the elements in $.namespace joined by '::'. I've tried every combination of parentheses, intermediate variables, and @() that I could think of, but I either get ARRAY=0xfoo in the output, or else an error about trying to dereference a string.
Is there some other way?
pugs_svnbot r18246 | Aankhen++ | [kp6-lisp] 21:17
r18246 | Aankhen++ | * added missing Cell.lisp
r18246 | Aankhen++ | * factored out some commonly used functionality in EmitLisp.pm relating to variable names and namespaces.
r18246 | Aankhen++ | * binding is only handled for lexical variables for now.
diff: dev.pugscode.org/changeset/18246
lambdabot Title: Changeset 18246 - Pugs - Trac
Aankhen`` Oh well, time for sleep. Guess I'll find out tomorrow.
lichtkind good nicht 22:02
night
Guevara buenas 22:31