|
www.parrot.org/ | Parrot 1.4.0 "Mundo Cani" Released! Set by moderator on 21 July 2009. |
|||
|
00:00
jdv joined
|
|||
| dalek | rrot: r40225 | whiteknight++ | branches/bsr_jsr_ret (2 files): [bsr_jsr_ret] convert more files |
00:06 | |
| bacek_at_work | hi there | 00:09 | |
| Whiteknight | hello bacek_at_work | ||
|
00:11
patspam joined
|
|||
| Whiteknight | urg, some of these old test files are rediculously ugly and old and ugly | 00:15 | |
| they are using some of the most archaic code, I would hate for a new user to see this kind of crap and think that's the way it was done | |||
| t/op/cmp-nonbranch.t is a terrible horrible example that should die in a fire | 00:16 | ||
| Coke | ... lost another 4 tests... | 00:19 | |
| wtf. | |||
|
00:20
Andy joined
|
|||
| dalek | cnum-dynpmcs: r116 | darbelo++ | trunk/ (3 files): Let's get started with DecInt, it doesn't dtrt yet, but we'll get there. |
00:25 | |
|
00:27
toyam joined
00:28
TiMBuS joined
|
|||
| dalek | cnum-dynpmcs: r117 | darbelo++ | trunk/aux/decTest2pir.pl: With the PCT decTest intepreter mostly-done we don't need this script anymore. |
00:45 | |
| rdinal: 7cacdbb | (Ted Reed)++ | Rakefile: Add a line to the Rakefile test:all statistics that declares that the current source is clean for commit. |
00:48 | ||
| rdinal: 0503fb6 | (Ted Reed)++ | src/classes/Array.pir: Reimplement Array.uniq to ensure that the order stays the same. |
|||
|
00:59
toyam joined
|
|||
| treed | What's the word on the iter opcode? | 01:08 | |
| I know there's been a lot of discussion about opcodes vs. methods and I'm curious what direction it's going. | 01:09 | ||
| Specifically WRT the iter opcode. | |||
| bacek_at_work | treed: there is iter opcode. And it works. mostly | 01:11 | |
| treed | Is it deficient compared to making a new "Iterator"? | 01:12 | |
| And is the current plan preferring the opcode over using Iterator? | |||
| bacek_at_work | treed: "new 'Iterator'" is gone. | 01:13 | |
| treed | Eh? | ||
| It's still working for me. | |||
| When did it leave? | |||
| bacek_at_work | just update to latest parrot :) | ||
| treed | Ah. | 01:14 | |
| bacek_at_work | after 1.4 release | ||
| treed | So then this patch to cardinal changing all Iterator into iter should definitely be applied. | ||
| I think it's been a few days since I've done svn up on parrot. | |||
| bacek_at_work | if you want to create own aggregate and iteratable classes you have to implement own Iterator-based class. And return instance of it from VTABLE_get_iter | 01:15 | |
| treed | But RPA and friends already do that? | 01:16 | |
|
01:20
jdv79 joined
01:22
sekimura_ joined
|
|||
| dalek | rdinal: ff8ddf9 | (Joeri Samson)++ | (14 files): Use iter opcode instead of new 'Iterator' |
01:24 | |
|
01:27
Eevee joined
01:28
Austin joined
|
|||
| Austin | fail! | 01:28 | |
| Where's fail? | |||
| purl | somebody said fail was strong in buu | ||
| cotto | fail is gone. Goodbye fail. | 01:30 | |
| It got deprecated. | |||
| I'm not sure what the expected replacement is. | |||
| Austin | That's nice. | 01:31 | |
| jdv | who's fail? | 01:32 | |
| purl | fail is strong in buu | ||
| Austin | And yet the documentation disagrees. | ||
| cotto | It was just removed. I wouldn't be surprised if the docs didn't get updated. | 01:34 | |
| pmichaud, ping | |||
| pmichaud, what's the replacement for <fail> ? | |||
| Whiteknight | <win> | ||
| Austin | Whiteknight: :-) | ||
| cotto | Hmm. I meant to send that after he ponged. | ||
| Austin | Maybe { fail(); } | 01:35 | |
| Except I suspect it'll be something I can't figure out, like &.!fail() | |||
| darbelo | cotto: This reminds me, the "Removal of PGE rules:" line on the release announcement to the parrot front page shows up as blank on my browser. | 01:38 | |
| I suspect you need to escape your angle brackets there. | |||
| cotto | I 'spect so. | 01:39 | |
| darbelo++ for noticing | 01:41 | ||
| it's fixed now | |||
| Austin | Hmm. Rakudo's grammar.pg still has a <fail> in it. | 01:42 | |
| dalek | rtcl: r539 | coke++ | wiki/SpecTestStatus.wiki: 4 more failures... |
01:46 | |
| Coke has dropped from 62 spec files being processed to 43... | 01:49 | ||
| holy crap, dude. | |||
| Coke removes the skips and tries again... | |||
| cotto | Austin, epic | 01:51 | |
|
01:54
darbelo left
|
|||
| Austin | ?epic? | 01:57 | |
| cotto | as in epic fail | 02:00 | |
|
02:09
Andy joined,
theory joined
|
|||
| Austin | cotto: It seems that way. I'm wading through recoding my grammar, and it's pretty epic. | 02:13 | |
| Coke | hey, guess what. re-ran the spec test... 5 more failures. | 02:18 | |
| what the holy hell is going on? | |||
|
02:21
cotto joined
|
|||
| chromatic | Acute bitrot? | 02:23 | |
| hydrapheetz | paraboxes? | ||
|
02:23
Andy joined
02:27
toyam joined
|
|||
| dalek | rtcl: r540 | coke++ | wiki/SpecTestStatus.wiki: More failures... and one is back? each update... |
02:27 | |
| Coke | chromatic: bitrot when no code has changed in parrot or partcl? | ||
| Coke | perhaps optimized parrot isn't usable. | ||
| Coke runs the suite again... | 02:28 | ||
| hydrapheetz | And by paraboxes I mean Farnsworth Paraboxes. Heh. | ||
| Coke | is there any reason to avoid an --optimize'd parrot? | 02:33 | |
| aside from lack of debugging goodness? | |||
|
02:35
janus joined
|
|||
| Coke | .... 3 more failures... | 02:53 | |
| bacek_at_work | Coke: what happening??? | 02:54 | |
| cotto | sanity has been defeated | 02:56 | |
| Coke | bacek_at_work: I am re-running the spec test, skipping any new failures. I have re-iterated this process, what, 5 times? | ||
| (for partcl) | |||
| each time I run it, there are new failures. | |||
| treed | Did something with get_pmc_keyed on String change recently? | ||
| (Suddenly inexplicable failures with Cardinal's test suite.) | 02:57 | ||
| cotto | Coke, does partcl work with svn head? | ||
| Wow. I guess someone took me literally when I encouraged everyone to break stuff. | |||
| s/head/head of parrot/ | 02:58 | ||
| treed | get_pmc_keyed() not implemented in class 'String' | ||
| Coke | cotto: I'm using tom@yandell.me.uk | 03:01 | |
| er. | |||
| r40217 | |||
|
03:03
payload joined
|
|||
| treed | Does iter use get_pmc_keyed? | 03:04 | |
| treed tries to find it in the docs. | |||
| Coke | treed: I think it depends on what you shift off the iterator. | 03:06 | |
| treed | Would be a pmc, yeah. | ||
|
03:07
Andy joined
|
|||
| treed | I wonder if changing that to string would fix it. | 03:07 | |
| no, that'd break things | |||
| cotto | Coke, I'm running the spec tests and will tell you what happens. | ||
| treed | I guess I just need to implement that op. | ||
| I wonder why that test was passing before. | 03:08 | ||
| Huh. | |||
| It already is implemented on that class. | |||
| Coke | cotto: I'm using tools/spec_info.pl | 03:09 | |
| (as that updates the docs/ files also) | |||
| and I'm finding that if I run some of the failing tests manually, they pass. (*&#$#> | |||
| cotto | Coke, thanks | 03:12 | |
| Coke | ... wtf. | 03:13 | |
| treed | Actually. | 03:19 | |
| I wonder if this is related: The get_pmc_keyed is actually returning $S0 | 03:20 | ||
|
03:21
donaldh joined
|
|||
| Coke | treed: what problem are you having? | 03:26 | |
| treed | Coke: I'm having a few of my tests fail with the message get_pmc_keyed() not implemented in class 'String' | 03:28 | |
| It wasn't failing a few days ago. | |||
| And the function it's bailing out of doesn't actually use keyed access to anything, except maybe through iter. | 03:29 | ||
| But iter should be iterating on CardinalString, which *does* implement that vtable. | |||
| I just tried rewriting the method that implements it so that it returns from $P0 instead of $S0, but that doesn't seem to have fixed anything. | 03:31 | ||
| 2754 iter P3, P1 P3=PMCNULL P1=Object(CardinalString)=PMC(0xc94a20) | 03:37 | ||
| 2757 unless P3, 15 P3=Iterator=PMC(0xc94690) | |||
| 2760 shift P0, P3 P0=PMCNULL P3=Iterator=PMC(0xc94690) | |||
| That's... interesting. | |||
| does Iterator copy the object, or is it iterating on something else entirely? | 03:38 | ||
|
04:11
tetragon joined
|
|||
| cotto | Coke, nopaste for you | 04:13 | |
| nopaste | "cotto" at 74.61.2.46 pasted "make spectest results for partcl on Ubuntu Jaunty on x86" (35 lines) at nopaste.snit.ch/17370 | ||
|
04:17
jdv joined
04:28
Zak joined
|
|||
| dalek | rdinal: db1ff47 | (Ted Reed)++ | (3 files): Implement Array.compact and .compact!; tests included. |
04:40 | |
| cotto | time for sleep | 05:05 | |
| good night | 05:06 | ||
| Tene | 'night | 05:30 | |
|
05:48
Andy joined
06:19
hudnix joined
06:31
iblechbot joined
06:33
theory joined
|
|||
| dalek | kudo: ee402a7 | pmichaud++ | docs/ (2 files): Fill in a release name for #19 (Chicago) |
06:42 | |
| kudo: 39d9e10 | pmichaud++ | docs/spectest-progress.csv: spectest-progress.csv update: 416 files, 11876 passing, 0 failing |
|||
| kudo: 9b37b81 | pmichaud++ | docs/announce/2009-07: Update announcement with spectest results. |
|||
|
06:50
wayland76 joined
|
|||
| dalek | rrot: r40226 | petdance++ | trunk (2 files): Parrot_get_namespace_keyed should not take a NULL pmc_key |
06:54 | |
|
07:21
donaldh joined
07:22
iblechbot joined
07:36
mikehh_ joined
07:45
flh joined
08:06
rob joined
|
|||
| szabgab | the latest version of Padre and Padre::Plugin::Parrot finally allows syntax highlighting for any language built on the Parrot Compiler Toolkit, I'd be glad if some of you gave it a shot in the next few days | 08:44 | |
|
09:01
masak joined
|
|||
| mikehh | All tests PASS (pre/post config, smolder, fulltest) at r40226 - Ubuntu 9.04 amd64 | 09:21 | |
|
09:42
mikehh_ joined
09:57
rob joined
10:04
payload left,
bacek joined
|
|||
| bacek | o hai... | 10:08 | |
| moritz++ # filter irclogs by nick | |||
| masak | has the search function improved, though? it's been pretty wacky every time I've used it. | 10:10 | |
| bacek | treed: around? | 10:11 | |
| masak: I didn't see search function before. | |||
| moritz | bacek: it was missingtheplan++, not me | 10:30 | |
| bacek: I wanted to re-write the search function with KinoSearch, but I'm still waiting for the 2.0 release | 10:31 | ||
| bacek | KinoSearch? | 10:32 | |
| purl | KinoSearch is immature, plucene is a hog. | ||
| moritz | KinoSearch is also a rather cool perl search engine modeled after lucene | 10:33 | |
| purl | okay, moritz. | ||
| bacek | moritz: try BOSS. It should be very cool | ||
| purl: BOSS? | 10:34 | ||
| purl | hmmm... BOSS is a mass-produced canned ice coffee product sold in God-forsaken Asian countries or me, of course | ||
| bacek | purl: no, BOSS is Build your Own Search Service by Yahoo | ||
| purl | okay, bacek. | ||
| bacek | purl: BOSS is also developer.yahoo.com/search/boss/ | 10:35 | |
| purl | okay, bacek. | ||
|
11:11
iblechbot joined
11:15
payload joined
11:20
donaldh joined
11:36
kid51 joined
11:49
whoppix joined
|
|||
| dalek | kudo: 1c8c88f | jnthn++ | src/classes/ (2 files): Make .multi work on Routine/Multi. Gets last fudged tests in S12-introspection/methods.t passing. |
12:11 | |
|
12:19
whiteknight joined
|
|||
| whiteknight | good morning #parrot | 12:20 | |
| and it IS morning, no matter what bacek says :) | |||
| masak | well... here in Europe, we've left this whole morning thing behind us. | 12:26 | |
| we've already started in on the afternoon. | 12:27 | ||
| dalek | kudo: f5ccc0c | jnthn++ | src/parrot/ClassHOW.pir: Implement :private flag for .^methods and remove outdated todo comments now those things are todone. |
12:36 | |
| Coke | msg cotto - looks like you're failing a similar number of tests that I am. | 12:43 | |
| purl | Message for cotto stored. | ||
|
14:36
Casan joined
14:43
Jimmy joined
|
|||
| Jimmy | I lost the messages | 14:48 | |
| particle | as in, purl had messages for you, but when you type '/msg purl messages' it returns none? | 14:52 | |
| Jimmy | thanks, get it now | 14:56 | |
|
15:03
mj41 joined
15:17
zostay joined
15:21
donaldh joined
|
|||
| dalek | rrot: r40227 | NotFound++ | trunk (2 files): [imcc] convert warning about duplicate identifier in error, TT #767 |
15:24 | |
|
15:24
jhorwitz joined
15:28
MoC joined
15:38
cghene joined
|
|||
| dalek | kudo: 346ae98 | jnthn++ | t/spectest.data: Add S12-introspection/attributes.t to spectest.data. |
15:44 | |
| rrot: r40228 | dukeleto++ | trunk/t/tools/dump_pbc.t: Fix typo in POD of dump_pbc.t |
15:46 | ||
| Coke | bah. if I run "tools/spec_info.pl", compExpr-old.test dies. if I run that test file manually, it completes. Any clues, lazyirc? | 15:53 | |
| jonathan | Coke: In what way does it fail differently? | 15:54 | |
| Coke: Sometimes such things are exit code issues. | |||
| That is, it exists with non-zero so the harness considers it a fail. | |||
| But running it manually at the command line doesn't show that. | 15:55 | ||
| Coke | jonathan: it aborts after running some tests. | ||
| jonathan | Oh | ||
| OK, so really different behavior. Eww. | |||
| Coke | and I'm not using any kind of perl harness here. | ||
| (the tcl tests use Tcl's tcltest.tcl) | |||
| spec_info.pl is invoking tcl_test.pl which calls "system /path/to/parrot tcl.pbc /path/to/test" for each test. some of those just abort. :| | 15:58 | ||
| jonathan | Does running under -G make any difference? | ||
|
15:58
flh joined
|
|||
| jonathan | That is, does some slightly different memory late trigger a GC heisenbug? | 15:58 | |
| If not then...well...oddness. | |||
| Coke | /home/coke/bird/bin/parrot -G tcl.pbc t_tcl/compExpr-old.test | 16:00 | |
| Parrot VM: PANIC: Out of mem! | |||
| immediately. no other output. | |||
| jonathan | wow | ||
| I wonder if that's *really* out of memory or just a "passed stupid value to malloc". | 16:01 | ||
|
16:02
whiteknight joined
|
|||
| Coke | (not immediately, but it's the first thing that happens.) | 16:02 | |
| Coke will try sans optimized parrot. | 16:04 | ||
| NotFound | Will be useful to add to that panic message the amount of memory it was trying to allocate? | 16:05 | |
| jonathan | NotFound: I guess it saves getting a debugger out and breakpointing in panic... | 16:06 | |
| NotFound | Mmm... it can do now, but you must compile with DETAIL_MEMORY_DEBUG defined. | ||
| jonathan | Ah, OK | 16:08 | |
| NotFound | I think the amount of messages generated by that define can interfere with any test, not very useful. | 16:09 | |
|
16:10
theory joined
|
|||
| dalek | kudo: 241545b | jnthn++ | t/spectest.data: Add S12-introspection/roles.t to spectest.data. |
16:11 | |
|
16:12
theory joined
|
|||
| Coke | non-optimized parrot fares just as poorly. wtf. | 16:13 | |
| Coke should apparently have been running the spec test daily up to the release. | |||
| I'm going to have to do a binary search to figure out when this spec test file started failing. :| | 16:14 | ||
| (not with -G. I don't particularly care that -G is failing) | 16:15 | ||
|
16:21
bacek joined
|
|||
| Coke | what a mess. | 16:21 | |
| purl | PLEASE DO NOT MAKE A MESS IN HERE | ||
| nopaste | "NotFound" at 213.96.228.50 pasted "Patch: show size in PANIC out of mem" (92 lines) at nopaste.snit.ch/17371 | 16:23 | |
|
16:34
ruoso joined
16:45
Andy joined
|
|||
| cotto | good morningi | 16:46 | |
|
16:50
Psyche^ joined
16:53
chromatic joined
16:54
Andy joined
16:55
jan joined
17:01
whiteknight_ joined
17:02
theory joined
17:03
HG` joined
17:11
hercynium joined
|
|||
| treed | bacek: Here now. | 17:19 | |
|
17:22
toyam joined
17:25
theory joined
17:45
toyam joined
|
|||
| Coke | ... changed my harness to report when a segfault occurs. ok. that test is segfaulting. change ulimit to actually allow core file to be dumped. | 17:48 | |
| re-run test. | |||
| ... no segfault. | |||
| ... really? | 17:49 | ||
| treed | Awesome. | 17:50 | |
| jonathan | So the ulimit was getting in the way...or? | 17:51 | |
| Coke | awesome? it's (*@#&$ hideous. | 17:55 | |
| why should the setting of ulimit -c cause or prevent a segfault? | |||
|
17:56
theory joined
|
|||
| treed | Sarcasm, man. | 17:56 | |
| jonathan | Coke: It's not just a memory limitation? | ||
| treed | I run into segfault/sigbus kinda shit all the time. | ||
| jonathan doesn't know what ulimit does | |||
| Coke | I'm not talking about memory. | ||
| jonathan | Well, not at a specific flags level. | ||
| Coke | I changed 'ulimit -c' - size of core file. | ||
| jonathan | Ah, OK. | 17:57 | |
| Then color me mystified. :-| | |||
| Really odd. | |||
| Coke | it was originally set to 0. I changed it to unlimited, so the file would be created and I could actually find out about the segfault. | ||
| treed | I was trying to debug something the other day. If I run it with -t 1, I get sigbus before it gets to the error I was trying to debug. | ||
| Quite frustrating. | |||
| I ended up reimplementing it to get around that. | 17:58 | ||
| Coke | yah. -t1 && -t4 are both squirrely. | ||
| treed | Is there something else I should use? | ||
| Coke | nope. | ||
| old school 'print' debugging. | |||
| (which doesn't really count.) | |||
| treed | Yeah, that's often what I resort to, but it wasn't helping me in this case. | 17:59 | |
| All it did was prove that something was fucked up. | |||
| Coke | yah. tracing has been fixed several times, but apparently not for good. | ||
| treed | (A rule was getting called in actions.pm twice with two different arguments, when it should only get the first one. It's only used in one rule, and *that* rule only got one of them. | ||
| So I was trying to figure out why it was getting called the second time. | 18:00 | ||
| No luck. | |||
| cotto | treed, you can do caveman debugging (print) of grammars with inline pir: {{ say "hi" }} | 18:04 | |
| that might help the next time | 18:05 | ||
| treed | I was using puts from actions.pm | ||
| All I was able to verify was that it was happening, not why the rule was getting called a second time. | |||
| particle | gdb breakpoint | ||
| treed | I ultimately figured out that my approach to solving that problem was going in the wrong way anyway. | 18:06 | |
| So I'll have to think about a new solution. | |||
| Hopefully that new solution doesn't cause any such problems. | |||
| cotto | treed, is there something I could play with | 18:07 | |
| treed | Hm? | ||
| What, the problem I was seeing? | |||
| cotto | yeah | ||
| treed | I stuffed that code into a git stash. | ||
| I can send you a patch or something of it. | |||
| Aw, hell. | 18:08 | ||
| Conflict. | |||
| purl | conflict: n. when purl is debugging (a beer activity), but planning to have pasta (a wine meal) for dinner | ||
|
18:08
jrtayloriv joined
|
|||
| treed | Wrong stash anyway. | 18:11 | |
| Where should I put the diff? | |||
| cotto | nopaste | ||
| no rush. git clone is *really* slow | 18:12 | ||
| treed | nopaste? | ||
| purl | nopaste is probably at nopaste.snit.ch/ (ask TonyC for new channels) or poundperl.pastebin.com/ or paste.scsys.co.uk/ or App::Nopaste or tools/dev/nopaste.pl or at www.extpaste.com/ or paste.scsys.co.uk (for #catalyst, #dbix-class, #moose and others) or gist.github.com/ or paste or gtfo | ||
| treed | Should apply against cardinal HEAD. | 18:15 | |
| Hm. Should that first one make a note here about the past? | 18:16 | ||
| cotto | you have to pick the channel if you use the web interface | ||
| you can also use tools/dev/nopast.pl in Parrot and it'll dtrt | |||
| mostly | |||
| found it | 18:18 | ||
| treed | I thought I did. | ||
| k | |||
| dalek | rtcl: r541 | coke++ | trunk/config/makefiles/root.in: add a new rule to invoke spec_info |
18:19 | |
| rtcl: r542 | coke++ | trunk/ (4 files): Instead of generating a monolithic .log output file, generate one for each Also keep track of whether or not the test ran cleanly to completion, or segfaulted, or... |
|||
| cotto | treed, what's some ruby code to trigger the misbehavior? | 18:20 | |
| treed | a = "foo"; puts a | ||
| Is what I was using | 18:21 | ||
| puts gets processed by lhs | |||
| Which detects that it hasn't been declared in the lexical scope and declares it as a lexical. | |||
| Which means that it has no value and fails to run. | |||
| cotto | I *think* I know what's happening. | 18:25 | |
| treed | I'd be interesting in hearing it. | 18:27 | |
|
18:27
jrtayloriv joined
|
|||
| cotto | The problem is that you're calling the action for lhs too early. At the point when you call its action, you aren't guaranteed to have a full assigment, just a varname. | 18:28 | |
| You only want to call the lhs action after the whole assignment rule has been matched. | 18:29 | ||
| treed | Huh. | ||
| Where should I call it instead? | |||
| cotto | in the assignment rule | 18:30 | |
| treed | But that would call the assignment method. | ||
| cotto | rather, you should move the work from the lhs action into the assignment action | ||
| treed | Ah. | 18:31 | |
| That seems a bit odd of a way for the parser to work. | |||
| I'd expect it to say "okay, this whole thing matches, now let's call the rules and get the AST tree going" | 18:32 | ||
| Tene | not really. | ||
|
18:32
Andy joined
|
|||
| moritz | treed: then you couldn't change the grammar from within the action methods | 18:33 | |
| treed | You can do that? :o | ||
| moritz | (which "weird" languages like perl need to do) | ||
| you can install new operators in Perl 6 | |||
| which is a grammar change | |||
| treed | Huh, I suppose it would be. | ||
| moritz | (you can do much more in Perl 6, but so far Rakudo only implements that) | ||
| (like, macros) | |||
| cotto | treed, think of matching the grammar against a program as a progressive process | 18:34 | |
| treed | Well, thanks for helping me understand the error there. | ||
| As I said, I figured out that that direction wasn't going to be able to handle things as I'd like. | |||
| Because it was only handling assignment to variables, but you can mix and match keyed/member assignment as well. | |||
| So now I'm contemplating either trying to wrap that all up into a rule where it puts that data into a data structure and passes it to infix:=, or rewriting it to keep all the logic in actions.pm and farming out only simple assignment to PIR. | 18:36 | ||
|
18:36
toyam joined
19:09
MoC joined
|
|||
| Coke | bizarre. the segfaults have stopped showing up (for now). wrote something to help figure out which tests to unskip, hopefully will get back up and running shortly. | 19:11 | |
| (where shortly is probably at least 10 hours of running really slow code. =-) | |||
| NotFound | No one has an opinion about the patch I nopasted some hours ago? | 19:14 | |
| Coke | it looked harmless? | 19:15 | |
| (this was the panic one?) | |||
| NotFound | Yeah | ||
| Well, I'll clean and commit it. If something is bad, I'll hear you scream X-) | 19:17 | ||
| chromatic | +1 from me | 19:18 | |
| dalek | rrot: r40229 | NotFound++ | trunk/src/gc/alloc_memory.c: [cage] show size in Out of mem panics |
19:22 | |
|
19:29
solarion joined
|
|||
| Coke | wow, these segfaults are squishy. | 19:34 | |
| NotFound | I have too much swap. Before I get an out of mem, it starts trashing. | 19:41 | |
|
19:41
darbelo joined
|
|||
| moritz | ulimit++ | 19:44 | |
| NotFound | But I wanted a big number ;) | 19:45 | |
| moritz | use bignum; # ;-) | ||
| Coke | moritz: I am still getting segfaults here and there. this didn't happen before people fixed rakudo's segfaults. =-) | 19:47 | |
| moritz | :( | 19:48 | |
| why do I have to think of a waterbed now? | |||
|
19:48
mikehh joined
|
|||
| Coke | yah | 19:49 | |
| NotFound | Urgh, I'm unable to write correct printf formats at the first attempt | 19:50 | |
|
19:52
japhb joined
|
|||
| dalek | rrot: r40230 | NotFound++ | trunk/src/gc/alloc_memory.c: [cage] fix bad printf format from r40229 |
19:53 | |
|
20:33
toyam joined
20:39
whoppix_ joined
|
|||
| dalek | rdinal: f154a71 | (Ted Reed)++ | (2 files): Ensure that blocks embedded in strings are embedded with the return value, not the name of the block. |
20:42 | |
|
20:48
theory joined
21:16
particle joined
21:18
Casan joined
21:19
Whiteknight joined
21:21
solarion joined
|
|||
| treed | Is there a list of roles used pervasively in Parrot? | 21:24 | |
| Whiteknight | no | 21:25 | |
| PerlJam wonders what the real question is. | |||
| (that one seems like a prelude to something else) | |||
| treed | Heh. | 21:26 | |
| I want to know what role I should look for to see if something's a number/integer. | |||
| I could check for parent class, but roles seems like the proper way to handle that. | |||
| Also if something's a string. | 21:27 | ||
| chromatic | Does it have to *be* a simple type, or is it okay to use get_string or get_integer VTABLE entries? | ||
| treed | No. | 21:28 | |
| I'm trying to avoid 100 == '100' from returning true. | |||
| It should be throwing ArgumentError. | |||
| It's still proper for String's get_integer to return an Integer representation. | |||
| But not for == to use it. | 21:29 | ||
| So I want to write iseq vtables for CardinalString and CardinalInteger to ensure that they're only comparing themselves against things which they should be. | 21:30 | ||
| And to throw the appropriate exception otherwise. | |||
| Should knock off about a third of the tests which are currently failing. | 21:31 | ||
| moritz | I don't know much about parrot, but maybe it would be appropriate to make the get_string vtable in cardinal's integer die | 21:32 | |
|
21:32
pmichaud_ joined
|
|||
| moritz | and the get_integer in cardinal's string class | 21:32 | |
| or are conversions normally wanted, just not in this case? | |||
| moritz knows next to nothing of ruby | 21:33 | ||
| dalek | rrot: r40231 | whiteknight++ | branches/bsr_jsr_ret/t/op (2 files): [bsr_jsr_ret] convert two string-related test files |
||
| rrot: r40232 | jonathan++ | trunk/runtime/parrot/library/P6object.pir: [p6object] Allow specification of an already created metaclass in the register method, and create new metaclasses based upon the type of the current metaclass, so we handle derived ones better. |
|||
| treed | moritz: Conversions are wanted, usually explicitly via the .to_i method. | ||
| But there are cases where you don't need to explicitly convert. | 21:34 | ||
| Like sprintf | |||
| sprintf("%d", '123') will return '123' | |||
| moritz | well, in perl implicit conversion is always allowed | ||
| treed | Not in Ruby. | ||
| At least not in the case of == | |||
| And I can't think of other cases where implicit conversion is allowed. | 21:35 | ||
| I was surprised that the sprintf thing works. | |||
| moritz | the question is which is more work for you: either patch all the operations, or explicitly handle conversions where allowed, and forbid it in general | ||
| treed | I discovered that when I tried to change CardinalString's get_integer to return the size. | ||
| Yeah, I considered the latter. | 21:36 | ||
| I may still end up doing it that way. | |||
| moritz | but please wait for an answer from sombody else first, my parrot fu is really weak :( | ||
| treed | Probably would be less work, but I haven't really looked into how many cases of implicit conversion exist. | 21:37 | |
| treed nods. | |||
| I have to walk the dog right now, so I'll at least wait until after that. | |||
| BRB | |||
|
21:41
bacek joined
21:42
toyam joined
|
|||
| treed | Hm. | 21:57 | |
| Looks like implicit conversion is handled by .to_str or .to_int istead of to_s or to_i | 21:58 | ||
| Unsure if that helps me. | 21:59 | ||
|
22:01
theory joined
|
|||
| treed | Integer doesn't define either to_s or to_str | 22:01 | |
| String definets to_i but not to_int | 22:02 | ||
| chromatic | Strange thought for making vtable overrides from PIR work: use vtable swap to create a new vtable for the type when we know there's an override, then swap in a C function which can check for the override we already know is there. | 22:07 | |
| Messy? Yes. Will it work? I believe so. Do we want to maintain it long term? HEY LOOK OVER THERE IT'S L1 HOORAY! | |||
| jonathan | chromatic: Heh, messy it is. | 22:11 | |
| Sounds workable though. | |||
| (And if by vtable swap you mean, just chaning the ->vtable pointer in the PMC structure...Rakudo already does that one. :-)) | 22:12 | ||
| erm, that part | |||
| chromatic | I hate your opcode for that, but that's part of the reason we have vtables. | 22:13 | |
| jonathan | :-) | ||
|
22:13
Andy joined,
sekimura joined
|
|||
| bacek | good morning #parrot | 22:20 | |
| dalek | rrot: r40233 | whiteknight++ | branches/bsr_jsr_ret (8 files): [bsr_jsr_ret] update more files and delete one file that was only for testing bsr |
22:25 | |
| rrot: r40234 | whiteknight++ | branches/bsr_jsr_ret/t/op/basic.t: [bsr_jsr_ret] remove one test that only tested bsr |
|||
|
22:29
AndyA joined
22:38
rg1 joined
22:39
toyam joined
|
|||
| dalek | rrot: r40235 | tewk++ | trunk (3 files): [ncigen] deprecation fixes |
22:44 | |
|
22:45
kid51 joined
|
|||
| dalek | TT #788 closed by jkeenan++: Audit PDD30 compliance | 22:53 | |
| kid51 | chromatic ping | 22:54 | |
| chromatic | pong | 22:55 | |
| kid51 | Hi. Can you take a look at rt.perl.org/rt3/Ticket/Display.html?id=42597 ? Thanks. | ||
| chromatic | Will do. | 22:56 | |
| Let's close it; we have the -Wc++-compat flag detection working now. | 22:58 | ||
|
23:00
theory joined
|
|||
| kid51 | Done. Thanks. | 23:01 | |
|
23:04
Casan joined
|
|||
| dalek | rrot: r40236 | whiteknight++ | branches/bsr_jsr_ret/examples (9 files): [bsr_jsr_ret] update a few more files in examples/. the japh got a little bit less interesting. |
23:07 | |
| rrot: r40237 | bacek++ | branches/orderedhash_revamp/include/parrot/hash.h: [pmc] Move ORDEREDHASH enum to public include. It used in OHIterator |
|||
| rrot: r40238 | bacek++ | branches/orderedhash_revamp/src/pmc/orderedhashiterator.pmc: [pmc] Implement basic iteration over OrderedHash |
|||
| rrot: r40239 | bacek++ | branches/orderedhash_revamp/src/pmc/orderedhash.pmc: [pmc] Add more setters to OrderedHash |
|||
| rrot: r40240 | bacek++ | branches/orderedhash_revamp/src/pmc/orderedhash.pmc: [pmc] Implement restoring order after OrderedHash clone/thaw. |
23:11 | ||
| treed | Well, shit. | 23:21 | |
| dalek | rrot: r40241 | whiteknight++ | branches/bsr_jsr_ret (4 files): [bsr_jsr_ret] update more files, including ripping out some now-unused code from IMCC |
||
| rrot: r40242 | bacek++ | branches/orderedhash_revamp/src/pmc/orderedhash.pmc: [pmc] Reimplement integer index access in OrderedHash. |
|||
| treed | The String PMC has a to_int method which I need to implement CardinalString's to_i. | 23:22 | |
| However, CardinalString shouldn't have a to_int method. | |||
| So I need to block its use in a way that I can still use it. | |||
| I guess recast self as a String long enough to use to_int. | 23:23 | ||
|
23:27
Limbic_Region joined
|
|||
| bacek | $dayjob time | 23:32 | |
|
23:33
Andy joined
23:37
wayland76 joined
|
|||
| dalek | rdinal: 24b28eb | (Ted Reed)++ | src/classes/Object.pir: Remove a duplicated method from Object. |
23:39 | |
|
23:50
patspam joined
23:56
Andy joined
|
|||