Camelia, the Perl 6 bug

IRC log for #cardinal, 2011-02-21

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

All times shown according to UTC.

Time Nick Message
02:10 whiteknight joined #cardinal
02:33 bubaflub Tene: i've got a silly question for you
02:37 whiteknight bubaflub: and we have silly answers for you
02:37 bubaflub sweet.
02:37 bubaflub so i'm fixing some broken tests in Range
02:37 bubaflub toexc = getattribute self, '$!to_exclusive'
02:37 bubaflub is returning 'true'
02:38 bubaflub but when I do something like
02:38 bubaflub $I0 = toexc
02:38 bubaflub $I0 is 0
02:38 Tene bubaflub: why are you doing that anyway?
02:38 bubaflub what's the best way to compare this to true
02:38 bubaflub Tene: fixing broken tests in Range or setting $I0?
02:38 bubaflub i was just playing around with it
02:39 Tene why are you trying to compare it to true?
02:40 bubaflub that's a fantastic question... what am i doing?
02:40 bubaflub one sec, lemme recompile this thing
02:41 Tene bubaflub: in cardinal, it's almost always going to be wrong to try to use integers for truth
02:41 whiteknight left #cardinal
02:41 bubaflub ok, i reckoned as much
02:41 bubaflub i hope this is the last of the range fixes
02:42 Tene bubaflub: if you're want to do something conditional based on that attribute, do it like:
02:42 Tene if toexec, toexec_true
02:42 Tene where toexec_true is a label
02:43 Tene If you really want to get an integer based on the truth value of an object, use the istrue opcode
02:43 bubaflub okey dokey
02:43 Tene Does that help?
02:43 bubaflub yes, very much so
02:44 bubaflub great, that fixed t/range/infix-exclusive.t
02:44 Tene Any use of integers around conditionals, comparison, etc. should be considered suspect.  You almost always want to use the flow control / label versions of those ops.
02:46 bubaflub ok
02:47 Tene I personally expect we'll run into minor problems like that for the next couple of months.
02:48 bubaflub right, from the switch on the integer stuff
02:50 Tene Yes.
02:53 bubaflub Tene: and i think i just found another one, in Array
02:53 bubaflub handling a range in [] to access elements
02:57 Tene It's really great to me, seeing this all come together well.  Truth/falsity in Cardinal was always one of the big things that could have been done, but nobody ever got around to doing it.
03:01 bubaflub Tene: cool.  i'm just going through the tests that are failing but don't have a SKIP or TODO or Issue #
03:01 bubaflub Tene: also, feel free to comment via github on any of my commits; i'm open to criticism (constructive or otherwise)
03:16 bubaflub Tene: also, i got an answer from GitHub support - they can't migrate just the issues or the wiki (http://support.github.com/discussions​/issues-issues/521-migrate-issues-fro​m-cardinalcardinal-to-parrotcardinal)
03:21 Tene We could probably do that.  Just pull all the code into the cardinal/cardinal repo, and then have it moved.
03:21 bubaflub ah, ok
03:21 Tene Lemme give you the credentials
03:23 bubaflub ok, sweet
03:23 bubaflub i'll try that tonight
03:25 bubaflub also, we're up to 97.37% passing
03:44 Tene Awesome.
03:44 Tene That's a great number.
03:46 Tene bubaflub: one thing that needs to be added to the TODO or tasklist or whatever is prototyping (or actually implementing) the cardinal object model on 6model, instead of parrot objects.
03:46 bubaflub Tene: yeah, i'll add that
03:46 bubaflub Tene: should we convert from PCT -> NQP first?
03:46 Tene Parrot's object model isn't good enough for Cardinal; parrot plans to import 6model eventually, but we could start using it today.
03:46 bubaflub or are those tasks separate?
03:46 Tene bubaflub: from PGE to NQP; we're still using the rest of PCT
03:47 bubaflub yeah, i think it'll add some flexibility
03:47 bubaflub ok
03:47 Tene Those are very different tasks, and they're not dependant on each other at all.
03:47 Tene So, either could happen in any order.
03:47 Tene I expect the parser migration should be much easier, though
03:48 bubaflub ok.  i'm tracking down the last few (known) bugs with integer and true/false stuff
03:48 bubaflub after that, i'd be willing to tackle the NQP stuff
03:50 Tene Great.
03:50 Tene iirc, cardinal also had problems with the empty string being false
03:50 Tene where it should be true in ruby
03:50 Tene not sure about that one, though
03:50 bubaflub i'll try real quick off of HEAD
03:51 bubaflub crb(main):001:0> s = ""; puts 'oh hai' if s
03:51 bubaflub oh hai
03:51 Tene Ahh, that's good to know.
03:51 Tene That looks fine to me.
03:56 bubaflub Tene: just curious, when i edit src/classes/Range.pir (for example) do i need to do a full parrot setup.pir clean && parrot setup.pir
03:56 Tene I've been planning to experiment with 6model for... a while now.
03:56 bubaflub or is there a partial build?
03:56 Tene bubaflub: if there are problems with just running 'rake', then that's a bug.
03:56 Tene As far as I know, you should be able to just build, no need for clean.
03:56 bubaflub ok
03:57 bubaflub yeah, i don't "need" to clean
03:57 bubaflub but it's been my standard debugging procedure
03:57 Tene Sure; doesn't hurt
03:57 bubaflub add some debugging code, clean and rebuild
04:48 bubaflub left #cardinal
13:35 Hackbinary good afternoon #cardinal
14:10 tadzik o/
18:04 Hackbinary left #cardinal
18:26 Hackbinary joined #cardinal
18:35 Hackbinary left #cardinal
19:04 Hackbinary joined #cardinal
19:25 Tene Hackbinary: hi
19:53 Hackbinary left #cardinal
20:31 Hackbinary joined #cardinal
20:37 Hackbinary left #cardinal
20:48 Hackbinary joined #cardinal
20:54 Hackbinary left #cardinal
21:26 Hackbinary joined #cardinal
21:27 Hackbinary tene: ping
21:38 Tene Hackbinary: pong
21:38 Hackbinary hi
21:38 Hackbinary my internet connection is very flaky just at the moment
21:39 Hackbinary how are you?
21:42 Tene Doing pretty well.  Responding to some pages from work.
21:42 Tene I'm on-call right now.
22:00 Hackbinary left #cardinal
22:25 Hackbinary joined #cardinal
22:35 Hackbinary left #cardinal
23:00 Hackbinary joined #cardinal
23:03 Hackbinary left #cardinal
23:09 whiteknight joined #cardinal

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