Camelia, the Perl 6 bug

IRC log for #parrot, 2009-01-23

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 chromatic +1 from me on that, NotFound.
00:00 chromatic I love this comment:
00:00 chromatic bucket->value = value;        /* replace value */
00:00 cotto chromatic, do you know what the misbehavior referred to in AddrRegistry's init is?
00:00 NotFound ++i; /* Increment i */
00:00 cotto istr that you wrote that line
00:02 chromatic I don't remember, but it probably had something to do with the fact that when you create a hash, you pass in a PMC so that the hash creator can store a pointer to the new hash somewhere.
00:02 chromatic Because, apparently, you can't return pointers to hashes in C.
00:02 NotFound What?
00:02 chromatic That's a C99 feature, I guess.
00:02 chromatic More seriously, you couldn't return structs in very, very old versions of C.
00:03 chromatic For some reason, this API hews to that dusty old misfeature.
00:03 chromatic Seeing as we've been out of the '70s for a while, I think we can clarify the code somewhat.
00:03 chromatic ... not in the least because some things which want to use hashes are themselves NOT PMCs.
00:09 AndyA joined #parrot
00:09 rob is there an easy way from actions.pm of casting the result of an expression to a certain datatype like an integer for example?
00:10 dalek r35901 | chromatic++ | trunk/src:
00:10 dalek : [src] Tidied src/hash.c and improved its documentation; no functional changes
00:10 dalek : (though it does pass one more codingstd test now).
00:10 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35901
00:11 tetragon joined #parrot
00:14 Tene rob: yes, lemme check
00:14 Tene rob: set :returns('Integer') or whatever type on the node.
00:15 kj Tene: can you do that on *any* PAST node?
00:15 Tene kj: yes
00:15 kj it used to be only on PAST::VAl node, no?
00:16 Tene kj: perldoc compilers/pct/src/PAST/Node.pir claims that it's defined on PAST::Node
00:16 Tene kj: I've seen it used on ops and such for quite a while, iirc
00:17 rob thanks Tene :)
00:18 kj ok. well makes sense, I guess, since any PMC can have a set_integer vtable method
00:23 kj bedtime. Good night #parrot
00:24 * Coke_afk tries to understand why adding new syntax only to test /core/ features is a good thing.
00:24 * Coke soon realizes it's better not to think about it.
00:25 jhorwitz message viklund mod_perl6 is broken until i can commit TT #185.  and i think november would still break cuz registry scripts no longer parse output header (it was a kludge that no longer works).
00:25 purl Message for viklund stored.
00:25 * rg would guess that having readable tests is also a good thing
00:26 Coke readable is in the eye of the beholder.
00:26 rg that's true.
00:27 NotFound Coke: What new  syntax are you thinking about?
00:28 Coke NotFound:  $x == $y :ok('message') :nok('failure message')
00:28 Coke see the perl6-l list, "RFD: Built-in testing"
00:29 NotFound Ah, perl6 syntax. That is like Klingon to me X-)
00:29 Coke purl: Hab SoSlI' Quch!
00:29 purl Coke: sorry...
00:30 Coke Infinoid: your fix got me 200 spec tests back. thank you.
00:30 NotFound But that looks like some sort of conditional expression, not just for testing, isn't it?
00:32 Infinoid wow, nice
00:32 Coke Infinoid: well, to be fair, I was passing them at one point, and with the single test failing, all the tests in the file were no longer countd.
00:33 * Coke can actually think about running the full suite again now.
00:34 * Coke kicks that off before he falls asleep.
00:37 Infinoid Coke: and for that matter, I was the one who broke them in the first place.  Wish I had known sooner.  But at least it's discovered a previously untested use case
00:44 Coke (broke them) you bastard!
00:44 Coke </south park>
00:49 Infinoid Blame Canada.
00:49 purl We brought a civilization-ending plague to your doorstep
00:50 chromatic Is there a new test in the Parrot suite for such a problem?
00:51 sjn joined #parrot
00:51 Coke for the one that broke dict.test ? yes.
00:51 Coke infinoid++ managed to distill it.
00:51 Infinoid I added a test as part of r35896
00:51 Infinoid I didn't distill anything, I just wrote it from scratch with malice aforethought.
00:51 chromatic Good.  I'm concerned that we haven't done that enough recently.
00:52 Coke ah. /I/ had tried to distill it, and just didn't think about your process for getting there.
00:52 Infinoid sorry, I had assumed that if it had anything to do with tcl, it would probably be big :)
00:54 dalek r35902 | chromatic++ | trunk/src:
00:54 dalek : [src] Removed some useless code from parrot_hash_size() as the hash parameter
00:54 dalek : is a NOTNULL parameter.
00:54 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35902
00:58 particle1 coke: the test syntax is not just for core features
00:58 particle comcast--
00:58 Coke particle: ok. that makes it slightly less crazy.
00:59 particle frobulate($x) == 17.znarch :ok('poit!'); # for example
01:00 particle that syntax is slightly off, but i think you get the idea
01:00 particle ...need parens after znarch...
01:02 nopaste "chromatic" at 69.64.234.10 pasted "TT #204 patch for kid51" (13 lines) at http://nopaste.snit.ch/15401
01:02 chromatic That patch could use some eyeballing.  The code itself looks wrongerific.
01:02 Coke chromatic: wonder if that addresses my -t1 segfault.
01:03 Coke I would check it if I wasn't in the middle of a spec test run.
01:03 chromatic It might.
01:06 GeJ anybody having a failing tests in rakudo's spectest? Specifically S03-operators/arith.t Test #167  "is 1**Inf, 1;"
01:11 * particle has 60 failing rakudo tests due to nan/inf
01:13 NotFound In a first attempt at crazy language interoperabilty, I've been able to load perl6 an pipp from pirric, compiling a short code on both, and execute it. Next step, attempting to pass variables from one lang to the other, but that must wait for a bit more of pirric syntax.
01:15 NotFound The 'crazy' is for pirric, not for the other languages implied ;)
01:16 particle gen::makefiles -      Generate makefiles and other build files...value for 'opengl_lib' in config/gen/makefiles/root.in is undef at lib/Parrot/Configure/Compiler.pm line 539, <$in> line 2189.........done.
02:01 Rahly nice breakage in the latest perl ;-)
02:01 Rahly err parrot
02:02 Whiteknight breakage--
02:03 dalek r35903 | chromatic++ | trunk/src/io:
02:03 dalek : [IO] Removed a no-op setting the start of a buffer to itself when writing from
02:03 dalek : an IO buffer.  All Parrot and Rakudo tests still pass.
02:03 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35903
02:04 Andy joined #parrot
02:05 GeJ Rahly: what breakage? r35901 worked just fine.
02:08 particle1 joined #parrot
02:16 GeJ r35903 as well
02:42 Infinoid Rahly: a nopaste would help...
02:42 Rahly I donno
02:43 Rahly i recompiled it and didn't get it again, at first it said "byte order mismatch"
02:43 Infinoid spooky.
02:44 Rahly yeah, its not like i'm using a motorola cpu
02:44 Infinoid do you even have a big endian compiler on your machine?
02:45 Infinoid (I do, I play with armv5b for work, but it's usually fairly obvious when you're cross compiling and when you aren't.)
02:49 Rahly no
02:49 Rahly just the 32bit/64bit cross compiler
02:49 Rahly hehe
02:50 Rahly the bus ticket, if you touch anyone with the ticket, they get teleported to Gallop, NM
02:50 Rahly http://www.youtube.com/watch?v=aweBDN7l4eU
02:51 Rahly http://www.youtube.com/watch?v=Zvwqe62TrY4
03:19 particle joined #parrot
03:36 ask_ joined #parrot
03:38 ask- joined #parrot
03:48 dalek r35904 | jkeenan++ | trunk (2 files):
03:48 dalek : Applying patches submitted by Ron Schmidt in
03:48 dalek : http://rt.perl.org/rt3/Tic​ket/Display.html?id=62634 (POD change in
03:48 dalek : src/ops/pmc.ops and http://rt.perl.org/rt3/Tic​ket/Display.html?id=62588
03:48 dalek : (activate some tests in t/pmc/class.t).
03:48 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35904
04:00 contingencyplan_ joined #parrot
04:20 particle1 joined #parrot
04:48 ask_ joined #parrot
04:54 TiMBuS joined #parrot
04:55 tewk_ looking for pro TAP tutorials, docs, propaganda, any ideas?
04:57 nopaste "tewk" at 155.97.237.62 pasted "Current TAP links" (7 lines) at http://nopaste.snit.ch/15404
05:38 Theory joined #parrot
05:43 MariachiElf joined #parrot
05:47 MariachiElf joined #parrot
06:08 bacek_ joined #parrot
06:08 bacek_ hi there
06:15 Fayland joined #parrot
06:27 mberends joined #parrot
06:40 particle joined #parrot
06:47 Infinoid goodnight all
07:00 mberends rakudo: grammar G { regex r { a <d> }; regex d { <[1..4]> };}; if "a1" ~~ /<G::r>/ { say "got {$/<d>}";}
07:00 polyglotbot OUTPUT[Use of uninitialized value␤got ␤]
07:00 mberends rakudo: grammar G { regex r { a <d> }; regex d { <[1..4]> };}; if "a1" ~~ /<G::r>/ { say "got {$/}";}
07:00 polyglotbot OUTPUT[got a1␤]
07:01 mberends how to get just the '1' ?
07:08 TiMBuS say $/<G::r><d> ?
07:08 mberends rakudo: grammar G { regex r { a <d> }; regex d { <[1..4]> };}; if "a1" ~~ /<G::r>/ { say "got {$/<G::r><d>}";}
07:08 polyglotbot OUTPUT[got 1␤]
07:08 TiMBuS woo what a guess
07:09 mberends TiMBuS++ !
07:09 * mberends goes back into his cave for a few hours' hacking
07:10 TiMBuS writing a perl 6 app?
07:11 mberends yes, http://github.com/eric256/perl6-exa​mples/blob/master/lib/Pod/Makefile
07:11 shorten mberends's url is at http://xrl.us/bedifh
07:12 davidfetter joined #parrot
07:13 mberends it's quiet here now, but #perl6 would have been a better place to discuss Rakudo pod6
07:15 mberends TiMBuS: give the Try it out: in the above a go if you have time, I would appreciate comments
07:17 TiMBuS do i need to checkout a new parrot or can i do it in my own current copy
07:17 mberends because of regex and other issues it works only up to r35308 or r35309 :(
07:18 mberends but you helped me move it forward
07:18 TiMBuS oh. alright then ill checkout another copy in tmp
07:28 TiMBuS running pbc_to_exe used all 2 gig of my ram =/
07:39 cotto seen allison
07:39 purl allison was last seen on #parrot 2 days, 12 hours, 11 minutes and 54 seconds ago, saying: has to go catch a plane...  [Jan 20 19:28:03 2009]
07:42 mberends joined #parrot
07:42 MariachiElf joined #parrot
07:48 mberends masak hopes this Pod::Parser will work in his Userdocs for Christmas (u4x) project, http://svn.pugscode.org/pugs/docs/u4x/README
08:15 TiMBuS mberends, im getting "Method 'typename' not found for invocant of class 'Failure'" a lot
08:15 TiMBuS just using pod::to::text
08:16 TiMBuS doesnt tell me which line or anything..
08:16 mberends oh, *&^&"()!^&�^. I'll take that as a bug report, but have no easy solution
08:17 TiMBuS ill try to find the piece of POD causing it
08:18 mberends ah, you're calling in the current Rakudo. try /tmp/parrot/languages/perl6/perl6 instead
08:19 TiMBuS i dont think i am..
08:20 * mberends will be offline for a few minutes, going to work. bbiab, TiMBuS.
08:20 TiMBuS righto
08:28 iblechbot joined #parrot
08:38 mberends joined #parrot
08:39 lu_zero good morning
08:41 cotto morning, lu_zero
08:43 mberends TiMBuS, the error you reported is familiar, but not on r35308. Does the 'make PARROT_DIR=/tmp/parrot test' also fail?
08:44 TiMBuS i think i ran that before and it was ok, let me try again
08:44 TiMBuS nope, they all pass..
08:45 sjn joined #parrot
08:46 mberends phew! it may be that perl6-examples/bin/pod2text has a broken #!/usr/local/bin/perl6
08:47 TiMBuS actually im calling it manually
08:48 TiMBuS timbus@TiMBoX:/tmp/perl6-examples/lib$ ../../parrot/parrot ../../parrot/languages/perl6/perl6.pbc
08:48 TiMBuS > use Pod::to::text;Pod::to::text.new.parse_file('​/home/timbus/parrot/languages/fun/fun.pir')
08:49 TiMBuS fun.pir just has the default pod the PCT generator spits out
08:50 TiMBuS =item onload()
08:50 TiMBuS Creates the fun compiler using a C<PCT::HLLCompiler>object.
08:51 TiMBuS crashes after printing this. well, it doesnt print the item name actually..
08:51 Zaba joined #parrot
08:52 mberends ok, that pod may be too difficult for this little child. try parsing 'Pod/t/p01-plain.pod' etc first
08:53 TiMBuS well you said try it out! :P
08:54 cotto nothing plain and old about that documentation
08:55 lu_zero ^^
08:59 TiMBuS seems to be an issue with =cut, if that helps
09:00 moritz there's no =cut in Perl 6 Pod
09:00 TiMBuS welp, that probably explains it
09:00 particle1 joined #parrot
09:01 mberends '=cut' is only pod5, '=end pod' is pod6. this code tries to eat some pod5, but cannot stomach it all ;-)
09:02 mberends thanks for being an alpha tester! now $work() &
09:02 TiMBuS no problem
09:03 TiMBuS maybe i should change my documentation to perl6 pod.. but then it will mess up the syntax highlighter.
09:09 braceta joined #parrot
09:12 dalek r35905 | rurban++ | trunk/config/gen/makefiles:
09:12 dalek : [cage] tt#213
09:12 dalek : - wrong link order, fix win32+cygwin make installable
09:12 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35905
09:13 mberends there are pod5 <-> pod6 tools in the pipeline...
09:13 mberends but first priority is getting the code compatible with latest rakudo
09:17 ChrisDavaz joined #parrot
09:56 TiMBuS joined #parrot
10:00 TiMBuS joined #parrot
10:06 barney joined #parrot
10:22 skv joined #parrot
10:27 Maddingue joined #parrot
10:59 masak joined #parrot
11:01 mberends ah, masak, it's been so boring this morning without you!
11:01 masak been in meetings, apologies. :)
11:02 * jonathan has been sleeping
11:05 masak mberends: good news: today is the last day I won't have time to work on SVG.pm. :)
11:05 mberends :)
11:06 mberends are you in favour of a desktop webserver rendering pod6 as html?
11:06 masak sure, why not?
11:07 masak might be useful to those GUI jockeys who read their docs in fancy IDEs.
11:07 masak I mean this in a totally unbiased way, of course. :)
11:08 mberends well, HTML may be the quickest GUI for U4X
11:08 jonathan IDEs FTW.
11:08 * masak does the internationally recognized "the command line rocks" symbol
11:08 masak mberends: yes, I think so too.
11:09 masak leaving the whole rendering task to the browser.
11:10 jonathan masak: I don't have dislike of the command line. Ther'es some things (version control..) I must prefer doing there. But for debugging support, etc, I like IDEs.
11:11 masak jonathan: yes, I see what you mean.
11:12 masak the minute I get an idea for how to facilitate the type of debugging I do when tracking down November/Rakudo errors, I'm going to build such an environment.
11:12 masak right now it's just a long series of small, individually obvious steps requiring human intervention.
11:13 jonathan Aye.
11:14 jonathan I love the MSVC++ debugger when I'm tracking down Parrot guts issues.
11:17 particle joined #parrot
11:30 mberends joined #parrot
11:37 kj joined #parrot
11:48 masak in fact, a program that did some kind of bisect algorithm on code, zeroing in on the problem, would be kind of useful.
11:48 masak the question is whether human judgment is needed to successively remove code.
11:54 dalek r35906 | bernhard++ | trunk/languages/pipp/src/pct:
11:54 dalek : [Pipp] Formating of grammar file
11:54 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35906
11:55 clunker3 joined #parrot
11:55 dalek r35907 | bernhard++ | trunk/languages/pipp (4 files):
11:55 dalek : [Pipp] Start working on support for 'global'
11:55 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35907
11:55 dalek r35908 | bernhard++ | trunk/languages/pipp/t/php:
11:55 dalek : [Pipp] Fix expected test output.
11:55 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35908
11:56 skv joined #parrot
12:04 barney rakudo: sub foo { state $x; $x++; say $x }; foo(); foo(); foo();
12:04 polyglotbot OUTPUT[1␤1␤1␤]
12:06 * Coke grumbles as the tcl spec test he left running last night hung somewhere in the i's.
12:07 jonathan barney: state ain't implemented yet
12:11 barney yes, I just checked because I wanted to steal that for PHP's 'static' vars
12:12 jonathan :-)
12:15 Hunger joined #parrot
12:16 skv joined #parrot
12:18 rob joined #parrot
12:22 mberends joined #parrot
12:22 tetragon joined #parrot
12:23 jonathan purl, irclogs?
12:23 purl irclogs is not world-readable.  maybe just copy file to /tmp?
12:23 jonathan irclogs?
12:23 purl irclogs is not world-readable.  maybe just copy file to /tmp?
12:23 jonathan *sigh*
12:23 moritz no, irclogs are http://irclog.perlgeek.de/parrot/today
12:23 moritz purl, irclogs?
12:23 purl irclogs is, like, not world-readable.  maybe just copy file to /tmp
12:23 moritz no, irclogs is http://irclog.perlgeek.de/parrot/today
12:23 purl okay, moritz.
12:30 cotto irclog?
12:30 purl somebody said irclog was http://irclog.perlgeek.de/parrot/today or see also: infrared clogs
12:33 dalek r35909 | jonathan++ | trunk/config/gen/makefiles:
12:33 dalek : [t] We should always test annotations are persisted to bytecode during a normal make test; thanks to particle++ for suggesting the approach.
12:33 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35909
13:11 omega joined #parrot
13:19 masak purl: infrared clogs?
13:19 purl infrared clogs are like ruby slippers, but more so
13:19 * masak groans
13:20 moritz come on, what did you expect?
13:20 masak I don't know... :)
13:20 cotto you're welcome
13:21 moritz how do I turn a git repo into something clonable? is there a simple daemon somehow?
13:22 baest joined #parrot
13:23 barney joined #parrot
13:34 skv joined #parrot
13:38 particle1 joined #parrot
13:42 skv joined #parrot
13:50 dalek r35910 | pmichaud++ | trunk/languages/perl6/docs:
13:50 dalek : [rakudo]: spectest-progress.csv update: 295 files, 6523 passing, 0 failing
13:50 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35910
13:56 Coke (0 failing) yay.
13:56 Coke what an odd error message: "can't use non-numeric floating point value as argument..."
13:57 Coke (seeing on spec tests for nan in tcl)
13:59 barney moritz: just pass the directory
14:01 dalek r35911 | bernhard++ | trunk/languages/pipp/src/pct:
14:01 dalek : [Pipp] the postfix '_hidden' is not used
14:01 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35911
14:13 PerlJam good morning #parrot
14:14 skv joined #parrot
14:14 Coke we are now seeing more failing smolder reports than passing.
14:14 Coke be nice if we had a way to say which tests were failing. if only tap supported named tests. :|
14:15 Coke (that is one thing I like about tcl's test suite.)
14:28 iblechbot joined #parrot
14:31 dalek r35912 | bernhard++ | trunk/languages/pipp/src/pct:
14:31 dalek : [Pipp] '_hidden' is used after all, in 'use' declarations
14:31 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35912
14:32 skv joined #parrot
14:42 On joined #parrot
14:44 gryphon joined #parrot
14:47 Whiteknight joined #parrot
14:54 rg joined #parrot
14:55 * Coke is sad to see andy's patch. :|
14:56 Whiteknight about Solaris?
14:56 Whiteknight no, about SPARC
14:59 dalek r35913 | bernhard++ | trunk/languages/pipp/t/php:
14:59 dalek : [Pipp] untodo a test case
14:59 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35913
15:01 * Coke /re/-kicks off a tcl spec test run now that he's disabled tests that hang.
15:01 Coke hopefully I'll get a better idea of whether or not speed has changed.
15:12 * particle1 is sad, too
15:13 particle coke: can you change your harness to timeout long-running tests?
15:16 Brandon_W_ATS joined #parrot
15:19 Coke particle: define "long running". :|
15:19 Coke it's not worth it.
15:19 Coke as it is, total time is nearly 3+ hours.
15:19 Coke if I leave in tests that hang and time them out, I still don't get to count any passes, and I distort the timing information I'm trying to collect.
15:20 Coke better to find the ones that hang and disable them for now and re-add them when they behave.
15:21 PerlJam Coke: sounds like a 2-pass kind of thing.  Pass one identifies all the hanging tests (those that time out after a while), and pass two gets you the data you're after.
15:21 PerlJam (depending on how easy it is to implement the timeout)
15:28 dalek bernhard.schmalhofer@gmx.de | Pipp:
15:28 dalek link: http://www.perlfoundation.​org/parrot/index.cgi?pipp
15:30 dalek bernhard.schmalhofer@gmx.de | Pipp:
15:30 dalek link: http://www.perlfoundation.​org/parrot/index.cgi?pipp
15:34 Andy joined #parrot
15:36 jhorwitz joined #parrot
15:50 Coke given I'm running each test from a perl script and scraping the output, not too hard, I imagine.
15:51 Coke but since an individual test can already take 30+ minutes...
15:51 Coke meh.
15:51 Coke would be more helpful if/when partcl's speed approaches sane.
15:51 Whiteknight In perl 6, can for loops be used as a statement postfix? Can I write "print for (1..5)"?
15:52 Coke rakudo: print for(1..5)
15:52 polyglotbot OUTPUT[print requires an argument at line 1, near "for(1..5)"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤called from Sub 'parrot;Perl6;Grammar;Actions;_block4643' pc 147576 (src/gen_actions.pir:14037)␤called from Sub
15:52 polyglotbot ..'parrot;Perl6;Grammar;Actions;_block4624' pc 147513 (src/gen_actions.pir:14011)␤called...
15:52 Coke rakudo: print $_ for (1..5)
15:52 polyglotbot OUTPUT[12345]
15:52 Coke yes, but print requires an argument.
15:53 * Coke pushes something into production at 9am and is hit by 2 bugs that failed to manifest in any other tier.
15:53 * Coke thinks he is now done fighting fires.
15:56 Whiteknight Thanks Coke!
15:58 particle1 joined #parrot
15:58 Whiteknight rakudo: { print; } for (1..5);
15:58 polyglotbot OUTPUT[print requires an argument at line 1, near "; } for (1"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤called from Sub 'parrot;Perl6;Grammar;Actions;_block4593' pc 147831 (src/gen_actions.pir:14140)␤called from Sub
15:58 polyglotbot ..'parrot;Perl6;Grammar;Actions;_block4582' pc 147767 (src/gen_actions.pir:14116)␤calle...
15:58 Whiteknight rakudo: { .print } for (1..5);
15:58 polyglotbot OUTPUT[12345]
15:59 Whiteknight is the print builtin supposed to read $_ by default? Is this behavior disallowed now, or is it not implemented?
16:00 Whiteknight pugs: my $_= 5; print;
16:00 Whiteknight rakudo: my $_= 5; print;
16:00 polyglotbot OUTPUT[print requires an argument at line 1, near ";"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤called from Sub 'parrot;Perl6;Grammar;Actions;_block4593' pc 147831 (src/gen_actions.pir:14140)␤called from Sub 'parrot;Perl6;Grammar;Actions;_block4582' pc
16:00 polyglotbot ..147767 (src/gen_actions.pir:14116)␤called from Su...
16:00 * Whiteknight forgets that this isnt #perl6
16:01 Infinoid in theory, even if $_ wasn't used automatically, ".print" should still be sufficient.  but I think it must not be implemented yet
16:02 Infinoid oh, it is.
16:02 Infinoid rakudo: .print for (1..5)
16:02 polyglotbot OUTPUT[12345]
16:04 particle1 as specced, bare print and say is an error
16:07 Coke particle,PerlJam: one thing that would be nice is if I tracked runtime of each test so I could get a sense of speed without having to run the whole thing.
16:07 Coke current run /feels/ faster, but it's hard to tell.
16:07 particle HARNESS_OPTIONS=j9
16:07 particle HARNESS_TIMER=1
16:07 Coke particle: this is tcl's test suite.
16:08 particle have you asked on #tcl?
16:09 particle it would be nice to have timing info, but i don't know how to get it (don't know tcl's test suite at all)
16:09 particle you could wrap calls to partcl with something that produced timing info to a file
16:09 NotFound Parrot_print_p? WTF?
16:10 particle what's wrong with Parrot_print_p?
16:10 NotFound Who is using opcodes like regular C functions?
16:12 jonathan Ooh, Rakudo broke the 6,500 mark :-)
16:14 particle for those of us with working inf/nan support? or even on windows?
16:14 particle i haven't run spectest in a day or so, as i work on nan/inf
16:14 jonathan particle: Nah, we fail a bunch because of that on Windows.
16:15 cosimo joined #parrot
16:15 particle ick.
16:16 particle nmake help # lists all surrounding quotes
16:16 particle ""
16:16 particle "Following targets are available for the user:"
16:16 particle ""
16:16 particle "Executables:"
16:16 jonathan particle: You're working on a patch for the Inf/NaN stuff?
16:16 particle yes, i am
16:17 particle i need to modify sprintf
16:17 jonathan Ok.
16:18 jonathan particle++
16:18 particle i'll post a patch in a moment, that has everything but sprintf
16:18 particle running codingstd tests now
16:18 sjn joined #parrot
16:20 nopaste "particle" at 76.121.106.245 pasted "inf/nan handling patch, still need sprintf fixes" (305 lines) at http://nopaste.snit.ch/15405
16:22 jonathan +    if (STREQ(p, PARROT_STRING_INF_POSITIVE))
16:22 jonathan +        f = PARROT_FLOATVAL_INF_POSITIVE;
16:22 jonathan particle: Does this handle case insensitivity?
16:22 jonathan (it may do it further up, just looking at the patch)
16:23 particle no, it doesn't.
16:23 particle where would we get a string that has "nan"?
16:23 jonathan I think I remember reading that we should...
16:23 particle inside parrot, that is?
16:23 particle the parrot string representation of nan is "NaN"
16:24 jonathan Well, it someone does $N0 = 'nan'
16:24 jonathan ?
16:24 jonathan OK, we can standardize on that...
16:24 particle i don't want to deal with $N0 = "-1.#IND" # do you?
16:26 jonathan No
16:26 particle :)
16:27 jonathan But handling case insensitivity of inf and nan is easier. ;-)
16:27 jonathan But I don't feel strongly on it.
16:27 particle it wouldn't be hard to add that
16:27 jonathan One thing that works on all platforms is the main goal.
16:27 particle yop
16:31 particle i'm a little confused with spf_render.c, line 740
16:32 particle 741, actually
16:32 particle why is thefloat a HUGEFLOATVAL instead of FLOATVAL?
16:32 particle shouldn't it be the platform-native size of float?
16:33 particle HUGEFLOATVAL is always long double
16:33 NotFound particle: I suppose that to avoid possible loss of precission when casting it to double ?
16:33 particle while FLOATVAL may be double or long double
16:34 NotFound particle: Are you sure? I think long double may not be available in some platforms.
16:35 Coke particle: I'm not running their full 'test all'.
16:36 particle coke: you can still wrap partcl in something that reports timing info
16:36 Coke I can /implement/ the timings. I'm just saying it'd be nice.
16:37 particle NotFound: correct, long double may not be available, or default, on some platforms
16:37 particle in parrot's configure, we determine what FLOATVAL should be
16:37 Coke jonathan: so the point of that test is to run that one particular test with a particular option to parrot?
16:37 particle something like "typedef double FLOATVAL" is generated
16:37 particle coke: yes, that one test file must be run with the -r core
16:38 Coke why is that test so special that we have to run it here and not via "make fulltest"?
16:38 Coke is the -r core not normally tested?
16:38 Coke (in fulltest)
16:38 NotFound particle: and I think is possible to use Configure options to make FLOATVAL -> float
16:38 particle NotFound: probably, yes
16:38 particle so why use HUGEFLOATVAL anywhere inside parrot?
16:39 particle FLOATVAL is probably what you want everywhere
16:40 NotFound particle: Did you read the comment that says "This can be really hard to understand" ? ;)
16:40 particle :P
16:41 particle i need to add PARROT_HUGEFLOATVAL_INF_POSITIVE et all now :(
16:41 particle *et al
16:43 NotFound I suppose that the reason for HUGEFOATVAL is that the maximum sized float type might be double or long double, depending on platform and configuration.
16:43 iblechbot joined #parrot
16:43 particle yes, but that's typedef'd to FLOATVAL
16:44 particle gvim -t FLOATVAL
16:44 rdice joined #parrot
16:44 particle typedef Parrot_Float FLOATVAL;
16:44 particle typedef double                    Parrot_Float;
16:45 particle * Generated by Parrot::Configure::Compiler from config/gen/config_h/config_h.in
16:45 NotFound I think not, FLOATVAL can be double on platforms that have long double.
16:53 Theory joined #parrot
16:56 skv joined #parrot
17:02 Whiteknight rakudo: sub Double ($x){ return $x * 2;}; my $subs = &Double; say $subs(2);
17:02 polyglotbot OUTPUT[4␤]
17:02 Whiteknight yay!
17:03 Whiteknight this makes testing examples from the book very easy and convenient
17:03 particle what does, the irc bot?
17:04 particle t-inf.c(14) : error C2014: preprocessor command must start as first nonwhite space
17:05 particle heh, just realized that means DON'T USE # AS A COMMENT CHAR, RETARDO!
17:12 dalek r35914 | julianalbo++ | trunk/src:
17:12 dalek : Don't use an opcode function as a regular C function
17:12 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35914
17:14 particle NotFound: get rid of the commented out code there
17:15 silug joined #parrot
17:16 NotFound particle: I let it because there is an XXX some lines before with the same instruction commented.
17:32 skv joined #parrot
17:47 ask_ joined #parrot
18:00 barney joined #parrot
18:10 skv joined #parrot
18:10 chromatic joined #parrot
18:13 bacek joined #parrot
18:16 Coke chromatic: http://code.google.com/p/partcl/source/​browse/trunk/docs/spectest-progress.csv
18:16 shorten Coke's url is at http://xrl.us/bea58p
18:16 Coke runtime for the spec suite is down to 8273s from 9973s. (granted I'm now skipping 3 small files that were hanging with recent changes, but still)
18:16 Coke 8273/9973
18:16 purl 0.829539757344831
18:17 Coke 8273 / 60 / 6 0
18:17 Coke 8273 / 60 / 60
18:17 purl 2.29805555555556
18:17 chromatic 17% improvement?
18:17 Coke looks like.
18:17 Coke which i could run these more often so i could figure out what was getting faster. =-)
18:18 Coke *wish
18:18 chromatic Yeah, that'd be nice to know.
18:18 Coke for my next trick, I'll be converting my RPA subclass to PIR only and see what kind of speed boost that gives.
18:19 Coke (that's the one with heavy string manipulation from the C level, and a ton of PCC_INVOKEs.
18:19 jonathan Coke: What gained the 17%?
18:19 chromatic jonathan, that may have been the STRING manipulation changes I made, which sped up PGE for Rakudo by 30-35%.
18:19 Coke jonathan: "wish i could run these more often so i could figure out what was getting faster. =-)
18:20 jonathan chromatic: In the Object PMC, we use an RPA to store attributes. That means two PMC per Object.
18:20 jonathan I was pondering using a C array for 'em instead.
18:20 Coke an RPA for attributes, not a hash??
18:20 jonathan Coke: Right.
18:20 Coke *boggle*
18:20 Coke i would imagine a c array or a hash would be better.
18:20 jonathan Coke: We do the name lookup in a per-class hash.
18:20 Coke hokay.
18:20 jonathan Coke: And that gives the positions into the storage array.
18:21 jonathan I'm curious if anyone had any thoughts on why *not* to do this (other than the cost to my sanity when I have to re-work Rakudo's evil rebless_subclass dynop...)
18:22 chromatic Does it make subclassing more difficult?
18:22 jonathan Because since we make many Objects, it would cut in half the number of PMCs.
18:22 jonathan chromatic: subclassing of Object?
18:23 chromatic Yes.
18:23 jonathan The only functions that touch the attributes are probably pmc_init, get_attr and set_attr.
18:23 jonathan They're already calling static C functions and all kinds anyway.
18:23 jonathan IIRC
18:24 chromatic Seems worth experimenting then.
18:24 jonathan Aye.
18:24 jonathan I'll try and find time to try it.
18:24 jonathan I don't mind if anyone else beats me to trying though. :-)
18:25 jonathan But for things like Rakudo which are heavily using PIR classes, we'd maybe cut the number of PMCs by perhaps a third.
18:26 jonathan Which I'd think would have some memory usage and runtime improvements.
18:26 jonathan Less GC pressure for one.
18:26 chromatic And we have the same number of mallocs and reallocs as when using an RPA, because it uses a C array underneath as well.
18:26 Coke jonathan: I'll give you a 5$ Insta-Grant for that.
18:27 Coke (though really, shouldn't we be eating our own dogfood and just making it more palatable?)
18:27 szabgab chromatic: did you have time to look at the Parrot::Embed API I suggested?
18:28 Coke anyway, I'm rather excited, as this is the first time I've gotten the spect tests to pass more tests in less time.
18:28 szabgab I know I am just PITA
18:28 chromatic szagab, parts of it.
18:28 chromatic I'll put that on my task list for Monday.
18:28 braceta left #parrot
18:28 jonathan chromatic: Yeah, it'd just save allocating some more PMC headers (which I know we don't malloc every time we create a PMC, but we gotta allocate/manage them somewhat).
18:28 szabgab would be awesome, so I can try start using the languages in Padre
18:29 szabgab some people here might want to play around with padre once they can write their plugins in perl 6
18:31 Coke chromatic++ jonathan++
18:35 * chromatic just created the !parrot group on identi.ca.
18:36 jhorwitz chromatic: get a chance to look at my patch in TT #185 yet?
18:37 chromatic Okay, putting that on my list for today.
18:37 jhorwitz danke!
18:52 skv joined #parrot
18:55 japhb joined #parrot
18:56 skv joined #parrot
19:00 sjn_ joined #parrot
19:01 Whiteknight_ joined #parrot
19:10 dalek r35915 | bernhard++ | trunk/languages/pipp (2 files):
19:10 dalek : [Pipp] implement str_replace partially
19:10 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35915
19:18 japhb joined #parrot
19:19 Zaba joined #parrot
19:20 dalek r35916 | bernhard++ | trunk/tools/dev:
19:20 dalek : [Pipp] Adapt POD for tools/dev/mk_gitignore.pl
19:20 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35916
19:30 skv joined #parrot
19:37 japhb joined #parrot
19:38 pjcj joined #parrot
19:40 PacoLinux Coke: parrot on solaris is not dead :) http://smolder.plusthree.com/app/pu​blic_projects/report_details/16122
19:40 shorten PacoLinux's url is at http://xrl.us/bedjzy
19:40 PacoLinux s/solaris/solaris sparc/
19:42 Coke PacoLinux: sehr gut
19:42 Coke perhaps a reply to andy's message might be in order.
19:43 PacoLinux I think so ..
19:50 Coke sun4 implies sparc?
19:50 PacoLinux yes
19:52 PacoLinux $ uname -a
19:52 PacoLinux SunOS netra 5.10 Generic_127127-11 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
19:52 Andy ?
19:57 japhb joined #parrot
19:59 Coke !
20:02 * Coke tries to convert his tcllist PMC to a PIR subclass, and gets an odd failure.
20:05 Whiteknight what odd failure?
20:05 * Whiteknight demands information!
20:07 Coke it appears to be stringifying my 3-element list as '3'.
20:08 Coke I think something is ending up with the wrong list type at some point.
20:08 Coke here's the original:
20:08 Coke http://code.google.com/p/partcl/sour​ce/browse/trunk/src/pmc/tcllist.pmc
20:08 shorten Coke's url is at http://xrl.us/bedj7b
20:08 nopaste "coke" at 72.228.52.192 pasted "and here's the PIR version" (236 lines) at http://nopaste.snit.ch/15406
20:09 Coke assign_pmc is getting invoked with things that claim to do array.
20:09 Coke set_pmc is never invoked. (may remove it from the final version)
20:09 Coke get_string is invoked, and the return values seem sane.
20:10 Coke but after a few lists are created, I get a "3: command not found" error (tcl complaining that it can't find the command '3', which is probably calling get_string on the wrong type somewhere.)
20:10 * Coke is slowly tracking it down, but perhaps he's missed something obvious.
20:13 Coke yup. the problem is here:
20:14 Coke http://code.google.com/p/partcl/source​/browse/trunk/runtime/builtin/list.pir
20:14 shorten Coke's url is at http://xrl.us/bedj8r
20:14 Coke old version, argv is a TclList; this version, it's a RPA.
20:14 skv joined #parrot
20:14 Coke probably need to declare my mappings sooner.
20:15 Whiteknight RPA stringifies to it's element count?
20:16 Coke think so.
20:16 Coke Doh. my HLL for the PIR is 'parrot', not 'Tcl'. need to do the mapping in the right HLL
20:23 dalek r35917 | julianalbo++ | trunk/examples/pir:
20:23 dalek : pirric: pass arguments to functor calls
20:23 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35917
20:23 dalek r35918 | bernhard++ | trunk/languages/pipp (4 files):
20:23 dalek : [Pipp] Register constants 'DIRECTORY_SEPARATOR' and 'PATH_SEPARATOR'
20:23 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35918
20:24 Coke hurm.
20:25 Coke well, this sucks. I can't seem to declare that HLL_map soon enough. :|
20:28 rdice joined #parrot
20:29 nopaste "coke" at 72.228.52.192 pasted "bug?" (15 lines) at http://nopaste.snit.ch/15407
20:29 chromatic I think I filed an RT about that way back when.
20:29 Coke does that look like a bug to folks? (argv there is given a resizablePMCarray, not the RPA subclass.
20:30 chromatic Of course, :slurpy may not look in the HLL map.
20:30 Coke it has.
20:30 Coke (this worked when I had a PMC)
20:30 chromatic Did you have the .loadlib before the .HLL_map?
20:30 Coke before, the map was /in/ the pmc.
20:30 chromatic Okay.
20:31 Coke with 'pmclass foo maps bar'
20:31 chromatic I /think/ the problem is that when IMCC processes .HLL_map, it has no idea what RPA is.
20:31 Coke so perhaps if I load PIR even before I do the loadlib of the ops and the dynpmcs.
20:32 Coke *PIR *that pir subclass
20:32 chromatic Right.
20:33 Coke nope. even if I .include the PIR, then define the mapping as the first bit of src/tclsh.pir, I still get the wrong type.
20:34 Coke perhaps HLL_map is not equiv to the map directive in PMC land?
20:34 skv joined #parrot
20:35 dalek r35919 | bernhard++ | trunk/languages/pipp/t/php:
20:35 dalek : [Pipp] Add t/php/dir.t with a single TODO test
20:35 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35919
20:36 Coke um.
20:36 Coke there seems to be a bug in HLL map.
20:37 Coke oh, wait, the pmc converter just used an extremely wrong variable name.
20:38 Coke (the hll_id number is called "pmc_id" in the converter.)
20:45 dalek r35920 | bernhard++ | trunk (3 files):
20:45 dalek : [Pipp] dirname is in 'filesystem' extension, not the 'dir' extension
20:45 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35920
20:46 japhb joined #parrot
20:49 dalek r35921 | julianalbo++ | trunk/examples/pir:
20:49 dalek : pirric: look for global namespaces when no local found
20:49 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35921
20:50 dalek r35922 | bernhard++ | trunk (2 files):
20:50 dalek : [Pipp] Add file for implementation of filesystem extension
20:50 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35922
20:53 Coke is t/compilers/pct/post failing for anyone else?
20:55 nopaste "NotFound" at 213.96.228.50 pasted "Calling a javascript function from a perl6 sub from pirric" (21 lines) at http://nopaste.snit.ch/15408
20:56 * Coke just opens a ticket for a patch and forgets it.
20:58 rg notfound: and you're calling this a) an example and b) rudimentary old style basic? ;)
20:58 NotFound Language interoperability is not so bad now :)
20:58 NotFound rg: both things are valid
20:59 rg coke: just did a svn update and post.t still works for me.
21:00 rg (after recompile of course)
21:00 Whiteknight NotFound, that example works?
21:00 NotFound Whiteknight: after my last commit, it must work. It does here.
21:01 Whiteknight NotFound++
21:05 Hunger joined #parrot
21:11 Coke rg?
21:11 Coke purl doesn't know who you are. =-)
21:11 purl i don't know, coke
21:11 Coke I was getting a failure, but I had TT #217 applied, which shouldn't have affectd it.
21:11 rg can purl do a /whois?
21:11 Coke no, but I can.
21:12 Coke rg is Rolf Grossmann
21:12 rg yup, that's me.
21:12 rg purl: rg is Rolf Grossmann <rg@progtech.net>
21:12 purl ...but rg is Rolf Grossmann...
21:15 Coke no, rg is Rolf Grossmann <rg@progtech.net>
21:15 purl okay, Coke.
21:15 rg thanks, i was looking for that
21:20 Whiteknight it annoys me that we have to practically argue with the bot to get it to do simple things
21:20 rg TT #217 really shouldn't make any difference.
21:21 Coke Whiteknight is also not bot savvy
21:21 purl okay, Coke.
21:21 Coke coke?
21:21 purl i think coke is mailto:will@coleda.com or disconcerted that the test program -fails- when run via valgrind, but one thing at a time. =-)
21:22 Coke purl, coke =~ s/disconcerted/annoyed/
21:22 purl OK, Coke
21:22 Coke purl: scooby snack.
21:22 purl Rank roo, Coke!
21:22 Coke rg: i didn't think so either, but was too lazy to verify I had a clean test run to commit it.
21:23 rg just that one diff? i'd say you can commit it just by looking.
21:25 Coke what diff? =-)
21:25 * Coke has already moved on.
21:25 rg the diff from tt #217
21:25 Coke rg... it was a joke son.
21:26 Coke admittedly unfunny.
21:26 rg sorry, didnt get that ;)
21:29 arbingersys left #parrot
21:32 skv joined #parrot
21:34 rg hmm why is trac still at r34014?
21:34 NotFound rg: i think in trac there is only a static copy of the repo for trac testing.
21:34 rg does it need the upcoming repo move?
21:35 Tene joined #parrot
21:36 NotFound After moving trac will show the real thing, yes.
21:36 rg ok, thanks.
21:37 dalek r35923 | julianalbo++ | trunk/src:
21:37 dalek : a little bit of headerizing
21:37 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35923
21:40 dalek r35924 | rurban++ | trunk:
21:40 dalek : Fix TT #209, MANIFEST.generated is missing installable_pbc_disassemble,
21:40 dalek : Patch from Andy Dougherty
21:40 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35924
21:40 rurban joined #parrot
21:47 dalek r35925 | bernhard++ | trunk/languages/pipp (5 files):
21:47 dalek : [Pipp] first stab at 'dirname'
21:47 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35925
21:52 skv joined #parrot
22:00 dalek r35926 | rurban++ | trunk:
22:00 dalek : * Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0
22:00 dalek : - added make installable, perl6 is still not installable
22:00 dalek : - added parrot_utils to devel
22:00 dalek : - fixed Source0 url
22:00 dalek : * TT #197 from Gerd Pokorra <gp@zimt.uni-siegen.de> 0.9.0
22:00 dalek : - added make html, new parrot-doc package
22:00 dalek : - make reallyinstall => make install
22:00 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35926
22:01 * Coke puts in a workaround in partcl to get around TT#216
22:12 dalek r35927 | rurban++ | trunk/config/init:
22:12 dalek : Fix #166 Install path on Win32
22:12 dalek : make "C:/Parrot" the default win32 prefix
22:12 dalek : - This is 1. analog to ActivePerl, strawberry and vanilla perl,
22:12 dalek : - and 2. it is technically hard to get the ${PROGRAMFILES} path
22:12 dalek :   if undefined, and without perl libwin32.
22:12 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35927
22:14 skv joined #parrot
22:17 dalek r35928 | allison++ | trunk/src:
22:17 dalek : [core] Change library loading so an extension is required. Alternate extension
22:17 dalek : checks are performed, but only PIR->PBC, PASM->PBC and PBC->PIR/PASM. This
22:17 dalek : means that loading a library will perform at most 3 extension checks, with the
22:17 dalek : common case being 1 or 2.
22:17 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35928
22:18 skv joined #parrot
22:23 dalek r35929 | julianalbo++ | trunk/src/pmc:
22:23 dalek : implement Complex init_pmc
22:23 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35929
22:23 * Coke finds YA subclass of RPA problem in TT#218
22:23 Coke ya?
22:23 purl it has been said that ya is Yet Another or Young Adult (in the context of books) or the lazy form of yeah
22:27 PerlJam particle++ (good email to p6l regarding unique ids for tests)
22:32 rdice joined #parrot
22:48 skv joined #parrot
22:49 Coke pmichaud: thanks for noting the duplication there.
22:54 dalek r35930 | julianalbo++ | trunk/src/pmc:
22:54 dalek : allow String subclasses in Complex init_pmc
22:54 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35930
22:56 dalek r35931 | julianalbo++ | trunk/examples/pir:
22:56 dalek : pirric: allow pass one argument to new
22:56 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35931
23:16 s1n joined #parrot
23:30 NotFound joined #parrot
23:30 Limbic_Region joined #parrot
23:40 skv joined #parrot
23:44 kid51 joined #parrot
23:44 skv joined #parrot
23:47 NotFound joined #parrot
23:48 TiMBuS joined #parrot
23:49 dalek r35932 | rurban++ | trunk:
23:49 dalek : [docs] More updates after the packaging is finished.
23:49 dalek review: http://www.parrotvm.org/svn​/parrot/revision?rev=35932
23:59 NotFound joined #parrot

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

Parrot | source cross referenced