The topic for #perl6 is: pugscode.org/ planetsix.perl.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 TimToady on 25 November 2008.
rakudo_svn r33939 | pmichaud++ | [rakudo]: Remove obsolete 'hash' method from List. 00:00
r33940 | pmichaud++ | [rakudo]: Make sure Protoobjects don't participate in list flattening.
00:00 DemoFreak left 00:01 pbuetow left 00:04 buubot left 00:05 buubot joined 00:11 jferrero joined 00:16 vixey left
pugs_svn r24395 | azawawi++ | [Syntax::Highlight::Perl6] More POD fixes 00:17
00:20 mpeters joined 00:22 SamB joined
pugs_svn r24396 | azawawi++ | [Syntax::Highlight::Perl6] Bumped version to 0.026 + POD updates.... Releasing to CPAN 00:29
mpeters what's the difference between perl6 and plan9 00:32
about 2 letters and 3 increments! ha-ha-ha 00:33
00:33 mpeter left
mpeters hmm 00:36
00:37 mpeters left, mpeter joined
mpeter hmm 00:37
00:40 jgustavo joined 00:42 bacek__ joined 00:46 alech left 00:48 alech joined 00:51 jgustavo left
pugs_svn r24397 | ruoso++ | [smop/lowdoc] The 01_base.pod document can be considered ready... please review it ;) 00:52
ruoso doesn't svn substitute $id$?
ruoso sleep & 00:54
00:58 ejs joined
eternaleye_ Hmm. S17 has $obj.wake_on_either_readable_or_writable_or_passed_time(3); # fixme fixme - might this be possible to solve with junctions? IE $obj.wake_on:{.readable|.writable|.passed_time(3)}} 01:00
s/}$// 01:01
Hm, although it's probably need to be a junction of closures, so $obj.wake_on:({.readable}|{.writable}|{.passed_time(3)}) 01:06
01:13 hercynium left 01:19 jferrero left 01:26 mpeters joined 01:34 alech left 01:43 mpeter left 01:48 Limbic_Region left 02:00 apeiron left, apeiron_ joined
pugs_svn r24398 | tene++ | Unfudge several given/when tests for rakudo. 02:07
rakudo_svn r33942 | tene++ | [rakudo]: Basic support for continue and break in given/when. 02:10
02:13 ejs1 joined 02:22 apeiron_ is now known as apeiron 02:25 ejs left 02:30 ejs1 left
rakudo_svn r33943 | tene++ | [rakudo]: Refactor some copypasta out of my last commit. 02:30
02:30 ejs1 joined 02:35 mpeters is now known as mpeter 02:38 alanhaggai left 02:45 apeiron_ joined 02:53 ejs1 left 02:56 apeiron left 03:00 apeiron_ is now known as apeiron 03:27 alc joined 03:35 alc left 03:39 liufeng joined 03:40 mncharity joined 03:43 liufeng left 03:47 eternaleye_ left 03:48 meppuru joined
meppuru good night 03:50
03:52 meppuru left 03:55 Khisanth left 03:57 alester left 03:59 Khisanth joined
mncharity meppuru: good night :) 03:59
04:02 elmex_ joined 04:03 Psyche^ joined 04:05 meppl left
mncharity <X::foo> is parsing as a :foo colonpair. :) lol np to work around... 04:06
04:08 Khisanth left 04:09 Khisanth joined
rakudo_svn r33945 | tene++ | [rakudo]: Remove more copypasta. 04:10
mncharity rakudo: token foo { a }; ("a" ~~ /<foo>/){'foo'}
p6eval rakudo 33944: RESULT[Method 'perl' not found for invocant of class 'PGE;Match'ā¤current instr.: '_block11' pc 29 (EVAL_14:16)ā¤]
mncharity }rakudo: token foo { . }; say ("a" ~~ /<foo>/){'foo'}
rakudo: token foo { . }; say ("a" ~~ /<foo>/){'foo'} 04:11
p6eval rakudo 33944: OUTPUT[aā¤]
mncharity rakudo: grammar X { token foo { . } }; say ("a" ~~ /<X::foo>/){'foo'}
p6eval rakudo 33944: OUTPUT[Use of uninitialized valueā¤ā¤]
mncharity rakudo: grammar X { token foo { . } }; say ("a" ~~ /<X::foo>/){'X::foo'}
p6eval rakudo 33944: OUTPUT[aā¤]
04:15 Patterner left, Psyche^ is now known as Patterner 04:17 elmex left, elmex_ is now known as elmex 04:21 ChrisDavaz joined 04:23 eric2561 joined
eric2561 prepares to ask a stupid question 04:23
where do i find the test suite for rakudo? 04:24
[particle] cd languages/perl6 && make t/spec
cd t/spec && svn info
errands &
eric2561 ahh didn't know i needed to make it 04:28
btw it looks like a lot of the wikis are out of date
they say there is no perl6 executable and have stuff about pbc's which looks like it as all been fixed 04:29
04:29 fuzzbox joined
eric2561 ahh stealing pugs tests 04:29
lol
mncharity the pugs repo is currently the home of the implementation independent test suite. :) 04:30
the "is it p6?" language defining test suite... 04:31
eric2561 sounds good 04:33
04:35 kcwu left 04:37 alester joined
eric2561 i don't suppose there is a how to help page on the wiki somewhere? i want to be able to run some of these tests and see what is working, and htere used to be a report that linked the synopsis with the tests (and vice versa) to get an idea of what still needed tests written and whats covered 04:40
04:40 eternaleye_ joined
mncharity looking... 04:40
04:41 eternaleye left
mncharity feather.perl6.nl/syn/ is the Snn->tests, 04:41
04:43 stephens left
mncharity www.perlfoundation.org/perl6/index.cgi is a wiki, though I believe I saw something go by about a move off of it being in progress, 04:43
there's a parrot regression test / list of what works, ...somewhere (sorry, I'm not the person to ask for that:), 04:44
and that's what I know.
eric2561 hehe okay 04:45
thanks
the test think was pretty close to what i was looking for
actualy its exactly it
pmichaud t/spectests.data identifies the test files that rakudo runs
can run tools/test_summary.pl to get a different view of what's passing and failing (and why) 04:46
eric2561 mind if a put a link to the tests on the perl6 wiki page?
pmichaud it's a wiki -- please do!
mncharity TimToady: Oh channel operator, I suggest /topic pugscode.org/ planetsix.perl.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/ | feather.perl6.nl/syn/ www.perlfoundation.org/perl6/index.cgi 04:47
Tene rakudo: [~] <m oo se>
p6eval rakudo 33945: RESULT["moose"]
eric2561 rakudo: [+]<1 2 3> 04:48
p6eval rakudo 33945: RESULT[6]
pmichaud rakudo: 'rakuda do'.subst('a d', '') 04:49
p6eval rakudo 33945: RESULT["rakudo"]
mncharity TimToady: that is, the addition of spec and wiki links.
rakudo_svn r33946 | pmichaud++ | [rakudo]: Minor update to Capture -- it's still wrong, though. 04:50
eric2561 oh i finaly found the links already on the wiki
mncharity pmichaud: in rakudo, given say ("a" ~~ /a/).mumble , is there currently a mumble which will give me a dump of the match tree? tnx 04:51
pmichaud best we have so far is _dumper($/); I think
mncharity ooo, thanks
rakudo: say _dumper("a" ~~ /a/) 04:52
p6eval rakudo 33945: OUTPUT["VAR1" => PMC 'PGE;Match' => "a" @ 0ā¤Null PMC access in isa()ā¤current instr.: 'parrot;List;!flatten' pc 3549 (src/classes/List.pir:184)ā¤]
pmichaud I need to bring Match more fully into the rakudo runtime.
rakudo: 'a' ~~ /(a)/; _dumper($/);
p6eval rakudo 33945: OUTPUT["VAR1" => PMC 'PGE;Match' => "a" @ 0 {ā¤ [0] => PMC 'PGE;Match' => "a" @ 0ā¤}ā¤]
pmichaud it's not entirely clear how .perl should look for Match objects.
mncharity ah, ok. thanks. nice to have an executable spec reference. 04:53
eric2561 rakudo: (1+1).perl
p6eval rakudo 33945: RESULT["2"]
pmichaud rakudo: (~(1+1)).perl;
eric2561 rakudo: ({this=>'that'}).perl
p6eval rakudo 33945: RESULT["\"2\""]
rakudo 33945: RESULT["\{\"this\" => \"that\"}"]
mncharity re how look, Match.new(...)? :) hmm. .orig :/ ... {my $gensym = "orig"; Match.new(...) } ? 04:54
pmichaud yes, Match.new might work, although it has both positional and named components. 04:55
and a result component
eric2561 those dynamic syn's on feather arn't linked to any results ;(
pmichaud so perhaps Match.new( list => (...), hash => { ... }, ...? )
eric2561: afaik, the dynamic syns are only tied to pugs' test results, not rakudo's. 04:56
although if someone wants to work on tying them to rakudo's results, I'll be _very_ happy.
eric2561 i'll sleep on it ;) 04:57
i'd love to help anyway i can though, and that sounds quite challenging ;) sense i have looked at any of this in quite a while
off to sleep for now 04:58
mncharity wonders if feather is actually still tracking pugs (eg, updated to new ghc, etc).
pmichaud mncharity: I'm guessing "no"
mncharity eric2561: thanks for coming by
:/
eric2561 i gotta remember to log off at work so i'm not 256 there and 2561 here
hehe
later
mncharity :) 2561314... 05:00
oh, the temptations of fudging bootstrap... on little line to suck in a rx prelude... written in p5. vs bunch of work to translate it into p6. :/ ah well, bunch of work. 05:02
s/on/one 05:03
05:04 eric2561 left
rakudo_svn r33947 | pmichaud++ | [rakudo]: Fix hash interpolation into lists. 05:10
pugs_svn r24399 | pmichaud++ | [t/spec]: rakudo fudging and test fixes 05:29
mncharity If anyone wanted to work on STD.pm, regex alpha {:P5 [[:alpha:]]} parsing as a group with an :alpha modifier and a commit... well, perhaps I'm misunderstanding how to get into p5 re. 05:32
rakudo: " a" ~~ /:P5 [[:alpha:]]/; _dumper($/) 05:33
p6eval rakudo 33947: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset -1, found ')'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤]
mncharity rakudo: "a" ~~ /:P5::[[:alpha:]]/; _dumper($/)
p6eval rakudo 33947: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset -1, found ')'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤]
mncharity rakudo: "a" ~~ /:P5(1)[[:alpha:]]/; _dumper($/) 05:34
p6eval rakudo 33947: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset -1, found ')'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤]
mncharity rakudo: regex foo :P5 /[[:alpha:]]/; "a" ~~ /<foo>/
p6eval rakudo 33947: OUTPUT[Statement not terminated properly at line 1, near ":]]/; \"a\" "ā¤ā¤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)ā¤]
pmichaud rakudo doesn't support p5 yet.
mncharity ah, ok 05:35
pmichaud (and PGE's p5 regexes don't understand [[:alpha:]] yet.)
std: my Int $a;
p6eval std 24399: OUTPUT[00:05 79mā¤]
pmichaud ummm, okay. 05:36
mncharity does /:P5 [[:alpha:]]/ look like plausible p6? what's the "right thing", regardless of whether it's working?
/:P5::[[:alpha:]]/ 05:37
pmichaud that looks right to me.
/:P5 [[:alpha:]]/, that is.
mncharity ah, ok, :) thanks
pmichaud I'm not seeing how/where STD is parsing "my Int $a"
pugs_svn r24400 | leto++ | Unfudge passing autoref tests 05:38
pmichaud I get as far as the <scoped> rule, but don't see the typename parse after that.
azawawi www.nntp.perl.org/group/perl.cpan.t...36602.html
interesting 'out of memory' on netbsd 4.0 for STD.pm 05:39
rakudo_svn r33948 | pmichaud++ | [rakudo]: Fix list assignment when rhs is short of elements (RT #61336) 05:40
mncharity wooops. re my STD..."regex alpha {:P5 [[:alpha:]]} parsing as a group with an :alpha modifier and a commit...", NOT. I was looking at the wrong parser. never mind. 05:41
pugs_svn r24401 | leto++ | Unfudge passing tests relating to === on references
pmichaud ah, never mind, I see it. 05:42
It's in multi_declarator.
dukeleto i have test 57 in t/spec/S29-list/map.rakudo failing in trunk 05:46
azawawi moritz_: finally Syntax::Highlight::Perl6 got listed on search.cpan.org catalogue under 'string processing...' category ;-) 05:47
mncharity hmm. what part to I have wrong here: /<print>/ exists, rules are in the same namespace as subs, and ... print "hi" and <print> are distinguished via print being a multi???
Syntax::Highlight::Perl6++ 05:48
err, azawawi++ 05:49
azawawi @karma Syntax::Highlight::Perl6
lambdabot Syntax::Highlight::Perl6 has a karma of 1
azawawi lol
pmichaud in PGE, <print> is distinguished by virtue of being a method in the "grammar" 05:55
in Rakudo, .... I'm not exactly sure what /<print>/ would do.
dukeleto: (test 57) -- I think I fixed that in r24399 05:56
might try 'svn up' on t/spec 05:57
pugs_svn r24402 | pmichaud++ | [t/spec]: Unfudge passing tests with returning references. 05:58
dukeleto pmchaud: yep! 06:00
mncharity lol #re karma
karma on cpan packages... wow... 06:01
pmichaud: thanks... so the key is regex print is a method, which would collide with a non-existent method Any::print, but doesn't collide with multi sub GLOBAL::print. thanks :) 06:02
06:10 azawawi left 06:33 eternaleye_ left 06:34 eternaleye joined, alech joined 06:41 justatheory joined 06:49 ashizawa joined 06:58 SamB left
pugs_svn r24403 | putter++ | [rx_on_re] Rx decls: core bugfix, and inital support. New rx prelude in p6. 07:01
r24403 | putter++ | [STD_blue] More rx/re IR work.
mncharity it's going to be *painful* to eval() all of the rx prelude character classes every time elfx runs... have to kludge a separate compilation for that... 07:02
good night all & 07:03
07:03 mncharity left 07:04 kcwu joined 07:05 yjh joined 07:14 iblechbot joined 07:36 alester left 07:40 justatheory left 07:44 alech left 08:05 justatheory joined 08:12 DemoFreak joined 08:21 bacek__ left 08:33 alech joined 08:34 sri_kraih joined
pugs_svn r24404 | azawawi++ | [Syntax::Highlight::Perl6] Updated to latest perl6.vim 08:41
r24404 | azawawi++ | [Syntax::Highlight::Perl6] Added script syntax-highlight-p6 to distribution
r24404 | azawawi++ | [Syntax::Highlight::Perl6] instead of STD_syntax_highlight
r24404 | azawawi++ | [Syntax::Highlight::Perl6] cleaned up syntax-highlight-p6
08:46 mpeters joined
pugs_svn r24405 | azawawi++ | [Syntax::Highlight::Perl6] moved syntax-highlight-p6 to bin/ and updated 08:47
r24405 | azawawi++ | [Syntax::Highlight::Perl6] installation scripts.
08:51 mpeter left 08:57 mpeters is now known as mpeter 09:08 araujo left 09:12 iblechbot left
pugs_svn r24406 | azawawi++ | [Syntax::Highlight::Perl6] Passed most important perlcritic --harsh (-1) 09:13
r24406 | azawawi++ | [Syntax::Highlight::Perl6] for bin/syntax-highlight-p6
r24406 | azawawi++ | [Syntax::Highlight::Perl6] updated Changes... Releasing 0.027 to CPAN
09:16 jferrero joined 09:17 jferrero left, jferrero joined 09:32 Southen_ joined 09:36 DemoFreak left 09:50 ejs joined 09:52 Southen left 09:59 ejs1 joined
pugs_svn r24407 | moritz++ | [t/spec/] unfudge a few tests for rakudo 10:01
10:08 ejs left 10:09 riffraff joined 10:10 justatheory left 10:11 sri_kraih left 10:13 ejs1 left, ejs joined 10:14 sri_kraih joined 10:25 justatheory joined 10:27 justatheory left 10:31 spx2 left, spx2 joined 10:39 ChrisDavaz left 10:42 DemoFreak joined 10:44 ruoso left 10:47 alech left
moritz_ rakudo: grammar A { token a { :ig <b> }; token b { <c> }; token c { 'c'}; }; say "C" ~~ m/<A::a>/ ?? "yes" !! "no"; 10:50
p6eval rakudo 33951: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset 23, found 'i'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤]
moritz_ rakudo: grammar A { token a { :i <b> }; token b { <c> }; token c { 'c'}; }; say "C" ~~ m/<A::a>/ ?? "yes" !! "no";
p6eval rakudo 33951: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset 23, found 'i'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤]
moritz_ rakudo: grammar A { token a { :i <b> }; token b { <c> }; token c { 'c'}; }; say "C" ~~ /<A::a>/ ?? "yes" !! "no"; 10:51
p6eval rakudo 33951: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset 23, found 'i'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤]
moritz_ rakudo: grammar A { token a { :i <b> }; token b { <c> }; token c { 'c'}; }; if "C" ~~ /<A::a>/ { say "yes" } else { say "no" } 10:52
10:52 jferrero left
p6eval rakudo 33951: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset 23, found 'i'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤] 10:52
moritz_ rakudo: grammar A { token a { <b> }; token b { <c> }; token c { 'c'}; }; if "C" ~~ /<A::a>/ { say "yes" } else { say "no" } 10:53
10:53 jferrero joined
p6eval rakudo 33951: OUTPUT[noā¤] 10:53
10:53 alech joined
moritz_ rakudo: grammar A { token a { [ :i <b> ] }; token b { <c> }; token c { 'c'}; }; if "C" ~~ /<A::a>/ { say "yes" } else { say "no" } 10:53
p6eval rakudo 33951: OUTPUT[perl6regex parse error: Quantifier follows nothing in regex at offset 25, found 'i'ā¤current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9840 (compilers/pge/PGE/Perl6Regex.pir:1161)ā¤]
11:05 ruoso joined 11:13 maerzhase joined 11:42 riffraff left
ruoso @tell TimToady there are two open issues in p6-l that would require your attention... please, take a look at the "Where does Foo::Bar.EXPORTALL come from" and "Out of CONTROL" threads... 11:44
lambdabot Consider it noted.
11:55 alech left
pugs_svn r24408 | ruoso++ | [smop/lowdoc] 02_interpreter.pod documents what an interpreter is supposed to do in SMOP 11:59
12:14 FerranZzZz joined 12:18 iblechbot joined 12:20 ejs1 joined 12:29 ejs left 12:32 Art7PK joined 12:47 Lorn joined
pugs_svn r24409 | ruoso++ | [smop/lowdoc] start of 03_native_types.pod... 12:48
12:49 ejs1 left 12:50 ejs1 joined
pugs_svn r24410 | ruoso++ | [mildew/ROADMAP] fix misuse of given/when 12:53
12:54 Art7PK left 12:59 yjhz joined 13:08 yjh left 13:15 cognominal left 13:17 meppl joined 13:21 ejs1 left 13:25 ejs1 joined, SamB joined
moritz_ ruoso: re svn substituting $Id$, only if the svn props are set accordingly for that file 13:30
ruoso moritz_, do you know how to set that up? is that possible for an entire directory? 13:31
ruoso just sent a mail to p6-l with a proposal to make @a and @@a different variable 13:34
s
moritz_ ruoso: I just know that it's tested in parrot in t/distro/file_metadata.t 13:38
ruoso: svn propset svn:keywords 'Id Revision' file.pl 13:40
ruoso: wiki.preshweb.co.uk/doku.php?id=svn:propset 13:41
13:41 cognominal joined 13:47 mberends joined
ruoso moritz_++ #thanks 13:50
13:58 ashizawa left
pugs_svn r24411 | ruoso++ | [smop/lowdoc] it is $Id$, not $id$.; 14:00
14:01 vixey joined
ruoso later & 14:03
14:03 ruoso left 14:15 justatheory joined
rakudo_svn r33952 | pmichaud++ | [rakudo]: spectest-progress.csv update: 249 files, 5139 passing, 0 failing 14:20
14:28 alexn_org joined 14:35 alanhaggai joined 14:54 rindolf joined 15:04 yjhz left 15:05 apeiron left 15:09 broquaint left
eric256 some/most of the wiki is horribly out of date! ;( the smart linking status is as of Sept 11th 2006 15:10
PerlJam eric256: patches welcome! :) 15:11
eric256 yea i'm updating the wiki as I go, adding links etc
15:12 alester joined 15:25 exodist_ joined
eric256 any idea where the script that generalyts the smartlinked S's lives? 15:26
wanted to see if its running pugs or raduko
err rakudo
lol
jnthn eric256: My first commit to Rakudo called it the wrong thing, don't worry. ;-)
eric256 how do i get a commit bit for the repo? 15:27
moritz_ eric256: submit many good patches, then you'll get one
eric256: for the pugs repo (with the test suite) it's easier: just ask ;-) 15:28
eric256 and how do you submit patches? 15:29
or where i should say
moritz_ eric256: mail to [email@hidden.address] with [PATCH] in the subject 15:30
eric256 is there then a way to see a list of pending patches? 15:31
eric256 is updating the getting_involved wiki with this info
15:32 duke_leto joined
eric256 hmmm looks like smartlink.pl requires pugs 15:38
moritz_ aye, rakudo can't report tests with line numbers
eric256 ohhh that makes it a bit harder ;) then i guess i'll focus on smartlinking 15:39
unless there is something that can be done to help with line numbers
moritz_ no, that's deep bytecode magic 15:40
eric256 figures hehe
what about alist of pending patches? 15:41
moritz_ eric256: rt.perl.org/rt3/Search/Results.html...0'__NEWLIN 15:44
urgl, I hate long URLs :(
tinyurl.com/5uv4af
[particle] eric256++ smartlinking++ 15:45
that will help us when we get hll line number reporting in parrot, which is within 60 days according to our roadmap 15:46
eric256 [particle]: we'll see i of coures immediatly hit tests that i can't find in the Syn anywhere...is there a link syntax to indicate tests that need a new documentation created?
[particle] eric256: i don't think you've been pointed to trac.parrot.org/parrot/wiki/ but you should know it's there
eric256: all tests in t/spec should be related to a synopsis 15:47
those outside t/spec are old pugs tests, and haven't yet been converted to official perl 6 tests
moritz_ [particle]: with the exception of t/spec/integration, which don't need smartlinks 15:50
15:50 ruoso joined
eric256 S02-builtin_data_types/array_extending ... i can't find anything about it in S02 (searching agian just to be sure) 15:50
moritz_ eric256: you could also check S09 for this one (that's data types= 15:52
[particle] yeah, it's possible the tests were misclassified 15:53
eric256 ohh i was blindly following the folder
eric256 slaps himself with a fish
[particle] might check svn log on the file to see who moved it
or, at least, what the comment was.
moritz_ perhaps I was
sadly the sorting isn't always optimal
eric256: rt.perl.org/rt3/Search/Results.html...3D%22%2Frt 15:54
self--
tinyurl.com/59wzfg # much better 15:55
eric256 whats that list? 15:56
moritz_ not-yet-applied patches in RT
eric256 ahh 15:57
added a "Hacking Rakudo" section www.perlfoundation.org/perl6/index....g_involved 15:58
might be a better place for it, but at least its something
looks likx Auzon just bulk moved a directory 15:59
ruoso [particle], pmichaud, could you please take a look at the message I just posted to p6-languages about @a and @@a? I'd like to understand what implications that would have in parrot/rakudo...
pmichaud ruoso: I don't think it has any major implications -- we can support either interpretation. 16:00
ruoso cool... 16:01
[particle] eric256: do you have a pugs commit bit?
eric256 i used to 16:02
i'm guessing it should still work
[particle] they don't expire
ok, well, it seems you have a commit bit, round tuits, and a solid direction.
eric256 oddly i can't find any documents describing array extending the way these tests do
[particle] if you need anything else, don't hesitate to ask. 16:03
eric256 sure thing, can i just start a wiki with these tests that need some documentation created (or found at least)?
moritz_ eric256: the premise is "anything that's not specced works as in perl 5"
eric256: we have t/TASKS in the pugs repo for such things
eric256 which isn't specced either.../me thumps head on wall
okay
moritz_ eric256: the master plan is to specify everything in the end, but it takes up lots of resources. In case of doubt the test cases serve as spec 16:04
eric256 okay so cases like this? mark in the TASKS? or leave as is for now? 16:05
16:05 broquaint joined
eric256 :q 16:06
moritz_ I'd make a new section "needs smartlinks, but can't find a spec" in t/TASKS and list it there 16:07
eric256 thanks 16:08
16:16 alanhaggai_ joined
[particle] i'd put a comment above that paragraph of tests 16:16
put comments close to the code, or the context will be lost 16:17
16:18 jhorwitz joined
eric256 something like ?#[TODO] Needs smartlinks but can't find a spec 16:19
moritz_ start it with a # please ;-)
eric256 the ? was suppost to eb with the like ;(
eric256 goes to get the morning cocoa
[particle] don't use #? that syntax has special meaning 16:20
#@[TODO] maybe
or #@TODO
moritz_ or just # TODO:
[particle] ...if you must use a "comment twigil"
i think # TODO will work best
16:22 alech joined
moritz_ thedailywtf.com/Articles/Open-Sesame.aspx what a nice hack ;-) 16:23
16:23 apeiron joined
eric256 lol 16:25
jnthn hah! 16:26
pmichaud I don't see a problem with using #?TODO or #?smartlinks or something like that, though.
the point of the identifier following the '#?' was that there could be multiple of them for different implementations.
"smartlinks" is just another p6 implementation with a very specific purpose.
moritz_ ... until somebody writes a perl 6 compiler named TODO
pmichaud: but if the things that follows isn't a fudge directive, it doesn't make much sense 16:27
pmichaud "smartlinks" is a compiler, it just does something slightly different than parse Perl 6 :-)
yes, it might not make sense in terms of fudging.
16:28 alanhaggai left
pmichaud actually, there ought to be a way to put TODO directly into the smartlinks syntax. 16:28
16:28 alanhaggai_ is now known as alanhaggai
pmichaud i.e., simply create a smartlink to a "todo section" 16:28
then we can find everything that's marked "todo"
moritz_ S00/TODO/
pmichaud or maybe S99
16:31 riffraff joined, stephens joined
riffraff hi 16:32
16:34 kanru left 16:45 rindolf left
pugs_svn r24412 | eric256++ | Adding test file count 16:46
pasteling "riffraff" at 93.145.85.253 pasted "behaviour of rules I do not understand" (10 lines, 335B) at sial.org/pbot/33800 16:48
riffraff could someone explain me why this snippet just prints "three" ? 16:49
if I define a rule foo as a simple wrapper of bar I'd expect that foo foo should match where bar bar does
I'm afraid I'm missing something huge :/
moritz_ what exactly is <word>? 16:51
riffraff <ident> as dfined before
actually I had defined differently but I'm trying to understand why this doesn't match 16:52
moritz_ ah, <.ws> <ident>
riffraff mh, yes, I think the definition through rule implies <.ws>
(I hope I am right)
PerlJam yes.
moritz_ riffraff: it's all related to whitespaces. If you change s/rule/regex/ in the first three lines all rules match
rakudo: say 'ab' ~~ m/<ident>/ 16:53
p6eval rakudo 33957: OUTPUT[abā¤]
16:54 azawawi joined
azawawi hi 16:54
16:54 azawawi left
PerlJam moritz_: Are you *sure* it's related to whitespace? It looks like greed to me. 16:55
16:55 azawawi joined
moritz_ PerlJam: oh wait, rules don't backtrack, right? 16:55
PerlJam rules also have :rachet(1) so there's no backtracking. <adj>* eats all identifiers
right
s/identifier/word/ you get what I'm saying though
16:56 azawawi left
moritz_ still, if you dlete the whitespace from 'rule word' all three match 16:56
pmichaud actually, the 'an' will never match.
moritz_ yes, but that's not the issue here, I think
pmichaud true.
(rakudobug, ltm, I know.) 16:57
riffraff mh, if I remove the whitespace and leave everything as rule it works, but why? isn't that whitespace supposed to be insignificant ?
moritz_ it's both greed and ws. s/rule sent2/regex sent2/ also works
pmichaud whitespace is significant in 'rule'
16:58 azawawi joined
riffraff yes I tried that too and checked 16:58
pmichaud it's not significant in 'regex' or 'token'
PerlJam riffraff: s/insignificant/significant/ :)
riffraff ah I see, I had it reversed :)
pmichaud anyway, they don't match because of ratcheting. 16:59
I don't know why it says 'three', though. 17:00
moritz_ some the difference is that <word> greedily matches a ws, and doesn't give it back
eric256 shouldn't they all fail because of the leading whitespace in the rules?
moritz_ where as <ident> does not
pmichaud the default ws is *optional* ws
moritz_ ... unless between two identifier characters, where it's not optional 17:01
pmichaud to me, they should all fail.
moritz_ pmichaud: the third should not, because <ident>* can match only once 17:02
pmichaud ah, you're correct.
<ident> doesn't eat ws
17:02 ruoso left
pmichaud but <word> does. 17:02
moritz_ that explains it
17:02 ruoso joined
moritz_ in this case <ident>* is equivalent to <ident>? 17:02
wheres if you wrote [ <ident>]* you'd have the same behaviour as in the first two examples 17:03
pugs_svn r24413 | pmichaud++ | [t/spec]: Unfudge stable sort tests. 17:04
riffraff thanks everyone
and sorry if I sound dumb, but if the ws in rules is significant how is the indentation in rules possible? 17:05
pmichaud whitespace in a rule becomes <.ws>
moritz_ riffraff: often you write tokens instead of rules, there it's not significant...
pmichaud the default definition of <ws> says to match \s*, but not between two word characters. 17:06
moritz_ riffraff: and when you write rules, it doesn't matter how many whitespaces there are in a row, just if or not
riffraff ah, gotcha
thanks again
moritz_ np
rakudo: my $x = -> { 3; }; say 2 17:08
p6eval rakudo 33957: OUTPUT[Statement not terminated properly at line 1, near "= -> { 3; "ā¤ā¤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)ā¤]
pmichaud rakudo still can't parse -> in term position.
moritz_ that's what I just tested :) 17:09
17:09 alanhaggai left
rakudo_svn r33959 | pmichaud++ | [rakudo]: Update 'sort' to be a stable sort, and perform infix:cmp on Pairs. 17:10
17:11 calin joined
moritz_ I think we had another test that uses infix:<mp> on pairs 17:12
let's see if autounfudge can find it...
pmichaud there's a few 17:13
I'm about to commit another unfudge
17:13 ejs1 left
pmichaud hmmm... need to do a make spectest first. 17:14
moritz_ wants more cores for faster testing 17:15
17:16 justatheory_ joined, alanhaggai joined, justatheory left 17:18 justatheory_ is now known as justatheory
pmichaud I'm thinking I want faster tests. :-) 17:19
moritz_ pmichaud: what about a motivational challenge? you make rakudo faster, and I add so many tests that the overall test run doesn't become shorter ;-) 17:20
pmichaud heh. Give me a month and then you're on. 17:21
(the month is to get the other pge refactors in place first.)
duke_leto sorry for showing my ignorance, but what *is* unfudging...? 17:22
moritz_ duke_leto: 'fudging' means marking tests as TODO or even skip them
pmichaud duke_leto: removing the #?rakudo skip markers from test files when tests pass
moritz_ so unfudging is enabling them to run again
eric256 is there anyway to link to test files from the wiki?
duke_leto i see... thx :-) 17:23
moritz_ eric256: you can get the svn URL with 'svn info $filename', and link to that URL
eric256 gracias ;)
pugs_svn r24414 | pmichaud++ | [t/spec]: Unfudge some more tests in S29-hash/pairs.t 17:29
rakudo_svn r33963 | pmichaud++ | [rakudo]: Add Pair.pairs (RT #59394, bacek++). 17:30
eric256 www.perlfoundation.org/perl6/index....rt_linking now has a todo list of test files missing links ;)
pmichaud eric256++ 17:31
moritz_ like the one generated from utils/smartlinks.pl --check --missing --dir t/ ?
ah no, with clickable links. Much easier for the lazy contributor ;-) 17:32
eric256 exactly ;) 17:33
i added a --wiki flag to smartlinks 17:35
moritz_ did you commit it?
eric256 gonna see about adding a flag to generate a list of files with # TODO as well
not yet
moritz_ commit early, commit often ;-)
eric256 there of coures now i am thinking about having it make a wiki table 17:37
pugs_svn r24415 | eric256++ | smartlinks.pl - Added --wiki flag and --count flags to show a wiki friendly list of files missing links and a count of links per file respectivly
17:46 calin left 17:48 adc_penner joined
eric256 gets more scared of smartlink.pl the more he looks at it 17:49
lol
moritz_ eric256: some of it is quite hacky, but usually you only have to understand a small part ot get your job done 17:50
17:53 maerzhase left, alexn_org left
eric256 #?smartlinksneedeed 17:53
i was thinking of using #?TODO but thats not real specific about what needs done 17:54
#?TODO smartlink 'needs documentation created' 17:56
[particle] why the ?
eric256 kinda follow the #?rakudo skip 'reason'
[particle] #? syntax should be reserved for fudge
eric256 any reason? 17:57
(not arguing, just learning all this, figured #? would help set it appart from generic comments
moritz_ because it's a diffent thing, and different things should look different 17:58
eric256 #?rakudo and #?TODO do look different
moritz_ that's subject to disagreement ;-)
[particle] todo comments are generic
moritz_ basically '#?something' tells us to run tests differently 17:59
[particle] #?rakudo direct the fudge preprocessor to perform actions on the file
eric256 so #? is reserved for things taht modified tests?
[particle] yes
eric256 fine by me, is there somewhere in a wiki describing the different #? options?
moritz_ eric256: the output of t/spec/fudge is the best we have 18:00
(when called without options)
18:01 jferrero left
[particle] www.pmichaud.com/2008/pres/oscon-ra...de26a.html 18:01
moritz_ (and think s/ok/is/ in the examples...) 18:02
pmichaud oops!
I'd better fix that.
later.
(added to hiveminder so I won't forget) 18:03
18:07 justatheory left
eric256 www.perlfoundation.org/perl6/index....efactoring that a good place for it? or at least as good as any? 18:07
eric256 is realy trying to be helpfull and NOT a pain in the ass hehe 18:08
jnthn wonders if we ahve any tests for "use"
eric256 and reading the stuff from fudge explains the issues with #? too btw in case anyone else ends up similarly confused as i was
jnthn I suspect they're not the easiest to write, but it'd be great to have some.
moritz_ eric256: it's fine. I personally would put it into the repo so I don't loose sight of it, but that's personal preference 18:09
jnthn ,
eric256 i think new users though will have to go throught the wiki (like me) before they even find the repo 18:10
lol
moritz_ then it's fine
eric256: please discourage 'svn cp' alltogether, it's rather harmful on tests (duplicates effort when fixing) 18:11
[particle] jnthn: they're not super easy to write, but i started some in S11 18:12
eric256 yea that was existing, done.
does the pugs stuff still apply? 18:13
moritz_ well, you add it to the test suite, not to pugs
but it lives in the pugs repo
18:14 rindolf joined
moritz_ (svn props are still important, yes) 18:14
jnthn [particle]/moritz_: I'm especially after tests for using classes in other files.
use Foo; # where Foo has a class
moritz_ jnthn: I can take a look after #ps
18:15 maerzhase joined
jnthn I can only imagine having to do a use t::spec::S11-thingy::TestModule 18:15
But not sure that's the Right Thing.
moritz_ or BEGIN { @*INC.unshift: 't/spec/S11-thingy' }; use TestModule; 18:16
jnthn If Rakudo supports that...yes.
It may well do so.
If it does, awesome.
eric256 sorry should have been more specific i meant the puts add-svn-props.sh bit 18:18
moritz_ yes, taht's still fine 18:19
eric256 crashed the website lol 18:26
18:26 alanhaggai_ joined 18:27 timbunce joined, timbunce left, timbunce joined
ruoso rakudo: { say $^a; say $a }.() 18:28
p6eval rakudo 33967: OUTPUT[Scope not found for PAST::Var '$a'ā¤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 146 (src/PCT/HLLCompiler.pir:102)ā¤]
jnthn ruoso: That should work, I believe. 18:29
(As in, should be made to work - it's correct Perl 6.)
Rakudo doesn't get that right yet.
ruoso yeah... I was wondering if $^a declares $a
pugs: { say $^a; say $a }.()
p6eval pugs: OUTPUT[*** Missing required parameters: $aā¤ at /tmp/QrJLiPueDS line 1, column 1 - line 2, column 1ā¤]
moritz_ it does (aka should)
ruoso right... that makes the example code I'm using in the reply to p6-l much prettier 18:30
jnthn ruoso: From the discussion, it should.
18:30 alanhaggai left
ruoso std: map { $^a == 2 ?? map { $^b == 2 ?? map { $^c == 2 && $b == 2 && $a == 2 ?? (1,2,3) !! () }, 1, 2, 3 !! () }, 1, 2, 3 !! () }, 1, 2, 3; 18:31
p6eval std 24415: RESULT[Use of uninitialized value in hash element at Cursor.pm line 804.ā¤Use of uninitialized value in concatenation (.) or string at Cursor.pm line 866.ā¤Use of uninitialized value in hash element at Cursor.pm line 804.ā¤############# PARSE FAILED #############ā¤Unable to parse
..parenthesi...
eric256 std?
moritz_ std.pm is the standard Perl 6 grammar 18:32
18:32 riffraff left
ruoso std: map { $^a == 2 ?? map { $^b == 2 ?? map { $^c == 2 && $b == 2 && $a == 2 ?? (1,2,3) !! () }, 1, 2, 3 !! () }, 1, 2, 3 !! () }, 1, 2, 3; 18:33
p6eval std 24415: OUTPUT[Use of uninitialized value in hash element at Cursor.pm line 804.ā¤Use of uninitialized value in concatenation (.) or string at Cursor.pm line 866.ā¤Use of uninitialized value in hash element at Cursor.pm line 804.ā¤############# PARSE FAILED #############ā¤Unable to parse
..parenthesi...
ruoso meh... where's the error?
std: map { $^a == 2 ?? map { $^b == 2 ?? map { ($^c == 2 && $b == 2 && $a == 2) ?? (1,2,3) !! () }, 1, 2, 3 !! () }, 1, 2, 3 !! () }, 1, 2, 3; 18:34
p6eval std 24415: OUTPUT[Use of uninitialized value in hash element at Cursor.pm line 804.ā¤Use of uninitialized value in concatenation (.) or string at Cursor.pm line 866.ā¤Use of uninitialized value in hash element at Cursor.pm line 804.ā¤############# PARSE FAILED #############ā¤Unable to parse
..parenthesi...
avar /w/w 13 18:35
eric256 rakudo: map { say $^a } 1,2,3 18:36
p6eval rakudo 33969: OUTPUT[Statement not terminated properly at line 1, near "1,2,3"ā¤ā¤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)ā¤]
eric256 rakudo: map { say $^a } 1,2,3;
p6eval rakudo 33969: OUTPUT[Statement not terminated properly at line 1, near "1,2,3;"ā¤ā¤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)ā¤]
ruoso rakudo: map { say $^a }, 1, 2, 3
p6eval rakudo 33969: OUTPUT[1ā¤2ā¤3ā¤]
eric256 duh
lol
18:37 jferrero joined
ruoso I'll just send the mail with that code anyway... I can't find what's wrong with it... 18:37
eric256 ummm the wiki just saved the error page over the refactoring page...that was odd 18:38
moritz_ socialtext--
rakudo_svn r33972 | infinoid++ | [cage] Fix trailing whitespace. 18:40
pugs_svn r24416 | moritz++ | [t/spec] add tests for using modules that contain a class 18:49
r24417 | moritz++ | [t/spec] forgot svn props again, moritz-- 18:50
eric256 any ideas where to find the definition of +@array and +$arrayref?
pmichaud leading + always means "as a number" 18:51
moritz_ eric256: S03 (they are exactly the same, prefix:<+> )
eric256 ahh gotcha
pmichaud so +@array is the number of elements in the array
+$foo is $foo evaluated in a numeric context
eric256 looking for a good place to link svn.pugscode.org/pugs/t/spec/S02-bu...d_arrays.t to
moritz_ list assignment is described in S02, I think 18:52
eric256 right now i'm learning that for every one thing spec-ed there are 10 that arn't. 18:53
yea i'm cruising S02 and S03 right now.
might end up just printing them all out for a good read, get myself re aquainted
[particle] eric256: things unspecced are important to note somewhere. 18:54
eric256 hey maybe thats better than # TODO i could add a # UNSPECCED makes it easy, and i can add a flag to smartlinks to have it aggregate those as well 18:56
18:58 Codeman|pe joined
Codeman|pe hallo 18:59
moritz_ hi
Codeman|pe do you speak german? 19:00
hab hier ein kleines perl linux kommandozeilen problem ;) 19:03
moritz_ Codeman|pe: yes, but #perlde on irc.perl.org is much more appropriate
19:04 azawawi left
moritz_ Codeman|pe: this channel is about developing Perl 6, not about answering Perl 5 questions 19:04
Codeman|pe ok thx
19:05 Codeman|pe left 19:06 alech_ joined 19:08 alech left 19:13 smtms left
pugs_svn r24418 | eric256++ | [tests] Adding UNSPECCED and smartlinks 19:14
19:21 justatheory joined 19:31 eternaleye left 19:33 ejs joined 19:37 dukeleto left, dukeleto joined
Tene pmichaud: the pending issue on p6l is whether CONTROL catches return or not, yes? 19:40
pmichaud no.
we know that CONTROL catches return. The question is whether there's one CONTROL block for all returns or each Routine has its own control handler to catch them.
Tene Which thread is that in? 19:41
[particle] is there a thread? if so, ruoso started it
pmichaud groups.google.com/group/perl.perl6....fa2752187#
and no, I started it. :-) 19:42
[particle] troublemaker 19:43
pugs_svn r24419 | moritz++ | [t/spec] simplify 'use' test to work with current rakudo 19:44
pmichaud afk # working on presentation, must finish soon.
19:46 Khisanth left 19:48 sri_kraih left 19:50 Khisanth joined
TimToady each routine must have a return handler, though that does not necessarily imply a CONTROL block with the same weight as the user-defined CONTROL block 19:51
lambdabot TimToady: You have 1 new message. '/msg lambdabot @messages' to read it.
[particle] welcome back, o fearless receiver of gifts 19:52
TimToady s/fearless/courageous/ :) 19:53
19:53 eternaleye joined
moritz_ ;) 19:53
pugs_svn r24420 | moritz++ | [t/spec] more extensive testing of using "imported" classes 19:54
19:54 timbunce left 19:55 comun1ty joined
comun1ty I want to play with perl6 on my linux machine what should I use parrot or pugs or something else? 19:55
is one superior?
[particle] yes, and so is the other. 19:56
comun1ty which would you recommened using?
moritz_ comun1ty: pugs implements more features still, but rakudo is actively developed
[particle] pugs is getting harder to build these days, you need an old version of ghc
moritz_ comun1ty: I use rakudo these days
[particle] 6.6.1 iirc
i use rakudo, too
moritz_ [particle]: pugs needs 6.8.1 or higher 19:57
comun1ty then rakudo it is :)
[particle] there will be a release in ~7 hours, but it's best to use svn head
comun1ty awesome thank you fellas
19:57 comun1ty left
[particle] moritz_: i thought that build was broken, thanks for the update 19:57
moritz_ [particle]: worked via the cabal route last I tried 20:00
20:07 alech_ left
rakudo_svn r33978 | moritz++ | [rakudo] add a file (classes that are defined in use'd modules) to t/spectest.data 20:10
20:18 alanhaggai__ joined
ruoso commute & 20:24
20:32 alech joined 20:33 alanhaggai_ left 20:34 ruoso left
eric256 is there any reason that postfix and prefix ++/-- are defined in parrot in stead of perl6? 20:36
Tene eric256: eh?
pmichaud: can you explain what TT's response means for implementation? 20:37
eric256 once you define + and = you can defined ++ in terms of them, so why not?
moritz_ eric256: no, ++ is much more magical
rakudo: my $x = 'abc001'; say ++$x
p6eval rakudo 33979: OUTPUT[abc002ā¤]
moritz_ eric256: also note that ++ and -- autovivify scalars, while + doesn't
eric256 rakudo: say 'abc001' + 1 20:38
p6eval rakudo 33979: OUTPUT[1ā¤]
eric256 hmmm
couldn't you just expost .inc and .dec then and get the same results (autovivifying can be handled in perl as is i would think) 20:39
moritz_ there's more than one way to do it ;) 20:40
TimToady .inc is spelled .=succ 20:41
20:42 abebae joined 20:43 azawawi joined
eric256 searchings the S's doesn't return anything about .=succ 20:44
moritz_ eric256: search for .succ instead
eric256: $obj = $obj.method is shortened to $obj.=method
eric256 not that either
TimToady then you're not searching correctly
eric256 yea i just searched for .succ 20:45
no doubt about that TimToady
TimToady because S03-operators.pod contains .=succ
eric256 www.google.com/search?hl=en&dom...tnG=Search
i'm guessing then that the online docs are out of date or out of sync
moritz_ eric256: in your pugs copy, go to to docs/Perl6/Spec, and grep '\.succ'
eric256 hmmm there there are in S03
man google search has been letting me down big time today 20:46
;)
TimToady please use the docs in the svn.pugscode.org/pugs/docs/Perl6/Spec if you want the most recent
google is not about perfection
moritz_ and Perl 6 is? ;-) 20:47
eric256 been using the search at the top of feather.perl6.nl/syn/ so that is probably not a good idea
20:47 masak joined
azawawi hi there 20:47
masak OH HAI 20:48
eric256 perl6 20:50
err....wrong window
20:51 alech left 20:56 spx2 left, spx2 joined
eric256 is there any documentation on how to help with raduko programming? i.e. i just modified some stuff in op.pir but the changes don't have any effect even after a make clean && make perl6 ... just compiles and works like i didn't do anything 20:57
moritz_ eric256: run 'make spectest' to see if it broke anything... 20:58
20:58 mncharity joined
moritz_ eric256: and if you implement a new feature, test it 20:58
eric256 well i changed ++ to start at 10 instead of 0 and it didn't do it at all, and yes definitly about the testing 20:59
mncharity joining just in time to see "and if you implement a new feature, test it", /me reflexively chimes in "if it isn't tested, it doesn't work".
eric256 and if you test it build a test file (if it doesn't exist) and link it to a SYN ;) 21:00
right?
moritz_ right
mncharity hmm... sort of. one is more an observation on the universe, like Murphy's. the other is more ideal project practice. 21:01
21:01 lisppaste3 joined
mncharity karma lisppaste3 21:02
moritz_ perlbot, karma lisppaste3
perlbot lisppaste3 doesn't have any karma
mncharity danke 21:03
eric256 bows down to moritz_....i hard linked to perl6 and the old link i was executing was pointing to a whole different executable 21:06
i realy shouldn't be allowed near computers some days
running tests spotted it eventualy ;) 21:08
moritz_ we do know why embraced test driven development ;-) 21:09
21:09 Jedai left
eric256 created a succ sub, now to figure out how to make methods /me goes exploring 21:10
and yes i realize this is of little overall utility, its more of a learning thing for me than anything 21:11
21:12 awwaiid joined 21:21 c9s joined, duke_leto left 21:22 Jedai joined
pugs_svn r24421 | putter++ | [STD.pm] Added p5 re token backslash:p . 21:23
21:25 rindolf left
mncharity sigh. can't actually *use* it without either building a patch mechanism, forking STD.pm, reverting r24080 on STD.pm, or figuring out what went wrong with it and how to fix that. sigh. 21:28
moritz_ mncharity: the structure of the Cursor object changed quite a bit, maybe you got hit by that? 21:29
eric256 implemented a .succ that works ;) thats very exciting 21:30
mncharity :)
moritz_: no, it was just:
token term:identifier changed from <identifier> to <identifier> <?before ['.'?'(']?> , intended I believe to make not(3) parse as not(3) rather than prefix:not(3). 21:31
21:33 alech joined
mncharity but... also sometimes breaks sub decls. 'sub' is reported as an applied but undefined function. 21:33
time to dig up a test case...
azawawi moritz_: what a nice and simple command line name for syntax-highlight-p6 (aka STD_syntax_highlight)?
moritz_: s/what/what's/
moritz_ high6light? 21:34
dunno, I've never been good with names
PerlJam azawawi: 6light
azawawi hmmm 21:35
PerlJam azawawi: high6
azawawi hilite6
moritz_ high5++
azawawi ;-) 21:36
masak Lumo VI
21:36 c9s_ left
moritz_ that's nice 21:36
but takes a while to understand 21:37
masak just shorten it to 'lumovi'
azawawi is testing variations using Text::TypingEffort
moritz_ man, is there a task for which there's no module on CPAN? 21:38
21:38 alester left
pmichaud Tene: (TT's response) I read it that the approach Rakudo has been taking is the correct one, so go ahead with CONTROL. 21:38
Tene Okay. 21:39
pmichaud (at your convenience or whatever is -Ofun for you :-)
21:39 masak left
azawawi moritz_: actually that module failed to install on win32 :-( 21:39
mncharity rakudo: (sub($x){$x+3}).(2) 21:40
p6eval rakudo 33979: RESULT[5]
eric256 how can i run a single test file?
moritz_ let's hope that Alias' pet project reduces such failures in long run
eric256: 'make t/spec/path/to/file.t'
pmichaud eric256: make t/spec/....
mncharity so that's the problem. STD.pm is now parsing sub(){...} as a function application of some 'sub'. 21:41
eric256 thanks
azawawi moritz_: and Padre::Plugin::Perl6 dev effort has just started on #padre
good night & 21:46
mncharity pugs: (sub($x){3}).(4) 21:48
p6eval pugs: RESULT[3]
mncharity azawawi: good night :)
padre.perlide.org/ news.perlfoundation.org/2008/11/200...l_deb.html 21:51
21:51 mberends left 21:52 jhorwitz left
mncharity padre.perlide.org/wiki/Screenshots 21:52
padre.perlide.org/wiki/Articles 21:53
@tell TimToady re "force identifier(), identifier.(), etc. to be a function call always", does that mean sub($x){4} is no longer valid p6? 21:56
lambdabot Consider it noted.
eric256 alright i created .succ and .pred methods for the Object.pir but should they go in Scalar? /me doesn't realy know, did that and 4 tests though 21:57
moritz_ eric256: dunno. If you don't get a good answer here, ask in #parrot on irc.perl.org 21:58
rakudo_svn r33984 | tene++ | [rakudo] 22:00
r33984 | tene++ | * move Exception clas sinto a new file
r33984 | tene++ | * add resume() and rethrow() to Exception
eric256 rakudo: my $x = '000'; $x.succ; say $x; 22:06
p6eval rakudo 33980: OUTPUT[Method 'succ' not found for invocant of class 'Str'ā¤current instr.: '_block11' pc 45 (EVAL_12:22)ā¤]
22:08 alanhaggai joined
TimToady mncharity: sub($x){4} is valid Perl, it's just not a sub def 22:09
lambdabot TimToady: You have 1 new message. '/msg lambdabot @messages' to read it.
jnthn TimToady: Did you get my message about S14? 22:10
TimToady sent how? 22:11
jnthn lambdabot
Few days back, when you were travelling, mind... 22:12
TimToady it would appear to have miscarried
jnthn Aha. 22:13
It was short, I can repeat. :-)
I'm going to be reviewing a lot of the stuff it relates to through doing parametric roles over the coming couple of months.
moritz_ irclog.perlgeek.de/perl6/2008-12-12#i_757009 22:14
jnthn I wondered if you wanted to handle S14 yourself, or if you'd like me to take a crack.
TimToady I am happy to delegate anything that is happpy to be delegated :)
jnthn If you you would, do you want me to move stuff in other synopses that I think belongs in S14 to there, or just to copy and reference it so you can review it?
TimToady feel free to move stuff 22:15
jnthn OK.
jnthn will work on it 22:16
mncharity TimToady: re sub($x){4} isn't a sub def, ah, ok. that makes life easy... thanks. 22:19
moritz_ so for anonymous subs you need a space after sub? 22:20
22:21 ejs left
TimToady moritz_: yes 22:24
moritz_ detects that his Perl 6 parsing very, very slowly converges to that of STD.pm 22:25
TimToady and good style puts a space before the block too, though I don't think STD enforces that except in block-oriented control flow 22:26
we're trying to consistently read prespaceless brackets as postfixes 22:27
22:28 alanhaggai__ left
rakudo_svn r33988 | tene++ | MANIFEST and metadata updates for new file. 22:30
r33989 | tene++ | [rakudo]: CONTROL blocks
TimToady and it's basically an extensibility thing to make foo() ignore reserved words and always call a function, so that's an invariant across perlish languages 22:32
Jet lag hits. --more-- 22:34
TimToady falls alseep &
22:36 maerzhase left 22:37 pbuetow joined 22:40 FerranZzZz is now known as Ferran
eric256 if i'm making spectest to check a change i made, is there anyway to tell failing tests that are normal from ones i've just added? 22:48
moritz_ eric256: there shouldn't be any failing tests in 'spectest' 22:49
eric256: so all failures are new failures 22:50
eric256 hmm i had failing ones right from a fresh svn
i'll revert and make clean and see what i get
pugs_svn r24422 | putter++ | [elf] Sync with r24080: anonymous subs now require a space after 'sub'. STD_blue synced with STD.pm.
mncharity That was easy. But a lot of time got wasted first. :/ 22:52
22:56 alanhaggai_ joined
eric256 man a lot happens in a day, needed an svn up on the source..all better 22:58
mncharity rakudo: Int.isa(Any) 23:03
p6eval rakudo 33990: RESULT[1]
mncharity rakudo: Main.isa(Any)
p6eval rakudo 33990: RESULT[1]
eric256 t/spec/S04-statements/do..................................argument doesn't array hmm 23:04
23:04 iblechbot left
mncharity so Main is a module rather than just a package? 23:05
moritz_ I've never quite understood the difference 23:06
jnthn rakudo: say Main.WHAT
p6eval rakudo 33990: OUTPUT[Failureā¤]
jnthn say Failure.isa(Any)
rakudo: say Failure.isa(Any)
p6eval rakudo 33990: OUTPUT[1ā¤]
jnthn Heh. :-)
I thought we didn't have a symbol Main defined. 23:07
mncharity moritz_: my fuzzy impression was that packages were simply namespaces, and couldn't participate in inheritance.
jnthn Modules don't participate in inheritance, as such.
At least, not in the way classes do.
I thought Module isa Package isa Any 23:08
In the type hierarchy.
Would have to check S02 to be sure...
mncharity sounds plausible... 23:09
[particle] the only types outside Any are Object and Junction
23:09 justatheory left
moritz_ jnthn: sounds sane, but it doesn't quite explain what a Module has that a Package does not 23:09
mncharity feather.perl6.nl/syn/S10.html feather.perl6.nl/syn/S11.html 23:10
23:11 adc_penner left, alanhaggai left
eric256 how do i write a test for Int.succ such that it wont crash because .succ isn't defined yet? 23:12
mncharity package provides basics and autoload. module provides versioning and export.
Hinrik eric256: eval it?
moritz_ eric256: if you write a new test file, just let it crash, and we only start running it when we pass it
eric256 i tried is eval('my $x = "a"; $x.succ'), 'b'
moritz_ eric256: if you add it to an existing file, skip that block with '#?rakudo skip "todo: .succ"' or something 23:13
eric256 moritz_: is that the prefered method?
moritz_ depends. If you have only a few tests that fit well into another file, add it there
eric256 k its only 6 tests so i'll leave it thanks
mncharity elf was missing package Main is Any; fixed. 23:14
thanks for the help :)
23:15 ruoso joined
mncharity wait, no, now I'm confused again... methods are defined on classes but not packages or modules, no? so, if regex are methods, how does the regex prelude show up in Main...? 23:15
ruoso Hello! 23:16
moritz_ mncharity: prelude subs and methods are in a scope that is lookup up independently of the module/namespace you're in... 23:17
mncharity: and I think that regexes can be both subs and methods
mncharity ruoso: hi ruoso :)
moritz_ (methods in grammars, and subs otherwise)
23:17 abebae left
moritz_ but I guess that jnthn has put more thought into it than I did 23:18
mncharity moritz_: that's... interesting.
jnthn regexes can behave like subs and methods, yes
I've left those details to pm ;-) 23:19
mncharity lol
ok, thanks
ruoso mncharity, it seems that methods go to the package also 23:22
mncharity that's... unexpected. 23:29
23:32 bacek__ joined 23:33 elmex left 23:34 pbuetow left
eric256 so am i correct in assuming that i need to hand run "./fuged rakudo S03-operators/autoincrement.t" or was there an easier way? 23:35
[particle] make t/S03-operators/autoincrement.t 23:36
vim t/localtest.data && make localtest
eric256 i did that and it just ran the tests even though they had it
pugs_svn r24423 | putter++ | [STD.pm] Accept non-ident names in p5 re \p, eg \p{BidiClass:L}. 23:37
[particle] i can't use the first method on windows, so i'm not sure if it fudges, i'd have to check the makefile
moritz_ it does.
[particle] thanks, that's what i thought.
eric256: what's "it" that they had?
eric256 oh jeez it does work right. i wonder why it didn't the first time 23:38
now it skips right even after i delete the autoincrement.rakudo i swear i tried just a straight make the first time 23:39
23:39 DemoFreak left
eric256 burries his head 23:39
mncharity /me notes in pass in that Main in elf was working... I was just confused. 23:41
/me notes buried head. curious.
pugs_svn r24424 | eric256++ | [tests] Added tests for .succ and .pred for Int, Str and Num and marked as TODO 23:44
23:44 alanhaggai_ left 23:45 alanhaggai_ joined
pugs_svn r24425 | putter++ | [elfish/rx_on_re] Build elfx with a rx prelude written in p6. 23:45
r24425 | putter++ | [elfish/STD_blue] Generate IR for p5 re \p{...}.
mncharity not quite a full prelude yet. after/before notably absent. 23:46
eric256 rt.perl.org/rt3/Public/Bug/Display.html?id=61420 <-- patch to make tests actualy work ;) 23:47
not too bad, probably woulda taken one of you like 5 minues, but hey, i'm new ! ;)
mncharity but STD_blue is synced with STD.pm, so that's a relief. 23:48
mncharity looks...
neat. re the 5 minute folks on parrot, yeah, but there are only a few of them, and that's been a bottleneck. now one less fewer... err, or something like that. 23:51
g'night all. Thanks for the assorted assistance. &
23:52 mncharity left