»ö« | perl6-projects.org/ | nopaste: paste.lisp.org/new/perl6 | evalbot usage: 'perl6: say 3;' | irclog: irc.pugscode.org/ | UTF-8 is our friend!
Set by moritz_ on 30 July 2009.
00:04 stepnem left 00:05 stepnem joined 00:07 stepnem left, SmokeMachine joined 00:09 lollan joined, stepnem joined 00:12 stepnem left 00:16 stepnem_ joined 00:17 stepnem_ is now known as stepnem 00:38 hercynium left 00:44 Whiteknight joined 00:55 lollan left 00:56 Rolo joined 00:57 Avada left, Avada joined 00:58 Rolo left 01:00 cognominal left, Whiteknight left 01:09 damyan left, stepnem left, araujo left, eMaX left 01:10 eternaleye left, eternaleye joined 01:11 stepnem joined, araujo joined, eMaX joined, damyan joined 01:14 KyleHa joined 01:15 explorer joined 01:32 Chillance left 01:41 cytoplasm left 01:44 skids_ joined 01:47 skids_ left 01:50 ihrd left 01:51 frew joined 01:56 explorer left 01:57 alester joined
colomon Is there a way to get bignums in Rakudo? 02:00
02:00 ihrd joined
colomon (My wife: "You embiggen the one you have.") 02:01
02:04 alester left, alester joined 02:06 alester_ joined 02:07 stepnem left 02:08 alester__ joined 02:09 stepnem joined 02:10 alester left 02:11 stepnem left 02:14 stepnem joined 02:16 stepnem left
meppl good night 02:16
02:17 meppl left 02:19 stepnem joined, nihiliad joined 02:22 KyleHa_ joined 02:26 alester_ left, nihiliad left, nihiliad joined 02:30 alester__ left 02:43 justatheory joined 02:45 alester joined 02:49 nihiliad left 03:02 JimmyZ joined
pugs_svn r27888 | jimmy++ | [Spec]fixed the wrong space, now it's \x20, not \xC2A0 03:02
03:20 ihrd left 03:21 justatheory left 03:22 nihiliad joined 03:33 nacho__ joined 03:35 nacho_ left
wayland76 finanalyst: pong :) 03:51
04:00 justatheory joined 04:06 sparc_ joined, kimtaro joined
pugs_svn r27889 | wayland++ | [S32/IO] Made some more mods to the filesystem due to interaction with finanalyst++ 04:07
04:11 PZt left 04:28 r0bby left, r0bby joined 04:32 justatheory left 04:35 unitxt left 04:36 tann joined 04:45 KyleHa_ left 04:46 nihiliad left 04:47 SmokeMachine left 04:50 nacho__ left 04:54 nihiliad joined
wayland76 KyleHa: ping? 05:01
05:03 kst left, kst joined 05:05 frew left 05:13 JimmyZ left 05:20 tann left 05:36 alester left 05:39 alester joined 05:45 orafu left, orafu joined 05:46 tann_ joined 05:59 nihiliad left
moritz_ robonperl.blogspot.com/2009/08/firs...of-p6.html ++ 06:13
araujo checks 06:23
exciting 06:25
:)
06:47 PZt joined 07:05 rfordinal joined 07:08 huf_ joined 07:18 huf left
pmichaud Good morning, #perl6 07:28
Matt-W Good morning pmichaud
Strange to have you in a similar time zone
pmichaud Last day it will occur for a while :-)
(at the airpot now :-) 07:29
Matt-W Has it been good?
pmichaud the trip has been quite nice, yes
Matt-W By the way, the Rakudo * plan, I like that a lot
pmichaud thank you 07:30
Unless I sleep or get otherwise occupied, I plan to write up more details on the plane
Matt-W Great
pmichaud (plane has power so no battery issues :-)
Matt-W Fantastic
Not all flying sucks
moritz_ oh hai
pmichaud yes, I've had pretty good luck with traveling lately 07:31
07:32 alester left
pmichaud (I probably shouldn't have said that just before getting on a plane -- might have jinxed myself) 07:32
Matt-W I find flying horribly uncomfortable, but I think that's because only business class is likely to have enough legroom for someone my height 07:33
pmichaud For my cross-the-atlantic flight I have an exit-row seat with extra legroom (not that I need it)
moritz_ pmichaud: is the ins2 branch still blocking on anything?
Matt-W nice, I've had that a couple of times, it does make a difference 07:34
moritz_ ah, that's nice
Matt-W Once when I flew to Basel for a long weekend, I got in row 1, chatted with the stewardess and my neighbours, very pleasant
On the way back, got in the same seat... and had the same neighbours
pmichaud heh
ins2 branch is just blocking on tuits, I think
moritz_ tuits for doing what? 07:35
pmichaud I didn't want to merge to trunk when I wouldn't have time to babysit it
Matt-W making it wokr?
pmichaud (in case something went wrong)
moritz_ ok
pmichaud other than that I think ins2 is ready
Matt-W great
pmichaud I can see about merging it tomorrow or Sun
Matt-W the best thing about a feature branch is when it's merged back as completed
moritz_ I might assist with babysitting this weekeend, I'm mostly online
pmichaud It would be good to merge back this weekend, we'd get some tests before the release on the 20th 07:36
moritz_ right
I went through the README
it didn't need any updating at all 07:37
pmichaud excellent
moritz_ (just found a typo ;-)
07:37 broquaint left
moritz_ do we have different Failure objects yet, and if so, how can I distinguish them? 07:40
(for implementing infix:<eqv> for undef) 07:41
pmichaud We don't have different ones yet, no
moritz_ good
pmichaud Eventually Failure will be a role
moritz_ so if $a ~~ Failure and $b ~~ Failure, $a eqv $b
07:42 eMaX left
pmichaud well, I don't think that two Failure objects necessarily implies equivalence 07:42
any more than $a ~~ Int and $b ~~ Int implies $a eqv $b
I thought you meant "different types of Failure objects"
moritz_ that's why I'm asking ;-)
pmichaud I fully expect that we'll have a variety of Failure types -- nobody has decided what those are yet 07:43
moritz_ but we don't have them right now
pmichaud correct.
we have a Failure class (should be a role), and there can be multiple objecs of the Failure type 07:44
moritz_ I was trying to implement Test.pm's is_deeply in terms of eqv 07:45
and found out that 'undef eqv undef' loops in the current implementation
rakudo: say undef === undef
pmichaud I'd like that very much
p6eval rakudo 459f5a: OUTPUT«0␤»
moritz_ the problem is that I can't re-dispatch to ===, because Failure is not a value type 07:46
so I was looking for other ways to check if two undef's are the same
Matt-W can undefs ever be the same?
moritz_ my version was 'multi infix:<eqv> (Failure $a, Failure $b ) { True }'
Matt-W can one undefinedness be the same as another?
moritz_ but that seemed a bit too simply
Matt-W: sure
eqv is structural equality 07:47
07:47 rfordinal left
moritz_ roughly like $a.perl eq $b.perl 07:47
Matt-W ah
moritz_ so 'undef eqv undef' should be true
Matt-W yes, undef eqv undef should hold
pmichaud starting simple is fine it it works
moritz_ ok
pmichaud s/it/if/ 07:48
(bit of a lag in the internet connection here)
moritz_ then I'll push my changes
Matt-W would write a patch for something, but has to do $dayjob :( 07:51
maybe later :)
From recent updates to the spec, it looks like I migth have somewhere to put my file statting code 07:56
07:59 masak joined
masak morning, rakudoers. 08:00
moritz_ oh hai Matt-W 08:04
erm, masak
:-)
both, actually
masak today it's just Lisbon and me. 08:05
I'm thinking of what to go see.
Matt-W hmm 08:08
I know almost nothing relevant about Lisbon
masak I hear the Museum of Science is s'posed to be good. 08:09
mberends gave that as a parting tip.
Matt-W could be interesting
08:13 masak left, masak` joined 08:14 finanalyst joined
masak` hm, slightly flaky hostel wifi. I'm sitting a bit too far from the source. 08:14
08:14 tann_ left 08:15 sri_kraih_ left
pmichaud just ran into mberends++ and jnthn++ at the airport :-) 08:19
masak` :)
small town.
08:19 masak` is now known as masak
pnu does rakudo implement tying a variable, aka specifying the variable implementation type (my $foo is Bar) other than the default derived from the sigil? 08:19
pmichaud pnu: not yet
(not currently on the short-term roadmap, either)
pnu so i figured from the source, just verified.. thanks. :-)
finanalyst pmichaud: when is here to doc planned for? 08:20
pmichaud finanalyst: it will likely occur when we start using STD.pm
currently that's december-ish
we aren't too rushed on heredocs because there's always the various quoting forms available
masak though it'll be nice when heredocs land. 08:21
pmichaud sure
finanalyst i have been using the quoting forms, but the autospacing aspect of hereto is attractive
pmichaud agreed
masak but I agree; no need to do it before STD.pm-compat.
pmichaud one could easily write a function to take care of the autospacing aspect
finanalyst mm 08:22
pmichaud autospace(qq{ ... })
masak nice idea.
moritz_ just wanted to suggest the same
you could just strip off the amounts of whitespaces that make up the last line
pmichaud for that matter, there could be an attribute to the quoting forms that says "strip 8 leading whitespace"
qq:strip(8) { ... lines with leading eight spaces removed ... } 08:23
finanalyst or a string that is stripped off
moritz_ then that number would have to be maintained
finanalyst a sort of stripper function :)
pmichaud qq:strip { ... lines with leading spaces computed and stripped ... }
qq:strip(*) { ... same as :strip ... }
moritz_ qq:trim { ... }
we call it trim in another place already 08:24
finanalyst trim implies both sides
pmichaud trim works too, although there's a semantic conflict with the trim() function
moritz_ (although it's not exactly the same)
pmichaud might want to be some variant of :ws
finanalyst :unindent
pmichaud oooh, :unindent is nice :-)
anyway, the point is that we could provide a similar capability without having to use a heredoc :-)
moritz_ but please first spec it, then implement it 08:25
finanalyst it is the indenting aspect that i miss most at present
pmichaud right, I suspect that's the case for most people who want heredocs
they want the "automatically unindent my string" feature
08:26 hanekomu joined
pmichaud so perhaps we want a Str.unindent function :-) 08:26
my $x = qq{ ... text ... }.unindent
finanalyst but that implies the qq{} is a single line
pmichaud not at all 08:27
my $x = qq{
text
text
text
}.unindent
Matt-W would that then look at the last line, count the prefix whitespace length and lop that off each line?
pmichaud Matt-W: that would be one way to do it; another would be to simply find the line with the least amount of ws
and use that
Matt-W hmm true 08:28
finanalyst better the line with least ws
Matt-W the last line thing is a heredocish concept
masak rakudo: sub autospace($str) { my @lines = $str.split("\n"); @lines>>.substr([min] map { indent $_ }, @lines).join("\n") }; sub indent($line) { $line ~~ /^ (\x20*)/; $0.chars }; say autospace(" foo\n bar\n baz")
p6eval rakudo 459f5a: OUTPUT«foo␤ bar␤baz␤»
pmichaud show off.
Matt-W easy enough to write too
pmichaud :-)
so, while I'm here speculating about what could be done, masak++ is busy writing the code
Matt-W isn't there a Str.lines method? 08:29
moritz_ so was I, but masak++ was faster
finanalyst when will it be in rakudo?
pmichaud anyway, jnthn++ and I put heredocs as a "nice to have" for Rakudo * but we expect to get them "for free" when we start using STD.pm 08:30
Matt-W in about another five minutes
finanalyst brill!
Matt-W pmichaud: I hope so, it would make a lot of people happier to try Perl 6 I think
masak: implemented it in the rakudo tree yet?
moritz_ please don't put unspecced features in Rakudo 08:31
pmichaud Matt-W: yes, I agree. But jnthn++ and I both felt that it wouldn't be worth blocking Rakudo * on heredoc support, since there are many reasonable alternatives
moritz_ not unless there's a *very* good reason (like it is with Q:PIR)
Matt-W pmichaud: indeed 08:32
finanalyst how about a small module String::Extras
Matt-W I was just going to call it Unindent.pm
08:33 masak left, rfordinal joined
pmichaud "Undent.pm" :-) 08:33
finanalyst Unindent,whatever
Undent is for pulling teeth
:)
Matt-W do we have is copy yet 08:34
moritz_ yes
Matt-W woooo
finanalyst i do need unindent, so if someone does an implementation, please let me know 08:35
Matt-W not that i need it
I just thought of it
finanalyst i have used is copy
Matt-W is turning it into a module 08:36
pmichaud they're calling might flight, so I'll be leaving soon. 08:37
Matt-W okay
have a good flight
finanalyst safe landing
Matt-W hope you can get some useful hacking done to pass the time
pmichaud o/ I'm leaving ... on a jet plane... don't know when I'll be back again ... o/
I have some books to read, puzzles to solve, documentation to write
even sleep would be useful :-)
catch you all on the other side of the atlantic :) 08:38
Matt-W well 08:40
I'll still be on the same side of the atlantic...
08:51 charsbar left, charsbar joined
Matt-W finanalyst: I have a module, it works! 08:53
finanalyst how do i get it?
Matt-W matthew-walton.co.uk/unindent.tar.bz2 08:55
I shall have to get it into an appropriate repo somewhere
08:55 ihrd joined
Matt-W perl6-examples perhaps 08:56
08:56 ihrd left 09:01 cognominal joined 09:04 synthEEEE left, synth joined 09:08 payload left 09:15 meppl joined 09:17 M_o_C joined 09:27 kimtaro_ joined 09:29 kimtaro left 09:35 kane_ left 09:36 alexn_org joined
colomon Anyone out there this morning? 09:41
09:41 broquaint joined
moritz_ no, I'm indoor :-) 09:42
colomon I've got a question and a bug. Bug first:
I actually got a segmentation fault running a simple (but long running) Perl 6 script yesterday.
moritz_ did it consume much memory? 09:43
colomon quite possibly, if it is leaking memory -- I was getting ready for bed rather than watching my computer when it happened. 09:44
moritz_ anyway, please submit a bug report for it 09:45
colomon I'm running it again now with the Activity Monitor up. 09:46
Worth reporting even if it is running out of memory?
moritz_ yes; a simple program that leaks memory might help debugging rakudo and/or the GC 09:47
if it's a leak
if you just assemble ever larger data structures, there's not much point in reporting
09:49 Khisanth left
lisppaste3 colomon pasted "memory leak?" at paste.lisp.org/display/84969 09:49
colomon No data structures at all, it just iterates on $n. 09:50
It's just chewed up 70 MB of memory...
moritz_ has to build a rakudo first 09:51
was that your question, or did you want to ask something else?
colomon My question is about Bignums. Does Rakudo implement them yet? 09:52
Seems like I'm getting floats instead...
09:52 payload joined
moritz_ interesting question 09:52
I think that if libgmp is installed while you configured parrot then bigints are supported 09:53
colomon (Script just seg faulted again. Definitely leaking memory, but I don't think it had come anywhere close to using all the available memory.)
moritz_ ok, then report please
colomon I just use perl Configure.pl --gen-parrot to build parrot.
(will report.)
moritz_ rakudo: say 2**200
p6eval rakudo e5a63d: OUTPUT«1.60693804425899e+60␤» 09:54
colomon Yup, like that. 09:55
moritz_ hrmpf 09:57
09:58 rfordinal left 09:59 molaf joined 10:00 alexn_or1 joined, Front_slash joined
colomon That's a recent change, isn't it? It seems like the first version of Rakudo I played with had Bignums enabled. 10:01
moritz_ rakudo: say 2**2000
p6eval rakudo e5a63d: OUTPUT«Inf␤»
moritz_ not all that recent
colomon: are you sure you don't confuse it with pugs?
colomon Not 100% sure. 10:02
pugs: say [*]1..30 10:03
p6eval pugs: OUTPUT«*** ␤ Unexpected "1"␤ expecting dot, ":", "(", term postfix, operator or ","␤ at /tmp/I6kUIO4DYk line 1, column 8␤»
moritz_ space!
colomon rakudo: say [*] 1..30
p6eval rakudo e5a63d: OUTPUT«2.65252859812191e+32␤»
colomon perl6: say [*] 1..30
p6eval elf 27889: OUTPUT«Parse error in: /tmp/wGZh67vGrA␤panic at line 1 column 0 (pos 0): Can't understand next input--giving up␤WHERE: say [*] 1..30␤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.rb:210:in
..`_…
..pugs: OUTPUT«265252859812191058636308480000000␤»
..rakudo e5a63d: OUTPUT«2.65252859812191e+32␤»
moritz_ colomon: does rakudo pass t/spec/S03-operators/overflow.t for you (not run by default)? 10:04
colomon 17 tests, all tests successful. 10:05
10:05 molaf left 10:06 alexn_org left
colomon (rakudobug reported.) 10:06
moritz_ colomon: thanks
colomon re overflow.t: is a float enough to store those overflows? seems like a C double would be able to handle them "exactly"... 10:08
moritz_ maybe 10:09
since they come from perl 5 originally, that would seem senible.
colomon In Perl 5 they would be automatic Bignums, wouldn't they? 10:10
wayland76 Matt-W: File statting goes in IO::FSNode, right? 10:14
Matt-W not as I understand it now...
I'm probably wrong though 10:15
I really don't get the FSNode stuff
it looks messy
10:15 donaldh joined
wayland76 Well, maybe it is, but it's fairly simple 10:17
IO::File is the data from inside the file
IO::FSNode is the data that the filesystem knows about the file
(permissions, type, and stuff) 10:18
10:23 alexn_org joined
Matt-W FSNode is kind of ugly 10:23
10:24 payload left 10:34 missingthepoint joined
missingthepoint hi all :) 10:35
10:35 Su-Shee joined
Su-Shee good day, stars and starlets. ;) 10:36
missingthepoint hi Su-Shee :)
10:39 alexn_or1 left 10:40 PZt left, Muixirt joined
Muixirt hi 10:43
why exactly doesn't rakudo work with the jit core? 10:44
10:44 alexn_or1 joined 10:46 JimmyZ joined 10:48 synth left 10:52 alexn_org left 10:54 Muixirt left
Su-Shee hi missingthepoint :) 10:55
moritz_: seen heise.de? 10:56
11:01 alexn_or1 left 11:09 alexn_org joined 11:20 donaldh left 11:21 donaldh joined
wayland76 Matt-W: In what way is FSNode ugly? 11:23
JimmyZ I think '^Foo.can(Foo, 'bar')' can work too. 11:26
pugs_svn r27890 | jimmy++ | [t/spec/S12-introspection/meta-class.t] added missing grammar spectests for S02 and S12. 11:31
11:32 ruoso left 11:35 alexn_org left
colomon rakudo: (1..3).map({$_ => $_*$_}).perl.say 11:41
p6eval rakudo e5a63d: OUTPUT«Use of uninitialized value␤Use of uninitialized value␤Use of uninitialized value␤Null PMC access in invoke()␤in Main (/tmp/xCUuiEBOsh:2)␤»
moritz_ Su-Shee: not yet 11:42
nice. 11:43
colomon std: (1..3).map({$_ => $_*$_}).perl.say 11:44
p6eval std 27890: OUTPUT«ok 00:02 38m␤»
11:44 kimtaro_ left
colomon moritz_: rakudobug? 11:45
11:45 missingthepoint left
moritz_ colomon: it's parsed as a hash, not as a block 11:45
colomon: which is correct, afaict
std: * ** 2
p6eval std 27890: OUTPUT«ok 00:02 37m␤»
11:45 kimtaro joined
moritz_ std: * => * ** 2 11:46
p6eval std 27890: OUTPUT«ok 00:02 37m␤»
moritz_ now *that* is an evil block :-)
colomon moritz_: How do you do a map like that, then? (Assuming my intent is clear from the code.)
moritz_ rakudo: (1..3).map({: $_ => $_*$_}).perl.say 11:47
p6eval rakudo e5a63d: OUTPUT«Unable to parse block; couldn't find final '}' at line 2, near ": $_ => $_"␤in Main (src/gen_setting.pm:3366)␤»
moritz_ rakudo: (1..3).map({; $_ => $_*$_}).perl.say
p6eval rakudo e5a63d: OUTPUT«[1 => 1, 2 => 4, 3 => 9]␤» 11:48
moritz_ rakudo: (1..3).map(* => * * *).perl.say
p6eval rakudo e5a63d: OUTPUT«Null PMC access in invoke()␤in Main (/tmp/vjN8wtjJT9:2)␤»
colomon Semicolon does the trick for my code. Is it a hack or proper Perl 6? 11:51
moritz_ it's properl Perl 6
basically { ... } can be a hash or a block 11:52
and when ... is a list of pairs (or a single pair), then it's interpreted as a hash ref
if you add a semicolon, it's not a list of pairs anymore
11:53 unitxt joined
colomon At the beginning -- semicolon at the end does not work, right? 11:53
Is there a Pair constructor? (I haven't looked into Perl 6 OO at all yet.) Seems like calling one would be a much more elegant way of doing this. 11:54
moritz_ rakudo: (1..3).map({$_ => $_*$_;}).perl.say # I think this should work too 11:55
p6eval rakudo e5a63d: ( no output )
moritz_ colomon: no, an explicit pair constructor would be too much to type when you write hashes 11:56
rakudo: say 1
p6eval rakudo e5a63d: OUTPUT«1␤»
11:57 hah joined
colomon moritz_: semicolon at the end (much more elegant IMO) does not work in my code. 11:59
moritz_++
I've got to go walk my son and my dog. Back in an hour or so.
11:59 arnsholt left
pugs_svn r27891 | dakkar++ | fixed the tests 12:01
12:03 kimtaro left
Matt-W wayland76: nomenclature. FSNode - what node? filesystem node. Oooh. Why can't it just say that then? 12:05
pugs_svn r27892 | jimmy++ | [t/spec/S12-introspection/meta-class.t]updated to 9 plans 12:11
JimmyZ where's the weekly perl6 talking? 12:16
moritz_ there's a weekly conference phone call
do you mean that?
JimmyZ yes
where'is it now?
moritz_ there's no "where" for a phone call that's spread over the world 12:17
JimmyZ there were text-record on rakudo.org before. but I can't find it now. 12:18
moritz_ usually they are on chromatic's blog, and can also be found via planetsix
JimmyZ moritz_: thanks, found it. 12:19
12:21 hanekomu_ joined 12:37 hanekomu left, PZt joined
wayland76 Matt-W: Do you want it to be called IO::FilesytemNode > 12:43
moritz_ what about Filesystem::Node?
Matt-W I'm not sure
I'm a little wary of the names getting too long
but I'd also like them to be explicit
wayland76 So am I, that's why I had FSNode 12:44
moritz_ 'File'
wayland76 moritz_: But isn't that the stuff that's *inside* the file?
Matt-W File::Guts :P
moritz_ wayland76: that would be Buf or Str
DirEntry (ouch) 12:45
finanalyst What is wrong with FileNode? File is what's inside. FileNode is where its at
moritz_ sounds reasonable 12:46
Matt-W mmm 12:50
12:50 ruoso joined 12:56 SmokeMachine joined 12:58 molaf joined
colomon moritz_: Those Null PMC accesses we got mucking about with the hash versus the code block in map: worth reporting as bugs? 13:02
finanalyst Matt-W: been experimenting with your unindent. A problem arises with prefixing lines with tabs as opposed to spaces, but then how many spaces does a tab make up? So left with spaces 13:03
Matt-W: How can I get your function to be a method on Str classes? 13:04
moritz_ colomon: yes. It should die (at least if there's no semi at all), but null PMC access is always wrong
Matt-W finanalyst: something I don't quite understand - sometimes a multi sub can be called as a method and it works, but it doesn't seem to in this case (or maybe that was a hole that was cleaned up). The sure way I know to do it is to add it to the Str class with 'is also' (augment, once that's implemented in rakudo) 13:05
finanalyst: and yes, tabs are a problem
moritz_ Matt-W: if you find a case where you can call a multi sub as a method, please submit a bug report. 13:06
KyleHa I forgot I had this window open.
Matt-W moritz_: it's not supposed to happen?
moritz_ Matt-W: no 13:07
13:07 KyleHa left
finanalyst i did thin 13:07
Matt-W moritz_: okay, good. nice to know one way or the other, and it doesn't really make much sense to do so :)
epseically not when you've got augment class
finanalyst is augment implemented? if so whats the syntax?
13:07 synth joined
Matt-W augment is not 13:08
we have the old one instead
class Str is also { }
13:08 ssm left
colomon rakudo: (1..3).map({$_ => $_*$_;}).perl.say 13:09
p6eval rakudo e5a63d: OUTPUT«Use of uninitialized value␤Use of uninitialized value␤Use of uninitialized value␤Null PMC access in invoke()␤in Main (/tmp/8McBNVU08o:2)␤»
colomon Okay, reported. 13:10
finanalyst rakudo: class Str is also {method tail() {$_~'_tail'}}; my $a = '123'; say $a.coda;
p6eval rakudo e5a63d: OUTPUT«Method 'coda' not found for invocant of class 'Str'␤»
finanalyst rakudo: class Str is also rakudo: class Str is also {method tail() {$_~'_tail'}}; my $a = '123'; say $a.coda;{method tail() {$_~'_tail'}}; my $a = '123'; say $a.tail; 13:11
p6eval rakudo e5a63d: OUTPUT«Unable to parse class definition at line 2, near "rakudo: cl"␤in Main (src/gen_setting.pm:1506)␤»
finanalyst rakudo: class Str is also rakudo: class Str is also {method tail() {$_~'_tail'}}; my $a = '123'; say $a.tail;
p6eval rakudo e5a63d: OUTPUT«Unable to parse class definition at line 2, near "rakudo: cl"␤in Main (src/gen_setting.pm:1506)␤»
Matt-W rakudo: class Str is also { method tail () { this ~ '_tail' } }; my $a = '123'; say $a.tail; 13:13
p6eval rakudo e5a63d: OUTPUT«Could not find non-existent sub this␤»
finanalyst what is wrong here, please?
Matt-W rakudo: class Str is also { method tail () { self ~ '_tail' } }; my $a = '123'; say $a.tail;
p6eval rakudo e5a63d: OUTPUT«123_tail␤»
Matt-W what's wrong is that in my IRC window it looks like you've got half pastes landing in the middle of your lines 13:14
finanalyst rakudo: class Str is also { method tail () { $self ~ '_tail' } }; my $a = '123'; say $a.tail;
p6eval rakudo e5a63d: OUTPUT«Symbol '$self' not predeclared in tail (/tmp/hkaLVN6HMt:2)␤in Main (src/gen_setting.pm:3366)␤»
Matt-W and you're defining a method that's not the same as the one you're calling
finanalyst 1st 2 tries were hamfisted, but third seemed to be ok 13:15
moritz_ there's no $self
it's just self (without sigil)
finanalyst just seen that self without sigil works
Matt-W $self only works if you put it in explicitly 13:16
as in method tail($self:)
but I see little reason for that when you've always got self
finanalyst thanx
Matt-W I just keep calling it this, because I write C++ for a living
13:18 Khisanth joined 13:20 Khisanth left
[particle] jimmy? 13:24
the spaces in the specs for "Perl 6" are non-breaking for a reason.
oh, looks like moritz replyed... 13:25
moritz_ [particle]: he's called JimmyZ in here, I think 13:26
JimmyZ It's br0ke here 13:29
moritz_ what is broken, and in what way? 13:31
JimmyZ It's displayed as traditional Chinese 13:32
Is there any reason to use \xC2A0
Is there any reason to use \xC2A0?
moritz_ yes, I explained that on p6l 13:33
[particle] non-breaking space
moritz_ "Perl 6" and "Perl 5" are words
so we don't want to break between the l and the digit
[particle] so it doesn't ever render as Perl\n6
moritz_ if your editor displays it incorrectly, you have to set the character encoding to UTF-8
but changing the spec because your local setup is broken is not an option. 13:34
we need non-ASCII characters in the specs anyway
JimmyZ I see
sorry for that :(
moritz_ just revert that commit
then all is fine again 13:35
[particle] indeed
13:35 explorer joined
ancients is away (4[O.F.F.L.I.N.E]) 13:36
Matt-W again?
13:36 Khisanth joined 13:37 ancients was kicked by moritz_ (color spamming)) 13:46 hanekomu joined, nihiliad joined 13:48 explorer left 13:49 lisppaste3 left 13:50 lisppaste3 joined 13:53 hanekomu_ left
diakopter wonders for what O.F.F.L.I.N. stands 14:06
moritz_ diakopter: there's an E at the end
maybe the color code prevented you from seeing it 14:07
(they also confuse my IRC logging bot a bit)
14:12 payload joined
diakopter I did see the E 14:17
14:18 finanalyst left 14:24 IronMan joined
IronMan Hi - I needed some help with XML parsing/subStr() method 14:24
how to extract the value of "cur" from this XML format.. (the value can be of any number of digits)
<BRS id="5" lWM="0" hWM="0" cur="0" int="0.0" sT="1249563008081" lST="1249606773948" lB="0" uB="0">
moritz_ IronMan: do you want to do it in Perl 6? 14:27
IronMan Hi moritz_ I'm on v5.10.0 14:28
moritz_ IronMan: then you're wrong here
IronMan Ok 14:29
14:30 IronMan left
pugs_svn r27893 | jimmy++ | [Spec]reverted \x20 to \xC2A0. "Perl 6" and "Perl 5" are words, so we don't want to break between the l and the digit, and it doesn't ever render as Perl\n6. [particle]++ and moritz_++ for explanation. 14:30
14:31 Khisanth left 14:35 Khisanth joined 14:36 windsok joined 14:37 windsok left, mikehh joined
JimmyZ p6l? 14:39
moritz_ perl6-language mailing list
JimmyZ thanks. 14:40
14:41 rfordinal joined 14:44 Khisanth left 14:46 mofino joined 14:48 Psyche^ joined
pugs_svn r27894 | moritz++ | [t/spec] fix a smartlink in class.t 14:51
14:55 alester joined 15:01 jan_ left, rfordinal left 15:05 Patterner left, Psyche^ is now known as Patterner 15:20 donaldh left, donaldh joined 15:35 hanekomu_ joined
wayland76 lambdabot: @tell ancients Some people seem to be getting quite annoyed at your IRC client. Specifically, they don't like the colour-coding escape sequences it sends to the channel, and the way it continually announces you're offline. 15:36
lambdabot Consider it noted.
wayland76 lambdabot: @tell ancients I don't mind myself, but it seems quite a number of the regulars are getting annoyed 15:37
lambdabot Consider it noted.
wayland76 After all, if we only comment on it when he goes offline, then he'll never see it
Su-Shee wayland76: he's doing it in other channels too and has been kicked out of #perl the same time as here today.
BinGOs jiggedy 15:38
wayland76 Anyway, bedtime for me. 'Night all
(not to be confused with rig-a-jig jig) 15:39
15:41 ruoso left, __ash__ joined 15:52 jan_ joined 15:53 mberends joined 15:56 hanekomu left, hercynium joined
mberends good afternoon, #perl6*! There must have been a prize draw that I did not know about, because I just had a "workout with jnthn++" on the flight from Lisbon to London. Some heavy lifting, but not physically. 16:00
16:03 JimmyZ left 16:04 cdarroch joined 16:09 KyleHa joined 16:11 kane_ joined 16:12 frederico joined 16:14 hanekomu joined 16:16 hanekomu left 16:18 PZt left 16:19 eiro left 16:20 beggars joined 16:23 fredrecsky joined 16:24 frederico left 16:25 rfordinal joined 16:31 kane_ left 16:33 hanekomu_ left 16:41 fredrecsky left, kane_ joined, fredrecsky joined, KyleHa left, rindolf joined
rindolf Hi all. 16:41
Su-Shee hi. ;) 16:42
rindolf Su-Shee: what's up?
Su-Shee rindolf: food now. :) 16:43
rindolf Su-Shee: f00d!!!
16:48 molaf left
pugs_svn r27895 | masak++ | [t/spec/S32-str] re-fudged encode.t after Rakudo patch 16:50
mberends masak++ indeed 16:52
16:54 explorer joined
hah mhh.. 'return\n unless $foo;' is still allowed? => "Could not find non-existent sub unless" 17:03
17:03 hanekomu joined
hah without the newline it works as expected ;-) 17:04
mberends hah: interesting, just tried it here too. various kinds of whitespace matter, it seems 17:07
17:08 rfordinal3643 joined, rfordinal left
mberends it's probably in the same category as semicolon required after closing curly only if followed by more on the same line 17:08
@seen DanielC 17:09
lambdabot Last time I saw DanielC was when I left ##english, ##freebsd, ##hrg, ##logic, #arch-haskell, #concatenative, #darcs, #dreamlinux-es, #friendly-coders, #functionaljava, #gentoo-haskell, #gentoo-uy, #
ghc, #haskell, #haskell-blah, #haskell-books, #haskell-freebsd, #haskell-in-depth, #haskell-overflow, #haskell-soc, #haskell.cz, #haskell.de, #haskell.dut, #haskell.es, #haskell.fi, #haskell.fr, #
haskell.hr, #haskell.it, #haskell.jp, #haskell.no, #haskell.ru, #haskell.se, #haskell_ru, #jhc, #jtiger, #macosx, #macosxdev, #novalang, #perl6, #rosettacode, #scala, #scannedinavian, #unicycling, #
xmonad and #yi 2m 8d 12h 18m 19s ago.
mberends perspicacious bot
17:11 tann_ joined 17:12 takadonet left, bionoid left, PerlJam left, elmex left, adhoc left, PerlJam joined, takadonet joined, bionoid joined, adhoc joined, elmex joined, irc.freenode.net sets mode: +o PerlJam 17:14 tann__ joined 17:15 iblechbot joined
Su-Shee wow. ;)) 17:17
mberends how wow?
Su-Shee the bot I meant. :)
mberends smart-ass if you ask me ;-) 17:18
Su-Shee besides from the daily perl 6 awe I'm not wowing out loud here. :)
mberends Su-Shee, YAPC in Lisbon was awesome. You really should try to attend the next one in Pisa. 17:19
17:20 hercynium left
Su-Shee mberends: I so very much wanted to but due to "the crisis[tm]" my clients didn't really pay in time. (or not at all..) :/ 17:20
oh, pisa, nice. :)
mberends Su-Shee, I share such pain. The week away was pain relief, now it's back to the stresses of survival in hard times. 17:21
it's possible to do it on a low budget (hostels etc) so the most crucial thing is to manage taking the time off. The reward is really big though :) 17:23
Su-Shee mberends: I start a new perl job next week which is employed with a nice salary and I so will go to the next yapc...
(and the desktop summit which also had an extremely nice program I missed entirely)
mberends Su-Shee: did you make any headway with Parrot to GUI bindings? 17:24
Su-Shee mberends: nothing to show, but gathered a load of knowledge about X and GUI and a little NCI 17:26
mberends Su-Shee: if you make any running examples, will you put them into the Pugs repository? 17:28
For my part, I returned from Lisbon with two Parrot issues that were blocking me exposed, and workarounds to allow me to continue anyway :-) 17:30
Su-Shee mberends: sure, and into my github.
mberends: you have seen tene's enlightenment window example?
17:30 tann_ left
Tene mberends: what do you want to know about gui bindings? I got bindings to the Enlightenment libraries working. 17:31
mberends Su-Shee, I did, and ... here comes Tene 17:32
Tene I'm leaving shortly, but here for now.
Su-Shee :)
mberends Tene: hi, yes the Enlightenment example looked good, but istr that you did not want to publish the source just yet. Also, other immediately asked about binding other GUI libraries. I guess you had a reason for targeting Enlightenment. 17:34
*others
Tene I targeted Enlightenment because it's fun and looks prettier than GTK IMO. 17:35
17:35 charsbar left
Tene That's all. 17:35
It's up on github, though, if you want to try it.
Or, I'd be glad to help anyone else get any other library wrapped with NCI.
17:35 charsbar joined
mberends Tene: thanks, I'll try it. URL? 17:36
17:37 nihiliad left
Tene github.com/tene/parrot-elementary/tree/master 17:37
Let me know if it works for you. :)
mberends git clones...
Tene: your "self portrait" looked great in masak++'s presentation :) 17:39
Tene Heh. :)
It's not too far off.
mberends that figures :) 17:41
17:44 sparc_ left
Tene mberends: I don't actually remember if I committed the NCI sigs for the Elementary functions to Parrot. 17:48
mberends: so if you get something weird about "couldn't compile NCI sig" or something, tell me.
mberends Tene: on Ubuntu 9.04 here package 'evas' is missing, presumably part of Enlightenment.
Tene mberends: yes, that's the big issue with using enlightenment libraries. No distro actually ships them, and they're incomplete/unfinished. 17:49
__ash__ is there a working version of the parrot/examples/nci/Mysql? or parrot/ect/SQLite3?
Tene __ash__: not yet. there are several people planning on working on those soon, though.
mberends Tene: so I guess I build E17 from source? 17:50
Tene mberends: yes, you can use www.rasterman.com/files/get_e.sh to do that, or there are some third-party repositories that provide packages, iirc.
__ash__ Tene: okay, just wonder, I saw them, tried compiling them and running their tests from the directories they are in but they both failed those 17:51
Tene __ashyes, they've bitrotted heavily. :(
mberends Tene: thanks, that's a great help. (almost typed tanks)
Tene mberends: after you get the EFL stuff installed, you'll find out that Elementary isn't included in that, and you'll need to download that separately and install that. :)
mberends Tene: it's worth it as long as the thing works in the end. (yak shaving)++ 17:53
17:55 rfordinal joined 17:56 rfordinal3643 left
mberends watches evas check out from svn... 17:57
so, sh get_e.sh says "pushd: not found" :/ bash strikes again! redoing... 18:13
18:13 fredrecsky left 18:16 Khisanth joined
pmichaud good afternoon, #perl6 18:24
mofino good day 18:25
moritz_ oh hai
japhb pmichaud: On the fun side of the Atlantic yet? 18:26
18:27 kimtaro joined
pmichaud I've always found both sides of the Atlantic to be fun. :-) 18:27
But yes, I've successfully hopped the pond. 18:28
18:29 zamolxes joined
japhb And when will you be falling over unconscious? :-) 18:29
pmichaud hopefully not before I board my next flight home :-)
18:34 kimtaro left 18:35 kane_ left 19:04 kane_ joined
__ash__ is it supposed to be augment or is also ? to append onto an open class? 19:10
moritz_ it's supposed to be 'augment'
but it is not yet
19:13 KyleHa joined 19:14 sri_kraih joined
KyleHa rakudo: my List $x = 1,2,3;say $x.WHAT; 19:15
p6eval rakudo 7717c4: OUTPUT«Array()␤»
19:18 mberends left 19:19 Front_slash left 19:20 donaldh left 19:21 donaldh joined 19:26 mberends joined 19:30 KyleHa left 19:39 zamolxes left
rindolf rakudo: 5.WHAT 19:44
p6eval rakudo 7717c4: ( no output )
rindolf rakudo: say 5.WHAT
p6eval rakudo 7717c4: OUTPUT«Int()␤»
rindolf rakudo: say 5.7WHAT
p6eval rakudo 7717c4: OUTPUT«Syntax error at line 2, near "say 5.7WHA"␤in Main (src/gen_setting.pm:3366)␤»
rindolf rakudo: say 5.7.WHAT
p6eval rakudo 7717c4: OUTPUT«Num()␤»
rindolf Do macros work in rakudo yet? 19:51
[particle] no 19:53
rindolf [particle]: I see.
19:56 charsbar left, charsbar joined 19:57 Jedai joined 20:00 nErVe joined, hah left 20:03 tann__ left 20:06 ruoso joined 20:08 arnsholt joined 20:09 rfordinal left, rfordinal joined 20:26 jhelwig left, buubot left 20:28 buubot joined, jhelwig joined, rfordinal left 20:31 jhelwig left, buubot left 20:33 takadonet left 20:41 molaf joined, ruoso left 20:47 jhelwig joined 20:48 buubot joined 20:49 icwiener joined 20:51 explorer is now known as Guest14794 20:57 icwiener left 20:59 icwiener joined 21:00 zamolxes joined, zamolxes left 21:09 Su-Shee left
cxreg rakudo: multi foo {}; multi foo {}; foo(); 21:23
p6eval rakudo 7717c4: OUTPUT«Ambiguous dispatch to multi 'foo'. Ambiguous candidates had signatures:␤:()␤:()␤in Main (/tmp/tsng3FETYP:2)␤»
21:24 mikehh_ joined 21:29 meppl left
__ash__ rakudo: class Base { method foo { '::foo' } }; class T is Base { method foo { 'T::foo'; self.Base::foo() } }; my T $a .= new; say $a.foo; 21:30
p6eval rakudo 7717c4: OUTPUT«Method 'Base::foo' not found for invocant of class 'T'␤»
__ash__ is there a work around for calling parent methods within a child?
(eg. super)
21:37 mberends_ joined 21:39 mberends left 21:40 mikehh left 21:43 maja joined 21:48 mikehh_ is now known as mikehh 21:52 meppl joined 21:54 maja_ left 21:58 mberends_ left 22:02 rfordinal joined
__ash__ so there isn't a way at the moment to call a super method if you override it? 22:07
22:12 alester left 22:13 icwiener left 22:19 Limbic_Region joined 22:23 rindolf left 22:42 __ash__ left
s1n yay, when i get paid, i'll finally be able to get a netbook for the vanpool! 22:42
22:42 KyleHa joined, beggars left
s1n that means i'll have time again to hack on rakudo 22:42
22:43 nErVe left 22:48 reppie joined 22:55 molaf left 22:56 SmokeMachine left 22:58 cottoo joined, cotto left 22:59 cottoo is now known as cotto 23:00 iblechbot left 23:08 Patterner left 23:12 Psyche^ joined, cdarroch left, Psyche^ is now known as Patterner 23:13 hercynium joined 23:20 donaldh left, donaldh joined 23:24 jhelwig_ joined 23:25 jhelwig left 23:28 jhelwig_ is now known as jhelwig 23:36 M_o_C left 23:38 mberends joined
KyleHa mberends: Is it true that you did an outstanding presentation on Perl 6 for the Perl 5 programmer? 23:42
mberends KyleHa: it's great to get positive feedback: when rehearsing with masak++, it overran the timeslot by 10 minutes, so a few of the final slides were skipped. The overall response of the Perl 5 attendees at YAPC:EU towards Perl 6 was more positive than we had expected. So yes, it was very nice to have given the talk :-) 23:45
KyleHa I heard also that it would make an appearance int he pugs repo. Can you confirm or deny?
s/int he/in the/ 23:46
mberends KyleHa: confirm, it will be within 24 hours. Also, I'm encouraged to offer to repeat the presentation at other gatherings, for example London.pm
KyleHa Hurray! I'm looking forward to it! 23:47
mberends :)
now the Perl workshops in Latvia and Italy are very tempting... 23:48
23:49 Jedai left
KyleHa I wouldn't mind going to Italy for a time, but I couldn't even make it to Pittsburgh in June, so I think Europe is even further away than the literal distance. 23:50
mberends The same problem here, in the opposite direction. We can hope to do it eventually, as TimToady++ and pmichaud++ and several others do :) 23:52
23:53 hanekomu left