pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/
Set by Tene on 29 July 2008.
00:00 sail0r joined 00:03 alester_ left
ruoso needs a fresher brain to implement map... zZzZz 00:06
00:07 bacek joined 00:11 jferrero left
rjbs use.perl.org/~rjbs/journal/37357 00:12
lambdabot Title: Journal of rjbs (4671)
rjbs That's the entry I was asking questions in furtherance of.
00:12 avar joined
literal "[...] multiple language. In explaining some of the issues I have with Ruby, both the scope of scope and the resolution of methods." 00:29
is that supposed to say "scope of scope"? 00:30
and also, multiple languageS
00:31 justatheory joined 00:33 xuser_ left 00:34 sail0r left
rjbs thanks :) 00:34
00:43 eternaleye joined 00:55 sri_work joined 01:04 wknight8111 joined 01:07 Lichtkind_ joined 01:08 Lichtkind_ left 01:19 sail0r joined 01:20 c9s joined 01:26 Lichtkind left 01:31 kanru joined 01:39 scrottie left 01:45 ruoso left 02:04 justatheory left, justatheory joined 02:06 drbean left 02:13 [particle]1 joined 02:29 wknight8111 left, sail0r left 02:31 [particle] left
pugs_svn r22158 | s1n++ | [spec] updated bool to support the latest tests and Bool class. 02:48
s1n moritz_: go ahead and add S02-builtin_data_types/bool.t to the spectest_regression 02:56
03:03 elmex_ joined 03:05 penk joined 03:15 finchely joined, Jedai left 03:16 wknight8111 joined 03:18 elmex left, elmex_ is now known as elmex 03:19 finchely left 03:30 hercynium_ left, hercynium_ joined, yahooooo left 03:32 scrottie joined 03:36 xuser joined 03:37 meteorjay joined 03:57 Auzon joined 04:16 yahooooo joined 04:24 elmex_ joined 04:26 Patterner left, Psyche^ joined, Psyche^ is now known as Patterner 04:32 yahooooo left 04:35 wknight8111 left 04:38 elmex left, elmex_ is now known as elmex 05:08 elmex_ joined 05:10 elmex left, elmex_ is now known as elmex 05:25 zamolxes joined 05:28 Psyche^ joined 05:31 BinGOs left 05:43 justatheory left 05:44 Patterner left, Psyche^ is now known as Patterner
rakudo_svn r30772 | chromatic++ | [Rakudo] Improved caller lookup algorithm in !OUTER; it's slightly more clear 06:17
r30772 | chromatic++ | this way. It also appears to clean up RT #58578 (reported by Moritz Lenz).
r30772 | chromatic++ | Neither Patrick nor I trust it completely though.
06:22 scrottie left 06:35 ashizawa joined
moritz_ rjbs: re use.perl.org, it's 'self', not '$self' 06:38
rjbs: in the Perl 6 example
06:52 masak joined 07:02 BinGOs joined 07:05 viklund left 07:06 enton joined 07:19 viklund joined 07:21 zamolxes left 07:31 cosimo joined
rakudo_svn r30778 | duff++ | Make the expressions in a loop statement optional and refactor loop_statement 07:33
08:00 meppl joined 08:04 sri_work left 08:14 scrottie joined 08:15 Alias_ joined 08:30 jferrero joined 08:44 barney joined 08:59 mj41_ joined 09:00 d4l3k_ joined 09:01 Auzon left, fullermd left, StephenPollei left, gbacon left, simcop2387 left, mj41 left, ilbot2 left, apeiron left, PZt left, cotto_work left, r0bby left, c1sung left, allbery_b left, pmichaud left, les left, sirhc left, ptman left, pasteling left, dalek left, fullermd joined, mj41_ is now known as mj41, d4l3k_ is now known as dalek, cotto_work joined 09:02 c1sung joined, ptman joined 09:03 pmichaud joined 09:06 Pzt3 joined 09:07 apeiron joined 09:09 Pzt3 is now known as PZt 09:10 PZt left 09:12 barney left, xuser left, bacek left, pochi left, Guest70230 left, ting_ left, Khisanth left, hercynium left, SamB left, Myoma left, szbalint left, spinclad left, PerlJam left, nnunley left, jiing left, sunnavy left, beppu left, idemal left, obra left, clkao left, pmichaud left, cosimo left, baest left, s1n left, broquaint left, buubot left, literal left, awwaiid left, pmichaud joined, barney joined, cosimo joined, xuser joined, bacek joined, pochi joined, ting_ joined, idemal joined, hercynium joined, Myoma joined, Khisanth joined, Guest70230 joined, jiing joined, s1n joined, awwaiid joined, spinclad joined, broquaint joined, literal joined, obra joined, sunnavy joined, clkao joined, SamB joined, nnunley joined, szbalint joined, PerlJam joined, beppu joined, baest joined, buubot joined 09:13 zamolxes joined, Myoma left, PZt joined 09:14 simcop2387 joined 09:16 Auzon joined, pasteling joined 09:17 gbacon joined, StephenPollei joined 09:18 sirhc joined 09:19 ilbot2 joined 09:20 meppl left, les joined 09:21 allbery_b joined 09:38 ting_ left 10:04 OuLouFu left 10:06 bacek left 10:10 penk left 10:23 wknight8111 joined 10:28 barney left 10:37 dmq joined 11:05 barney joined 11:10 iblechbot joined
rjbs moritz_: thanks 11:20
11:36 Alias__ joined 11:55 Alias_ left 11:56 masak left 12:12 alanhaggai joined 12:15 barney left 12:34 Jedai joined
rakudo_svn r30785 | pmichaud++ | [rakudo]: spectest-progress.csv update: 157 files, 3129 passing tests 12:35
moritz_ rakudo.de/rakudo-progress-nonstacked.png that looks nice ;) 12:36
12:37 clintongormley joined 12:38 holli joined, clintongormley left 12:51 rjbs left 12:52 Alias__ left 12:55 ashizawa left, eternaleye left 13:08 jan_ left 13:09 jferrero left 13:17 alanhaggai_ joined
rakudo_svn r30786 | coke++ | [cage] fix trailing whitespace causing smolder failures. 13:24
13:27 alanhaggai__ joined 13:32 alanhaggai left, alanhaggai__ left 13:34 eternaleye joined 13:40 cognominal left 13:42 alanhaggai_ left 13:45 cognominal joined 13:47 Auzon left 14:01 BinGOs left, BinGOs joined 14:08 scrottie left 14:11 TJCRI joined 14:34 jan joined 14:35 Exodist joined 14:42 frobnitz joined 15:02 xuser left 15:10 meppl joined 15:12 hercynium_ left 15:14 kst left 15:18 xuser joined 15:22 justatheory joined
pugs_svn r22159 | moritz++ | [t/spec] add subset mmd tests 15:22
r22160 | moritz++ | [t/spec] fixed previous commit 15:24
15:40 Lichtkind joined 15:46 zamolxes left 15:53 alanhaggai joined 15:54 holli left 15:59 kanru left 16:23 Caelum left 16:25 Caelum joined 16:27 enton left 16:33 pmurias joined 17:08 pmurias left 17:10 rindolf joined 17:19 ruoso joined 17:26 sri_work joined 17:28 cosimo left 17:29 ruoso_ joined 17:31 sri_work left, sri_work joined 17:40 ruoso left, ruoso_ left 17:41 ruoso joined, ruoso left 17:42 ruoso joined 17:43 TheFluff joined
Khisanth pugs: my @a=([1,2],[3,4]); @a[0;0..1]; 17:47
p6eval pugs: OUTPUT[*** ā¤ Unexpected ";"ā¤ expecting "x", octal digit, "o", "b", fraction, exponent, term postfix, operator or "]"ā¤ at /tmp/xa4yI1WkYg line 1, column 27ā¤]
Khisanth o_O
moritz_ no multi dimensional arrays and indexes yet
and no slice context either
Khisanth but why is it expecting an oct? 17:48
or fraction or exponent those seem like strange things to be expecting there
or does p6 accept fractional array indices? :P 17:49
moritz_ when you write '@a[0', it's a valid continuation from that point to write an octal digit, I suppose
or an exponent 17:50
for example '@a[0**1]' would be a valid continuation with an exponent
17:51 barney joined
TimToady it should not be expecting an octal digit unless it sees 0o 17:54
moritz_ that's probably a pugs anachronism
but given that all octal digits are also decimal digits...
pugs: say 010
p6eval pugs: OUTPUT[10ā¤]
moritz_ pugs: say 1+010 17:55
p6eval pugs: OUTPUT[11ā¤]
17:56 eternaleye left
TimToady btw, I'm making a fudgable pge.t out of what you checked in 17:58
moritz_ cool 17:59
I already thought about adding #emit rakudo $test_number in these skip/todo junctions 18:00
erm, #?rakudo emit 18:02
TimToady I'm just translating it all to inline code with appropriate skip/todo directives
only comes out to about 2500 lines of code :) 18:04
including all the old data as comments
moritz_ so you're not even eval'ing? 18:05
TimToady I'm just using a variant of pge-tests.t that spits out code instead
it inserts evals where it needs them
(I hope)
some trickiness to get the quoting right 18:06
since the tests depend on being data rather than code in spots, sigh
already found a few bugs in STD with it :) 18:07
like it couldn't parse / a : b /
or <- [a..z]> 18:08
[particle]1 yay for tests! 18:09
moritz_ now I know why you want inline code ;)
18:09 [particle]1 is now known as [particle]
TimToady and there are pervasive regex-as-string assumptions, like /foo # bar/ eating up final / 18:10
18:11 r0bby joined
ruoso TimToady, do you plan to add Iterator (maybe a Role, instead of a Class) type to the builtin types? 18:12
TimToady oh, likely 18:13
rakudo_svn r30793 | pmichaud++ | [rakudo]: Update svn:ignore to ignore auto-generated 'Test.pir'
ruoso TimToady, right.. it's just because I'm assuming that in SMOP ;)
TimToady, btw... I'm assuming that an iterator in item context should return one item at a time, even if the effective "producer" (like a map block) returns two items in an iteration... it would only return the capture when in slice context... 18:15
pmichaud TimToady: are you using the rx_* files from parrot?
I'm not entirely sure of the status of the pge_tests file that is in t/spec 18:16
[particle] me neither, i haven't looked at it since moritz imported it
ruoso TimToady, actually... "an iterator in item context should return" means "my $iterator = something(); foo(=$iterator);"... which should probably be written as "an iterator in item context should have prefix:<=> returning one item at a time" 18:19
TimToady pmichaud: I don't know where moritz_ got pge_tests from, but that's what I'm translating 18:20
pmichaud if it came from the pugs repository, I suspect it's a bit out of date 18:21
[particle] what does svn log say?
pmichaud I can check in the rx_* files from parrot
[particle] updates his pugs wc 18:22
pmichaud oh, never mind -- the version I'm looking at now looks okay 18:23
TimToady *nod*
18:29 Myoma joined 18:46 meppl left
moritz_ yes, it was the freshly imported pge tests (sorry, should have made that clearer) 18:48
18:50 ludan joined 18:51 Lichtkind left
TimToady heh, /:s[]foo/ is no longer legal 18:53
pmichaud what is it now? 18:55
TimToady [] is not legal rx since it's null inside
pmichaud (I've been through too many syntax changes to remember accurately :-)
TimToady well, :s::foo is the next workaround in the tests 18:56
pmichaud ah, yes... at one time :s[] was meant to be similar to :s()
TimToady but I just changed that one to :s foo since it wasn't actually caring about the ws
bug :s() is presumably false
moritz_ pmichaud: if you implement Object.defined in trunk I can push some test changes that fix is ($stuff, undef,...) 18:57
TimToady *but
pmichaud moritz_: doing that now. I'm merging the failthrow branch back into trunk, and then I can easily do an Object.defined
moritz_ pmichaud: ok
TimToady yow, :perl5 as an internal modifier
18:58 silug left
TimToady maybe I'll end up with an entire P5 grammar embedded in STD :) 18:58
pmichaud I don't think that PGE ever implemented :perl5
I think we just skip it
TimToady STD gets upset when it sees things like \z
well, it was \Q in this case 18:59
ruoso have sketched some notes about "map" in www.perlfoundation.org/perl6/index....p_operator ... and appreciate very much any comment...
lambdabot Title: SMOP map operator / Perl 6
rakudo_svn r30797 | pmichaud++ | [rakudo]: Merge failthrow branch back into trunk.
18:59 yahooooo joined
TimToady funny it accepted \A, but I guess that's "not an alarm character" o_O 19:00
pmichaud ...nothing to be alarmed about. :-) 19:01
19:01 ludan left
TimToady well, except that we should probably catch \A and warn about obsolete P5isms 19:01
19:01 barney left
TimToady (in the absence of :P5, of course) 19:02
well, I know how to implement :P5, I just don't wanna :)
PerlJam it's weird that we're parsing parts of a some other language just so we can warn.
moritz_ otoh it feels bad to reserve all these nice control sequences just to catch p5isms 19:03
TimToady could warn only if there's a subsequent \z
though they don't always occur together
but the \a match is relatively useless in any case 19:04
and the \A not-a-bell match is even uselesser
moritz_ aye 19:05
TimToady so I'll just remove \A as a P6ism, I think
pmichaud +1 19:07
perhaps get rid of \a also? 19:08
ruoso TimToady, could you please, when you have some free time, take a look at the wiki page I just posted above about map? I should get to implement it in the weekend, so it would be nice to have some sanity checking on it... ;)
PerlJam wonders how many times people have used 19:09
(I can't recall a single time I've used it)
ruoso cannot remember what is...
pmichaud I've used it a couple of times in strings, but I don't think I ever used it in a regex
PerlJam ruoso: and map { $^a + $^b } @stuff falls under the lazy slice rubric? 19:16
ruoso PerlJam, I forgot to mention that map will consume as many items of the .arity of the block signature... 19:17
19:18 yahooooo left
ruoso PerlJam, but this specific example will take a iterator for @stuff in item context, and consume twice for each call to the block 19:18
pmichaud that's what rakudo's map is currently doing. 19:19
ruoso pmichaud, is rakudo using iterators already?
or you mean just by using two items from the list as arguments?
pmichaud rakudo doesn't make a strong distinction between lists and iterators 19:21
ruoso but it isn't implementing lazyness in map yet, right?
pmichaud no, but that's because we don't have a good gather/take model yet
and we don't really have lazy lists yet 19:22
ruoso pmichaud, in smop map lazyness won't be implemented in terms of gather/take...
using iterators makes that easier
pmichaud, have you seen the notes on the wiki page I've posted above?
pmichaud not yet -- been busy trying to get some stuff into rakudo for moritz
and I have to go pick up kids in about 3 mins
ruoso ok... but try to take a look at it later... it should help you in rakudo... 19:23
pmichaud looking now.... but conceptually I don't see how Iterator differs significantly from List 19:24
that is, if Iterator is a class. I could see List implementing an Iterator role, however.
ruoso pmichaud, that would mean that the state of the iterator would be stored in the List?
pmichaud no, it's simply that when we ask a List for an iterator, it returns a clone of itself. 19:25
ruoso oh... ok... 19:26
pmichaud unless, of course, the intention of the spec is that modifying a List also modifies any previously created iterators, in which case I'll have to rethink that
19:26 TJCRI left
ruoso pmichaud, that's indeed an important point.. 19:27
pmichaud I haven't seen or heard any clear examples one way or the other
but it's a question of:
my @a = 1..5; for @a { .say; @a = (); }
...what gets output? 19:28
ruoso that's something spec related...
pmichaud exactly. I haven't seen it clearly laid out anywhere.
ruoso I mean... both ways could be valid...
pmichaud and the choice will decide the implementation of iterators in Rakudo :-)
ruoso pmichaud, but wait...
this example is not precise...
because you're replacing the list entirely 19:29
my @a = 1..5; for @a { .say; @a[3] = 1 }
that should be a better example
pmichaud sure, that's another possibility
ruoso pugs: my @a = 1..5; for @a { .say; @a[3] = 1 } 19:30
p6eval pugs: OUTPUT[1ā¤2ā¤3ā¤1ā¤5ā¤]
ruoso that actually looks natural to me...
pmichaud pugs: my @a = 1..5; for @a { .say; @a = (); }
p6eval pugs: OUTPUT[1ā¤2ā¤3ā¤4ā¤5ā¤]
ruoso the iterator points to the list which is no longer stored in the variable @a 19:31
pmichaud then why did @a[3] = 1; modify the iterator?
ruoso it didn't
it modified the list
pmichaud pugs: my @a = 1..5; for @a, 6 { .say; @a[3] = 1; }
ruoso as for is lazy...
p6eval pugs: OUTPUT[1 2 3 4 5ā¤6ā¤]
pmichaud pugs: my @a = 1..5; for (@a, 6 ){ .say; @a[3] = 1; } 19:32
p6eval pugs: OUTPUT[*** ā¤ Unexpected ";"ā¤ expecting term postfix, operator or "}"ā¤ at /tmp/cO9OOho02P line 1, column 33ā¤]
pmichaud pugs: my @a = 1..5; for (@a, 6) { .say; @a[3] = 1; }
p6eval pugs: OUTPUT[1 2 3 4 5ā¤6ā¤]
Myoma pugs: my @a = 1..5; for @a, @a, 6 { .say; @a[3] = 1; }
p6eval pugs: OUTPUT[1 2 3 4 5ā¤1 2 3 1 5ā¤6ā¤]
pmichaud those all look wrongish to me.
ruoso pmichaud, @a,6 expanded the array at that time... not lazily 19:33
pmichaud no, it stringified @a
i.e., @a,6 was treated as a list with two elements
ruoso ah..ok
yeah...
that's simply wrong
pmichaud anyway, the question is whether the iterator takes a reference to the list (and modifications to the list modify what the iterator sees) or if it is a snapshot of the list at the time of creation 19:34
and with that I have to run.
ruoso indeed...
rakudo_svn r30799 | pmichaud++ | [rakudo]: Initial implementation of .defined for Object.
ruoso however, "snapshot" doesn't seem to fit well with lazy lists
pmichaud the snapshot can itself be lazy 19:35
it doesn't require eagerness
PerlJam but the other way seems action-at-a-distancey
pmichaud if I say my @b = (@a, 1..5, 8..10); @b can still be lazy with respect to @a
but changes to @a shouldn't cause @b to change
I'm late -- bbl 19:36
ruoso pmichaud, I can't really see how to make snapshots of a network flow... (considering a network flow can be seen as a list)
(which <== implies)
pmichaud, and that should apply to database-backed lists as welll 19:37
pmichaud, my @b = (@a, 1..5, 8..10) can only be lazy if you have COW... 19:38
pmichaud, which is not always possible... 19:39
PerlJam, by "other way" you mean which way? ;) 19:42
19:43 Auzon joined 20:00 riffraff joined
pmichaud anyway, I can argue it either way, so it probably needs clarification from p6l 20:04
(back, btw)
moritz_: Object.defined is now available 20:05
it might have some bugs... but that's what tests are for :-)
20:11 jan left, jan joined 20:12 jan left 20:13 jan_ joined 20:32 dduncan joined
pugs_svn r22161 | moritz++ | [t/spec] correct test wrt undef 20:33
pasteling "moritz_" at 89.13.234.179 pasted "pmichaud: those tests fail wrt .defined" (37 lines, 2K) at sial.org/pbot/32095 20:35
moritz_ pmichaud: see paste
moritz_ goes to bed now 20:36
20:36 Chillance joined
pmichaud looking 20:36
moritz_: yes, there's a problem with uninitialized scalars
I'll need jonathan to fix it
or to suggest ways to fix it
20:40 silug joined, ruoso left 20:42 meppl joined 20:43 dduncan left 20:45 yahooooo joined 20:49 jferrero joined 21:07 riffraff left, yahooooo left 21:13 iblechbot_ joined 21:17 yahooooo joined
pugs_svn r22162 | lwall++ | [STD] bugs found by rx.t 21:23
r22162 | lwall++ | [rx.t] bugs found by STD
21:27 iblechbot left
pugs_svn r22163 | lwall++ | [pge-tests] no longer needed but moritz++ anyway 21:28
21:31 _Chillance_ joined
pugs_svn r22164 | lwall++ | [rx.t] forgot to use Test and plan 21:32
Auzon TimToady++ # making bugs cancel each other out 21:33
21:48 Chillance left 21:52 araujo left 22:04 araujo joined 22:20 iblechbot_ left
s1n pmichaud: any work done to support smoke with those test results? 22:33
moritz_: unless you want me to make a bug, add S02-builtin_data_types/bool.t to spectest_regression 22:34
pugs_svn r22165 | Auzon++ | [spectest] tests for regexes and closures in .trans. Also one test to ensure that y/// is gone 22:36
Auzon Also, a ++ for whoever added the PGE tests. I assume that was the huge jump in tests today :) 22:38
22:44 Exodist left
s1n Auzon: i think that was moritz 23:04
www.parrotvm.org/svn/pugs/log/t?lim...;rev=22165
lambdabot Title: log: /pugs/t (Rev: HEAD, via SVN::Web)
Auzon moritz_++ then :) 23:05
23:10 rindolf left 23:23 Auzon left 23:29 kanru joined 23:44 kanru left