Camelia, the Perl 6 bug

IRC log for #parrot, 2008-05-25

Parrot | source cross referenced

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 rdice joined #parrot
00:01 bacek I still don't understand which part of STD.pm related to @a.map: {...}...
00:02 Limbic_Region joined #parrot
00:03 Zaba_ joined #parrot
00:06 pmichaud @a.map: {...} or  @a.map:{...} ?
00:07 bacek pmichaud, with space.
00:07 bacek I try to fix spectest. There is problems with arity...
00:08 bacek is(("foo","bar").map: { $_.substr(1,1) }, @expected, "map of constant list works");
00:09 bacek it parsed as map with 3 args and 'is' with 1. Instead of 'is' with 3 and map with 1.
00:10 nopaste "bacek" at 202.7.166.163 pasted "Implementation of List.map for review" (81 lines) at http://nopaste.snit.ch/13059
00:10 braceta joined #parrot
00:11 bacek pmichaud, can you review this one? It supports multiple arity map.
00:11 bacek say ~(1,2,3,4).map: { $^a + $^b }; returns '3 7' as expected
00:12 pmichaud the STD.pm rule is methodop
00:12 pmichaud the line that says
00:12 pmichaud | ':' <?before \s> <!{ $+inquote }> <arglist>
00:14 bacek pmichaud, found it.
00:14 bacek Looks like src/parser/grammar.pm should have explicit priority for 'dotty'. Similar to --> Methodcall
00:15 bacek ...in STD.pm
00:15 bacek correct?
00:18 pmichaud I think the spectest is wrong.
00:19 bacek pmichaud, hmm...
00:19 bacek pmichaud, there is many places with such syntax in spectest.
00:20 bacek Should we change it and use explicit parentizes around 'map'?
00:20 pmichaud either that or remove the space before the {
00:22 bacek if fails to parse without space.
00:22 bacek Is it 'colonpair' not fully implemented?
00:23 * bacek wants someone to check #54740 and #54746 :)
00:24 pmichaud correct, rakudo doesn't understand :{...} yet.
00:25 bacek pmichaud, which part of STD.pm not implemented in this case?
00:26 pmichaud I don't understand the question.
00:26 pmichaud We have :{...} in the grammar, we just don't have it so that it maps correctly to a closure argument
00:27 bacek Statement not terminated properly at line 5, near "((\"foo\",\"b"
00:28 bacek I assume that grammar isn't complete... Am I totally wrong?
00:29 pmichaud there are parts of the grammar that aren't complete, yes.  But I'm not sure that this is one of them.
00:30 pmichaud in nopaste #13059, the call to "newclosure" is wrong.
00:30 bacek pmichaud, why?
00:31 pmichaud newclosure can only be called from the closure's outer sub
00:31 bacek pmichaud, it doesn't work without it :(
00:31 pmichaud (which 'map' is not.)
00:31 pmichaud correct, there's a problem in that rakudo doesn't always call newclosure appropriately.
00:31 pmichaud but by the time that 'map' gets called, newclosure will have already been done.
00:33 bacek my @l = (1..3); say ~@l.map({$_*2});
00:33 bacek my @l = (1..3); { say ~@l.map({$_*2}); }
00:34 bacek without newclosure I've got too few arguments passed (0) - 1 params expected
00:34 pmichaud correct.
00:34 bacek But it crashes with newclosure... Hmm...
00:34 pmichaud there's a problem with parrot on its handling of :outer
00:34 bacek pmichaud, how I can fix it?
00:34 pmichaud I don't know how to fix it -- it's a deep parrot bug and I'm still trying to come up with a good workaround.
00:36 pmichaud the bug is rt#47956
00:38 pmichaud because of that bug,  the {$_*2} closure of the first example can't be given an :outer
00:38 pmichaud since it can't be given an :outer, it can't be made into a closure.
00:42 bacek pmichaud, ouch...
00:43 bacek we need someone with great "dark magick" skills to fix it.
00:44 pmichaud I might be able to do a workaround.
00:45 pmichaud let me make a workaround and let's see where it goes.
00:45 bacek warp everything into closure and invoke it?
00:51 TimToady < bacek> it parsed as map with 3 args and 'is' with 1. Instead of 'is' with 3 and map with 1.
00:52 TimToady that looks like how it's supposed to parse; the : introduces an argument list, and {}, 2, 3 is a list of 3 args
00:53 pmichaud yes, that's why I think the spectest is wrong there.
00:53 pmichaud back in a few mins.
00:53 TimToady yes, it's wrong.
00:56 * bacek rejected yesterday commit rights to pugs... May be it was wrong decision :)
00:57 bacek ping vany
00:57 purl I can't find vany in the DNS.
00:57 bacek vany, ping!
00:57 pmichaud bacek: you should get a pugs commitbit if you're going to work on spectests
00:57 bacek pmichaud, I'm going to work on anything that helps rakudo :)
00:58 pmichaud that would certainly help :-)
00:58 TimToady I believe I heard that commitbit was back up
00:58 bacek pmichaud, It's just to much resonsiblity for me at the moment. I still newbie in parrot/rakudo/Perl6
01:00 pmichaud it's not too much responsibility.  mistakes are okay -- we'll catch them.
01:00 TimToady yes, commitbit is up
01:00 TimToady msg me your email and preferred nick, and I can add you
01:01 TimToady or most anyone on #perl6 can add you
01:03 bacek TimToady, bacek@bacek.com, bacek :)
01:07 TimToady commitbit sent, it's customary to add yourself to AUTHORS as first commit (that is, in pugs repo, not parrot repo)
01:08 TimToady even if all the rest of your commits are down in t/spec :)
01:11 confound bacek@bacek.bacek
01:13 Zaba joined #parrot
01:23 bacek joined #parrot
01:30 dalek r27791 | pmichaud++ | trunk:
01:30 dalek : [p6object]:
01:30 dalek : * Add 'can' method to P6metaclass.
01:30 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27791
01:36 dalek r27792 | pmichaud++ | trunk:
01:36 dalek : [rakudo]:
01:36 dalek : * Add Any.can().
01:36 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27792
01:40 pmichaud afk for a while -- will look at newclosure late.r
01:42 bacek Setup: HsSyck.cabal:14: 'Executable' stanza starting with field 'license'
01:42 bacek Installation failed for HsSyck at util/build_pugs.pl line 235.
02:21 Psyche^ joined #parrot
02:22 bacek #perl6?
02:22 purl #perl6 is at irc.freenode.net.
02:30 nopaste "bacek" at 202.7.166.163 pasted "Parsing bug in methodop." (58 lines) at http://nopaste.snit.ch/13060
02:30 bacek $x('world') generates 'infix:,'(x, 'world')...
02:42 pmichaud bacek: good catch.
02:47 pmichaud of course, that bug isn't in methodop :-)
02:51 cotto_home does anyone regularly compile with Intel's compiler?
03:37 dalek r27793 | pmichaud++ | trunk:
03:37 dalek : [rakudo]:
03:37 dalek : * Forget to set the Perl6Object => Object mapping.
03:37 dalek : * mncharity++ Eevee++ spinclad++
03:37 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27793
03:38 bacek pmichaud, ok-ok :) Not methodop
03:39 pmichaud I have it fixed now -- just running spectest_regression as a verification before committing
03:47 dalek r27794 | pmichaud++ | trunk:
03:47 dalek : [rakudo]:
03:47 dalek : * Fix bug with $x(1) introduced by r27778
03:47 dalek : * Reported by bacek++
03:47 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27794
03:47 pmichaud $x(1) fixed in r27794
03:56 * tetragon watches Configure.pl collapse after passing in the options for a pure i386 build of parrot on a PPC box
04:04 nopaste "tetragon" at 69.196.141.26 pasted "Fun with testing an OS X configuration patch" (190 lines) at http://nopaste.snit.ch/13061
04:11 pmichaud bacek: ping
04:16 petdance joined #parrot
04:21 dalek r27795 | pmichaud++ | trunk:
04:21 dalek : [rakudo]:
04:21 dalek : * Set svn:ignore property for src/pmc/mutable.pmc .
04:21 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27795
04:25 tetragon joined #parrot
04:28 dalek r27796 | pmichaud++ | trunk:
04:28 dalek : [pct]:
04:28 dalek : * Make PAST::Block nodes a bit smarter about executing 'newclosure'.
04:28 dalek :   Ideally we'd execute 'newclosure' almost anytime that we refer
04:28 dalek :   to a block we just created and avoid the typecheck, but RT#47956
04:28 dalek :   prevents us from doing that.
04:28 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27796
04:29 pmichaud bacek: r27796 should mean you no longer need newclosure for 'map', 'grep', 'reduce', etc.
04:34 Theory_ joined #parrot
04:46 bacek pmichaud, great!
04:49 * bacek works as plumber today... A lot of things to fix at home :)
04:49 bacek pmichaud, it works!
04:56 shamu left #parrot
04:57 bacek pmichaud++
04:58 bacek Files=39, Tests=666
04:58 bacek Perl6 _IS_ evil :)
05:20 dalek r27797 | pmichaud++ | trunk:
05:20 dalek : [rakudo]:
05:20 dalek : * Fix :a<3> Pair notation.  (mncharity++ for noticing this.)
05:20 dalek : * Add stringification for Pairs (possibly incorrect -- needs
05:20 dalek :   spec clarification).
05:20 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27797
05:21 pmichaud afk # sleep
05:29 shamu joined #parrot
05:31 shamu left #parrot
06:05 mire joined #parrot
06:28 cotto_home joined #parrot
06:49 ank joined #parrot
06:51 AndyA joined #parrot
07:00 Zaba joined #parrot
07:10 Zaba joined #parrot
07:17 IllvilJa joined #parrot
07:18 dalek r27798 | jonathan++ | mutablerakudo:
07:18 dalek : [rakudo] Create branch to start using Mutable in Rakudo.
07:18 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27798
07:19 ejs joined #parrot
08:40 iblechbot joined #parrot
08:50 Ivatar joined #parrot
08:53 dalek r27799 | allison++ | pdd25cx:
08:53 dalek : [pdd25cx] Bringing the pdd25cx branch up-to-date with trunk r27798.
08:53 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27799
08:53 barney joined #parrot
09:43 Zaba_ joined #parrot
09:47 Zaba joined #parrot
11:14 Casan joined #parrot
11:29 Ivatar joined #parrot
12:03 Zaba joined #parrot
12:53 rdice joined #parrot
13:26 dalek r27800 | jonathan++ | mutablerakudo:
13:26 dalek : [rakudo] Switch over to using the mutable container types. All sanity tests pass.
13:26 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27800
13:29 moritz can I declare slurpy named args in PIR?
13:40 pmichaud moritz:  yes....   :slurpy :named
13:47 moritz pmichaud: thanks. Where's all that stuff documented?
13:52 moritz .sub 'assuming' :method :slurpy :named
13:52 moritz error:imcc:syntax error, unexpected ADV_SLURPY, expecting '\n' (':slurpy')
13:54 jhorwitz joined #parrot
13:55 pmichaud .sub 'assuming'
13:55 pmichaud oops
13:55 pmichaud .sub 'assuming' :method
13:55 pmichaud .param args :slurpy :named
13:55 pmichaud ...
13:55 moritz thanks
13:56 * moritz just found PDD03
13:56 pmichaud also pdd19:   docs/pdds/draft/pdd19_pir.pod
13:56 pmichaud not all of the "syntactic sugar" options work yet, though.
14:05 confound joined #parrot
14:05 confound joined #parrot
14:08 ejs joined #parrot
15:04 petdance joined #parrot
15:10 Zaba_ joined #parrot
15:15 rdice joined #parrot
15:53 masak joined #parrot
15:56 iblechbot joined #parrot
16:26 masak someone might find this interesting:
16:26 masak http://paste2.org/p/31502
16:26 masak should I post a bug ticket somewhere, perhaps?
16:26 basileus joined #parrot
16:30 jonathan masak: Perhaps.
16:30 jonathan Well, post a ticket.
16:31 jonathan It may well be part of a more general issue, that we need to not have ResizablePMCArray exposed.
16:31 moritz rakudobug
16:31 purl it has been said that rakudobug is mailto:rakudobug@perl.org
16:31 jonathan I guess we could get @() to see if it has a List or something else.
16:32 masak jonathan: shouldn't the fact that .WHAT returns List sort of guarantee that I can to .elems on it?
16:34 jonathan masak: No, 'fraid not.
16:34 * masak is surprised by that
16:34 masak maybe been using Java interfaces too much
16:38 jonathan pmichaud: ping
16:40 Psyche^ joined #parrot
16:42 Ron joined #parrot
16:53 slightlyoff joined #parrot
16:53 slightlyoff left #parrot
17:07 diakopter jonathan: see http://irclog.perlgeek.de/​perl6/2008-05-25#i_310851 and following
17:11 masak it's a cool world where things you discussed a minute ago have their own URI
17:11 Casan log of life
17:19 braceta joined #parrot
17:24 jonathan diakopter: Rakudo bug; please (or someone else) submit a ticket for that.
17:25 jonathan to rakudobug?
17:25 jonathan purl, rakudobug
17:25 purl rumour has it rakudobug is mailto:rakudobug@perl.org
17:25 Zaba joined #parrot
17:25 jonathan There.
17:25 diakopter just put the test case along with the missed expectation in the email body?  where does the Subject go?
17:26 diakopter (does it become the title of the ticket?)
17:26 jonathan Yes.
17:26 dalek r27801 | jonathan++ | mutablerakudo:
17:26 dalek : [rakudo] Refactor of Mutable PMC to allow it to have a properties hash as well as the value.
17:26 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27801
17:28 moritz dalek: or submit test cases to t/spec/S06-signature/
17:28 moritz s/dalek/diakopter/
17:30 dalek r27802 | tewk++ | gsoc_nci:
17:30 dalek : [gsoc_nci] branch creation
17:30 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27802
17:34 jonathan OK, will refactor the type checking stuff in the Mutable branch tomorrow or the day after.
17:34 * jonathan is too tired from the excellent NPW
17:35 * diakopter submitted 54800 & 54802
17:49 tetragon joined #parrot
17:59 dalek r27803 | jkeenan++ | searchdocs:
17:59 dalek : Creating searchdocs in https://svn.perl.org/parrot//branches
17:59 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27803
17:59 dalek r27804 | jkeenan++ | searchdocs-27802:
17:59 dalek : Tagging trunk at r27802 so that the searchdocs can later be synched to it.
17:59 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27804
18:00 kid51 joined #parrot
18:06 dalek r27805 | jkeenan++ | trunk:
18:06 dalek : MANIFEST needed updating after addition of languages/perl6/t/pmc/mutable.t.
18:06 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27805
18:06 dalek r27806 | jkeenan++ | searchdocs:
18:06 dalek : Working in branch, replace search-ops.py with search-ops.pl.
18:06 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27806
18:14 dalek r27807 | jkeenan++ | searchdocs:
18:14 dalek : Correct syntax error.
18:14 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27807
19:14 Ron joined #parrot
19:33 ejs joined #parrot
19:37 Zaba_ joined #parrot
20:43 cjfields joined #parrot
20:45 cjfields left #parrot
20:46 Zaba joined #parrot
20:53 Zaba_ joined #parrot
21:06 mire_ joined #parrot
21:14 davidfetter joined #parrot
21:16 TimToady joined #parrot
21:36 dalek r27808 | rgrjr++ | trunk:
21:36 dalek : * docs/pmc/subs.pod:
21:36 dalek :    + [docs] Thorough update:  Clean up format, add references, change
21:36 dalek :      all examples to PIR, flush obsolete calling conventions.  Still
21:36 dalek :      needs more work, but at least now all the examples can be run
21:36 dalek :      without having to dig through old releases!
21:37 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=27808
21:38 Zaba joined #parrot
21:44 guru joined #parrot
21:52 Zaba_ joined #parrot
22:00 tewk joined #parrot
22:04 teknomunk joined #parrot
22:10 bacek joined #parrot
22:24 tetragon joined #parrot
22:29 Zaba joined #parrot
23:17 kid51 joined #parrot
23:21 Theory joined #parrot
23:56 braceta joined #parrot
23:59 bacek_ joined #parrot

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

Parrot | source cross referenced