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.
literal perl6: "oh { "hello" } there" 00:01
p6eval pugs, rakudo 33735: RESULT["oh hello there"]
..elf 24233: OUTPUT[Parse error in: /tmp/Cd2dqrZA28␤panic at line 1 column 0 (pos 0): Can't understand next input--giving up␤WHERE: "oh { "hello" } there"␤WHERE:/\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:76:in `scan_unitstopper'␤ STD_red/std.rb:224:in `comp_unit'␤
..STD_red/std.r...
pugs_svn r24234 | pmichaud++ | [rakudo]: Correct .elems count on list-of-lists in cross-metaop.t 00:02
rakudo_svn r33736 | pmichaud++ | [rakudo]: Refactor infix:<X> to avoid numeric list indices. 00:10
pugs_svn r24235 | hinrik++ | [util/perl6.vim] set the 'iskeyword' option, made =encoding look more special, fix interpolated closures, highlight the minus as part of a negative number 00:55
literal perl6: my $var1-k; 01:08
p6eval pugs: OUTPUT[*** No such subroutine: "&k"␤ at /tmp/oWrTmHyZgp line 1, column 1-11␤] 01:09
..rakudo 33737: RESULT[undef]
..elf 24235: OUTPUT[Undefined subroutine &GLOBAL::k called at (eval 117) line 3.␤ at ./elf_f line 3861␤]
literal rakudo: my $vark-k;
p6eval rakudo 33737: RESULT[undef]
literal rakudo: my $var1-1;
p6eval rakudo 33737: RESULT[-1]
literal splendid 01:10
rakudo: my $var1'1;
p6eval rakudo 33737: OUTPUT[Statement not terminated properly at line 1, near "'1;"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
pugs_svn r24236 | hinrik++ | [util/perl6.vim] improved highlighting of variables, fixed problem with reduce 02:16
r24237 | hinrik++ | [util/perl6.vim] apply the same variable highlighting improvements to custom routine names 02:34
dukeleto rakudo: warn "42" 03:53
p6eval rakudo 33739: OUTPUT[Could not find non-existent sub warn␤current instr.: '_block11' pc 20 (EVAL_13:15)␤]
dukeleto did warn get renamed? 03:54
[particle] did it get implemented? 03:55
hey, is the pdx meeting tomorrow?
dukeleto particle: yes
i am not quite sure, I just compiled a perl6 binary and was messing around 03:56
[particle] ok, a few things...
dukeleto how would I go about implementing warn?
[particle] 1) *a lot* of functionality has been implemented in the past week, check rakudo.org for details
dukeleto and if you have any really simple stuff that needs to be done, like test unfudging or doc fixing, I may be able to get people to work on it tomorrow 03:57
[particle] 2) the documentation, starting with docs/getting_started.pod and other docs/* need a good going over
dukeleto particle: I just did a braindump of rakudo.org, amazing!
[particle] 3) we really need help converting the perlfoundation.org/parrot wiki to trac.parrot.org/parrot/wiki
dukeleto lexicals and inpline PIR, spiffy
[particle] and list assignment and slices 03:58
and default values for object/class attributes
and hyperops and metaops
dukeleto particle: this is good, what type of conversion of the wiki do you need?
[particle] *really* *busy* *week* 03:59
migrate the pages from perlfoundation to parrot.org
dukeleto is it the same wiki software?
[particle] no :(
dukeleto some markup/etc?
[particle] socialtext to whatever trac uses
dukeleto uggg. I had to deal with that at work also. incompatible wiki markup is a bummer
but, still doable 04:00
are there certain more important pages that should be done first?
[particle] looks...
start with the 'contributing to parrot' section 04:01
dukeleto that sounds reasonable 04:01
[particle] it'd be nice to have the chart and data, as well 04:03
dukeleto that should be doable, i just created an account on trac 04:05
particle: good news, trac wiki uses MoinMoin syntax, which I am used to 04:06
[particle] awesome.
wonder if a socialtext->moinmoin script would be hard, even an 80% solution 04:07
dukeleto particle: I will look at the socialtext source
[particle] here's the reverse: joiwiki.ito.com/joiwiki/index.cgi?m...ion_script 04:10
rakudo_svn r33740 | pmichaud++ | [rakudo]: Remove declaration-order.t from spectest.data for now.
r33740 | pmichaud++ | It causes a failed assertion in Parrot (which is proving stubborn
r33740 | pmichaud++ | to fix), and would only give us two passing tests for now anyway.
r33740 | pmichaud++ | Perhaps it'll clear up when we refactor signatures and class construction.
dukeleto i just made an openid to try to look at the source of perlfoundation wiki but I am waiting on the email from them 04:14
sucks that you can't view read-only source without creating an account
[particle] hrmm. yes, it does. 04:15
dukeleto but I don't really need the source, it is just basic unnumbered lists, images and links 04:16
dukeleto perlfoundation.org is not responding now, great luck 04:34
The Perl foundation website is temporarily unavailable.
[particle] sigh. svn.perl.org was down for 5-10mins today, maybe this is related and similar. no idea. 04:35
log.perl.org/ isn't helpful on the earlier outage 04:36
dukeleto finally! 04:54
pugs_svn r24238 | hinrik++ | [util/perl6.vim] add the 'contains' keyword 05:43
rakudo_svn r33741 | pmichaud++ | [rakudo]: List assignment on my/our declarations works. 06:00
rakudo_svn r33742 | duff++ | Change instances of "new 'Iterator', foo" to use "iter foo" instead 06:20
pugs_svn r24239 | pmichaud++ | [t/spec]: Update todo message in try.t 06:53
r24240 | pmichaud++ | [t/spec]: Update todo message in return.t 06:55
pugs_svn r24241 | duff++ | parenthesize so that uniq tests parse properly 07:11
rakudo_svn r33743 | duff++ | [rakudo] Changed uniq, min, and max to use iterators 07:20
rakudo_svn r33744 | pmichaud++ | [rakudo]: spectest-progress.csv update: 235 files, 4884 passing, 0 failing 07:30
pugs_svn r24242 | moritz++ | [t/spec] unfudge some list assignment test (and infix:<X>) for rakudo 08:10
Tene How can I check how std.pm parses something? 08:24
moritz_ Tene: either you look at the full html output of the syntax hilighter... 08:31
Tene: or you run it through STD5_dump_match, which seems slightly borked atm
[particle] does tryfile not work? 08:32
src/perl6/tryfile
moritz_ [particle]: that only tells you if, not how 08:34
Tene moritz_: syntax hilighter is where?
[particle] ah
moritz_ Tene: pugs repo, src/perl6/STD_syntax_highlight
./STD_syntax_highlight --full-html $file 08:35
should do
./STD_syntax_highlight --full-html out.html < foo.pl 08:37
then open out.html and click the "Show Syntax Tree" button, and move your mouse over the part of the file you're interested in 08:39
Tene Hey, who wants a first draft of CATCH blocks? 08:52
in rakudo?
Hmm. It needs to set the topic correctly or something, I guess. 08:53
Yeah, I don't have a pugs checkout, I guess. 08:55
moritz_ for STD.pm it's enough to svn co svn.pugscode.org/pugs/src/perl6 08:56
if there's anything in particular that you want to have parsed, just nopaste it, and I'll give you the HTML output
Tene do { say 'omg; CATCH { say 'wtf exception; } } 08:57
moritz_ inserts another quote 08:58
Tene or whatever. anything with a CATCH block in it. 08:59
s/block/closure trait/
moritz_ moritz.faui2k3.org/tmp/catch.html there you go 09:00
Tene 'show syntax tree' just shows '...'
moritz_ Tene: you have to move the mouse over the thing you're intersted in 09:01
Tene ah
moritz_ Tene: and enable javascript in your browser
Patterner Javascript Steals Creditcard Numbers! 09:02
moritz_ sometimes it's comforting not to have a credit card :-)
literal www.itworld.com/print/58558 09:10
Tene sleep. 09:12
Okay, working-but-incorrect patch sent to pmichaud. Now real sleep. 09:16
moritz_ literal: so true (and scary for the casual programmer)
literal are hash keys subject to the same restrictions as identifiers like variable and package names? I didn't find anything on that in the synopses 09:17
moritz_ literal: you mean on the LHS of the => operator? 09:20
token fatarrow { <key=identifier> \h* '=>' <.ws> <val=EXPR(item %item_assignment)>
}
from STD.pm
so it looks like it expects an identifier 09:21
literal moritz_: that and hash keys in general
will take a look at STD.pm 09:22
moritz_ literal: hash keys in things like %hash<key here> are arbitrary 09:23
moritz_ unlike perl 5, we have no auto quoting in %hash{key} because there's a different syntax for quoted hash keys 09:24
literal yeah
moritz_ literal: I very much like your syntax highlighting works, very nice to use
literal good to know :) 09:26
literal the things I haven't really touched are Q and all the regex/rule stuff 09:31
I'll have to, though, since the latter currently breaks the highlighting in many test files 09:32
pugs_svn r24243 | hinrik++ | [util/perl6.vim] latin1 alphabetical characters allowed in identifiers, require identifier for autoquoting, highlight the $ placeholder like a variable, not an operator 10:41
pugs_svn r24244 | hinrik++ | [util/perl6.vim] small cleanup 10:48
azawawi ping pong 14:25
@seen moritz_
lambdabot moritz_ is in #perl6. I last heard moritz_ speak 5h 42s ago.
moritz_ s/ping pong/table tennis/
azawawi moritz_: im back ;-) 14:26
moritz_: and im sorry it runs slow on ff2
moritz_ azawawi: I'll be migrating to ff3 some day anyway...
azawawi which page is it? 14:27
@tell literal great work on perl6.vim
lambdabot Consider it noted.
moritz_ azawawi: for example S03
azawawi what kind of hardware you're running it on? memory? 14:28
moritz_ 2Ghz dual core, 3GB ram. 14:29
hardware is not a problem.
literal @tell azawawi thanks
lambdabot Consider it noted.
azawawi lol
lambdabot azawawi: You have 1 new message. '/msg lambdabot @messages' to read it.
azawawi @messages 14:30
lambdabot literal said 17s ago: thanks
moritz_ azawawi: it might also be related to one of my many browser plugins
azawawi can u disable them and try again?
im downloading the latest win ff2 btw...
moritz_ azawawi: not now, I'm not at home right now 14:31
azawawi moritz_: tried and it works like a charm... vanilla ff2+firebug 14:35
moritz_: if it is getting http gzip-ed, then it is going to be fast 14:37
moritz_ azawawi: the slowness is after downloading the page, while rendering or running js or something
azawawi moritz_: that's the problem, im not running any js on startup. 14:39
moritz_: it loads the file in an iframe when you click on 'simple', and in a new window when you click 'full' 14:41
moritz_ azawawi: but there is javascript that runs on startup, that collapses the inline tests
azawawi moritz_: i dont remember touching that 14:42
@seen TimToady
lambdabot TimToady is in #perl6. I don't know when TimToady last spoke.
moritz_ azawawi: neither do I, but I do observe a slowdown that wasn't there before.
azawawi moritz_: will investigate it... 14:44
moritz_: did u hear anything about STD.pm license for CPAN inclusion from TimToady? 14:45
moritz_ azawawi: I didn't, but TimToady is travelling atm and not very responsive 14:46
azawawi moritz_: i think i got it. it is attaching to all divs in the document and im adding like 119 divs to S03 14:48
TimToady in Kuala Lumpur on very low battery. assume Artistic 2.0 for now, I think 14:57
lambdabot TimToady: You have 2 new messages. '/msg lambdabot @messages' to read them.
azawawi thanks...
moritz_ TimToady: have the appropriate amount of fun :-) 14:58
PerlJam DCCs TimToady some power
TimToady will resurface in Amsterdam in about 14 hrs or so
afk & 14:59
azawawi moritz_: try this version plz: feather.perl6.nl/~azawawi/S03.html 15:00
moritz_ azawawi: I'll try later when I'm at home 15:01
pugs_svn r24245 | azawawi++ | [util/smartlinks.pl] Converted highlighter divs to spans to improve 15:05
r24245 | azawawi++ | [util/smartlinks.pl] Sxx startup load performance. moritz_++
azawawi what's a good package name for STD_syntax_highlight STD::Syntax::Highlight or Syntax::Highlight::Perl6 ? 15:17
moritz_ Perl6::Highlight 15:18
azawawi nice one
ruoso pmichaud++ # very nice blog post 15:29
moritz_ pmichaud++ # very nice features in rakudo :-) 15:30
pugs_svn r24246 | azawawi++ | [Perl6::Highlight] Adding the initial required structure & files 16:31
moritz_ @tell azawawi I don't think src/perl6/ is a good location for a Perl 5 module. Maybe misc/ would be better? 17:11
lambdabot Consider it noted.
moritz_ rakudo: say <1 2> X<=X <2 3> 18:22
p6eval rakudo 33771: OUTPUT[1111␤]
moritz_ rakudo: say ?all <1 2> X<=X <2 3>
p6eval rakudo 33771: OUTPUT[1␤]
[particle] should that really return 1 rather than Bool::True? 18:29
pugs: say 1 <= 2
p6eval pugs: OUTPUT[1␤]
[particle] okay then :) 18:30
moritz_ [particle]: there's no official word on how enums stringify yet
[particle] ah, right! good point.
pugs_svn r24247 | moritz++ | [t/spec] combined junction and XopX tests 18:31
moritz_ these tests that I've added (and I'm working on more) look really scary ;-) 18:32
moritz_ rakudo: my ($x, $y, $z); say ? $x, $y X!=:=X $z 18:35
p6eval rakudo 33771: OUTPUT[11␤]
moritz_ rakudo: my ($x, $y, $z); say ? all $x, $y X!=:=X $z
p6eval rakudo 33771: OUTPUT[1␤]
moritz_ tests that there's on overlap between containers on the RHS and LHS 18:36
Hinrik are there any non-identifier variable names other than $!, $/, and $\d+ ? 18:38
moritz_ apart from those with twigils and pseudo-twigils I'm aware of none 18:39
Hinrik pseudo-twigils?
moritz_ $<foo>
Hinrik ah yeah, forgot to mention that one 18:40
pugs_svn r24248 | moritz++ | [t/spec] more meta ops tests 18:45
moritz_ testing is hard, let's go shopping. 18:52
bbiab
[particle] there's @_ $_ etc
Hinrik _ is allowed in an identifier, so I didn't count those 19:02
[particle] it's not allowed to start an identifier, though. ok 19:09
oh, nm, it is. 19:10
rakudo_svn r33773 | infinoid++ | [cage] Fix trailing whitespace.
[particle] checks just in case
Tene So, anyone feel like telling me what I need to do with the exception object for CATCH blocks? Do I set it to $_? 20:40
The spectests check it using 'when', which checks $_ iirc...
jnthn Tene: I would expect, for the sake of generality, it want's to go in a named register. 20:47
$_ is rather Perl specific.
Tene jnthn: I'm asking for rakudo specifically.
jnthn Tene: Oh, I see. I though you were asking about it for PAST. 20:48
Tene all parrot does is put it in a named register
I'm asking about the PAST I need to generate
jnthn OK, great.
Tene unless you want to do it. I have an incorrect patch that works, but doesn't set $_
jnthn Tene: The details are in dev.perl.org/perl6/doc/design/syn/S04.html 20:49
See section Exception Handlers
But yes, it goes in $_, and is in $! too
Tene I'm not sure yet how to refer to a named register in PAST. I'll look around. 20:51
jnthn PAST::Var.new( :name('nameofreg') :scope('register') ) 20:54
Tene Clever. Okay.
lisppaste3 aartist pasted "LWP::Protocol::https::Socket error" at paste.lisp.org/display/71943 21:52
rakudo_svn r33777 | jonathan++ | [rakudo] Perl6MultiSub PMC tests that attach a signature should have multi_invocant set to true, as those generated by Rakudo do. 22:00
moritz_ rakudo: my %h = a => 4, b => 3; say %h<b a> 22:11
p6eval rakudo 33776: OUTPUT[Use of uninitialized value␤␤]
moritz_ rakudo: my %h = a => 4, b => 3; say %h{'b', 'a'}
p6eval rakudo 33776: OUTPUT[Use of uninitialized value␤␤]
pugs_svn r24249 | jnthn++ | [t/spec] Add a test for the ;; syntax. 22:27
rakudo_svn r33780 | jonathan++ | [rakudo] If we add an invocant to a signature, we must mark that it is a multi invocant too. 22:30
r33781 | jonathan++ | [rakudo] Make Perl6MultiSub honor lack of multi_invocant in a signature, meaning ;; now functions correctly.
pugs_svn r24250 | jnthn++ | [rakudo] Tests to make sure that declaring anonymous routines with only, multi or proto fails. 22:42
rakudo_svn r33782 | jonathan++ | [rakudo] Make it an error to use only, multi or proto with an anonymous routine. 22:50
pugs_svn r24251 | moritz++ | [t] remove Test-Less/. Afaict it's not used, and superseeded by fudge 22:57
r24251 | moritz++ | (protest NOW if I'm wrong)
r24252 | moritz++ | [t/spec] fix plan in S06-multi/syntax.t; use eval_dies_ok for terser testing 23:16
jnthn moritz_: Ooh, I shoulda thought to use that...thanks. 23:17
moritz_ jnthn: np
Hinrik so I heard testing will be integrated into the language, what will that look like? 23:20
moritz_ Hinrik: that's up for debate ;-) 23:21
Hinrik I see
moritz_ trac.parrot.org/parrot/wiki/PerlSixTesting
that's my current brainstorming, with ideas from pmichaud and masak
Hinrik interesting 23:22
Khisanth prefers the other parrot logo 23:27
moritz_ I have to go to bed now... if you have any comments or questions on the Testing outline, go ahead, I'll backlog 23:29
pugs_svn r24253 | tene++ | Un-eval a test.
rakudo_svn r33783 | tene++ | [rakudo]: Initial support for CATCH blocks. 23:40