Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-09-04

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
00:22 ruoso joined #perl6
00:25 drbean joined #perl6
00:27 bacek joined #perl6
00:34 cognominal joined #perl6
00:35 pugs_svn r22135 | ruoso++ | [smop] updating test/30_array_map to reflect the fact that "map" receives and returns an iterator
00:40 hercynium_ joined #perl6
00:44 felipe joined #perl6
00:59 pugs_svn r22136 | ruoso++ | [smop] starting to implement "map"
01:10 kanru joined #perl6
02:02 ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @@a.perl();
02:02 p6eval pugs: OUTPUT[\(1, -1, 2, -2, 3, -3, 4, -4, 5, -5)␤]
02:03 ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @a[0;0]
02:03 p6eval pugs: OUTPUT[*** ␤    Unexpected "["␤    expecting "::"␤    Variable "@a" requires predeclaration or explicit package name␤    at /tmp/MEWNYIenWL line 1, column 42␤]
02:03 ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[0;0]
02:03 p6eval pugs: OUTPUT[*** ␤    Unexpected ";"␤    expecting "x", octal digit, "o", "b", fraction, exponent, term postfix, operator or "]"␤    at /tmp/kZyL475VEt line 1, column 45␤]
02:03 ruoso pugs: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[00]
02:03 p6eval pugs: OUTPUT[1␤]
02:04 ruoso it looks like pugs doen't have slice context yet... :(
02:04 ruoso rakudo: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[0;0]
02:04 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)␤]
02:04 ruoso elf: my @@a = map { $_, 0 - $_ }, 1..5; say @@a[0;0]
02:04 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␤]
02:04 ruoso elf: my @@a = map { $_, $_ }, 1..5; say @@a[0;0]
02:04 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 #perl6
02:09 alc joined #perl6
02:17 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:19 ruoso 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 ruoso 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 ruoso since an iterator in slice context returns a bidimensional array, while in list context flattens the slice to a single dimension...
02:23 ruoso the problem with that is when you want to use that in item context...
02:23 ruoso hmm
02:23 ruoso actually...
02:23 ruoso it's not a problem
02:24 ruoso we have to define the context first...
02:25 ruoso 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 ruoso 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:29 pugs_svn r22137 | ruoso++ | [smop] "map" receives "Iterator in item context" (updating test code)...
02:40 * 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 )
02:41 * ruoso z Z z
02:44 s1n anyone around with knowledge of List.pir?
02:52 redicaps joined #perl6
03:02 elmex_ joined #perl6
03:05 yahooooo2 joined #perl6
03:06 agentzh joined #perl6
03:09 redicaps left #perl6
03:23 s1n anyone remotely familiar with List.pir?
03:31 yahooooo joined #perl6
03:36 s1n is it better to skip a test or mark it as todo<bug>?
03:40 sail0r joined #perl6
03:42 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:45 PerlJam s1n: What about List.pir?
03:46 s1n PerlJam: have you messed with flatten?
03:46 PerlJam briefly
03:46 s1n does that flatten array references?
03:47 PerlJam it flattens Lists  :)
03:47 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
03:48 s1n does it flatten Lists of references to Lists though?
03:49 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:54 s1n PerlJam: does slicing depend on the lazylist effort?
03:55 PerlJam dunno
03:56 eternaleye joined #perl6
04:00 pugs_svn r22138 | s1n++ | [spec] fudged array_mmd.t and array_ref.t for rakudo
04:14 iblechbot joined #perl6
04:29 sail0r_ joined #perl6
04:35 sail0r__ joined #perl6
05:29 Psyche^ joined #perl6
05:39 zostay_ joined #perl6
05:43 ting_ joined #perl6
06:35 pugs_svn r22139 | moritz++ | [t/spec] minor fudging nits
06:37 c9s_ joined #perl6
06:38 ashizawa joined #perl6
06:41 rakudo_svn r30747 | moritz++ | [rakudo] one more test for spectest_regression, s1n++
07:11 viklund joined #perl6
07:17 BinGOs joined #perl6
07:32 bacek_ joined #perl6
08:00 moritz_ 343 files in spec/, 428 test files outside of spec/
08:00 moritz_ makes me think it's a never ending task
08:00 * moritz_ is slightly frustrated
08:03 pugs_svn r22140 | moritz++ | [t] moved loopscope.t to spec/, simplfied a bit
08:13 Lunchy joined #perl6
08:14 iblechbot joined #perl6
08:35 Lunchy joined #perl6
08:40 IRSeekBot joined #perl6
08:55 zamolxes joined #perl6
09:11 pugs_svn r22141 | moritz++ | [t] move pugs specific tests to pugs/
09:12 ruoso joined #perl6
09:17 cosimo joined #perl6
09:17 pugs_svn r22142 | moritz++ | [t] moved tests around, merged single test into another file
09:19 pugs_svn r22143 | moritz++ | [t] delete merged test; should have been done in r22142 already.
09:33 Maghnus joined #perl6
10:28 BinGOs joined #perl6
10:38 c9s_ joined #perl6
11:07 zamolxes joined #perl6
11:09 jferrero joined #perl6
11:10 ruoso joined #perl6
11:45 whereiskurt_ joined #perl6
11:59 BinGOs joined #perl6
11:59 Lichtkind joined #perl6
12:05 abra joined #perl6
12:13 kane_ joined #perl6
12:33 Jedai joined #perl6
13:16 pugs_svn r22144 | moritz++ | [t] moved operators/hyper.t to spec/
13:21 pugs_svn r22145 | moritz++ | [t] moved config.t to spec/, deleted redundant tests
13:24 pugs_svn r22146 | moritz++ | [t] moved goto.t to spec/
13:29 pugs_svn r22147 | moritz++ | [t] move blocks/splat_rw.t to spec/
13:34 pugs_svn r22148 | moritz++ | [t] merged blocks/splatty_with_type.t into spec/
13:42 pugs_svn r22149 | moritz++ | [t] merged blocks/slurpy_param.t into spec/
13:49 moritz_ uhm, I merge some tests into spec/S06-signature/slurpy-params.t, and now it dies while running  the first ones
13:50 moritz_ how do I revert a commit?
13:54 masak joined #perl6
13:58 pugs_svn r22150 | moritz++ | [t/spec] partially reverted r22149 because it borked rakudo's
13:58 pugs_svn r22150 | moritz++ | spectest_regression
14:00 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
14:01 moritz_ uhm
14:01 pmichaud so it's not dying properly because sub 'foo' exists.
14:01 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 ...)
14:02 pugs_svn r22151 | moritz++ | [t/spec] fixed name clash, pmichaud++
14:03 rakudo_svn r30750 | pmichaud++ | [rakudo]: Eliminate :immediate subs from generated output.
14:03 rakudo_svn r30750 | pmichaud++ | * Now use .loadinit() attribute of PAST::Block.
14:04 jferrero joined #perl6
14:21 masak joined #perl6
14:25 pugs_svn r22152 | moritz++ | [t] move sub_return_values.t to spec, corrected isa_ok calls to use type names
14:30 pugs_svn r22153 | moritz++ | [t/spec] fudged return.t for rakudo
14:31 TJCRI joined #perl6
14:35 rakudo_svn r30751 | moritz++ | [rakudo] two more tests for spectest_regression
15:11 REPLeffect joined #perl6
15:11 REPLeffect joined #perl6
15:20 kidd__ joined #perl6
15:24 rakudo_svn r30753 | pmichaud++ | [rakudo]: spectest-progress.csv update: 153 files, 2707 passing tests
15:27 justatheory joined #perl6
15:35 dr_df0 joined #perl6
15:36 Exodist joined #perl6
15:44 araujo joined #perl6
15:47 pugs_svn r22154 | moritz++ | [t/TASKS] smore more overall TASKS
15:54 abra joined #perl6
16:02 ruoso joined #perl6
16:06 jan_ joined #perl6
16:13 sri_work joined #perl6
16:24 ruoso Howdy!
16:26 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:35 rindolf joined #perl6
17:08 c9s_ joined #perl6
17:24 meppl joined #perl6
17:31 pmurias joined #perl6
17:32 pmurias ruoso: hi
17:33 ruoso hi pmichaud
17:34 ruoso hi pmurias
17:45 ruoso pmurias, did you follow my last thoughts on map?
17:54 pmurias ruoso: yes
17:57 pmurias seems ok
18:00 pmurias i'm pretty muddled now, so i might me wrong ;)
18:01 pim joined #perl6
18:01 pim Hi, everybody.
18:02 moritz_ hi pim
18:09 c9s joined #perl6
18:16 pugs_svn r22155 | moritz++ | [t/spec] allow rakudo to run most of pge's regex tests
18:17 pugs_svn r22156 | moritz++ | [t/spec] test files should end with .t, stupid me.
18:19 zamolxes joined #perl6
18:19 c9s_ joined #perl6
18:28 alester joined #perl6
18:34 rakudo_svn r30761 | moritz++ | [rakudo] add pge-tests.t to spectest_regression
18:34 rakudo_svn r30761 | moritz++ | The immense number of skips is mostly explained by the fact that if we
18:34 rakudo_svn r30761 | moritz++ | wouldn't skip > 240 tests, the test segfaults.
18:34 rakudo_svn r30761 | moritz++ |  +307 skip, 105 todo, 333 pass
18:37 yahooooo joined #perl6
18:38 zamolxes joined #perl6
18:46 [particle] joined #perl6
18:51 Exodist joined #perl6
18:52 kst joined #perl6
18:53 rakudo_svn r30764 | pmichaud++ | [rakudo]:  code generated by --target=pir now runs from parrot (RT #53040)
18:56 kst joined #perl6
18:57 zamolxes joined #perl6
18:57 rindolf joined #perl6
18:57 TJCRI joined #perl6
18:57 jferrero joined #perl6
18:57 Maghnus joined #perl6
18:57 ting_ joined #perl6
18:57 drbean joined #perl6
18:57 idemal joined #perl6
18:57 hercynium joined #perl6
18:57 Myoma joined #perl6
18:57 Khisanth joined #perl6
18:57 Guest70230 joined #perl6
18:57 jiing joined #perl6
18:57 s1n joined #perl6
18:57 awwaiid joined #perl6
18:57 spinclad joined #perl6
18:57 broquaint joined #perl6
18:57 aindilis joined #perl6
18:57 literal joined #perl6
18:57 obra joined #perl6
18:57 sunnavy joined #perl6
18:57 clkao joined #perl6
18:57 SamB joined #perl6
18:57 nnunley joined #perl6
18:57 szbalint joined #perl6
18:57 PerlJam joined #perl6
18:57 beppu joined #perl6
18:57 baest joined #perl6
18:57 buubot joined #perl6
18:59 aindilis` joined #perl6
19:00 pochi joined #perl6
19:01 smg joined #perl6
19:02 merlo_ joined #perl6
19:03 moritz_ pmichaud++ # r30764
19:04 justatheory joined #perl6
19:05 justatheory joined #perl6
19:06 TJCRI joined #perl6
19:19 scrottie joined #perl6
19:22 [particle]1 joined #perl6
19:24 IRSeekBot joined #perl6
19:26 viklund joined #perl6
19:37 scrottie left #perl6
19:48 [particle] joined #perl6
19:54 scrottie joined #perl6
20:17 justatheory joined #perl6
20:54 yahooooo joined #perl6
21:12 ludan joined #perl6
21:26 rakudo_svn r30769 | jonathan++ | [rakudo] Free allocated memory in Perl6MultiSub, so we don't leak.
21:28 rakudo_svn r30770 | jonathan++ | [rakudo] Fix trailing whitespace.
21:35 rjbs joined #perl6
21:35 rjbs Hi, totally random drop-in question from someone who doesn't follow p6
21:36 rjbs does this dwiw:
21:36 moritz_ go right ahead
21:36 rjbs with ($obj) { .some_method_obj_provides }
21:36 moritz_ yes
21:36 rjbs fantastic, thank you
21:36 * rjbs is trying to write up an explanation about why sigils are so nice, mostly for his .pm group
21:37 rjbs as long as I'm asking: is $self implicit in its own method bodies?
21:37 rjbs method foo { .some_other_method }
21:37 rjbs s/implicit/default invocant/
21:37 moritz_ no, it's not
21:37 rjbs Ok.  Is that planned but not implemented, or not planned but likely to change?
21:38 moritz_ you'd have to write method my_method ($_:, $stuff) { ... }
21:38 moritz_ it's not planned
21:38 rjbs thanks
21:38 moritz_ but there's the 'self' keyword/builtiin/whatever
21:38 rjbs sure
21:39 moritz_ and you can call $.method for example (which is an evil hack, but should work)
21:39 moritz_ if it returns  a scalar
21:40 moritz_ or @.method if it returns a list
21:44 TimToady s/with/given/
21:45 TimToady and the parens aren't necessary, so: given $obj { .some_method_obj_provides }
22:06 raiph joined #perl6
22:12 [particle]1 joined #perl6
22:22 alester_ joined #perl6
22:26 StephenPollei joined #perl6
22:35 raiph hi
22:35 moritz_ hi
22:36 raiph i've read your recent perl5-6 posts. great stuff.
22:36 moritz_ thanks
22:37 literal me too, keep up the good work
22:37 raiph moritz: are you involved with november?
22:37 moritz_ I'm slowly running out of tuits/topics/motivation for the blog...
22:37 moritz_ raiph: yes, a bit
22:37 moritz_ I wrote a grammar for HTML::Template, and a few tests
22:38 raiph moritz: aha.
22:38 moritz_ and I discuss bugs that masak finds in rakudo ;)
22:43 rjbs TimToady: thanks
22:50 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
22:51 moritz_ s1n: I added the other (array-ref.t iirc) to spectest_regression
22:52 moritz_ I should teach autounfudge.pl to also look at files outside of spectest_regression
22:52 moritz_ 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 moritz_ anyway, good work, s1n++
22:55 Maghnus joined #perl6
22:56 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:56 sail0r joined #perl6
22:57 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:58 moritz_ that's bad
22:58 moritz_ what OS do you use?
22:59 moritz_ parrot shouldn't even be able to crash your system
22:59 moritz_ doesn't matter how buggy it is
23:01 s1n gentoo, 64bit
23:01 s1n i reported rt#57776 along the same lines
23:01 s1n i think they're related, but haven't been able to get a segfault, just flat out consumes everything
23:02 raiph juerd: ping
23:02 s1n looks like addresses bonked, they're doing IO in a kinda wonky way, relying on addresses to be in a certain order
23:02 s1n they obviously aren't on my system
23:02 sail0r left #perl6
23:04 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:04 Juerd raiph: Sorry, not available any time soon; email me please
23:04 Juerd afk
23:04 s1n anyways, gotta go to class
23:05 * moritz_ got to go to bed
23:08 [particle] joined #perl6
23:08 raiph juerd: yay! I sent several emails a week or two back, incl. at least one to juerd@juerd.nl 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
23:09 raiph :)
23:09 Juerd I have not yet come around to the administation involved, sorry
23:10 Juerd afk && good night
23:10 raiph understand. no probs. you've always done a fab job in the years I've been lurking. no hurry.
23:14 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:21 alester_ joined #perl6
23:25 rjbs Do I need parens around the cond in if?
23:25 rjbs if $bool { ... }
23:25 Myoma no
23:26 pugs_svn r22157 | moritz++ | [t/spec] some unfudging
23:27 rjbs Thnks.
23:29 literal rjbs: If you haven't seen it, here are some short introductions to various Perl 6 features -> http://perlgeek.de/blog-en/perl-5-to-6/
23:29 lambdabot Title: blog | Perlgeek.de Blog :: Category Perl-5-to-6
23:35 ruoso joined #perl6
23:43 rjbs literal: thanks; I just had a few direct questions for now apropos a journal entry i'm writing
23:45 ruoso moritz_, did you change the CSS of the 5-to-6 blog? or is it my browser that is rendering weird fonts?
23:45 literal looks fine here
23:45 literal then again, I have firefox set to use my fonts regardless of CSS :)
23:48 ruoso yeah... it looks better that way
23:49 fullermd joined #perl6

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

Perl 6 | Reference Documentation | Rakudo