|
#parrot Parrot 0.6.4 "St. Vincent Amazon" Released | parrotcode.org/ | 15 new, 648 open, 80 stalled tix | logged in irclog.perlgeek.de/parrot/today Set by moderator on 28 July 2008. |
|||
| cognominal | too bad, I did not follow parrot lately | 00:00 | |
| I arrive one day early and quit one day after. So I will have one day for tourism and one day for hackathon | 00:01 | ||
| jonathan | Cool! | 00:02 | |
| cognominal | do you jnow when is the hackathon? | ||
| jonathan | I already visited Copenhagen for tourism before, so will just hack! | ||
| Well, there is hacking on the Tuesday and the Saturday. | |||
| cognominal | ho, I am bringing Chartreuse too. | ||
| jonathan | Tres bien. | ||
| J'adore la Chatreuse! | 00:03 | ||
| ...though preferably not consumed during the hackaton.... | |||
| cognominal | boy I did not realize YAPC was next week | ||
| jonathan | I know, it's come *fast* | ||
| I don't know the exact times or location of the hackathon | 00:04 | ||
|
00:10
AndyA joined
|
|||
| dalek | r30112 | jonathan++ | trunk: | 00:53 | |
| : [rakudo] Fix trailing whitespace. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30112 | |||
| r30113 | Whiteknight++ | gsoc_pdd09: | 00:56 | ||
| : [gsoc_pdd09] add a new macro to help with indexing into the sized_header_pools array. may or may not actually fix anything. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30113 | |||
| cotto-work | is there any definition for the format of the string that VTABLE_get_repr outputs | 01:06 | |
| ? | |||
| dalek | r30114 | jkeenan++ | scriptconfigure: | 01:11 | |
| : Add test for malformatted configuration file. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30114 | |||
| Whiteknight | I would assume not, unless you can find it in a PDD somewhere | ||
| the best place to look is probably at the code itself | |||
|
01:11
particle joined,
tetragon joined
|
|||
| dalek | r30115 | jkeenan++ | scriptconfigure: | 01:12 | |
| : Add one dummy file used in testing to MANIFEST. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30115 | |||
| r30116 | jkeenan++ | scriptconfigure: | 01:14 | ||
| : Correct duplicate 'my' variables warning. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30116 | |||
| r30117 | Whiteknight++ | gsoc_pdd09: | 01:15 | ||
| : [gsoc_pdd09] fix arena allocator to better account for the number of objects it contains. Needs some optimization, however. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30117 | |||
| cotto-work | Whiteknight, that's what I've done, and it looks like it should be some kind of string that encodes the PMC's contents, if it's an aggregate. | ||
| dalek | r30118 | chromatic++ | trunk: | 01:16 | |
| : [config] Fixed a typo from r30110 (reported by Christoph Otto). | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30118 | |||
| r30119 | Whiteknight++ | gsoc_pdd09: | 01:41 | ||
| : [gsoc_pdd09] use some const's to optimize the arena allocator a little bit | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30119 | |||
|
01:56
Andy joined
04:00
tetragon joined
|
|||
| dalek | r30120 | coke++ | trunk: | 04:33 | |
| : [docs] fix pod formatting. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30120 | |||
| Tene | So, having heard no feedback at all, I'll go ahead and commit that resumable exceptions patch. | 04:36 | |
| cotto_home | warnock-- | 04:43 | |
|
05:08
masak joined
05:38
Psyche^ joined
05:40
mc joined
|
|||
| mc | hello | 05:40 | |
| purl | hi, mc. | ||
| masak | jonathan: oh, oh! the segfaults only occur when running ./perl6, not when running ../../parrot perl6.pbc. I hope this is a clue of some kind. | 05:43 | |
| Tene | Can I get anyone to comment on the attribute name 'retcont' re: parrot naming conventions? | 05:46 | |
| bacek | ho! | 06:11 | |
| jonathan++ # r30104 ! | 06:12 | ||
| masak | indeed. :) | 06:18 | |
| bacek | perl6: my %ret = map { $^foo => uc $^foo; }, split "", "foo bar"; say %ret; | 06:20 | |
| oops | |||
| sorry... | |||
| purl | It's okay, bacek. | ||
| dalek | r30121 | fperrad++ | trunk: | 06:23 | |
| : [Lua] | |||
| : - svn:ignore *.luac | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30121 | |||
| r30122 | fperrad++ | trunk: | 06:24 | ||
| : [Lua] libraries | |||
| : - improve layout | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30122 | |||
| Tene | You broke polyglotbot! | 06:32 | |
|
06:34
polyglotbot joined
|
|||
| bacek hides | 06:34 | ||
| Tene: can I try previous command again? | 06:35 | ||
|
06:36
uniejo joined
|
|||
| bacek | So, having heard no feedback at all... | 06:47 | |
| perl6: my %ret = map { $^foo => uc $^foo; }, split "", "foo bar"; say %ret; | |||
| hmm...It works on my rakudo... | 06:48 | ||
| strange... | |||
| purl | strange is but true | ||
| bacek | purl: You'll never find a boyfriend! | ||
| purl | bacek: excuse me? | ||
| Tene | segfault | ||
| purl | well don't DO that, then. | ||
| Tene | lemme put it in a loop | 06:49 | |
|
06:49
polyglotbot joined
|
|||
| bacek | Tene: ok. | 06:49 | |
| Tene | perl6: my %ret = map { $^foo => uc $^foo; }, split "", "foo bar"; say %ret | ||
|
06:49
polyglotbot joined
|
|||
| Tene | There we go. | 06:49 | |
| masak | much better. | 06:50 | |
| Tene++ # bot nurse | |||
| dalek | r30123 | tene++ | trunk: | 06:52 | |
| : Add a return continuation attribute to the Exception pmc and fill it in the throw opcode. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30123 | |||
| masak | purl: nopaste | 06:56 | |
| purl | nopaste is at nopaste.snit.ch/ (ask TonyC for new channels) or rafb.net/paste or poundperl.pastebin.com/ or paste.scsys.co.uk/ or App::Nopaste or tools/dev/nopaste.pl | ||
| nopaste | "masak" at 130.238.45.242 pasted "here's Str.subst -- code review appreciated" (37 lines) at nopaste.snit.ch/13764 | 06:59 | |
| masak | ...because I'm basically doing a combination of cargo-culting and fumbling in the dark right now with PIR | ||
| bacek | masak: there is substr implementation already. In src/builtins/any-str.pir | 07:05 | |
| masak | bacek: note the lack of 'r' in 'subst' | 07:07 | |
| bacek: and I bet you're the last person to be confused by this near-collision :) | |||
| dalek | r30124 | tene++ | trunk: | 07:08 | |
| : Condingstd fix for my last commit. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30124 | |||
| masak | s/you're the last/you're not the last/ | 07:10 | |
| bacek | masak: oops. | 07:11 | |
| masak: there is no 'subst' in S29... | 07:13 | ||
| masak | bacek: see t/builtins/strings/subst.t in the Pugs repo | ||
| also, see yesterday's #parrot log | |||
| Tene | I'm curious about the consequences of adding extra features to cardinal that aren't in ruby. | 07:15 | |
| cotto_home | embrace and extend | 07:21 | |
| purl | it has been said that embrace and extend is Subsume and Subvert or Embrace and Envelop or Weaken and Wreck or Fold, Spindle and Mutilate or Pillage and Burn or Cripple and Kill | ||
| cotto_home | you know you want to | ||
| Tene | Isn't that evil, though? | ||
| dalek | r30125 | tene++ | trunk: | ||
| : More fixes for my exceptions commit. chromatic++ | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30125 | |||
| cotto_home | um... we have cookies | 07:22 | |
| mc | bye all | ||
|
07:22
mc left
|
|||
| Tene | I guess if they're cool Perl 6 features... maybe... | 07:23 | |
| cotto_home | it'd depend on your goals for Cardinal and whether the shiny new things break backwards-compatibility | 07:28 | |
| Tene | They'd make any code that used them incompatible with ruby. | 07:29 | |
| cotto_home | that could make testing tricky | ||
| nm. I read that backwards. | 07:31 | ||
| masak | is there a method in rakudo already that takes a regular expression as an argument? I'd need some example code to look at. | 07:34 | |
|
07:38
Ademan joined
07:50
mj41 joined
|
|||
| dalek | r30126 | fperrad++ | trunk: | 08:12 | |
| : [Lua] Perl/yapp compiler | |||
| : - fix fornum (see r30004-30005) | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30126 | |||
|
08:38
barney joined
|
|||
| dalek | r30127 | kjs++ | trunk: | 09:12 | |
| : [pirc/new] fix key handling | |||
| : + copyright year fix | |||
| : + several other things. | 09:13 | ||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30127 | |||
|
09:20
MeGaMiC joined
09:34
kj joined
09:35
ejs joined
09:38
iblechbot joined
09:45
tetragon joined
09:46
particle1 joined
|
|||
| masak | if a PIR .sub is declared as :method :multi('Complex'), the 'Complex' refers to the invocant, yes? | 09:48 | |
| kj | I thought to the parameter | 09:49 | |
| the invocant is the object on which you invoke the method, no? | |||
| masak | yes | 09:50 | |
|
09:50
gaz joined
|
|||
| kj | s/parameter/argument/ | 09:50 | |
| so no need to refer to the invocant | |||
| masak | .sub 'exp' :method :multi('Complex') | ||
| kj | because you know what the invocant is | ||
| so that's the 'exp' method taking a Complex parameter | |||
| as far as I have understood that | |||
| maybe I'm wrong | 09:51 | ||
| masak | $cmplx.exp($cmplx2) ? | ||
| what the heck does the parameter do? | |||
| kj | sorry, what do yo mean? | ||
| masak | I mean, what does that call mean, semantically? | ||
| I'm in src/classes/Complex.pir, btw | 09:52 | ||
| kj | again, you might want to check with someone else, but as far as I understood, a :multi method is distinguished by its parameters | ||
| masak | the body of that .sub only talks about $P0 = exp self | ||
| and then .returns ($P0) | |||
| kj | so exp(int i) {}, exp(float f) {}, and apparently exp(complex c) {} | ||
| masak | how is that a method, then? | 09:53 | |
| kj | ehm, self isa Complex object | ||
| mmm | |||
| masak | so, invocant... | ||
| kj | to be honest, it's not clear to me either | ||
| it doesn't refer to the parameter? | |||
| masak | maybe the call can be either $c.exp() or exp($c) | 09:54 | |
| kj: seems there is no parameter, or no invocant, depending on how you see it | |||
| kj | yeah, you're right. | ||
| masak | probably the former, since 'self' is mentioned | ||
| kj | well, self is an implicit parameter | ||
| masak | yes | 09:55 | |
| kj | because it's a :method | ||
| so self must be a Complex | |||
| because it's defined as :multi(Complex) | |||
| masak | then :multi('Complex') _must_ refer to the invocant | ||
| yes. | |||
| kj | yes, seems so | ||
| masak | I'm trying to figure this out | ||
| kj | but it's not a rule that :multi types refer to the invocant, it just happens to be that way here | ||
| because self is the 1st parameter | 09:56 | ||
| masak | aye | ||
| kj | maybe a short test program would clarify | ||
| masak | exploring++ | ||
| kj | i mean, write a simple script that has some :multi subs | 09:57 | |
| to be honest, the :multi stuff is one of the things I'm not entirely clear on | |||
| masak | kj: good idea. I'll do that. | 09:58 | |
| kj | sorry can't be of much help | ||
| masak | kj: you've already helped | 09:59 | |
| kj++ | |||
| my problem now is that when I declare my method as :multi('Perl6Str', 'Block', _), it doesn't get called on "abcdef".subst(/d/, "D"); but when I declare it as :multi('Perl6Str', _, _) I get a Null PMC access. | 10:03 | ||
| I guess I'll have to wait till jonathan shows up. | |||
| kj | you're writing in perl6 or pir? | ||
| pir, right? | |||
| masak | yes, pir | 10:04 | |
| and calling via ./perl6 -e | |||
| kj | what happens when running the script on parrot immediately? | ||
| (don't know ./perl6 -e) | |||
| masak | trying... | ||
| kj | also, you could try out simple, just 1 parameter, then add another | 10:05 | |
| thing is, you never know whether you're doing something wrong, or it's a bug | |||
| masak | right. | ||
| same error with parrot perl6.pbc | 10:06 | ||
| kj | but it's a pir script right? you can't run ./parrot multitest.pir ? | 10:07 | |
| jonathan | Due to various things, I didn't think referring to Block in the :multi(...) will work. | ||
| Try Sub instead. | |||
| masak | jonathan: ok | ||
| kj | morning jonathan | ||
| jonathan | hi | ||
| purl | hello, jonathan. | ||
| masak | I think I have $str.subst more or less ready | 10:08 | |
| jonathan needs to pack! | |||
| Oh, great! :-) | |||
| masak | but it's in pieces, and I can't get the Block thing to work | ||
| jonathan | Gotta go to the airport in like, 2 hours.. | ||
| Yeah, Sub should do it. | |||
| masak | jonathan: well take it after your flight, then | ||
| I'll research Sub in the meantime | |||
| jonathan | masak: Are there actually multiple variants of subst? | ||
| Does it need to be multi? | |||
| masak | jonathan: there's one that takes a string and one that takes a rx | 10:09 | |
| jonathan: problem regexes aren't Subs | |||
| I think we are talking at cross purposes | |||
| or rather, we didn't understand each other's motives :) | 10:10 | ||
| jonathan | masak: Regexes *are* Subs as far as Parrot is concerned. | 10:11 | |
| I'm referring to the Parrot Sub type, not the Perl 6 one here. Though yes, it's confusing. :-) | |||
| masak | rakudo: say /d/.isa(Sub) | ||
| polyglotbot | OUTPUT[0ā¤] | ||
| masak | jonathan: ah. | 10:12 | |
| lunch & | |||
| jonathan | Yeah, but that's because that's getting the Sub proto we've installed in the namespace. Which refers to the Perl 6 Sub class. | 10:14 | |
| This whole thing is kinda messed, but I think using it in the Multi should work. | |||
|
10:20
pjcj joined
10:36
skv_ joined
10:39
ambs joined
10:40
skv__ joined,
Ademan joined
11:10
unenana joined
|
|||
| nopaste | "masak" at 130.238.45.242 pasted "why does this code give a Null PMC access? shouldn't regexp contain my regular expression?" (18 lines) at nopaste.snit.ch/13766 | 11:16 | |
| masak is learning PIR quickly, but not quickly enough, it seems | |||
|
11:27
Ademan joined
|
|||
| dalek | r30128 | julianalbo++ | trunk: | 12:00 | |
| : fixed op throw PMC | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30128 | |||
|
12:08
Whiteknight joined
|
|||
| dalek | r30129 | julianalbo++ | trunk: | 12:29 | |
| : fix op throw PMC for strict C compatibility | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30129 | |||
|
12:44
Andy joined
|
|||
| masak | ok, so if I do a getinterp and the immediate caller doesn't have a LexPad, I get a Null PMC access error, yes? | 13:14 | |
| dalek | r30130 | fperrad++ | opengl4lua: | 13:15 | |
| : [Lua] pre-compile gl.lua | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30130 | |||
| r30131 | fperrad++ | opengl4lua: | 13:30 | ||
| : [Lua] OpenGL more methods | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30131 | |||
|
13:35
DietCoke joined,
DietCoke left
|
|||
| dalek | r30132 | fperrad++ | opengl4lua: | 13:50 | |
| : [Lua] OpenGL fix depends | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30132 | |||
|
13:52
gryphon__ joined
|
|||
| dalek | r30133 | fperrad++ | opengl4lua: | 14:35 | |
| : [Lua] OpenGL, refactor GetError | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30133 | |||
|
14:40
diakopter joined
15:01
kj joined
15:17
Theory joined
15:41
jan joined
15:53
rdice joined
16:16
iblechbot joined
16:19
cognominal joined
|
|||
| Tene | Okay, there's a problem with resuming from an exception. | 16:29 | |
| Parrot_cx_find_handler_local adds the handler iterator to the exception, so it can be used for rethrow. | 16:30 | ||
| That's okay. | |||
| It also marks the exception as "already used", and then ignores all handlers that are already used. | |||
| Shouldn't it just be going off of the iterator? What does this buy us that the iterator doesn't? | 16:31 | ||
| With this model, the second time we throw an exception, it skips over the handler marked "already used", but this can' tbe right, can it? | 16:32 | ||
| Maybe I should look to see what non-fatal exceptions do to clean up after themselves, if they do. | 16:33 | ||
| Removing the check and the set_integer_native from that function leads to one additional test failure, a GC problem in the last test in t/pmc/exception.t | |||
|
16:40
clochette joined
16:43
particle joined
16:57
paco joined
|
|||
| Whiteknight | no GC problems! GC has enough problems already! | 16:59 | |
|
17:02
paco left,
pac1 joined
17:03
clunker3 joined,
pac1 left
17:17
ambs joined
|
|||
| Tene | Whiteknight: actually, not a gc problem, it doesn't go away with -G or with the debug core. | 17:41 | |
| It's a problem in allocating new memory, not GC, I think? | 17:42 | ||
| Also, I just got exceptions with severity less than specified to automatically resume once you've run out of error handlers. | 17:43 | ||
| I don't know if that should be a parrot thing or an HLL thing, though. | |||
| "If no handler is found, and the exception is non-fatal (such as a warning), and there is a continuation in the exception record (because the throwing opcode was "throw"), invoke the continuation (resume execution). Whether to resume or die when an exception isnāt handled is determined by the severity of the exception." | 17:44 | ||
| It doesn't say what severity that should happen at, though. | 17:45 | ||
| Infinoid | "severity" is just fatal or non-fatal, right? | 17:47 | |
| Infinoid <-- clueless | |||
| particle | tene: that's ambiguous, and must be fixed in the spec | 17:48 | |
| you say you have a patch for code, why don't you patch the spec to match your code and submit to parrotbug@ and copy allison | |||
| Tene | Infinoid: ./runtime/parrot/include/except_severity.pasm | 17:50 | |
| address for allison? | |||
| purl | hmmm... allison is Allison Randal <mailto:allison@perl.org> | ||
| Tene | purl: thanks | ||
| Infinoid | Tene: thanks | 17:51 | |
| particle | Infinoid: thanks | 17:52 | |
| Whiteknight | GC handles new memory allocations, yes | 18:06 | |
| Tene | Oh, comments suggest that other tasks also use the find_handler stuff, and those tasks don't store the handlers iterator in themselves. | ||
| But they could. | 18:07 | ||
| I should do that one next. | |||
| After work, though! | |||
| 'cos I need to keep the bosses happy. | |||
| purl: parrotbug? | 18:11 | ||
| purl | it has been said that parrotbug is mailto:parrotbug@parrotcode.org or svn.perl.org/parrot/trunk/docs/submissions.pod or see also "rakudobug" | ||
| Tene | Hmm. This code is in the wrong place. | 18:12 | |
| It should go in find_exception_handler, but that returns an entire handler object to throw_from_op, which returns an address to Parrot_throw_p, which returns the address to the rest of Parrot. | 18:15 | ||
|
18:21
ruoso joined
|
|||
| Tene | I also need to figure out how to deal with throw_from_c. | 18:22 | |
| Whiteknight | Good luck with that, I dont yet know much about the exceptions system | 18:27 | |
| I would like to learn more about it though | |||
|
18:35
Ron joined
|
|||
| dalek | r30134 | Whiteknight++ | gsoc_pdd09: | 18:53 | |
| : [gsoc_pdd09] update to trunk r30133 | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30134 | |||
| Whiteknight | Kjs here? | 18:57 | |
| dalek | r30135 | Whiteknight++ | gsoc_pdd09: | 19:00 | |
| : [gsoc_pdd09] remove a few non-printing ASCII characters from pirparser.c | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30135 | |||
|
19:01
cognominal joined
19:03
masak joined
19:04
davidfetter joined
|
|||
| masak | jonathan: alright, I'm stuck. | 19:12 | |
| jonathan: are you available, or are you still traveling? | 19:13 | ||
| particle | what are you stuck on? maybe i can mock^Whelp you | 19:17 | |
| i'm on a phone call with support folks, so a bit distracted | |||
| masak | particle: ok, so I'm writing this PIR method for Str | 19:18 | |
| it's called .subst | |||
| it takes a regex and a string | |||
| I will nopaste a piece of code | 19:19 | ||
| it's not the whole method, only the part that fails | |||
| nopaste | "masak" at 130.238.45.242 pasted "the piece of the method that fails" (19 lines) at nopaste.snit.ch/13769 | 19:20 | |
| masak | so, two questions vex me now: | 19:21 | |
| (1) whence the Null PMC access? | |||
| (2) how do I go about making this method take either (regex,str) or (str,str)? I've written both variants, but I don't know the mechanism in PIR for putting them together | 19:22 | ||
|
19:27
Andy joined
|
|||
| japhb | seen fperrrad | 19:34 | |
| purl | I haven't seen 'fperrrad', japhb | ||
| japhb | seen fperrad | ||
| purl | I haven't seen 'fperrad', japhb | ||
| japhb | damn | 19:35 | |
|
19:45
cybergirl joined
|
|||
| cotto-work | japhb, he doesn't come to #parrot afaict | 19:58 | |
| japhb | cotto-work: oh? Where does he show up? | ||
| cotto-work | |||
| japhb | blurg | ||
| damn non-real-time interaction | |||
| cotto-work | (I don't know of any irc channels where he shows up) | 19:59 | |
| masak | that's impressive for someone with an IRC nick. | 20:01 | |
| particle | sorry, masak, i just got off a 100min phone call | 20:05 | |
| masak | particle: s'ok. | ||
| I bet your clients have more of a claim to your time than I do. :) | 20:06 | ||
| particle | that's true :) | 20:07 | |
| ok, so, you haven't tested to see whether regexp is null | |||
| masak | no. | ||
| particle | so it could actually be null | ||
| masak | yes. | ||
| that would explain a lot -- except why it's null. | |||
| particle | right | ||
| masak checks if regexp is null | 20:09 | ||
| nope -- doesn't seem like it | 20:10 | ||
| at least not if "unless regexp goto is_null" suffices to catch a null regexp. | |||
| actually, the Null PMC access occurs within the actual ACCEPTS method | 20:11 | ||
| when trying to use the value returned from a 'getinterp' | 20:12 | ||
| see src/gen_builtins.pir, link 3739 | 20:13 | ||
| s/link/line/ | |||
| particle | which getinterp? file...thx | ||
| er, that's not gonna work for me | |||
| i don't have rakudo built on this box | |||
| i'll switch | |||
| masak | ah | ||
| I'll get the original file for you. | |||
| src/classes/Code.pir l35 | 20:14 | ||
| so I'm pretty sure getinterp returns null | |||
|
20:18
StephenPollei joined
|
|||
| particle | sorry, phone, but this should be short | 20:19 | |
| masak | no worries | ||
| Tene | Hi Stephen. | ||
| StephenPollei | hello Tene I decided to try #parrot out, lloking around for information about writting tests like you suggested | 20:20 | |
| Tene | You'll want to read /t/README in the pugs svn. | ||
| Sorry, /t/spec/README | 20:21 | ||
| svn.pugscode.org/pugs/t/spec/README | |||
| StephenPollei | ok I'll do so | ||
| particle | masak: if you put 'trace 1' in Code.pir below .param pmc topic and rebuild rakudo , you'll see the tracing code as parrot runs | ||
| Tene | I'll get you a pugs commit bit. | ||
| particle wonders where in washington StephenPollei is | |||
| masak tries that | 20:22 | ||
| particle | tene: can you hand out commit bits? | ||
| StephenPollei | Spokane Valley | ||
| Tene | particle: Yes. | ||
| particle | okie | ||
| i'm in seattle | |||
| Tene | StephenPollei: /msg me your preferred email address and username. | ||
| nopaste | "masak" at 130.238.45.242 pasted "this is what 'trace 1' gave me" (118 lines) at nopaste.snit.ch/13770 | 20:24 | |
| masak | it's trying to index $P1['$/'] when $P1 is Null that fails | 20:26 | |
| but if I read this correctly, it's not the fault of the getinterp call | |||
| it's the fault of the P0["lexpad";1] access | 20:27 | ||
| why? under which circumstances does this occur? | |||
| according to pdd20, getinterp and $P0["lexpad";1] are used "to get the immediate caller's LexPad" | 20:29 | ||
| are we sure the immediate caller (that would be my method, I guess) has a lexpad? | |||
| particle | no | 20:31 | |
| it's possible that it does not have a lexpad iirc | |||
| masak | that would also explain a lot. | 20:32 | |
| particle | i'd look in the lexicals tests for examples | 20:33 | |
| masak | I don't immediately see why a lexpad of the immediate caller is needed in a match. | ||
| is it just to set $/? I don't really need that in my method. | |||
| particle | accepts always sets $/ | ||
| masak | particle: lexicals tests? as in, somewhere in parrot's t/? | 20:34 | |
| particle | what line of perl 6 code triggers it? | ||
| yes, in parrot's t/ | |||
|
20:34
Whiteknight joined
|
|||
| Tene | HI WHITEKNIGHT | 20:34 | |
| masak | particle: well, my $s = "abcd"; $s.subst( /d/, "D" ); | ||
| but it's subst I'm implementing right now. | |||
| ambs | purl, paste? | ||
| purl | i think paste is (see: nopaste) or like glue but a little safer to sniff. or nopaste.snit.ch:8001/ or scsys.co.uk:8001/ anywhere shadowpaste is or mmm, sticky paste or You there! Eating the paste. or <see> 2 girls, 1 paste | ||
| particle | masak: so, you're passing a regex, and it's seeing it as Code | 20:35 | |
| or Perl6Sub or whatever | |||
| nopaste | "ambs" at 77.54.92.255 pasted "Malformed unicode string" (6 lines) at nopaste.snit.ch/13771 | ||
| particle | i'm not sure regexes have a lexpad | ||
| masak | particle: I guess | ||
| ambs | damn, nopaste do not show unicode correctly | ||
| masak | particle: jonathan++ told me I should :multi the regex as 'Sub', and that the Sub was a Parrot thing, not a rakudo thing | 20:36 | |
| I'm not sure what relation Sub has to Code. | |||
| particle | codeproto = p6meta.'new_class'('Code', 'parent'=>'Any') | ||
| p6meta.'register'('Sub', 'parent'=>codeproto, 'protoobject'=>codeproto) | |||
| p6meta.'register'('Closure', 'parent'=>codeproto, 'protoobject'=>codeproto) | |||
| Whiteknight | HI TENE | ||
| particle | Sub is a registered name in rakudo for a 'Code' class | 20:37 | |
| masak | ok | ||
| particle | as is Closure | ||
| but Regex isn't | |||
|
20:37
britneypire joined
|
|||
| masak | particle: no. I know that. | 20:38 | |
| that's why I'm passing the regex as Sub. | |||
| Tene | britneypire: welcome | ||
|
20:40
cognominal joined
20:53
mj41_ joined
20:59
peepsalot joined
21:02
cognominal joined
|
|||
| dalek | r30136 | coke++ | trunk: | 21:05 | |
| : [docs] Fix pod issue causing smolder failures. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=30136 | |||
| masak realizes that he doesn't have to use regexp.'ACCEPT'(self) at all, since regexp(self) apparently is legal PIR syntax all on its own | 21:12 | ||
| now I don't have to worry about $/ in my LexPad | |||
| ...although I get a nasty bus error instead, now :/ | |||
|
21:18
lauanana joined
|
|||
| StephenPollei | svn.pugscode.org/pugs/t/packages/reflection.t skip_rest "test needs to be rewritten because of recent design changes"; | 21:44 | |
| might that be a good place to start written test? or would another area be better? | 21:45 | ||
| masak | StephenPollei: because that is in t/ but outside t/spec/, it probably concerns recent pugs design changes | 21:48 | |
| not parrot | |||
| StephenPollei | ok so only look in t/spec for parrot | 21:50 | |
| masak | StephenPollei: the t/spec tests comprise the budding "Official Test Suite" of Perl 6, as described in t/spec/README | 21:51 | |
| StephenPollei | [[we are currently in the process of copying files from the pugs test suite into this directory and making them platform independent.]] so I can migrate tests or write new ones from scratch | 21:53 | |
| masak | StephenPollei: correct. | 21:54 | |
| StephenPollei | not sure what area you'd like tests to be done next, and where I'd be most useful yet | 21:55 | |
| masak | StephenPollei: might be a good idea to ask Auzon over at #perl6 on freenode. | ||
| he's not there right now, but he hangs there often | 21:56 | ||
| StephenPollei | ok will do so, thanks | ||
| masak | his Google Summer of Code project was freshening up t/spec, so he probably has a good overview | ||
| but basically, read the Specs, find a feature you like, see if it has any tests in t/spec or t/, and add/move/adapt tests as necessary | 21:58 | ||
| StephenPollei | yes it's been a few months since I've read the specs, so I will reread them | 22:00 | |
| masak | StephenPollei: I should, too :) | ||
| StephenPollei: also, check out svn.pugscode.org/pugs/t/TASKS for great justice | 22:02 | ||
| StephenPollei | ok will do | ||
| particle | StephenPollei: i suggest you look at spec.pugscode.org | ||
| pick a synopsis, say S06 | 22:03 | ||
| then search for "Show t/" | |||
| StephenPollei | svn.pugscode.org/pugs/t/TASKS was also very helpful | 22:04 | |
| particle | note any places where the files are outside t/spec/ | ||
| those tests should be moved to t/spec/, in an appropriate dir and file | 22:05 | ||
| good, TASKS is a great place to look | |||
| StephenPollei | and if so move them? | ||
| particle | yes | ||
| something like t/blocks/sub_return_values.t lines 8-229 could be moved to t/spec/S06-subroutines/basic.t or something | 22:07 | ||
| ETOOMANYSOMETHINGS | |||
| masak | particle++ # at least some somethings | ||
| particle runs off to test ride some bikes & | 22:08 | ||
| StephenPollei | yes that's what I get for mentioning that I wanted perl6 rsn in front of group that had Tene in it ;-) I get put to work | ||
| particle | we reward enthusiasm with responsibility | 22:09 | |
|
22:10
Khisanth joined
|
|||
| StephenPollei | yes I see many things in t/block that might be suitable for moving [[ Please also read t/deprecated-syntax.pod for common mistakes in the test suite, and clear them when you update tests. ]] also trying to make sure I understand your conventions before I just do a cut-n-paste mindless monkey thing | 22:12 | |
|
22:18
Andy joined
22:46
Limbic_Region joined
22:56
apeiron joined
23:11
Theory joined
23:24
tetragon joined
23:29
slightlyoff joined
23:30
gmansi joined
23:31
MeGaMiC joined
|
|||