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:05 justatheory left 00:23 ruoso joined 00:25 drbean joined 00:27 bacek joined 00:29 cognominal left 00:35 cognominal joined
pugs_svn r22135 | ruoso++ | [smop] updating test/30_array_map to reflect the fact that "map" receives and returns an iterator 00:35
00:41 hercynium_ joined 00:44 felipe joined 00:55 leedo left
pugs_svn r22136 | ruoso++ | [smop] starting to implement "map" 01:00
01:11 kanru joined
ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @@a.perl(); 02:03
p6eval pugs: OUTPUT[\(1, -1, 2, -2, 3, -3, 4, -4, 5, -5)␤]
ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @a[0;0] 02:04
p6eval pugs: OUTPUT[*** ␤ Unexpected "["␤ expecting "::"␤ Variable "@a" requires predeclaration or explicit package name␤ at /tmp/MEWNYIenWL line 1, column 42␤]
ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[0;0]
p6eval pugs: OUTPUT[*** ␤ Unexpected ";"␤ expecting "x", octal digit, "o", "b", fraction, exponent, term postfix, operator or "]"␤ at /tmp/kZyL475VEt line 1, column 45␤]
ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[00]
p6eval pugs: OUTPUT[1␤]
ruoso it looks like pugs doen't have slice context yet... :(
rakudo: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[0;0]
p6eval rakudo 30744: OUTPUT[Statement not terminated properly at line 1, near "@@a = map "␤␤current instr.: 'parrot;PGE::Util;die' pc 119 (runtime/parrot/library/PGE/Util.pir:82)␤]
ruoso elf: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[0;0] 02:05
p6eval elf 22136: OUTPUT[Use of uninitialized value $_ in subtraction (-) at (eval 121) line 3.␤Use of uninitialized value $_ in anonymous hash ({}) at (eval 121) line 3.␤Undefined subroutine &GLOBAL::map called at (eval 121) line 3.␤ at ./elf_f line 3861␤]
ruoso elf: my @@a = map { $_, $_ }, 1..5; say @@a[0;0]
p6eval elf 22136: OUTPUT[Use of uninitialized value $_ in anonymous hash ({}) at (eval 121) line 3.␤Undefined subroutine &GLOBAL::map called at (eval 121) line 3.␤ at ./elf_f line 3861␤]
02:05 imperator joined 02:09 alc joined 02:12 jferrero left 02:16 imperator left
ruoso sanity check: iterators should return the capture for that iteration, which may contain more than one item. it's then up to the calling code to define how to use that... 02:18
for instance... when "map" consumes the input iterator, it stores the capture returned by the input iterator and consumes the elements in there before asking for another round... 02:19
but most of the time this is a non-issue, because the generic lazy list and lazy slice implementations will take care of hiding that complexity... 02:20
since an iterator in slice context returns a bidimensional array, while in list context flattens the slice to a single dimension... 02:21
the problem with that is when you want to use that in item context... 02:23
hmm 02:24
actually...
it's not a problem
we have to define the context first...
map receives an iterator *in item context*... which means that in low-level "map { ... } (1,2,3)" makes something like "map((1,2,3).Iterator.Item, {...})"" 02:26
and that iterator in item context knows that it should flatten the return for each iteration to a single value (including re-trying when that step returned an empty capture... which is something "grep" will do a lot) 02:27
pugs_svn r22137 | ruoso++ | [smop] "map" receives "Iterator in item context" (updating test code)... 02:30
ruoso sleep & (it's always good to know that the reality fits in the model you're working on) 02:41
ruoso . o O ( for some concepts of reality )
ruoso z Z z
s1n anyone around with knowledge of List.pir? 02:45
02:53 alc left, redicaps joined 03:03 elmex_ joined 03:05 yahooooo left 03:06 yahooooo2 joined 03:07 agentzh left, agentzh joined 03:10 redicaps left 03:18 elmex left, elmex_ is now known as elmex
s1n anyone remotely familiar with List.pir? 03:24
03:31 yahooooo2 left 03:32 yahooooo joined
s1n is it better to skip a test or mark it as todo<bug>? 03:37
03:40 sail0r joined
literal roughly, you skip a test on a platform where it is irrelevant, you mark it todo when it is to test functionality that has not been implemented fully 03:42
PerlJam s1n: What about List.pir? 03:46
s1n PerlJam: have you messed with flatten?
PerlJam briefly 03:47
s1n does that flatten array references?
PerlJam it flattens Lists :) 03:48
s1n i've been playing with it and i dont think it does, but there are comments that the impending lazylist effort will radically change it
does it flatten Lists of references to Lists though?
PerlJam it doesn't recurse or anything. It's just one level deep flattening. 03:49
s1n okay, that answers my question 03:50
PerlJam there are some hacks for flattening a Range or Array. These hacks will be what are radically altered once we get true lazy lists (I'd imagine) 03:51
s1n yeah i'll probably just write a ticket and leave it at that
03:52 yahooooo left 03:54 [particle] left
s1n PerlJam: does slicing depend on the lazylist effort? 03:55
PerlJam dunno
03:56 eternaleye_ left 03:57 eternaleye joined
pugs_svn r22138 | s1n++ | [spec] fudged array_mmd.t and array_ref.t for rakudo 04:01
04:13 ruoso left 04:15 iblechbot joined 04:30 sail0r_ joined 04:32 iblechbot left 04:35 sail0r__ joined 04:39 sail0r__ left 04:44 alanhaggai left 04:52 sail0r left 05:01 sail0r_ left 05:29 Psyche^ joined 05:32 Patterner left, Psyche^ is now known as Patterner 05:40 zostay_ joined 05:41 zostay left 05:44 ting_ joined, ting left
pugs_svn r22139 | moritz++ | [t/spec] minor fudging nits 06:36
06:37 c9s left 06:38 c9s_ joined 06:39 ashizawa joined 06:40 c9s_ is now known as c9s
rakudo_svn r30747 | moritz++ | [rakudo] one more test for spectest_regression, s1n++ 06:41
07:11 viklund joined 07:17 BinGOs joined 07:33 bacek_ joined 07:34 bacek left 07:46 Lunchy left 07:51 zamolxes left
moritz_ 343 files in spec/, 428 test files outside of spec/ 08:00
makes me think it's a never ending task 08:01
moritz_ is slightly frustrated
pugs_svn r22140 | moritz++ | [t] moved loopscope.t to spec/, simplfied a bit 08:04
08:14 Lunchy joined 08:15 sri_work left, iblechbot joined 08:23 kane_ left 08:30 Lunchy left 08:35 Lunchy joined 08:40 IRSeekBot joined 08:56 zamolxes joined
pugs_svn r22141 | moritz++ | [t] move pugs specific tests to pugs/ 09:12
09:13 ruoso joined 09:17 cosimo joined
pugs_svn r22142 | moritz++ | [t] moved tests around, merged single test into another file 09:18
r22143 | moritz++ | [t] delete merged test; should have been done in r22142 already. 09:19
09:33 Maghnus left 09:34 Maghnus joined 09:39 ruoso left 09:40 bacek_ left 10:13 meteorjay left 10:20 BinGOs left 10:29 BinGOs joined 10:33 c9s left 10:38 c9s_ joined 10:40 c9s_ is now known as c9s 11:03 araujo left 11:07 zamolxes left 11:08 zamolxes joined 11:10 jferrero joined 11:11 ruoso joined 11:41 ruoso left 11:45 whereiskurt_ joined 12:00 BinGOs left, BinGOs joined, Lichtkind joined 12:06 abra joined 12:14 kane_ joined 12:34 Jedai joined 12:55 ashizawa left 13:03 whereiskurt_ left 13:13 jferrero left
pugs_svn r22144 | moritz++ | [t] moved operators/hyper.t to spec/ 13:16
13:21 abra left
pugs_svn r22145 | moritz++ | [t] moved config.t to spec/, deleted redundant tests 13:22
r22146 | moritz++ | [t] moved goto.t to spec/ 13:24
r22147 | moritz++ | [t] move blocks/splat_rw.t to spec/ 13:30
r22148 | moritz++ | [t] merged blocks/splatty_with_type.t into spec/ 13:34
r22149 | moritz++ | [t] merged blocks/slurpy_param.t into spec/ 13:42
moritz_ uhm, I merge some tests into spec/S06-signature/slurpy-params.t, and now it dies while running the first ones 13:50
how do I revert a commit?
13:55 masak joined
pugs_svn r22150 | moritz++ | [t/spec] partially reverted r22149 because it borked rakudo's 13:59
r22150 | moritz++ | spectest_regression
pmichaud any suggestions how to fix t/spec/S04-declarations/my.t:37 ? 14:00
moritz_ what's wrong with it? 14:01
pmichaud sub foo is declared later in the test
moritz_ uhm
pmichaud so it's not dying properly because sub 'foo' exists.
moritz_ I'll rename the second sub foo 14:02
pmichaud (yes, we can argue that there's a signature mismatch there and so it should die anyway, but ...)
pugs_svn r22151 | moritz++ | [t/spec] fixed name clash, pmichaud++ 14:03
rakudo_svn r30750 | pmichaud++ | [rakudo]: Eliminate :immediate subs from generated output. 14:04
r30750 | pmichaud++ | * Now use .loadinit() attribute of PAST::Block.
14:04 jferrero joined 14:10 masak left 14:22 masak joined
pugs_svn r22152 | moritz++ | [t] move sub_return_values.t to spec, corrected isa_ok calls to use type names 14:25
14:30 REPLeffect left
pugs_svn r22153 | moritz++ | [t/spec] fudged return.t for rakudo 14:31
14:31 TJCRI joined
rakudo_svn r30751 | moritz++ | [rakudo] two more tests for spectest_regression 14:36
15:12 REPLeffect joined, REPLeffect left, REPLeffect joined 15:21 kidd__ joined
rakudo_svn r30753 | pmichaud++ | [rakudo]: spectest-progress.csv update: 153 files, 2707 passing tests 15:24
15:26 viklund left 15:28 justatheory joined 15:36 dr_df0 joined, Exodist joined 15:45 araujo joined
pugs_svn r22154 | moritz++ | [t/TASKS] smore more overall TASKS 15:48
15:49 masak left 15:54 abra joined 16:03 jan_ left, ruoso joined 16:07 jan_ joined 16:14 sri_work joined 16:15 dr_df0 left, c9s left
ruoso Howdy! 16:25
moritz_ !ydwoH 16:27
ruoso still digesting the amount of concepts around the implementation of "map"! 16:28
ruoso . o O ( I just hope all the conceptual torture saves us a lot of code in the future ) 16:29
16:33 kidd__ left 16:36 rindolf joined 16:59 cosimo left 17:09 c9s_ joined 17:25 meppl joined 17:32 pmurias joined
pmurias ruoso: hi 17:33
ruoso hi pmichaud 17:34
hi pmurias
17:44 zamolxes left
ruoso pmurias, did you follow my last thoughts on map? 17:46
pmurias ruoso: yes 17:55
seems ok 17:57
i'm pretty muddled now, so i might me wrong ;) 18:01
18:01 pmurias left 18:02 pim joined
pim Hi, everybody. 18:02
moritz_ hi pim 18:03
18:09 c9s joined 18:10 pim left 18:11 justatheory left
pugs_svn r22155 | moritz++ | [t/spec] allow rakudo to run most of pge's regex tests 18:17
r22156 | moritz++ | [t/spec] test files should end with .t, stupid me. 18:18
18:20 c9s_ left, zamolxes joined, c9s_ joined 18:29 alester joined 18:33 c9s left 18:34 zamolxes left
rakudo_svn r30761 | moritz++ | [rakudo] add pge-tests.t to spectest_regression 18:34
r30761 | moritz++ | The immense number of skips is mostly explained by the fact that if we
r30761 | moritz++ | wouldn't skip > 240 tests, the test segfaults.
r30761 | moritz++ | +307 skip, 105 todo, 333 pass
18:37 yahooooo joined 18:38 zamolxes joined 18:41 c9s_ left 18:47 [particle] joined 18:51 Exodist left, Exodist joined 18:52 kst left, kst joined
rakudo_svn r30764 | pmichaud++ | [rakudo]: code generated by --target=pir now runs from parrot (RT #53040) 18:54
18:57 kst left, kst joined 18:58 zamolxes left, TJCRI left, Maghnus left, ting_ left, hercynium left, Myoma left, Khisanth left, Guest70230 left, SamB left, idemal left, frobnitz left, jiing left, spinclad left 18:59 obra left, sunnavy left, clkao left, nnunley left, szbalint left, PerlJam left, beppu left, rindolf left, jferrero left 19:06 drbean left, s1n left, awwaiid left, broquaint left, aindilis left, baest left, buubot left, literal left, zamolxes joined, rindolf joined, TJCRI joined, jferrero joined, Maghnus joined, ting_ joined, drbean joined, idemal joined, hercynium joined, Myoma joined, Khisanth joined, Guest70230 joined, jiing joined, s1n joined, awwaiid joined, spinclad joined, broquaint joined, aindilis joined, literal joined, obra joined, sunnavy joined, clkao joined, SamB joined, nnunley joined, szbalint joined, PerlJam joined, beppu joined, baest joined, buubot joined 19:07 TJCRI left, aindilis left, smg left, aindilis` joined, pochi left, pochi joined, smg joined, abra left, merlo_ joined
moritz_ pmichaud++ # r30764 19:07
19:08 justatheory joined, aindilis` is now known as aindilis, justatheory left, justatheory joined, IRSeekBot left, TJCRI joined 19:12 eternaleye left 19:20 scrottie joined 19:23 [particle]1 joined 19:24 yahooooo left 19:25 IRSeekBot joined 19:27 viklund joined 19:34 IRSeekBot left 19:37 scrottie left 19:40 [particle] left 19:41 merlo_ left 19:49 [particle] joined 19:54 scrottie joined 20:07 [particle]1 left 20:12 kanru left, justatheory left 20:18 justatheory joined 20:20 rindolf left 20:41 zamolxes left 20:43 diakopter is now known as diakopter_af, diakopter_af is now known as diakopter, diakopter is now known as diakopter_afk, diakopter_afk is now known as diakopter_af 20:44 diakopter_af is now known as diakopter 20:45 diakopter is now known as diakopter_afk, diakopter_afk is now known as diakopter 20:55 yahooooo joined 20:59 sri_work left 21:01 fullermd left 21:13 ludan joined 21:27 ruoso left
rakudo_svn r30769 | jonathan++ | [rakudo] Free allocated memory in Perl6MultiSub, so we don't leak. 21:27
r30770 | jonathan++ | [rakudo] Fix trailing whitespace. 21:28
21:30 TJCRI left 21:31 meppl left 21:36 rjbs joined
rjbs Hi, totally random drop-in question from someone who doesn't follow p6 21:36
does this dwiw:
moritz_ go right ahead
rjbs with ($obj) { .some_method_obj_provides } 21:37
moritz_ yes
rjbs fantastic, thank you
rjbs is trying to write up an explanation about why sigils are so nice, mostly for his .pm group
as long as I'm asking: is $self implicit in its own method bodies? 21:38
method foo { .some_other_method }
s/implicit/default invocant/
moritz_ no, it's not
rjbs Ok. Is that planned but not implemented, or not planned but likely to change?
moritz_ you'd have to write method my_method ($_:, $stuff) { ... }
it's not planned
rjbs thanks
moritz_ but there's the 'self' keyword/builtiin/whatever 21:39
rjbs sure
moritz_ and you can call $.method for example (which is an evil hack, but should work) 21:40
if it returns a scalar
or @.method if it returns a list
TimToady s/with/given/ 21:44
and the parens aren't necessary, so: given $obj { .some_method_obj_provides } 21:45
21:55 Maghnus left 22:01 ludan left 22:06 raiph joined 22:13 [particle]1 joined 22:22 alester_ joined 22:25 StephenPollei left 22:27 StephenPollei joined 22:31 [particle] left
raiph hi 22:36
moritz_ hi
raiph i've read your recent perl5-6 posts. great stuff. 22:37
moritz_ thanks
literal me too, keep up the good work
raiph moritz: are you involved with november? 22:38
moritz_ I'm slowly running out of tuits/topics/motivation for the blog...
raiph: yes, a bit
I wrote a grammar for HTML::Template, and a few tests
raiph moritz: aha.
moritz_ and I discuss bugs that masak finds in rakudo ;) 22:39
22:42 alester_ left
rjbs TimToady: thanks 22:44
s1n moritz_: S02-builtin_data_types/array-mmd.t is fudged for rakudo as well, but doesn't have any tests that pass unfudged, just fyi 22:51
moritz_ s1n: yes, I noticed
s1n: I added the other (array-ref.t iirc) to spectest_regression 22:52
I should teach autounfudge.pl to also look at files outside of spectest_regression
so that they'll get unfudged when the tests start passing, but don't waste CPU cycles as long as no test is run 22:53
anyway, good work, s1n++ 22:54
22:56 Maghnus joined
s1n moritz_: there's a big problem with me running autounfudge, there's a bug in parrot that i'm working on that prevents me from doing any IO 22:57
22:57 sail0r joined, Exodist left
moritz_ but IO isn't used very much in the tests, is it? 22:58
s1n the ones in spectest_regression will crash my system 22:59
moritz_ that's bad
what OS do you use?
parrot shouldn't even be able to crash your system
doesn't matter how buggy it is
s1n gentoo, 64bit 23:01
i reported rt#57776 along the same lines 23:02
i think they're related, but haven't been able to get a segfault, just flat out consumes everything
raiph juerd: ping
s1n looks like addresses bonked, they're doing IO in a kinda wonky way, relying on addresses to be in a certain order 23:03
they obviously aren't on my system
23:03 sail0r left
s1n that bug is on my todo list, just hadn't gotten to it, i'm working with chromatic on ironing out a few 64bit bugs, i'll eventually get to this 23:05
Juerd raiph: Sorry, not available any time soon; email me please
afk
s1n anyways, gotta go to class
moritz_ got to go to bed 23:06
23:09 [particle] joined
raiph juerd: yay! I sent several emails a week or two back, incl. at least one to [email@hidden.address] from raiph.mellor atsign g mail dot com. I can repeat or use a diff email addy if you like. 23:09
Juerd Ah, I see them
raiph :) 23:10
Juerd I have not yet come around to the administation involved, sorry
afk && good night
raiph understand. no probs. you've always done a fab job in the years I've been lurking. no hurry. 23:11
StephenPollei maybe the tests should run with some setrlimit used to control resource overconsumption negatively affecting others and puting some sanity into test performance 23:14
23:15 raiph left 23:21 [particle]1 left 23:22 alester_ joined
rjbs Do I need parens around the cond in if? 23:26
if $bool { ... }
Myoma no
pugs_svn r22157 | moritz++ | [t/spec] some unfudging
rjbs Thnks. 23:28
literal rjbs: If you haven't seen it, here are some short introductions to various Perl 6 features -> perlgeek.de/blog-en/perl-5-to-6/ 23:30
lambdabot Title: blog | Perlgeek.de Blog :: Category Perl-5-to-6
23:36 ruoso joined, justatheory left 23:42 iblechbot left
rjbs literal: thanks; I just had a few direct questions for now apropos a journal entry i'm writing 23:44
ruoso moritz_, did you change the CSS of the 5-to-6 blog? or is it my browser that is rendering weird fonts? 23:46
literal looks fine here
then again, I have firefox set to use my fonts regardless of CSS :)
ruoso yeah... it looks better that way 23:49
23:49 fullermd joined 23:59 aindilis is now known as Saram, Saram is now known as aindilis