Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2016-03-07

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
05:50 vendethiel joined #6macros
07:25 vendethiel joined #6macros
09:25 FROGGS joined #6macros
09:49 masak I'm hoping to be able to nab some 007 tuits today.
09:50 masak hoping to implement full assignment :)
10:51 masak just pushed assignment to array elements.
10:51 masak heh, that was easier than I thought :)
10:52 masak it's now possible to put the stringifier into an infinite recursion. I just tried.
12:32 masak joined #6macros
12:55 masak heh, how should infix:<==> behave in the face of nested self-references...
12:55 masak the simple rule used to be "the whole thing is equal iff everything is component-wise equal"
12:56 masak but if one of the components *is* the whole thing, then a stronger rule is needed
13:04 masak hm, this might fly: first, check whether we've already seen a reference to an array or an object. if we have, then compare by reference instead of recursing.
13:09 masak something feels off with that, but it seems to cover the cases I can think of, at least
13:40 masak ok, .push and .pop are now implemented -- .shift and .unshift are Low-Hanging Fruit if anyone wants it ;)
13:47 masak anyway, I'd say we're about halfway to having https://github.com/masak/007/issues/119
13:47 masak need to look at the object side of things, too, not just the array side of things
13:48 masak but the good news is that getting this far did *not* require an "index path" abstraction
15:11 FROGGS joined #6macros
16:28 masak hanoi.007 is now looking nicer than ever: https://github.com/masak/007/blob/examples/examples/hanoi.007
16:28 masak (yes, it works)
16:29 masak the new bits which didn't work before today are `my disk = state[from].pop();` and `state[to].push(disk);`
16:30 masak (instead of extremely cumbersome subroutines that did the same but without mutating arrays)
17:10 FROGGS joined #6macros
18:49 vendethiel joined #6macros

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary