% Ademan has left Ademan!~dan@h-68-167-207-246.snfccasy.dynamic.covad.net % ank has joined #parrot % iblechbot has joined #parrot % Ademan has joined #parrot % bacek has left bacek!~bacek@123-243-38-218.tpgi.com.au % barney has joined #parrot % slightlyoff has joined #parrot % slightlyoff has left #parrot % Zaba_ has joined #parrot % Zaba has left Zaba!~zaba@ip102.148.adsl.wplus.ru bernhard.schmalhofer@gmx.de | Plumhead: link: http://www.perlfoundation.org/parrot/index.cgi?plumhead bernhard.schmalhofer@gmx.de | Plumhead: link: http://www.perlfoundation.org/parrot/index.cgi?plumhead % barney has left barney!~bernhard@p549A35C9.dip0.t-ipconnect.de r28592 | bernhard++ | trunk: : [Plumhead] : Clean up generated *.pbc files. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28592 % bacek has joined #parrot % masak has joined #parrot r28593 | bernhard++ | trunk: : Satisfy the c_parens codingstd test. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28593 % pjcj has left pjcj!~pjcj@84-73-177-217.dclient.hispeed.ch % pjcj has joined #parrot % ruoso has joined #parrot % Zaba has joined #parrot % Zaba_ has left Zaba_!~zaba@ip102.148.adsl.wplus.ru % iblechbot has left iblechbot!~iblechbot@ppp-62-216-201-110.dynamic.mnet-online.de % Whiteknight has joined #parrot % Whiteknight has left Whiteknight!~nobody@c-71-230-33-251.hsd1.pa.comcast.net % iblechbot has joined #parrot % zarchne has left zarchne!~michael@209.40.67.38 % jq has left jq!~jquelin@merlin.mongueurs.net % jq has joined #parrot % tetragon has joined #parrot % jjuran has left jjuran!~jjuran@c-71-227-190-72.hsd1.or.comcast.net % jjuran has joined #parrot % Zaba has left Zaba!~zaba@ip102.148.adsl.wplus.ru % Zaba has joined #parrot japhb: No, please go ahead. feather3 is free play as long as you fix what you break :) % kid51 has joined #parrot % radhios has joined #parrot % iblechbot has left iblechbot!~iblechbot@104.18-dial.augustakom.net % ambs has joined #parrot Given that TimToady is around, let me just suggest to add a new constrction to perl 6: forever { ... } :D we already have such a construction: loop oops loop { .. } ? yes, loop { ... } see S04. damn, everytime I get an idea, somebody had it already. from S04: As in C, the parentheses are required if you supply the 3-part spec; however, the 3-part loop spec may be entirely omitted to write an infinite loop. That is, loop {...} is equivalent to the Cish idiom: loop (;;) {...} then, for is dead? no, for is an iterator. for @list { ... } ok, C for is now loop Perl for, is for got it * ambs needs to start reading S* % ruoso has left ruoso!~ruoso@201009112030.user.veloxzone.com.br % radhios has left radhios!~roberto@200.127.117.32 % tetragon has left tetragon!~seneca@216.126.67.44 ambs: not only that, but p5 `while` is sometimes `for` in p6 specifically, when you're reading lines from file so, basically, a completely new language :) % ruoso has joined #parrot ambs: not backward-compatible, if that's what you mean. there are a lot of similarities with Perl 5 diakopter, no. I mean it will take some time to be self-confident writing p6 code. ambs: well, yes or no, depending on what 'completely new' means to you but the file-line idiom will have to be relearnt it's true that p5 and p6 are very different in some respects * ambs just found http://feather.perl6.nl/syn/ the sense of Perl is definitely still in p6, tho' :) % tetragon has joined #parrot % radhios has joined #parrot % tetragon has left tetragon!~seneca@216.126.67.44 r28594 | pmichaud++ | trunk: : [rakudo]: : * Update spectest-progress : * 65 files, 794 passing tests diff: http://www.parrotvm.org/svn/parrot/revision?rev=28594 Ooh, not too many off 1000. :-) yes, when I get the rule refactored we'll get a bunch of tests passing from enabling 'pi' src/ops needs to have svn:ignore set. % gmansi has joined #parrot Nice...what else is on your coming soon list? $_ handling, rule refactor, and hopefully pre-compiled Test.pm r28595 | pmichaud++ | trunk: : [rakudo]: : * Update README. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28595 (getting Test.pm to work requires a bit of re-think of :load :init subs) Sounds good. Pre-compiled stuff would be great. yes, it will speed up the testing quite a bit. then we'd also be able to write runtime libraries in Perl 6 :-) Will you try and do it for general stuff too, so we can have a perl6 --bytecode myscript.p6 and get myscript.pbc? I don't know of a way to generate bytecode from within PIR. but one could do --target=pir and then compile that result to .pbc % mateo319 has joined #parrot You take an eval PMC And I think $S0 = $P0 where $P0 is the eval PMC Then write $S0 to file. hrm. hadn't heard that one. In previous times when I've asked about this the answer came back as "oh, we don't have a way to do that yet." :-) I'm sure I've done that in the past. if that works I should add it to HLL compiler. oh, it's not quite like that But see languages/dotnet/src/net2pbc.pir "pmichaud" at 76.183.97.54 pasted "problem with lexical scoping" (15 lines) at http://nopaste.snit.ch/13336 That's bizzare... I think it has to do with closure handling. I'm coming up with a small .pir demo case. "pmichaud" at 76.183.97.54 pasted "problem with lexical scoping (pir)" (31 lines) at http://nopaste.snit.ch/13337 % mateo319 has left mateo319!~mateo319@cpe-71-72-83-99.columbus.res.rr.com % iblechbot has joined #parrot % Limbic_Region has joined #parrot r28596 | pmichaud++ | trunk: : [rakudo]: : * Set svn:ignore properties on src/ops . diff: http://www.parrotvm.org/svn/parrot/revision?rev=28596 r28597 | pmichaud++ | trunk: : [rakudo]: : * Handle empty statements (RT#55594) : * Patch courtesy Ronald Schmidt diff: http://www.parrotvm.org/svn/parrot/revision?rev=28597 % mateo319 has joined #parrot r28598 | pmichaud++ | trunk: : [rakudo]: : * Allow 'make spectest_regression' to work even when "svn up" fails on t/spec. : * RT#56050 patch courtesy Deven T. Corzine diff: http://www.parrotvm.org/svn/parrot/revision?rev=28598 % ambs has left ambs!~ambs@255.92.54.77.rev.vodafone.pt % TiMBuS has left TiMBuS!~Hurf@123-243-167-27.static.tpgi.com.au r28599 | pmichaud++ | trunk: : [rakudo]: : * Add chop.t and remove comb.t from spectest_regression (RT#56068, moritz++) : * Patch courtesy Moritz Lenz diff: http://www.parrotvm.org/svn/parrot/revision?rev=28599 removing things from regression doesn't soundgood! we were skipping all of the tests. r28598++ (I'm only kinda half here at the moment...) I'm about to be not-here -- have a LUG to attend in 30 mins. pmichaud: Not sure - I need to look at what newclosure does more closely to really understand what's going on here... jonathan: no problem -- just wanted to get the ticket on record. I'll probably bring it up at #parrotsketch if nobody's addressed it by then. theoretically we don't need the newclosure in this case (for the immediate block), but when I don't generate those as closures I get other bugs -- which probably also deserve tickets. % cognominal has left cognominal!~cognomina@82.67.232.89 pmichaud: Would be good to give the whole thing a review. Maybe I get some free time to look over it later today or tomorrow. there's also the issue with :outer referencing :load :init subs which allison has fixed in the pdd25cx branch I don't know if that will fix this or not. Hmm, OK. might try testing the .pir in pdd25cx, though, just to see. Do you have any idea how far we are off merging that into trunk? anyway, I have to head off to a meeting -- bbl. OK, cu I don't know how far off a merge is. We got PGE to compile in the branch, but that pointed up some other failures. % jjore is now known as zz_jjore % zz_jjore is now known as jjore afk # meeting % davidfetter has joined #parrot % kid51 has left kid51!~jkeen@pool-68-237-2-226.ny325.east.verizon.net % masak has left masak!~user@130.238.45.242 % jjore is now known as zz_jjore % zz_jjore is now known as jjore % ank has left ank!~ank@ppp59-167-200-77.lns1.hba1.internode.on.net % mateo319 has left mateo319!~mateo319@cpe-71-72-83-99.columbus.res.rr.com % ron has joined #parrot % ron has left ron!~ron@c-98-203-6-135.hsd1.fl.comcast.net % ron has joined #parrot % ron has left ron!~ron@c-98-203-6-135.hsd1.fl.comcast.net % Zaba has left Zaba!~zaba@ip102.148.adsl.wplus.ru % Zaba has joined #parrot % ank has joined #parrot % gmansi has left gmansi!~gmansi@190.55.35.246 % davidfetter has left davidfetter!~davidfett@start.fetter.org % gmansi has joined #parrot % zarchne has joined #parrot % Ademan has left Ademan!~dan@h-68-167-207-65.snfccasy.dynamic.covad.net % Ademan has joined #parrot % gmansi has left gmansi!~gmansi@190.55.35.246 % tetragon has joined #parrot % gmansi has joined #parrot % Khisanth has left Khisanth!~Khisanth@pool-141-157-245-138.ny325.east.verizon.net % Khisanth has joined #parrot % gmansi has left gmansi!~gmansi@190.55.35.246 % gmansi has joined #parrot % vhold has left vhold!~vhold@adsl-67-114-158-146.dsl.sntc01.pacbell.net r28600 | chromatic++ | trunk: : [IMCC] Plugged the keychain memory leak in IMCC. All key-type structures : leaked memory proportional to the number of elements in the key. Now they : don't. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28600 % gmansi has left gmansi!~gmansi@190.55.35.246 r28601 | chromatic++ | trunk: : [IMCC] Tidied the rest of the SymReg code. There are no functional changes. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28601 % DietCoke has left DietCoke!~coke@cpe-72-228-52-192.nycap.res.rr.com r28602 | chromatic++ | trunk: : [src] Fixed Hash declarations so that both C and C++ compile again (NotFound, : RT #55960). diff: http://www.parrotvm.org/svn/parrot/revision?rev=28602 % gryphon has joined #parrot % gmansi has joined #parrot % cognominal has joined #parrot % kid51 has joined #parrot % radhios has left radhios!~roberto@200.127.117.32 % ruoso has left ruoso!~ruoso@201009013025.user.veloxzone.com.br r28603 | jkeenan++ | searchdocs: : Branch was merged into trunk on June 1; no longer needed. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28603 % tetragon has left tetragon!~seneca@76-10-148-120.dsl.teksavvy.com r28604 | jkeenan++ | searchdocs-27802: : Branch to which this tag corresponded has been removed from trunk; tag; no longer needed. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28604 r28605 | jkeenan++ | nom4: : Creating nom4 in https://svn.perl.org/parrot/branches diff: http://www.parrotvm.org/svn/parrot/revision?rev=28605 r28606 | jkeenan++ | nom4-28604: : Tagging trunk at r28604 so that the nom4 can later be synched to it. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28606 % ruoso has joined #parrot r28607 | jkeenan++ | nom4: : In branch, remove config step class auto::m4 and associated test file. Update MANIFEST. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28607 r28608 | jkeenan++ | trunk: : File needed updating. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28608 % paco has left paco!~chatzilla@139.Red-80-36-122.staticIP.rima-tde.net % jhorwitz has joined #parrot % Ademan has left Ademan!~dan@h-68-164-168-48.snfccasy.dynamic.covad.net r28609 | jkeenan++ | opsrenum: : Creating opsrenum in https://svn.perl.org/parrot//branches diff: http://www.parrotvm.org/svn/parrot/revision?rev=28609 r28610 | jkeenan++ | opsrenum-28608: : Tagging trunk at r28608 so that the opsrenum can later be synched to it. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28610 % vhold has joined #parrot % slightlyoff has joined #parrot % slightlyoff has left #parrot % paco has joined #parrot r28611 | pmichaud++ | trunk: : [rakudo]: : * Fix trailing space problem in src/parser/actions.pm . diff: http://www.parrotvm.org/svn/parrot/revision?rev=28611 r28612 | pmichaud++ | trunk: : [rakudo]: : * Add item() function. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28612 % kid51 has left kid51!~jkeen@70.107.18.145 % Zaba has left Zaba!~zaba@ip102.148.adsl.wplus.ru % Zaba has joined #parrot morning everyone perl6: sub my ($a,$b) { say $a+$b }; my $a=40; my $b=2; RESULT[2] perl6: sub my ($a,$b) { say $a+$b }; my $a=40; my $b=2; my ($a,$b); OUTPUT[too few arguments passed (1) - 2 params expected␤current instr.: 'my' pc 100 (EVAL_12:40)␤called from Sub '_block11' pc 94 (EVAL_12:34)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:469)␤called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1088 ..(src/PCT/HLLCompiler.pir:598)␤called from Sub 'parrot;PCT::H... perl6: sub my ($a) { say $a }; my $a=40; my $b=2; my ($a,$b); OUTPUT[402␤] r28613 | fperrad++ | libs4php: : [phc] add boolean & NULL diff: http://www.parrotvm.org/svn/parrot/revision?rev=28613 perl6: sub say { undef.say }; say(); OUTPUT[[oops; continuation 0xb7292cc4 of type 21 is trying to jump from runloop 1421 to runloop 98]␤[oops; continuation 0xb72932ac of type 21 is trying to jump from runloop 1421 to runloop 98]␤[oops; continuation 0xb7293894 of type 21 is trying to jump from runloop 1421 to runloop 98]␤[oops; ..continuation 0xb7293e7c of type 21 is trying to jump f... r28614 | fperrad++ | libs4php: : [php] php_sape_name uses the framework diff: http://www.parrotvm.org/svn/parrot/revision?rev=28614 pmichaud, it's a bug in handling 'scoped' rule in grammar. [my|has|our] (...) is, I think, known as unimplemented. Or as far as I last knew, anyway. jonathan, it's not implemented. r28615 | fperrad++ | libs4php: : [php] use PHP types diff: http://www.parrotvm.org/svn/parrot/revision?rev=28615 perl6: sub foo {}; say foo; OUTPUT[Null PMC access in get_string()␤current instr.: 'print' pc 9632 (src/gen_builtins.pir:6354)␤called from Sub 'say' pc 9654 (src/gen_builtins.pir:6364)␤called from Sub '_block11' pc 38 (EVAL_10:16)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:469)␤called from ..Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1088 ... yet another bug... perl6: say sqrt(1i),' ', (1+1i)/sqrt(2) OUTPUT[1 0.707107+0.707107i␤] perl6: say sqrt(1 i),' ', (1+1 i)/sqrt(2) OUTPUT[1 0.707107+0.707107i␤] perl6: sub i { 5 }; if 1 {3i i}; RESULT[0+3i] perl6: sub i { 5 }; if i() {3i i i}; RESULT[0+3i] * diakopter stares perl6: sub i { 5 }; if i {3i i i}; OUTPUT[Could not find non-existent sub if␤current instr.: '_block11' pc 46 (EVAL_11:21)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:469)␤called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1088 (src/PCT/HLLCompiler.pir:598)␤called from Sub ..'parrot;PCT::HLLCompiler;command_line' pc 1267 (src/PCT/HLLCompiler.p... perl6: sub i { say 4; [5] }; if =i(i) {say, 3;i(i)}; OUTPUT[4␤4␤␤4␤4␤] this helps a bit perl6: sub i { say 4; [5] }; if =i(i) {say 2, 3;i(i)}; OUTPUT[4␤4␤23␤4␤4␤] % Eevee has left Eevee!~eevee@c-67-160-3-54.hsd1.wa.comcast.net my ($a, $b) isn't implemented yet. See RT#53902. pmichaud, I checked src/parser/gammar :) I'm just saying it's a known bug. :-) it's not implemented and I can't implement it... 30+ seconds for recompile killing me... perl6: sub foo {}; say foo; OUTPUT[Null PMC access in get_string()␤current instr.: 'print' pc 9632 (src/gen_builtins.pir:6354)␤called from Sub 'say' pc 9654 (src/gen_builtins.pir:6364)␤called from Sub '_block11' pc 38 (EVAL_10:16)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:469)␤called from ..Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1088 ... is parrot or rakudo bug? probably not a parrot bug. might be a pct bug. perl6.past: sub foo {}; say foo; "polyglotbot" at 193.200.132.146 pasted "perl6 past paste" (91 lines) at http://nopaste.snit.ch/13338 % iblechbot has left iblechbot!~iblechbot@243.17-dial.augustakom.net it may be that we need an empty block to return undef. Or perhaps an empty hash. perl6: sub foo {undef}; say foo; OUTPUT[␤] since {} is really a hash composer. :-) yak :) pmichaud, btw, in S29-list/map.t block fudged with 'empty statement in closure' works for me. perl6: say ~(1,2,3,4).map:{ $^a + $^b } OUTPUT[Statement not terminated properly at line 1, near ":{ $^a + $"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤called from Sub 'parrot;Perl6::Grammar;eat_terminator' pc 20609 (src/gen_grammar.pir:2813)␤called from Sub ..'parrot;Perl6::Grammar;statementlist' pc 19622 (src/gen_grammar.pir:2450)␤called fr... adverbial closures not implemented. i know... what do :: in grammar? it's a 'cut' operation prevents backtracking past the :: pmichaud, thanks. pmichaud, another question: http://rt.perl.org/rt3/Ticket/Attachment/431776/197156/test2.diff bacek's url is at http://xrl.us/ef2ce this is modified Test.pm and test for Test.pm (and small patch for eval() to prevent dieing on parsing) interesting. I'll consider the patch for a while (but testing Test.pm isn't high on my priority list atm) seems like we could get almost as good by just introducing $expect_fail into Test.pm directly, rather than trying to override the sub. % anr has joined #parrot I'm trying to submit a smoke for parrot 0.6.3 on FreeBSD and I'm getting this error: * Sending data to smokeserver "http://smoke.parrotcode.org/smoke/"... error: The submitted smoke has an invalid format! Am I missing something, or did I do something incorrectly? pmichaud, It's 'pugs' approach. They use named 'todo' arg. apeiron: usually that's b/c you did svn export, not svn checkout diakopter, This is directly from a 0.6.3 tarball. we're not using named 'todo' for the test suite. apeiron: that too :) That machine doesn't even *have* svn. using :todo was from when the test suite was only testing pugs. yes, non-svn-checkouts can't submit smokes ah. Now you tell me. apeiron: actually ...why does 'make smoke' require svn, ooc? if you modify the submission file to include some svn revision, the smoke server will accep tit accept it b/c it includes the svn revision in the submission I'm not sure if fooling it like that would be helpful... seems like we ought to be able to get 'make smoke' to recognize "0.6.3" as a valid revision :-) for the non-svn checkouts. Not a big deal, I'm installing svn presently. (well, not a big deal for me) well, we'd like to get smokes from lots of platforms :-) apeiron: I don't know what revision the 0.6.3 release was pmichaud: could the 'make release' target put the r in some text file somewhere? r28616 | pmichaud++ | trunk: : [rakudo]: : * Update rakudo's grammar with various changes to STD.pm . diff: http://www.parrotvm.org/svn/parrot/revision?rev=28616 pmichaud, I have some thoughts on putting together a federation of VMs using VMWare and using Perl-driven SSH and such to autosmoke. apeiron: that would be very cool. I'm working with Fusion for the Mac right now as I'm on my MBP. Maybe someone with the appropriate license keys or whatnot can create appliances for different platforms? r28617 | fperrad++ | libs4php: : [php] is_bool, is_float is_long is_null is_string strval diff: http://www.parrotvm.org/svn/parrot/revision?rev=28617 apeiron: VMWare server 2.0 beta is free... and pretty neat. linux or windows tho diakopter, I tried the Fusion 2.0 beta and it b0rked networking. :( pmichaud, The basic premise is: start VM, ssh in, svn up, make smoke, shutdown VM, move onto the next. oh; I don't know about Fusion 2... I just know about Fusion 1 and Server 2 beta * Tene really likes KVM for virtualization. Server 2 beta has been around for 1.5 years at least Tene, Heh. Being that $WORK paid for this MBP and its copy of Fusion... :) rakudo: DWIM: { say system('uname -a') } perl6: DWIM: { say system('uname -a') } OUTPUT[Statement not terminated properly at line 1, near ": { say sy"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤called from Sub 'parrot;Perl6::Grammar;eat_terminator' pc 20609 (src/gen_grammar.pir:2813)␤called from Sub ..'parrot;Perl6::Grammar;statementlist' pc 19622 (src/gen_grammar.pir:2450)␤called fr... no block labels? not yet. apeiron: 0.6.3 was r28470 try 'r28470' or '28470' in that spot... it should submit also, system() isn't valid Perl6. Try 'run'. pmichaud: ah diakopter, All right. Will give smoking that a shot once svn is installed. perl6: say run('uname -a'); OUTPUT[Linux feather3 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 GNU/Linux␤0␤] % teknomunk has joined #parrot "bacek" at 202.7.166.165 pasted "Slightly reworked Test.pm and test for pmichaud" (142 lines) at http://nopaste.snit.ch/13339 yak... I forgot to change comments... "bacek" at 202.7.166.165 pasted "Slightly reworked Test.pm and test for pmichaud (once again)" (142 lines) at http://nopaste.snit.ch/13340 % Zaba has left Zaba!~zaba@ip102.148.adsl.wplus.ru pmichaud, it this version ok? I like it better, yes. send it to RT? pmichaud, You promise to take a look :) http://bacek.homeip.net/cgit/parrot/diff/languages/perl6/src/classes/List.pir?id=56a09b46629e68af6f496ad1dddc966bdb50c37f bacek's url is at http://xrl.us/ego7m it's lazy list (first cut). Keep working on it or throw away as full crap? % Zaba has joined #parrot % cjfields has joined #parrot pmichaud ping Limbic_Region, you shouldn't "ping" pmichaud. You should "summon" him :) summon pmichaud! spell failed... failed... looks funny spell purl Possible spellings for purl: URL burl curl furl hurl Perl pull pure purr * Limbic_Region heard that patience is a virtue not one that I have, but I can wait :-) Also, just 'cause people say something doesn't mean it's true. :) (cf "perl is dying" tripe) apeiron: but something that'd dead can't be dying.. Limbic_Region: pong diakopter, You're not saying perl is dead, are you? bacek: I still don't see why we need a ListIterator class. apeiron: sorry; was kidding; a bad/botched joke/reply mega-botched diakopter, FWIW I don't believe you'd say such a thing so I'm not about to call you heathen. :) I shoot my mouth off too often.. you shouldn't give me the benefit of the doubt like that ;) pmichaud, removing it in TODO. * apeiron is reminded of old school Daffy Duck cartoons... pmichaud - sorry, have to take care of the 2 year old - bbias do we have a PIR coding std? (I have seen the C one in docs) perl6: my @a=(1..2); say ~@a; say ~@a; OUTPUT[1 2␤1 2␤] pmichaud - in your PCT talk, I am pretty sure all of the functions you demo'd had existing parrot ops - if you are creating a function that does not - what are your options? PIR/PASM only? one can always write a new op or method in C (or, of course, anything that compiles down to PIR/PASM :-) I have attached a patch to RT#55492 for transliteration which is passing tests (t/spec/S05-transliteration/trans.t) though tr/// is skipped (not implemented yet) % Eevee has joined #parrot pmichaud - but if one were going to write a new op/method in C, one would need to get it integrated into parrot right? t/spec/S29-str/comb.rakudo...................... 10 10 0 0 0 10 t/spec/S29-str/sprintf.rakudo................... 37 37 0 0 0 37 pmichaud, we should remove them from spectest_regression.data... bacek: comb has already been removed. (Or implement them :) I'm not sure what to do with sprintf. I suppose we could just try parrot's sprintf and see what happens. :-) l_r: NCI and dynamic ops allow things to be written in C w/o integrating them into parrot's core. pmichaud, No. comb.t still in. But commit comment says that it removed. pmichaud - thanks. That answered my question(s). yak. forget it pmichaud - if I wanted to do something stupid like implementing state - where would I look? I haven't learned 'state' yet. But probably globals and lexicals. % anr has left anr!~anr@189.102.200.167 okay, I _have_ to fix $_ tonight. the current implementation is really broken -- it always assumes $_ is a parameter. perl6: my $a = sub { say $_; }; $a(); OUTPUT[too few arguments passed (0) - 1 params expected␤current instr.: '_block17' pc 64 (EVAL_10:33)␤called from Sub '_block11' pc 58 (EVAL_10:27)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:469)␤called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1088 ..(src/PCT/HLLCompiler.pir:598)␤called from Sub 'parrot;P... pmichaud: Hate to bug you. When you have time, can you take a look at RT#55492 (patch)? It works around the .HLL mapping issue and passes all transliteration method tests. pmichaud - WRT to state variables, see http://perlmonks.org/?node=473584 # Larry's explanation there is better than the one in S04 pmichaud - also see http://use.perl.org/~nicholas/journal/36270 for a good test case * cjfields thinking pm's gotta full plate right now... cjfields: not to mention a full stomach ;) speaking of, I need to get something... l_r: I'm not sure what storage mechanism state variables will use, but we'll probably use the :viviself parameter of PAST::Var nodes to initialize them on declaration. we may end up having to have a :scope('state') type added to PAST::Var, too. I'll have to think about it all a bit. Anything dealing with "first" initialization is often a bit tricky. cjfields: don't all of the arguments first need to be mapped to a single hash before applying them? it looks to me as though this algorithm applies the first argument, then the second, then the next, etc. pmichaud - ok, all that meant to me is that it is beyond my current knowledge/understanding so I will make any attempt on my own cjfields: or maybe I'm misreading... just a sec. pmichaud: the problem with trans (as described in S05) is the Pair key/value could be an Array, a Range, or a List. or combinations thereof. s/List/String right. So I'm thinking you need to loop through all of them to build a "master" key=>value mapping, and then use it to perform the substitution. ...which it appears is close to what you're doing. in + orig = substr tmps, pos, 1 ...what if the thing being substituted isn't a single character? * cjfields looking back at S05... Do you means (in S05): 'The array version can map one-or-more characters to one-or-more characters:' yes. I'll add some tests for that. I think I'll just need to rework the actual mapping bit at the end. I'm thinking that one can use the C op and a second hash to make it reasonably efficient Yes, exactly what I'm thinking Oooh he is soooo fine!!! anyway, time to see a movie here. :-) bbl. cheers! will work on that last bit and get a new patch up. okay, great! % cjfields has left cjfields!~cjfields@adsl-76-227-79-69.dsl.chmpil.sbcglobal.net % AndyA has left AndyA!~andy@82.152.157.85 % AndyA has joined #parrot % grim_fandango has joined #parrot % cjfields has joined #parrot % teknomunk has left teknomunk!~teknomunk@r74-195-239-111.stl1cmta01.stwrok.ok.dh.suddenlink.net diakopter++ # just successfully submitted a smoke for 0.6.3 on FreeBSD % cjfields has left cjfields!~cjfields@adsl-76-227-79-69.dsl.chmpil.sbcglobal.net Unless someone has a better idea of how to handle this, I'm going to open a todo ticket wrt fixing the smoke server to accept smokes from releases cut from svn. % anr has joined #parrot % anr has left anr!~anr@189.102.200.167 diakopter, pmichaud, http://rt.perl.org/rt3/Ticket/Display.html?id=56206 is the relevant bug for enabling the smoke server to accept smokes from releases cut from svn. % TiMBuS has joined #parrot % teknomunk has joined #parrot perl6: sub my ($a,$b) { say $a+$b }; my $a=40; my $b=2; my($a,$b); OUTPUT[42␤] perl6: sub my ($a,$b) { say $a+$b }; my $a=40; my $b=2; my ($a,$b); OUTPUT[too few arguments passed (1) - 2 params expected␤current instr.: 'my' pc 100 (EVAL_12:40)␤called from Sub '_block11' pc 94 (EVAL_12:34)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:469)␤called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1088 ..(src/PCT/HLLCompiler.pir:598)␤called from Sub 'parrot;PCT::H... r28618 | allison++ | pdd25cx: : [pdd25cx] Bringing the pdd25cx branch up-to-date with trunk r28617. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28618 % teknomunk_ has joined #parrot % teknomunk has left teknomunk!~teknomunk@r74-195-239-111.stl1cmta01.stwrok.ok.dh.suddenlink.net jfkdjkf[5~[5~[6~[6~[6~ wow TimToady: sorry; Pugs 6.2.13.2 ate my VPS r28619 | jkeenan++ | trunk: : Assign src/ops/ops.num and src/ops/ops.skip to attributes in the constructor : rather than package-scoped lexical variables. This is necessary for noticed that... : refactoring out renum_op_map_file(). diff: http://www.parrotvm.org/svn/parrot/revision?rev=28619 % kid51 has joined #parrot r28620 | jkeenan++ | opsrenum: : (Same as in trunk.) Assign src/ops/ops.num and src/ops/ops.skip to attributes : in the constructor rather than package-scoped lexical variables. This is : necessary for refactoring out renum_op_map_file(). diff: http://www.parrotvm.org/svn/parrot/revision?rev=28620 % GeJ has left GeJ!~geraud@edna.nealab.net % Zaba_ has joined #parrot % Zaba has left Zaba!~zaba@ip102.148.adsl.wplus.ru msg pmichaud #56208 trivial implementation of sprintf. % purl has left purl!purl@sentient.life yak... purl always died on my attempt to save message for pmichaud... who owns this bot? purl is not on channel now, so that's why your message failed. kid51: it was when he tried the message Oh, yes, I see. naughty purl * bacek wanders why parrot's sprintf handles '%p'... % Tene has left Tene!~tene@castro.iodynamics.com r28621 | jkeenan++ | opsrenum: : 1. Rename lib/Parrot/Ops2pm/Utils.pm to lib/Parrot/Ops2pm.pm. Change in tools/build/ops2pm.pl, MANIFEST, test files and wherever else mentioned. : 2. Pull the constructor out of lib/Parrot/Ops2pm/Utils.pm to a separate class: Parrot::Ops2pm::Base. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28621 r28622 | allison++ | pdd25cx: : [pdd25cx] Fix up merged in exceptions with old names. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28622 r28623 | jkeenan++ | opsrenum: : Pull renum_op_map_file() out of lib/Parrot/Ops2pm.pm to a separate class: : Parrot::OpsRenumber. Its constructor is inherited from Parrot::Ops2pm::Base. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28623 % cjfields has joined #parrot r28624 | jkeenan++ | opsrenum: : prepare_ops() had to be moved to Parrot::Ops2pm::Base, because it needs to be : available for calling prior to renum_op_map_file() in any program calling that : method (such as the new tools/dev/opsrenumber.pl). diff: http://www.parrotvm.org/svn/parrot/revision?rev=28624 % gryphon has left gryphon!~gryphon@dsl-209-221-185-54.zipcon.net r28625 | jkeenan++ | opsrenum: : Rename directory t/tools/ops2pmutils/ to t/tools/ops2pm/. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28625 r28626 | jkeenan++ | opsrenum: : Update test directory name where mentioned within test files. Update MANIFEST. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28626 % kid51 has left kid51!~jkeen@pool-71-247-49-109.nycmny.east.verizon.net % cjfields has left #parrot % Andy has joined #parrot % pjcj has left pjcj!~pjcj@84-73-177-217.dclient.hispeed.ch % tetragon has joined #parrot % grim_fandango has left grim_fandango!~matt@bas2-kingston08-1128671277.dsl.bell.ca % tetragon has left tetragon!~seneca@gw-312-705.somanetworks.com % pjcj has joined #parrot % tetragon has joined #parrot % tetragon has left tetragon!~seneca@216.126.67.44 % jhorwitz has left jhorwitz!~chatzilla@96.245.16.45 r28627 | pmichaud++ | trunk: : [rakudo]: : * Add a version of 'sprintf' (RT#56208, bacek++) : * Patch courtesy Vasily Chekalkin : * Modifications to use export instead of duplicating sub diff: http://www.parrotvm.org/svn/parrot/revision?rev=28627 pmichaud, Maybe all other Str methods should be changed to 'export' version? many of them should, yes. I'd also like them to be in alphabetical order. and to use new 'Str' isntead of new 'Perl6Str' % Limbic_Region has left Limbic_Region!~Limbic_Re@c-68-49-236-220.hsd1.md.comcast.net (actually, I'd like them to just return a string register, and let .HLL take care of it... but we're not there yet.) :) % teknomunk_ has left teknomunk_!~teknomunk@r74-195-239-111.stl1cmta01.stwrok.ok.dh.suddenlink.net btw, we need ListIterator. Because lazy list is not just RPA. but a lazy list can still serve as its own iterator but shift_pmc for List and iterator behave differently why? or how? perl6: my @a=<1,2,3>; shift @a; say ~@a; OUTPUT[␤] perl6: my @a=(1,2,3); shift @a; say ~@a; OUTPUT[2 3␤] % bacek has left #parrot % bacek has joined #parrot yak. wrong button. Is 'shift @a' really just 'shift_pmc'? at the bottom, yes. it's really shift(@a) which is a method defined on RPA. oh, hrm. but shifting from iterator does not change list. so, to get an iterator from a List we just create a clone of the List and return that. So, we either clone list in 'iterator()' or provide ListIterator pmichaud, you faster them me :) but clone should be deep... well, the iterator needs to take a snapshot of the List (or Array) at the time the iterator is created we don't want later modifications to the List causing the iterator to change otoh, we do need to worry about is rw anyway, I think it can be done by creating a List w/o having to have a special ListIterator probably. Ok, afk for a while. Time to spend time with kids. pmichaud, thanks for help. bacek++ % Psyche^ has joined #parrot % Patterner has left Patterner!~Psyche@e177237096.adsl.alicedsl.de % Psyche^ is now known as Patterner % Andy has left Andy!~Andy@64.81.227.163 r28628 | chromatic++ | trunk: : [IMCC] Plugged another IMCC memory leak. Previously, all PASM-style registers : (not symbolic registers) leaked their names. diff: http://www.parrotvm.org/svn/parrot/revision?rev=28628 r28629 | pmichaud++ | trunk: : [rakudo]: : * Update docs/spectest-progress.csv for 2008-06-22 : * 66 test files, 843 passing tests diff: http://www.parrotvm.org/svn/parrot/revision?rev=28629 r28630 | pmichaud++ | trunk: : [rakudo]: : * Add S03-operators/context.t to spectest_regression.data (Auzon++) diff: http://www.parrotvm.org/svn/parrot/revision?rev=28630 % Eevee has left Eevee!~eevee@c-67-160-3-54.hsd1.wa.comcast.net % Eevee has joined #parrot % Zaba_ has left Zaba_!~zaba@ip102.148.adsl.wplus.ru % Zaba has joined #parrot