»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend! | Rakudo Star Released!
Set by diakopter on 6 September 2010.
00:02 s1n left
mberends jnthn: hai! 00:07
phenny mberends: 30 Nov 13:53Z <bbkr> tell mberends that HTTP::Daemon should have possibility to get request body on unknown Content-Type (or even better - to allow to connect custom handler method for given content type). This will allow for example to write JSON::RPC::Server based on this nice module.
sorear hello mberends !
diakopter mberends: howdy!
jnthn mberends: hi!! :D 00:08
mberends hello sorear, diakopter : just got back from conferences.yapceurope.org/lpw2010
jnthn mberends: had beer? ;)
mberends The die hards are still drinking in the pub. The @sponsors++ were very generous :-) 00:09
jnthn :D
dalek odel: 3fc868b | jonathan++ | dotnet/compiler/PAST2DNSTCompiler.pm:
[dotnet] The war on inline begins. All TC referencess are now a proper DNST::Local.
00:11
diakopter mberends: you may not recognize [dotnet] 00:14
jnthn oh my...the makefile thing that says what files changed will give epic output! 00:15
mberends diakopter: :-D
diakopter jnthn: nmake /D is good
nmake clean; nmake /D 00:16
mberends 6model/dotnet yesterday on Mono 2.4.4: All tests successful. Files=42, Tests=298. 00:18
dalek odel: 78122fe | jonathan++ | dotnet/compiler/DNST.pm:
[dotnet] DNST::MethodCall now requires a return type unless the call is void. Turns out that all the tests pass with this enforced, which means we have them all annotated, or in the alternate that we don't have enough test coverage. :-)
diakopter I can't pull frequently enough 00:20
00:20 sftp left
jnthn Me either...girls are hard work... 00:21
oh...you meant git...
mberends I just pulled once and it's all over...
diakopter sideways glare 00:22
dalek odel: aeec319 | jonathan++ | dotnet/compiler/DNST2CSharp.pm:
[dotnet] Rip out a sick hack that we no longer need, and diakopter++ noticed that we still had.
diakopter augh
jnthn rofl
To be fair, you did *tell* me to get rid of that hack. :P
diakopter sigh
00:23 sftp joined, jaldhar left 00:24 jaldhar joined, kst left
diakopter my changes to DNST.pm got overwritten 00:24
jnthn huh... :/ 00:25
git is...usually thoughtful enough to merge...
00:26 drbean_ is now known as drbean
diakopter disregards 00:26
maybe I reverted them
00:27 kst joined
diakopter is there any way to implement parrot-level get_string method in an nqp class? 00:28
jnthn method Str() is vtable('get_string') { ... } 00:31
diakopter adds it to DNST::Node 'cuz ... you can guess. 00:33
k now how can that method return the class name :)
(including that of subclasses, of course) 00:34
jnthn :) 00:36
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ics_tablet 00:40
diakopter how does one deeply flatten a list of args in an invocation? 00:46
func(4, |@args) # flattens only 1 level deep, right? 00:47
sorear @args is pre-flattened under normal circumstances 00:48
diakopter 'pre-flattened' before what
sorear Array objects only hold items, not sublists
so @args will never contain anything that needs recursive flattening
unless you're using a nonstandard container type
diakopter [] is a nonstandard container type? 00:50
jnthn sorear: I think diakopter is looking for a way to deeply flatten even nested arrays.
sorear diakopter: [(1,2), (3,4)] is the same as [1, 2, 3, 4] 00:51
diakopter that much I knew.
sorear [] never needs flattening 00:52
if it does, your implementation of Array is broken
jnthn sorear: You're missing the point.
sorear: diakopter is just looking for a way - when you do have [[1,2],[3,4]] to get back 1,2,3,4 00:53
diakopter jnthn: express that around the transmitter(s) of the communication, not the receiver(s). :)
sorear jnthn: That concept needs a name.
jnthn Steamrollering. :)
sorear This isn't the first time #perl6 has had a problem
because of that 00:54
diakopter deepflat
jnthn drop-chuck-norris-on(@list)
00:55 justatheory left
diakopter sorear: my use case was sub foo(*@args) { bar(|@args) } 00:56
dalek ecza: 2496f3f | sorear++ | src/ (3 files):
Fix asymmetric elision of unreachable let blocks
odel: d144c46 | jonathan++ | dotnet/compiler/PAST2DNSTCompiler.pm:
[dotnet] Add a loc($name, $type) and start using it to from DNST::Local and do way instain inline C#.
00:57
odel: 6abecdc | jonathan++ | dotnet/compiler/ (3 files):
[dotnet] Add a DNST::Null for representing nulls, and use it to eliminate another bunch of inline.
sorear diakopter: *@args already flattens all arguments that are willing to be flattened
jnthn aww, s/from/form/
sorear diakopter: after that definiton, foo(1,2,3) = bar(1,2,3), foo([1,2,3]) = bar([1,2,3]) 00:58
diakopter: are you saying you want foo([1,2],[3,4]) = bar(1,2,3,4)?
whee, STD works again 00:59
00:59 shi is now known as shiv, shiv is now known as shi
diakopter sorear: did you see the | in the call to bar? 00:59
01:00 mberends left
diakopter yes, I'm expecting something so this works: foo([1,2],[3,4]) = bar(1,2,3,4) 01:00
lue afk 01:01
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet
diakopter sorear: so, something like a flatten-deeply-to-destination. ||@args maybe. 01:02
sorear ||@args is taken 01:05
diakopter oh.. for what?
jnthn lol
...ok, "lol" is slightly obtuse. :) 01:06
But the spec for it does refer to "lol context"...
It's like a ; between things rather than ,
sorear your use case seems pretty obscure. multi sub superflat(List $a) { map &superflat, @$a }; multi sub superflat($a) { $a } 01:08
diakopter yeah
sorear I've never needed to remove all square brackets from an argument list
perl6: my $a = 1; my $b; ($b = $a) = 2; say $b; say $a; 01:12
p6eval pugs, rakudo : OUTPUT«2␤1␤»
sorear niecza: my $a = 1; my $b; ($b = $a) = 2; say $b; say $a;
p6eval niecza e7be5b2: OUTPUT«2␤1␤»
sjohnson niecza: say <5 3 2 4 1.sort.reverse 01:13
p6eval niecza e7be5b2: OUTPUT«===SORRY!===␤Unable to parse quote words at /tmp/z145LzTV38 line 1:␤------> say ⏏<5 3 2 4 1.sort.reverse␤Couldn't find final '>'; gave up at /tmp/z145LzTV38 line 1 (EOF):␤------> say <5 3 2 4 1.sort.reverse⏏<EOL>␤Parse
..failed␤»
sjohnson niecza: say <5 3 2 4 1>.sort.reverse
p6eval niecza e7be5b2: OUTPUT«Unhandled exception: Unable to resolve method reverse in class List␤ at line 1 (MAIN mainline @ 3)␤ at line 992 (SAFE G619ANONC @ 1)␤ at line 992 (SAFE module-SAFE @ 29)␤ at line 992 (SAFE mainline @ 1)␤ at line 0 (boot @ 1)␤ at line 0 (ExitRunloop @ 0)␤"mono"
..unexpecte…
sjohnson doh!
niecza: <5 3 2 4 1>.sort.reverse.perl.say
diakopter so speedy 01:14
p6eval niecza e7be5b2: OUTPUT«Unhandled exception: Unable to resolve method reverse in class List␤ at line 1 (MAIN mainline @ 3)␤ at line 992 (SAFE G619ANONC @ 1)␤ at line 992 (SAFE module-SAFE @ 29)␤ at line 992 (SAFE mainline @ 1)␤ at line 0 (boot @ 1)␤ at line 0 (ExitRunloop @ 0)␤"mono"
..unexpecte…
sjohnson i broketed it
01:14 gbacon left
sorear niecza: say (reverse (<5 3 2 4 1>.sort)).dump 01:16
p6eval niecza e7be5b2: OUTPUT«["5", "4", "3", "2", "1"]␤»
sorear diakopter: have you seen the sort algorithm rakudo uses? 01:17
sjohnson are the brackets required (for now)?
sorear the brackets are required
because I'm mixing method calls and sub calls there
niecza: use MONKEY_TYPING; augment class List { method reverse() { reverse(@(self)) } }; <5 3 2 4 1>.sort.reverse.dump.say 01:18
p6eval niecza e7be5b2: OUTPUT«["5", "4", "3", "2", "1"]␤»
jnthn sleep & 01:19
sjohnson jnthn: cya
01:22 whiteknight joined
sorear oh, they seem to have fixed it 01:22
parrot++ # no longer using a sort algorithm that goes O(n^2) on pre-sorted data
01:36 muixirt_ joined 01:38 muixirt left, muixirt_ is now known as muixirt 01:54 MaL0 left 01:55 MaL0 joined
sjohnson sorear: if you dont mind me asking, how many O() notations do you know for various data structure and sort algos off the top of your head? 01:55
my c++ friend lent me a book on this sort of thing just today, and i'm kind of eager to learn it.. but unsure how much programmers are expected to remember 01:56
sorear sjohnson: only one. when I encounter one other than O() I have to quickly check wikipedia:Big-O_notation
02:03 muixirt left
sjohnson he seems to know how fast insertion, searching, etc etc is for many popular datatypes 02:04
02:04 jedai left
sorear sjohnson: oh, *that* sense of "how many". Lots and lots. 02:05
02:06 risou_ joined
sjohnson ahh, okay, i best read the entire book then :) 02:06
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....nks_tablet
02:07 risou left
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet 02:12
tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....l_6_tablet 02:17
tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....l_6_tablet 02:28
02:51 am0c joined 03:00 ch3ck3r left
dalek odel: d92d231 | diakopter++ | dotnet/compiler/ (2 files):
[dotnet] remove debug
03:04
odel: ce8a2fe | diakopter++ | dotnet/compiler/ (3 files):
Merge branch 'master' of github.com:jnthn/6model
03:06 jferrero left 03:13 REPLeffect joined
sorear should .push force a list to be eager? 03:37
03:39 risou_ left, risou joined 03:40 anon_ joined 03:41 anon_ left 03:56 spinclad joined 04:02 whiteknight left
dalek ecza: a321e05 | sorear++ | lib/Kernel.cs:
Remodel INVOKE handling to reflect context handlers
04:05
ecza: cb25460 | sorear++ | v6/tryfile:
Try a more efficient List.push
04:06 kulp joined, risou left 04:07 risou joined 04:19 jedai joined 04:23 am0c^ left 04:24 am0c left
sorear bleh, I broke exception handling 04:27
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet 04:37
04:37 am0c joined 04:46 kst left, kst joined 04:50 lichtkind left 04:57 REPLeffect left 05:07 orafu left, orafu joined, risou_ joined 05:10 risou left 05:20 am0c left, envi joined 05:29 jhuni joined 05:30 araujo left 05:57 Chillance left 06:04 rcfox joined 06:05 rcfox left 06:08 risou joined 06:10 am0c joined, risou_ left 06:11 kst left 06:12 kst joined
sorear ah, it was a case of exceptions/inferior runloop breakage. 06:17
niecza: class Foo { method Str { die "Boo" } }; try { ~Foo; say "A" }; say "B" 06:18
p6eval niecza cb25460: OUTPUT«B␤A␤B␤»
06:27 xinming left
sorear I'm starting to think there should be an operator functioning like try { ~$_; CATCH { "{.Mu::Str} (.Str failed: $!)" } } 06:28
06:28 xinming joined 06:58 kulp left 07:02 adu joined 07:19 kfo left 07:36 kst left 07:37 kst joined 07:41 masonkramer left 07:42 _kaare joined 07:48 REPLeffect joined 07:50 am0c^ joined
dalek ecza: d082db5 | sorear++ | lib/Kernel.cs:
Refactor inferior loop handling, support exception propagation
08:01
08:04 araujo joined, araujo left, araujo joined
sorear bah. #OK not used is broken, AGAIN 08:05
adu bah 08:19
08:24 cibs joined
awwaiid rakudo.org no workey? 08:27
sorear 25m 20s for roast run.... /me is suspicious 08:29
the errors look good though 08:30
87.40%
08:32 kfo joined 08:40 ggoebel joined
dalek ecza: b57aecc | sorear++ | / (2 files):
<suppose> should not be zero width
08:43
sorear #OK fixed
mathw rakudo: &gt; say ([1, 2] X ['a', 'b'] X ['y', 'z']).perl 08:44
p6eval rakudo : OUTPUT«Could not find sub &gt␤ in main program body at line 10:/tmp/2NQuON_6G7␤»
mathw woops
wrong buffer 08:45
rakudo:
p6eval rakudo : ( no output )
mathw other wrong buffer
WAKE UP
rakudo: say ([1, 2] X ['a', 'b'] X ['y', 'z']).perl
p6eval rakudo : OUTPUT«No applicable candidates found to dispatch to for 'infix:<X>'. Available candidates are:␤:(Any $lhs, Any $rhs)␤␤ in main program body at line 22:/tmp/L4QSb4dR9J␤»
mathw NYI?
sorear apparently 08:46
rakudo: (([1,2] X ['a','b']) X ['y', 'z']).perl.say
p6eval rakudo : OUTPUT«((1, "y"), (1, "z"), ("a", "y"), ("a", "z"), (1, "y"), (1, "z"), ("b", "y"), ("b", "z"), (2, "y"), (2, "z"), ("a", "y"), ("a", "z"), (2, "y"), (2, "z"), ("b", "y"), ("b", "z"))␤»
mathw umm
interesting
sorear rakudo: (([1,2] X=> ['a','b']) X=> ['y', 'z']).perl.say
p6eval rakudo : OUTPUT«(1 => "a" => "y", 1 => "a" => "z", 1 => "b" => "y", 1 => "b" => "z", 2 => "a" => "y", 2 => "a" => "z", 2 => "b" => "y", 2 => "b" => "z")␤»
sorear flattens I guess 08:47
mathw yeah
okay I'll just leave that bit out
diakopter niecza: say "fox" ~~ /f <suppose { /o/ }> x /
p6eval niecza d082db5: OUTPUT«/home/p6eval/niecza/obj/MAIN.cs(2081,71): error CS1525: Unexpected symbol `:', expecting `,', or `}'␤Compilation failed: 1 error(s), 0 warnings␤"gmcs" unexpectedly returned exit value 1 at (eval 43) line 13␤ at /home/p6eval/niecza/src/CompilerDriver.pm line 256␤»
mathw now why is my cat pretending to be a bird?
sorear that is a decidedly NYI error
diakopter I saw a cat bounce from wall to wall to lamp to ceiling to wall to bookcase through window 08:48
mathw He's not trying to fly, he's just making bird noises
diakopter oh 08:49
08:51 molaf joined 08:52 kst left
mathw rakudo: say ([1, 2] Z [3, 4]).perl 08:52
p6eval rakudo : OUTPUT«(1, 3, 2, 4)␤»
mathw I'm surprised by that
08:52 mikehh joined, kst joined
mathw oh even more surprising 08:54
rakudo: say ([1, 2] Z, [3, 4]).perl
p6eval rakudo : OUTPUT«((1, 3), (2, 4))␤»
mathw shouldn't they be the same?
sorear Z and Z, are not *quite* the same iirc 08:57
I think Z is specced to auto-flatten
mathw "The Z, operator is perhaps more clearly written as Z[,]. However, this list form is common enough to have a shortcut, the ordinary infix Z operator described earlier." 08:58
there's also an example earlier where infix:<Z> shows that it doesn't autoflatten 08:59
I'll file a bug 09:02
sorear file two 09:03
mathw one for flattening, one for them not being identical?
sorear [1, 2] should be interpreted as exactly one value in the vast majority of cases
[1, 2] Z [3, 4] should -> [1,2], [3,4] 09:04
mathw oh
so that's a bug in everything, fun
09:04 mberends joined
mathw and of course it should 09:05
can't remember why I even tried it that way to start with
09:14 JimmyZ joined 09:25 JimmyZ left 09:39 adu left
sjohnson mathw: hows it going? 09:59
mathw sjohnson: not bad
busy, at least 10:00
TiMBuS rakudo: say ([1,2] >>,<< [3,4]).perl 10:04
p6eval rakudo : OUTPUT«[1, 3, 2, 4]␤»
TiMBuS rakudo: say ([1,2] >>Z<< [3,4]).perl 10:05
p6eval rakudo : OUTPUT«===SORRY!===␤Unsupported use of << to do left shift; in Perl 6 please use +< or ~< at line 22, near "[3,4]).per"␤»
TiMBuS oh
sorear use french quotes 10:06
jnthn: ping? 10:08
10:08 finanalyst joined, masak joined
masak oh hai, #perl6! 10:08
phenny masak: 04 Dec 20:37Z <Tene> tell masak pong
masak: 04 Dec 20:51Z <Tene> tell masak you may also be interested in adv_windowlist.pl for irssi: allalone.org/adv_windowlist.png
masak isn't very interested in irssi, really :)
but thanks.
sorear hello masak! 10:09
masak phenny: tell Tene after I removed ihrd's Routes, I rewrote it as URI::Dispatcher. I'd be happy to hear what you think of it.
phenny masak: I'll pass that on when Tene is around.
sorear masak: .net has a feature called "explicit interface implementations"; I'm wondering how to map it into Perl-space 10:11
masak sorear: the answer is usually "as simply as possible" :P 10:12
sorear a type can implement an interface, but the implementations are only visible through pointers of the correct type
in pseudo Perl6:
my File $file = ...
$file.Close; # valid; Close() is a method on Files
$file.Dispose; # not valid; File.Dispose is a hidden implementation
my IDispose $disposable = $file; 10:13
$disposable.Close; # not valid: static typing, natch
masak yeah, I just read up on it myself.
sorear $disposable.Dispose; # valid
masak kinda weird :)
reminds me of C's occasional abuse of pointers.
sorear basically it boils down to "should Perl6 see the difference between the same object viewed through different static types?" 10:14
finanalyst is there any GUI module working that p6 can use? There is work on parrot-Tk but has anyone got it to work with P6? I tried about a year ago.
sorear finanalyst: I got blizkost-Tk working a few months ago
masak I'd say that the idea of explicit interface implementations is too limiting to even have a representation in liberal Perl. :) 10:15
sorear note that this is strictly a C# compiler and conventional thing
at the runtime level, you have $file.File::Close; $file.IDispose::Dispose;
10:15 jhuni left
finanalyst sorear: i tried a little to get blizkost up on my box, but failed for lack of guru capabilities ;( 10:16
anything for rakudo?
sorear masak: I'm thinking of doing something like $file."IDispose::Dispose"() 10:18
this would also be an effecive way to handle shadowed functions 10:19
but, it means that generic code written in Perl6 to handle any implementation of IFoo or any sbclass of Foo gets ugly
masak indeed.
dalek ecza: f30c13c | sorear++ | / (5 files):
Minimal prototype of CLR interop
10:20
sorear masak: another thing I'm pondering is how much the type hierachy should be reflected 10:22
masak please elaborate.
sorear System::Console.^superclasses = ?
hmm. if interfaces were handled using MI (not roles), then I might be able to make direct Perl 6 $file.IDispose::Dispose work 10:23
10:27 am0c left 10:34 Axius joined 10:36 am0c^ left
masak sorear: S12 speaks of a namespace ::SUPER 10:37
sorear: I've never really understood how it works under the hood.
10:39 _ilbot joined
moritz_ I guess it doesn't :-) 10:39
masak sorry, I was referring to Unicorn Perl 6, a miraculously working, non-existent implementation. 10:41
masak wonders idly if he just created a meme
sorear masak: SUPER is from Perl 5, and widely used there
masak sorear: ok, then there's prior art. 10:42
sorear $obj->SomeClass::method # start MRO search at SomeClass
$obj->SomeClass::SUPER::method # start MRO search at $SomeClass::ISA[0] but with extra MI magic
masak right.
sorear $obj->SUPER::method # like $obj->__PACKAGE__::SUPER::method, but works
masak how much is SUPER:: tied to the choice of MRO in Perl 6?
sorear I don't think a judgement has been made on that 10:43
I'll probably run a few tests with use mro 'c3' :p
moritz_ it was abandoned for nextsame/with
10:43 kfo left
moritz_ because it's not MI-friendly 10:44
10:44 am0c^ joined
sorear tomorrow I'll try and actually implement $clrobject.Method 10:45
sorear .sleep
moritz_ sleep well, and dream of powerful foreign objects :-) 10:46
sjohnson heh 10:48
might be able to sneek a backspace ascii char in there
and get it so it joins with the .sleep
some irc clients might be fooled
10:49 am0c^ left
masak moritz_: it's the "not MI-friendly" part that causes me to feel a bit of surprise over the fact that we still have SUPER:: in the spec. 11:05
11:09 risou_ joined 11:10 risou left
moritz_ masak: I think it's a fossile 11:11
masak I'm not so sure.
see S12;2110, for example. 11:12
that paragraph was clearly written after the introduction of nextsame et al.
dalek : cc4b6f6 | moritz++ | misc/perl6advent-2010/schedule:
[advent] retro-update schedule
11:13
moritz_ S12:2110 # I just want the link in the logs :-)
masak moritz_++ # saving slot #5
moritz_ mathw: are you on track for tomorrow's advent post? 11:14
SUPER # Package symbols declared in inherited classes
from S02
uhm
is that from the time before methods where in has-scope? 11:15
there are three occurences in the spec 11:17
(of SUPER)
one looks like a fossile to me
in S06, my $restorer = $.SUPER::TEMP();
I'd change that to my $restored = callsame(); 11:18
any objections?
mathw moritz_: yes, there's one in the system, if you'd like to check it?
moritz_ mathw: I'll take a look
moritz_ would like to see "Day $n" in the titles 11:19
11:19 nadim_ left
mathw good point 11:19
masak moritz_: no objections, we can always revert later if it turned out to be (SUPER-)necessary. :) 11:20
11:21 mberends left
moritz_ mathw: very nice post. If you strive to make it even better, include some actual use case for Z (like creating hashes from keys and values, pairwise iteration or some such) 11:22
dalek ecs: 15f0b2b | moritz++ | S06-routines.pod:
[S06] remove a SUPER:: fossile
11:23
mathw yes I've been pondering that 11:24
I did pairwise iteration last year :)
moritz_ you can use Z=> for Pair creation this time, for example
11:24 Chillance joined
mathw yes 11:26
I'll add that
in a bit
moritz_ mathw++ 11:27
masak colomon: [backlog] I have no intention to work more on proto. as far as I'm concerned, neutro is a continuation of already-killed-several-times proto. 11:37
11:42 kst left, kst joined 11:47 Axius_ joined 11:49 Axius left
masak & 11:49
11:50 masak left 12:07 wamba joined 12:15 Axius_ left 12:17 finanalyst left 12:32 MayDaniel joined 12:44 _kaare left 13:02 molaf left 13:16 whiteknight joined 13:19 kfo joined 13:41 Patterner left
cosimo rakudo: say qx{uname -r}.chomp 13:43
p6eval rakudo : OUTPUT«Operation not permitted in safe mode␤ in 'Safe::forbidden' at line 2:/tmp/l6aNpvSMUn␤ in main program body at line 22:/tmp/l6aNpvSMUn␤»
cosimo rakudo: my $code = 'uname -r'; say qx{$code}.chomp;
p6eval rakudo : OUTPUT«Operation not permitted in safe mode␤ in 'Safe::forbidden' at line 2:/tmp/NPxwxu9jyn␤ in main program body at line 22:/tmp/NPxwxu9jyn␤»
cosimo mmh
any idea why 'my $x = qx{uname -r}' works, but 'my $c = "uname -r"; my $x = qx{$c}' doesn't?? 13:44
moritz_ qx doesn't interpolate
qqx does
cosimo aha 13:46
moritz_: thanks!
works ofc
Cool(tm)
facter is ported!!
13:49 masonkramer joined, nymacro joined 13:52 Psyche^ joined, Psyche^ is now known as Patterner 13:55 wamba left
moritz_ \o/ 14:08
cosimo moritz_: if I want to customize what 'if ($instance)' does, can I write a 'method Bool {}' in the class? 14:16
like 'method Str' ? 14:17
jnthn yes 14:20
Should work, anyway
14:20 ch3ck joined
cosimo ok 14:22
moritz_ but doesn't, afaict 14:26
at leat not always
rakudo: class A { method Bool { False } }; if A.new { say "yes" } else { say "no" } 14:27
p6eval rakudo : OUTPUT«no␤»
moritz_ hm
\o/
cosimo :)
14:27 MayDaniel left
moritz_ I think it's only '1 but False' that doesn't work, because 1 has a lower level get_bool vtable 14:27
cosimo well, i'm not at that level of sofistication yet 14:28
14:36 soroush left, PacoLinux left 14:38 PacoLinux joined 14:41 dual left 14:42 ndrsndrs joined 14:47 glow joined 14:50 am0c joined 14:58 whiteknight left 15:00 wamba joined, whiteknight joined 15:02 am0c left 15:04 am0c^ joined 15:05 Axius joined 15:09 wamba left 15:10 nymacro left 15:19 wamba joined 15:31 lichtkind joined 15:32 Axius left 15:38 demolithion joined
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet 15:43
15:46 dual joined
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet 15:49
lichtkind hinrik++ 15:55
he released 2 days ago perl6::Doc 0.46
16:11 nadim_ joined 16:16 am0c^2 joined, am0c^ left 16:34 am0c joined 16:52 sorear left 16:55 Kodi joined 17:00 HarryS left 17:04 perlsyntax joined
perlsyntax when perl 6 comeing out? 17:04
17:05 soroush joined 17:07 _kaare joined
perlsyntax ? 17:11
17:11 perlsyntax left 17:16 am0c^2 left, PacoLinux left, Chillance left, cognominal left, [Coke] left, Exodist left, simcop2387 left, [Coke] joined, PacoLinux joined, cognominal joined 17:17 exodist_ joined
tadzik hello sixers! 17:17
what did I miss?
17:17 clkao joined 17:18 simcop2387 joined 17:20 Chillance joined, lichtkind left 17:23 perlsyntax joined
perlsyntax Anyone know when perl 6 comeing out? 17:23
17:26 perlsyntax left 17:29 sorear joined
tadzik phenny: tell perlsyntax before christmas 17:30
phenny tadzik: I'll pass that on when perlsyntax is around.
17:30 soroush left 17:31 TimToady joined, diakopter joined 17:38 timbunce joined 17:40 skangas left 17:44 HarryS joined 17:47 jedai left, jedai joined 17:54 molaf joined 18:03 lichtkind joined 18:04 justatheory joined
tadzik (it's quite silent here today, isn't it?) 18:10
18:17 finanalyst joined 18:18 aindilis left
Kodi A comment I just wrote: "Camelia forbid there should be a time zone named MAY." 18:23
18:24 aindilis joined
flussence interesting thing I read a while ago: A..Z are valid timezone identifiers, which is where the "Z" in iso8601 is from. Used by NATO or something. 18:25
Kodi flussence: And how do you interpret "A", "B", etc? 18:26
jnthn Awesome time. Beer time. ...
flussence dunno, actually...
Kodi Weird.
jnthn www.worldtimezone.com/wtz-names/tim...names.html doesn't list a MAY, but there is a MAT and a MAL... 18:27
Kodi Phew.
jnthn Please don't tell me this is because it'd be ambiguous with the month name May?
jnthn wonders what we're parsing that could have that ambiguity... 18:28
Kodi Alas, 'tis so. I'm trying to write the dwimmiest date-and-time parser possible.
jnthn wonders if any other language has a month name that conflicts with a timezone name. :)
Kodi This necessarily means playing fast and loose with the time-zone abbreviations, among other things, since, e.g., there's more than one EST.
jnthn There's only one MST though. 18:29
18:29 justatheory left
jnthn ;-) 18:29
Kodi I am definitely NOT going to implement languages other than English. [shudder]
18:30 justatheory joined
jnthn Awww. There is a WFT timezone, but sadly not a WTF. 18:31
18:33 aindilis left
[Coke] tadzik: ping 18:35
tadzik [Coke]: pong 18:36
18:36 aindilis joined 18:39 aindilis left 18:44 aindilis joined 18:46 aindilis left 18:47 aindilis joined 18:49 rgrau_ joined 18:51 HarryS left, rgrau_ left
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ics_tablet 18:52
18:52 rgrau_ joined, aindilis left 18:53 TimToady left, sorear left, diakopter left 18:54 aindilis joined, ch3ck left, rgrau_ left, rgrau_ joined, tbt joined 18:55 justatheory left 18:56 tbt left 18:58 Kodi left, aindilis left 19:00 TimToady joined 19:01 rgrau_ left, aindilis joined, aindilis left
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....kup_tablet 19:02
19:05 TimToady left, aindilis joined 19:06 masak joined
masak o/ 19:06
tadzik masak! 19:07
19:07 aindilis left
masak I've just tried Indian home cooking. highly recommended. 19:07
tadzik (I'll be back in an hour or something)
19:08 envi left 19:09 aindilis joined, masak left, masak joined
jnthn masak: nice! 19:09
19:09 risou joined
masak jnthn: yes. I recently bought this: www.amazon.com/Indian-Home-Cooking-...=dudugo-20 19:10
and today was the first time I tried it out.
jnthn: and soon I'll come living next to you, and I will need a co-experimenter :P
19:12 TimToady joined
masak mathw: I merged your #80240 into my #73948. thanks for playing. :) 19:12
mathw I suck at finding existing bugs
I don't really get how to use RT
masak it's not trivial, no.
19:12 risou_ left
mathw I also suck at filing them, because I forget to say [BUG] 19:12
lue ohai wurld o/
masak mathw: no matter. :) it's just common practice, not law. 19:13
mathw is just finishing off his advent post
masak: yeah but it's one I like, that I always forget
masak mathw++ # \o/
mathw probably because I don't file enough bugs
lichtkind mathw++
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ble_tablet
lichtkind karma masak
aloha masak has karma of 153.
moritz_ karma Herber Breunung 19:14
aloha Herber Breunung has karma of 0.
moritz_ karma Herbert Breunung
aloha Herbert Breunung has karma of 179.
19:14 kst left
masak 153? must submit moar bugs! 19:14
moritz_ correct typing helps :-)
mathw yup
19:14 kst joined
moritz_ masak: we must coax sorear++ into getting dalek reporting new RT entries 19:14
masak karma lichtkind
aloha lichtkind has karma of 4. 19:15
masak karma mathw
aloha mathw has karma of 3.
mathw anybody got a really awesome example for meta-X and meta-Z they really think I should include?
jnthn masak: *next* to me? :)
masak: I'm highly willing to be experimented on when it comes to nom. :-)
masak jnthn: I am in ur livin room, cooking ur food... :>
jnthn \o/
That's wonderful, but why didn't you use my kitchen?
masak good question. er. 19:16
19:16 TimToady left
lichtkind mathw: Z is handy when working with several arrays in parrallel 19:16
masak lichtkind: I think he knows that...
mathw got that one
moritz_ mathw: I like it for transforming hashes: 19:17
my %all_uc = %orig.keys>>.uc Z=> %orig.values;
mathw and if somebody has one that uses X and Z together, that would be super awesome
19:17 aindilis left
moritz_ my @checkerboard_names = 'A', 'B' ... 'H' X~ 1..8; 19:18
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ble_tablet 19:19
tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet
masak also, 'my @deck_of_cards = ...'
lichtkind actually i never felt before a real urge to actually use perl 6 for something i need :)
19:19 aindilis joined
mathw has all the possible totals from a roll of 3d10 19:20
moritz_ mathw: you can link to github.com/moritz/perl6-Sudoku/blo.../Sudoku.pm for code that uses X and Z extensively
y => ((^$!block-size Xxx $!block-size )X+ ($y * $!block-size)),
19:20 soroush joined 19:21 soroush left
moritz_ that are the indexes of a 3x3 block in a Sudoku board 19:21
mathw Xxx
nice :)
masak moritz_++ 19:22
glow sorry, what does $! do here?
masak moritz_: is that the 'dancing links' solution?
mathw private object attribute
lue Would a post detailing the Perl 6 community be good for day 25? 19:23
moritz_ masak: no, that's simple constraint propagation
haven't got around to dancing links yet
masak mathw: heh, I don't even think "private" there any more, even though it is. *all* object attributes are private to me, and then they either have or do not have access methods. :)
mathw masak: I was trying for a simple one-liner of an explanation :P
jnthn masak: That's the way I like to look at it too.
mathw although yes, that is how it goes and it's beautifully elegant that way 19:24
masak lue: I think "merry christmas" would be good for day 25. but I find I'm terribly traditional-minded in all things Advent Calendar. I want to do it like we did it last year. :)
moritz_ lue: I wouldn't object to one... are you volunteering?
lue Yes. [maybe a day-after-christmas post?] 19:25
mathw why not a during advent post
why does it have to go after
it's just as important as the language
moritz_ agreed
mathw now where did I put that ice cream
moritz_ outside? :-)
lue As a sort of "If you still need help/want to learn more" post.
mathw (duh, in the freezeR)
jnthn Outside would work just as well as the freezer at the moment :) 19:26
masak mathw: you can always have a look at the infix:<Z> section of strangelyconsistent.org/blog/6-buil...you-needed and borrow examples from there.
mathw true
moritz_ it's warming up here; -0.5°C
mathw well, not quite actually
it's only supposed to get to about -5C here tonight
masak mathw: though it looks to me that they're not extremely out of the ordinary...
mathw and my freezer's supposed to be at about -18
jnthn moritz_: Wow, that's almost tropical... :)
mathw I think the lowest we hit round my way so far was -9C, which was pretty shocking for the East Midlands 19:27
lue -1.0°C here
mathw cold enough that my cat actually refused to go outside
which is previously unheard of when it's not raining
masak lue: I agree -- do the post, but do it for $slot <= 24. we need authors in those slots, no need to wait! :)
moritz_ considered shipping a few metric tons of snow to Isreal, to help with the forest fires
masak std: >>.grade
19:27 risou left
p6eval std a194beb: OUTPUT«===SORRY!===␤Bogus statement at /tmp/LNVXVUa7TG line 1:␤------> <BOL>⏏>>.grade␤Parse failed␤FAILED 00:01 119m␤» 19:28
masak std: .>>grade
p6eval std a194beb: OUTPUT«===SORRY!===␤Bogus statement at /tmp/8eCh2dlkNN line 1:␤------> <BOL>⏏.>>grade␤Parse failed␤FAILED 00:01 119m␤»
jnthn std: .??grade
p6eval std a194beb: OUTPUT«===SORRY!===␤Confused at /tmp/o1RFoPbp8d line 1:␤------> .?⏏?grade␤ expecting dotty method or postfix␤Parse failed␤FAILED 00:01 117m␤»
jnthn ...gah
lue Actually, the more I think about it, the more potential ideas are in my head for advent.
masak what's wrong with '>>.grade'?
jnthn rakudo: >>.grade
p6eval rakudo : OUTPUT«===SORRY!===␤Confused at line 22, near ">>.grade"␤»
mathw lue: good, you can have four days then :)
masak std: $_>>.grade
moritz_ lue: also notice that there's a topic-brainstorming file in mu/misc/perl6advent-2010/
p6eval std a194beb: OUTPUT«ok 00:01 118m␤»
moritz_ std: .>>.grade
p6eval std a194beb: OUTPUT«===SORRY!===␤Bogus statement at /tmp/q7cyH2dC0Q line 1:␤------> <BOL>⏏.>>.grade␤Parse failed␤FAILED 00:01 119m␤»
moritz_ std: $_.>>.grade 19:29
p6eval std a194beb: OUTPUT«ok 00:01 118m␤»
jnthn masak: iirc, only applies when it's an infix...or soemthing...
masak yes, but why?
lue I see that, and should add to it.
jnthn masak: 'cus STD says so :)
masak :/
jnthn masak: I don't immediately see why it couldn't be made to work.
masak: But I may be missing something.
masak me too.
jnthn std: .*lol
p6eval std a194beb: OUTPUT«ok 00:01 118m␤» 19:30
jnthn ah, but those are in dotty
19:30 aindilis left
masak right. 19:30
19:31 aindilis joined
mathw it's of fairly limited use, I'd say... but that's a terrible reason to not make it work. A better reason would be 'It's really really really really REALLY hard' 19:32
masak I don't like the "limited use" argument.
mathw no
masak that's essentially the same argument as moritz_ blogged about, with Duration.
mathw it's a bad argument
yes :)
mathw likes Duration, it appeals to his inner type zealot 19:33
masak but I suspect that there might be a better one, and that TimToady will tell us.
mathw :) 19:34
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet 19:40
tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ock_tablet
19:41 molaf left 19:44 Khisanth joined
lue by what time would I have to write an advent post? 23:59 UTC the previous day? 19:44
moritz_ that would be nice, though if you don't quite make it by day break that's OK too 19:45
masak rakudo: say "foo".PARROT; say dir()[0].PARROT
p6eval rakudo : OUTPUT«Str␤Operation not permitted in safe mode␤ in 'Safe::forbidden' at line 2:/tmp/gY2z1f5EuR␤ in main program body at line 22:/tmp/gY2z1f5EuR␤»
masak locally, "Str\nString\n"
masak submits rakudobug
uasi++ on Twitter 19:46
19:47 aindilis left
masak wow, www.reddit.com/r/programming/commen...operators/ is just full of misinformed. 19:50
I'd go in and provide some actual information, but I don't know where to start.
huf r/programming, usual perlhate?
*sigh*
masak "Why bake such stupid operators in to the language instead of just providing a way to define them by the programmer?" -- er, you can't see the use of *sequences*? who says they can't be defined? 19:51
heck, we have *multi* operators; we can define already defined operators!
talk about extensibility!
"I fear that operators in Perl have such widely varying syntactic and semantic forms that it would be next to impossible to provide a way for users to define them." -- sorry, what?
mathw yeah well
I'll poke them on that subject
masak I mean, er, what?
huf :)))) 19:52
masak: you have to remember, these people know only one thing about perl: "perl is line noise"
mathw Rakudo's sequence operator is written in Perl 6, isn't it? 19:53
lue I picked day 13 for writing about the P6 community, is that alright?
masak mathw: yes.
mathw: that's a really good point. I'll write that.
mathw masak: so it's obviously possible to write such operators at the programmer level :)
mathw already did
lue (no-one's going "aw, I wanted day 13!", right?)
mathw the point about it being possible to run over the termination condition for a sequence is much more valid 19:54
that surprised me, I must admit
patrickas++ for trying to get to a proper statement of the problem and figure out if there's a positive spec change there 19:55
19:57 khisanth_ joined, Khisanth left, khisanth_ is now known as Khisanth
masak mathw: well, that's the most recent spec change for sequences. and yes, that's the "drawback" from that change. 20:01
mathw: the advantage was a much, much saner spec, though.
20:01 HarryS joined
dalek : 7601a25 | lue++ | misc/perl6advent-2010/ (2 files):
Added my ideas and signed up for day 13 to write about the P6 community
20:02
mathw it is hard to conceive of a better overall default
and you *can* override it
masak and the rule isn't really '==', but 'The sequence stops when the item generated matches the right-hand side'. 20:03
which means ~~, not ==.
and that's the power of the spec as it stands today.
lue
.oO(I'll probably (99.99999% chance) end up writing >1 posts.)
masak yes, it'll bite people who expect <
mathw aaaaaaaaaaaaaaah
~~++
masak lue: did you pick a slot yet?
moritz_ people who expect < should think about decreasing sequences 20:04
masak or weird sequences.
moritz_ masak: he did, you missed the commit report by dalek
masak lue++
moritz_++ # www.reddit.com/r/programming/commen...rs/c17y8c7 20:08
20:11 uasi joined
masak uasi: hey, thanks for the bug report! 20:11
20:15 uasi left, uasi joined
uasi masak: sure 20:15
20:16 sorear joined
uasi rakudo: say 1, 2 ... * > 3 20:16
p6eval rakudo : OUTPUT«1234␤»
uasi say 1, 2 ... * !< 3 20:17
rakudo: say 1, 2 ... * !< 3
p6eval rakudo : OUTPUT«Can't take numeric value for object of type Whatever␤ in 'Any::Numeric' at line 1418:CORE.setting␤ in 'infix:<<>' at line 7294:CORE.setting␤ in 'negate' at line 122:CORE.setting␤ in main program body at line 1␤»
uasi :/ 20:18
masak huh.
masak submits rakudobug
uasi++
must be some unfortunate combination of ! and operator currying.
20:19 TimToady joined 20:20 diakopter joined
masak TimToady: we were wondering earlier why '».method' isn't legal Perl 6. 20:21
tadzik hello again :) 20:27
masak tadzik! \o/ 20:28
tadzik yeah, back from the battlefield :) How is the advent calendar going?
moritz_ tadzik: no complaints :-) 20:31
I had to chime in for today
tadzik good. Thanks for taking care :)
moritz_++
20:34 MayDaniel joined
masak lue: I like your "common problems with grammars" idea for the calendar -- it's not a "cool feature", but might still be very useful for people starting out. 20:34
tadzik hmm, I should write something this week 20:37
sorear good * #perl6 20:38
dalek : 1bc5538 | masak++ | misc/perl6advent-2010/topic-brainstorming:
[topic-brainstorming] added three suggestions
masak dalek: my, you're fast today.
kthakore rakudo: grammar Card { rule name :w {<[A-Z]><a-z>+ }; };
sorear I see I'm not the only one suffering from 209.9.237.164's network troubles
p6eval rakudo : OUTPUT«===SORRY!===␤traits specified as colon pairs not yet understood at line 22, near "{<[A-Z]><a"␤»
20:38 finanalyst left
kthakore rakudo: grammar Card { rule name :w {<[A-Z]><[a-z]>+ }; }; 20:38
p6eval rakudo : OUTPUT«===SORRY!===␤traits specified as colon pairs not yet understood at line 22, near "{<[A-Z]><["␤»
kthakore ..? 20:39
masak kthakore: what's the :w doing outside the {}?
moritz_ what's :w anyway?
kthakore ... masak I got this from here www.ibm.com/developerworks/linux/li...regex.html
masak kthakore: who are you, anyway? :P
sorear masak: that's because perl6/* is using the new push-based notification system
20:39 timbunce left
tadzik oh, maybe the module system? 20:39
masak sorear: niceness.
kthakore masak: random dude trying to make Magic The Gathering Card Gammar in Perl6
tadzik oh!
20:39 timbunce joined
tadzik MtG! 20:40
masak kthakore++
kthakore tadzik: yeah ... it is not going good
the Ibm tutorial sucks
moritz_ kthakore: :w is now spelled :s or :sigspace
kthakore ah!
masak kthakore: I don't think I've seen the IBM tutorial before.
moritz_ kthakore: it's implied by 'rule' now
tadzik kthakore: dunno, stopped playing on X ed. :)
masak whoa, IBM knows about Perl 6. this could be big. :)
moritz_ if you don't want :sigspace, use 'token' instead of 'rule'
kthakore masak: hah but they have real old version
masak oh wait, it's from 2004. :(
yes, of course it sucks.
in that case. 20:41
kthakore ... sigh
where do I go to learn grammar
tadzik oh my, that's Perl 6 on IBM sites
kthakore this was top result on google
masak kthakore: here!
tadzik kthakore: advent calendar, The Book
kthakore tadzik: okie! :D thanks guys
moritz_ my 5-to-6 page
tadzik too
kthakore ok I remeber the book
where is the advent calendar?
moritz_ and you should know about perlgeek.de/en/article/debug-a-perl-6-grammar
kthakore moritz_: thanks! Why doesn't this show up on google search 20:42
... god damn it google
tadzik use duckduckgo :)
moritz_ kthakore: perl6advent.wordpress.com/ (I think you have to go back to get to the regex/grammar things)
masak "Perl 6 is finally coming within reach." -- *chuckle*
tadzik oh wait, it's also on top in ddg
kthakore tadzik: yeah ... it was stupid
the new stuff needs to show up some how 20:43
masak Teodor Zlatanov, come back! it's six years later, and Perl 6 is finally coming within reach... :P
no no, don't leave...! :)
kthakore ok I will bookmark and try again thanks guys
tadzik thank you! Come again some time. Maybe you'll write your game tutorial for 6 one day :) 20:44
kthakore rakudo: grammar Card { token name {<[A-Z]><a-z>+ }; };
p6eval rakudo : OUTPUT«===SORRY!===␤Unsupported use of - as character range;in Perl 6 please use .. at line 22, near "Z]><a-z>+ "␤»
kthakore argh
rakudo: grammar Card { token name {<[A-Z]><[a-z]>+ }; };
p6eval rakudo : OUTPUT«===SORRY!===␤Unsupported use of - as character range;in Perl 6 please use .. at line 22, near "Z]><[a-z]>"␤»
kthakore cries ... a bit 20:45
masak I really like the "Haskell Weekly News" -- and we used to have something similar for Perl 6, and I think it was a really good thing to have. and I think we should try to have that again, but with a system that doesn't burn people out.
kthakore sorry my perl6 is taking a while to compile
masak sort of, like, a wiki-based system for weekly summaries, where different people take turns summarizing different things.
kthakore tadzik: I will, my plan is to use perl6 to make a good grammar idea. Than make card files from the grammar to perl5 to do eval on them for a SDL perl5 game. 20:46
masak one person doing a whole weekly summary can be a real chore, but if five people each week do 1/5 of the whole task...
kthakore tadzik: perl6 is a bit too slow for a game right now
tadzik rakudo: grammar Card { token TOP { <name> }; token name { [ <[A-Z]> <[a-z]> ]+ }
p6eval rakudo : OUTPUT«===SORRY!===␤Unsupported use of - as character range;in Perl 6 please use .. at line 22, near "Z]> <[a-z]"␤»
tadzik hrm
rakudo: grammar Card { token TOP { <name> }; token name { [ <[A..Z]> <[a..z]> ]+ }
p6eval rakudo : OUTPUT«===SORRY!===␤Unable to parse blockoid, couldn't find final '}' at line 22␤»
tadzik rakudo: grammar Card { token TOP { <name> }; token name { [ <[A..Z]> <[a..z]> ]+ } } # stupid me 20:47
p6eval rakudo : ( no output )
kthakore yay!
tadzik++
kthakore runs away to read perlgeek.de and hack
tadzik it was all in the error message :)
masak here are the tasks I can think of: (a) summarizing p6l, p6c and p6u; (b) grabbing memorable quotes off IRC; (c) summarizing spec changes; (d) cleaning up the layout of the summary; (e) urging the rest along and then posting the summary
kthakore I don't understand the error messages sorry ...
tadzik: blockoid?
moritz_ "block or similar thing" 20:48
tadzik kthakore: {}-alike
kthakore actually I would like to bring this up if I may.
tadzik Unsupported use of - as character range;in Perl 6 please use ..
kthakore can we please have perl6 tell us where the problem is like clang does?
20:48 wamba left
tadzik that was understandable 20:48
20:48 kjeldahl joined
moritz_ rakudo's parser error messages suck, that's known 20:48
tadzik can we please have perl6? :)
moritz_ STD is much better in the regard
20:48 wamba joined
kthakore zi.fi/shots/clang.png 20:48
moritz_ but we do care about good syntax errors, we just aren't there yet 20:49
kthakore tadzik: sure you can
rakudo: say 'Hi Tadzik!'
p6eval rakudo : OUTPUT«Hi Tadzik!␤»
tadzik :)
kthakore tadzik: yay! :D
20:49 wamba left
kthakore moritz_: what needs to be done if someone (I guess me ) wants to do what clang does for the code on run time? 20:50
masak oh, and (f) collecting interesting blog posts from the interwebz.
nice thing is that all of these tasks which would be very heavy work together can be quite nice if split up.
lue does #phasers still happen, perchance? 20:51
colomon lue: certainly
kthakore .. oh well
kthakore runs back to perlgeek.de
tadzik cosimo: pinf
colomon it's a lot more quiet later than it used to be.
moritz_ kthakore: what do you mean "on run time"?
not parse time?
lue maybe part of the weekly summary could be (g) talk in #phasers that week (if interesting)
.oO(I suppose that's a subset of (b), though)
20:52
masak lue: yes, I think so too.
kthakore moritz_: is there a difference? I was under the assumption that there is a parrot run time then perl 6 run time
moritz_ kthakore: of course there's a difference between run time and parse time. Code must first be parsed before it can be run 20:53
masak the (e)-responsible person could perhaps pick a "tl;dr big thing that happened this week" from any of the other categories.
20:54 am0c left
kthakore moritz_: If we even get errors thrown only during parsing showing where the problem is, I would be soooo happy. 20:54
moritz_: What would I need to do to add this?
My naive idea is have a buffer of code that is read/parse, check for error, if error happens spit our what was last parsed.
s/our/out/g 20:55
tadzik std: grammar Card { token TOP { <name> }; token name { [ <[A-Z]> <[a-z]> ]+ }
p6eval std a194beb: OUTPUT«===SORRY!===␤Unsupported use of - as character range; in Perl 6 please use .. at /tmp/fWDmx__Ouz line 1:␤------> ken TOP { <name> }; token name { [ <[A-Z⏏]> <[a-z]> ]+ }␤Parse failed␤FAILED 00:01 121m␤»
tadzik (std is nice)
kthakore OMG!
what is std!!!!!
tadzik just a standard transmitted disease 20:56
kthakore ... -.-
tadzik I mean, a Perl 6 grammar with a parser
kthakore har har har
moritz_ STD is the Perl 6 standard grammar
kthakore :p
moritz_ so, if you want to help, "just" port the error messages from STD to Rakudo
kthakore moritz_: but I don't get these error ouputs when I hack on perl6
moritz_: where is STD? and where to plug in to Rakudo
moritz_ kthakore: it's in the perl6/std repo on github 20:57
kthakore: and rakudo's grammar is in src/Perl6/Grammar.pm
kthakore ok
yay!
oh .. great my perl6 is still compiling ...
tadzik: moritz_ thanks I will go read code too and see if I get anything 20:58
thank you soooo much
masak kthakore: good luck! come back soon! 20:59
kthakore is this the official repo ?
github.com/rakudo/rakudo
tadzik yes
kthakore awww great univserity blocked me from downloading repo ... 21:01
sigh
moritz_ www.thomaskeller.biz/blog/2010/08/1...any-files/
ha a pretty high opinion on Perl 6 :-)
"And while we’re at it, have a look at Rakudo Star, the best Perl 6 compiler which was released just recently. Perl 6 is in my humble opinion one of the well-designed languages I’ve came across so far, so if you find some time, go over and read the last christmas special, its really worth it!"
tadzik kthakore: use http clone 21:02
kthakore tadzik: it is giving me https github.com/perl6/std.git
nvm
tadzik ah, right
kthakore made it http://
thanks
tadzik oh wow, has anyone tried perl6-facter yet? 21:03
mikehh moritz: I am failing to build rakudo on latest parrot - Parrot_capture_lex function not defined/missing
kthakore std: give me an error so I can search your code for it 21:04
p6eval std a194beb: OUTPUT«===SORRY!===␤Undeclared name:␤ 'I' used at line 1␤Undeclared routines:␤ 'an' used at line 1␤ 'can' used at line 1␤ 'code' used at line 1␤ 'error' used at line 1␤ 'give' used at line 1␤ 'it' used at line 1␤ 'me' used at line 1␤ 'search'
..used at line 1␤ 'your' used …
mikehh damnit
tadzik I always thought 2 GBs of RAM is "ha ha, who's going to eat that all anyway?"
mikehh moritz_: I am failing to build rakudo on latest parrot - Parrot_capture_lex function not defined/missing
kthakore hrmf
std: say 'this is silly 21:05
p6eval std a194beb: OUTPUT«===SORRY!===␤Unable to parse single quotes at /tmp/f3Yf1wmUOp line 1:␤------> say ⏏'this is silly␤Couldn't find final "'"; gave up at /tmp/f3Yf1wmUOp line 1 (EOF):␤------> say 'this is silly⏏<EOL>␤Parse failed␤FAILED 00:01
..119…
kthakore yay!
tadzik cosimo: t/resolution-exec.t ate like 2.5 GBs of my memory, I guess something somewhere went horribly wrong 21:06
moritz_ mikehh: seem to have been renamed (Parrot_sub_capture_lex) 21:07
kthakore so we have the awesome error stuff all over the place in boot/Cursor.pmc viv boot/STD.pmc so on, am I on the right track?
moritz_ kthakore: boot/Cursor.pmc is a generated file
kthakore: you really want to look into STD.pm6
tadzik well, everything funny is in STD.pm6
moritz_ and search for obs, worry and panic 21:08
mikehh moritz_: ok let me try that
kthakore moritz_: ah ok
thank you
holy batman there be no comments haha 21:09
ok I gotz to learn grammars first thanks
21:12 skangas joined
sorear kthakore: viv does not contain error goodness 21:14
viv is just the compiler
it translates STD.pm6 into boot/STD.pmc
dalek kudo: fedc117 | moritz++ | / (2 files):
track a function rename in Rakudo, and bump PARROT_REVISION
21:17
21:18 timbunce left 21:19 timbunce joined, MayDaniel left
sorear jjore++ # p6l posts that are actually useful 21:19
masak indeed. jjore++ 21:20
sorear is vaguely bothered by the fact that every CLR->Perl6 return needs to do a hash lookup to get the Perl 6 class corresponding to the runtime Type of the returned value 21:25
mathw Hmm 21:29
Might be nice if you could avoid that
but it's probably better than an O(N) list scan :)
sorear Do I need to mention this hash table is shared between threads? 21:31
colomon sorear: do you know the type of the CLR->Perl6 return ahead of time?
sorear colomon: yes, but if it's a non-sealed class that doesn't help 21:32
so I can avoid the hash lookup for returns of sealed classes like System.String
colomon how are the classes identified? Is there any sane way to do something faster than a hash table? (Or, at least, to have a dedicated hashing function?) 21:33
sorear Type objects have canonical instances; they use the default System.Object.HashCode() and can be compared using referential equality 21:36
tadzik seen pmichaud 21:37
aloha pmichaud was last seen in #perl6 4 days ago joining the channel.
kthakore sorear: oh ok 21:45
21:49 timbunce left, timbunce_ joined
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....kup_tablet 21:50
21:53 exodist_ is now known as Exodist 21:56 tylercurtis joined 22:00 M_o_C joined
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....dex_tablet 22:01
tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ics_tablet 22:12
22:13 soroush joined, soroush left, soroush joined 22:14 timbunce_ left 22:15 kst left, kst joined
sorear How much sense does $obj.Role::method make? 22:18
jnthn sorear: Believe it works.
masak lots of sense.
that's how you disambiguate between colliding roles in class methods.
jnthn sorear: And yes, it makes sense. It's the way you write disambiguators.
I think Rakudo implements it in the right way too. 22:19
masak aye.
ooh, that in itself is an Advent Calendar topic.
sorear jnthn: does it make any sense outside disambiguators?
masak adds to the topic suggestions
jnthn sorear: Well, a disambiguator is only one by convention. 22:20
I think that the thing that makes it work when used in that way makes it work generally though.
It's related to $obj.NameOfParent::foo() and works in the same places that would. 22:21
(e.g. it's fine, provided $obj ~~ NameOfParent, or in the role case $obj ~~ TheRole)
masak I don't think it makes unless $obj ~~ ... what jnthn said.
dalek : 94310a8 | masak++ | misc/perl6advent-2010/topic-brainstorming:
[topic-brainstorming] added role disambiguators idea
22:22
masak so fast! :)
jnthn oh no, this is where the drunk gymnast sneaks into the advent calendar.... :P
22:23 colomon left
sorear jnthn: given class Foo { public override string ToString() { return "Bar"; } } 22:32
jnthn: what should Foo.new.Object::ToString return? 22:33
jnthn sorear: Ideally that'd call the .ToString() in System.Object.
sorear That would require tampering with the verifier... 22:36
jnthn Maybe we have to be less ideal. ;)
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ics_tablet 22:39
sorear part of me thinks that creating a new DynMetaObject for every distinct Type is "WTF WHAT ARE YOU DOING" 22:40
lichtkind can be the << >> as in quoting also be writen with chevrons? 22:41
sorear yes 22:43
22:45 colomon joined
lue
.oO( ?(LaTeXUnicodeSupport) == Bool::False; # grrrrr )
22:52
22:53 M_o_C left, risou joined 22:54 _kaare left 22:56 risou left, risou joined 23:05 MaL0 left
dalek tpfwiki: (Herbert Breunung)++ | www.perlfoundation.org/perl6/index....ics_tablet 23:06
23:07 shi left 23:09 kjeldahl left 23:11 kst left 23:14 kst joined
dukeleto a Parrot Developer Summit is happening now in #parrotsketch on irc.perl.org, if anybody is interested. 23:14
23:15 cotto left, uasi left, cotto joined 23:27 flatwhatson left
lichtkind sorear: thanks 23:32
23:34 ch3ck joined
ch3ck re 23:34
sjohnson re? 23:35
23:37 sunnavy left
[particle] darned cats. 23:37
masak it's not cats, it's ch3ck and sjohnson. :) 23:38
23:39 sunnavy joined
ch3ck masak :* 23:39
masak time to go regenerate.
'night, all #perl6 cats. 23:40
23:40 masak left
sjohnson scratches [particle] 23:43
meow!
dalek osystem: 4a27ea2 | thundergnat++ | projects.list:
Added Text-Levenshtein to projects.list
23:44
23:45 shi joined 23:49 ndrsndrs left 23:58 phio joined