»ö« | perl6.org/ | nopaste: paste.lisp.org/new/perl6 | evalbot usage: 'perl6: say 3;' or rakudo: / pugs: / std: , or /msg p6eval perl6: ... | irclog: irc.pugscode.org/ | UTF-8 is our friend!
Set by wolfe.freenode.net on 30 October 2009.
zaslon lolperl6adventhazblogged! perl6advent++ 'Day 15: .pick your game': perl6advent.wordpress.com/2009/12/1...your-game/ 00:04
diakopter sigh. it would appear I'm netsplit 01:29
at least from ilbot2
simcop2387 yep 01:30
we're on the wrong end of it
diakopter we all are!
:)
yeah
sjohnson i love those implied $_ thingies 02:02
wayland76 Well, TimToady has done his best to get rid of a lot of the implied $_ :) 02:02
sjohnson diakopter: since no perl chat is going on just yet... i was wondering if you know anything about if it's illegal to take things from a landfill 02:43
like, car batteries citizens think are dead, but just need a recharge and could be sold 2nd hand 02:44
diakopter depends who owns the landfill, I guess 02:46
colomon perhaps I'm too cynical, but taking reusable things from a landfill sounds like one of those things that's such an obvious good that it almost certainly is against the law or something. 02:52
wayland76 It is against the law here in Australia 03:01
(I think it's health measures = insurance that causes the problem)
There are guys, though, who ask people for things off their trailers before they're put into landfill 03:03
PerlJam Does anyone know if there's a document somewhere that lists the things that Rakudo needs from Parrot? 03:03
diakopter PerlJam: the ROADMAP in rakudo ng 03:03
has some of them
PerlJam Let me rephrase ... Does anyone know if there's an *updated* document that lists the things that Rakudo needs from Parrot? :) 03:03
diakopter an hour or two ago, I asked pmichaud about that here 03:03
and he replied diakopter: +1
PerlJam okay. Just checking. I'm reading through the logs of #parrotsketch from Sunday. I just got to the point where they're talking about focusing on a successful Rakudo* release 03:03
diakopter TimToady recommended reading that too; perhaps I will 03:04
diakopter WHOA long 03:04
Wolfman2000 ...how exactly does one get "throttled" out of a room? 03:04
diakopter I guess sending too many messages to it 03:05
spinclad Wolfman2000: doing a large cut-and-paste into the room, where your irc client doesn't do its own rate-limiting (say to 1 line/sec)
diakopter (but if you weren't sending anything, freenode glitches) 03:05
colomon PerlJam: where are the logs of #parrotsketch? 03:06
PerlJam irclog.perlgeek.de/parrotsketch/2009-12-13 03:06
JimmyZ irclog.perlgeek.de/parrotsketch/2009-12-13
Wolfman2000 spinclad: I wasn't doing a large cut and paste 03:07
JimmyZ irclog?
spinclad Wolfman2000: dunno then
vantage number one of holding such a meeting online: everyone can read the WHOLE THING.
diakopter sets aside more than 20 minutes to read the #parrotsketch irclog 03:08
spinclad (it lasted four hours of its scheduled three.)
diakopter scrolls more quickly 03:09
PerlJam I wrote a short article for www.perl.com 4 or so years ago about Perl 6. Back then it felt very much like Perl 6 was 2-3 years away from an alpha release. Today Perl 6 *still* feels like it's about 2-3 years away, but from a "beta" release (I wish I had a good way to calibrate my Perl6-sense) 03:10
diakopter lol. kid51: Ah! a customer has just walked thru the door!
diakopter I dunno, 3 years ago I felt like Perl 6 already had beta releases. 03:11
colomon PerlJam: really? it feels to me like a proper rakudo beta will be ready approx in late 2010.
spinclad PerlJam: that's progress (and there's been plenty)
PerlJam I wonder if several someones could estimate the number of person-months needed to finish Perl 6, then perhaps we could tap into the wisdom of crowds for a good answer. 03:12
spinclad colomon: it might depend on whether a good beta has to run nonglacially
diakopter PerlJam: I assume you found nopaste.snit.ch/19067
PerlJam colomon: What do you see "Rakudo Beta" having that "Rakudo *" does not?
spinclad PerlJam: 'finish'?
colomon I really think the speed thing will work itself over the next year.
PerlJam spinclad: you know what I mean. (or should) 03:13
colomon PerlJam: BigInts and FatRats. fully working (if not threaded) hyper operators. things like that.
PerlJam "finish to the degree that ordinary programming folk would call the language "done" or "ready" "
spinclad 'good enough to call done'
diakopter PerlJam: 'finish'? to the Synopses as they are today? a few 2<<10 person-months
colomon Also, I'm starting to doubt that even the worst of the speed issues will be finished by R*, so those too. 03:14
diakopter PerlJam: I assume you found nopaste.snit.ch/19067
PerlJam diakopter: oh, I haven't seen that yet. 03:15
diakopter irclog.perlgeek.de/parrotsketch/200...#i_1832393 03:16
PerlJam yeah, I'm too easily side tracked and I haven't read that far yet :)
PerlJam It's funny, but the stuff on the Parrot Roadmap spreadsheet that's slated for 2.3 and 2.6 feels like it should be in focus for 2.0. But I guess it's just a question of resources. 03:19
s/stuff/some of the stuff/
diakopter notes with interest that "eliminate Perl dependency" is scheduled to be dropped from the roadmap 03:20
diakopter parrot 2.3 scheduled for release in April 2010 03:24
mid-April, it seems
so it seems the goals for that release (including the 2.0 goals) are: 03:27
diakopter 1) solve TT389 - fix :anon, :method (from Allison's last two comments, looks like a few tens of person-hours - my blind guess, including project overhead) 03:30
diakopter 2) solve TT566 - looks like pmichaud already (today) did this 03:32
3) same for TT568 03:33
& 567 I mean
2) TT592 - write documentation for parrot debugger. I suspect I speak for most when I conjecture that that will slip in light of the other priorities 03:34
3) fix/extend the garbage collector - TT607/616 - a few thousand person-hours? I don't know. 03:36
diakopter 4) subroutine (and transitive ones) exit handlers. a few hundred person-hours, order of magnitude guess. 03:38
diakopter looks like native-type-lexicals got pushed to Oct 2010 03:39
spinclad :(
diakopter along with async I/O and constant data structures
while concurrency was sent to Jan 2011 03:40
diakopter (it was already set to then, I should say) 03:41
sjohnson they need to do way instain netsplits> 06:51
who kill their connections.. because these irc users cannot fright back? 06:53
Su-Shee good morning. 06:55
spinclad
.oO( 'they need to do away with instant netsplits' )
07:09
sjohnson what does oO do? 07:10
spinclad sjohnson++ # NOMOR NETSPLITZ!
oO is the think operator
it also takes { } if you like 07:11
sjohnson what exactly does thinking do?
spinclad thinking makes pictures in your head
warning: do not believe them all
sjohnson
.oO( 'how can I avoid having to work for a living' )
07:12
spinclad
.oO( 'is a constructor of thunks' )
.oO( 'avoid work' <== 'want not' )
07:13
otoh 07:14
.oO( 'want not' ==><== 'want Perl 6' )
spinclad mm. huffman clearly calls for the .otOh operator 07:24
flip214 HELO 07:27
or maybe better EHLO
sjohnson HELO flip214 07:29
flip214 Is anyone interested in a NULL PMC Access here, or should I just file a rakudobug? 07:31
Tene blog.plover.com/prog/burritos.html
><
flip214 I've got it down to 2 files with a few bytes each 07:32
Tene .title
phenny Tene: The Universe of Discourse : Monads are like burritos
moritz_ good morning
Tene HI MORITZ 07:33
flip214 220 IRC server ready 07:33
Ok, as no one jumps up and says "me, please" I'll just file a bug 07:34
moritz_ hugme: tweet rakudoperl Perl 6 advent calendar day 15: .pick your game perl6advent.wordpress.com/2009/12/1...your-game/ 07:41
hugme moritz_: You need to register with freenode first
moritz_ hugme: tweet rakudoperl Perl 6 advent calendar day 15: .pick your game perl6advent.wordpress.com/2009/12/1...your-game/
hugme hugs moritz_; tweet delivered
frettled Good post-morning! 08:57
Supaplex greetings frettled 09:12
masak oh hai, #perl6 09:20
moritz_ \o
vamped o/
masak \o/
moritz_ can we somehow teach the overview posting not to send pingbacks to the other blog posts? 09:23
(on the advent calendar, that is)
they look rather spammy, which is why I deleted most of them manually
sjohnson y0 09:24
frettled omgitsmasak
masak moritz_: good thinking. blog posts not sending pingbacks to other posts on the same blog sounds like a FAQ. question is what to google for.
frettled: "Please, please, don't make a fuss. I'm just plain Yogurt." :) 09:25
frettled heh :)
moritz_ codex.wordpress.org/Introduction_to...#Pingbacks not all that helpful 09:27
frettled other than admitting that pingbacks also are of the Beast. 09:28
sjohnson hows it going frettled 09:29
moritz_ found the option, and disabled it 09:30
Settings -> Discussion
flip214 EHLO Back-aga.in 09:31
frettled sjohnson: not too bad, but way too little time for things that are Perl. 09:41
masak "If Perl 6 didn't exist, someone would have invented it by now." 09:51
this is my thought when backlogging over yesterday's discussion about P5 specializing in keeping backwards compatibility, and P6 specializing in breaking it.
the people with the "research project" meme are right insofar as P6 being a great enabler of the idea of "what happens if we break the stuff that needs breaking?" 09:53
"Perl 6: Perl without the brakes." :P
vamped too many things in society exists solely to not break backwards compatibility. Way to go Perl 6! 09:57
frettled heh 09:59
masak: I had similar thoughts a few days ago: I wondered where Perl 5 would be if not for Perl 6. 10:00
masak frettled: it might be doing pretty well, it's hard to say. I think Moose would be affected quite a bit in some way. 10:01
someone might want to make an alternative history blog post. :) 10:02
frettled From my perspective, it looks like Perl 5 got vitalized by the Perl 6 development.
masak I think so too.
moritz_ if there was no Perl 6, Larry would have tried to mold Perl 5 into something less "broken"
frettled moritz_: and we'd call it Perl 6!
vamped if Perl 5.10 is enough, then why bother with 5.11 and 5.12 and ... ? I think that in a few years time, once Perl 6 is up, stable, with good modules, many will convert. 10:03
moritz_ vamped: because Perl 6 is not Perl 5, and will never be 10:03
frettled vamped: It's not _that_ long ago that I looked at the list of improvements from 5.6 to 5.8 and though «okay, so Unicode support is better, but …»
moritz_ and there are not only people who like Perl, but also people who like Perl 5
frettled and there are weird guys like me, who like both Perl 5 and Perl 6 10:06
vamped @moritz: yes. what i'm saying though is that many people who love Perl 5 will love Perl 6 too. 10:07
moritz_ vamped: I know. But there also many people who won't love Perl 6 10:08
and remember, this is open source and volunteer driven. There's just no way to say "we discontinue $a in favor of $b" when people want to work on $a.
masak .oO( good thing we booted lambdabot )
vamped agrees with @moritz completely, while struggling to find the logic. 10:09
moritz_ vamped: we're not on twitter, no need to prefix nicknames with an @
that looks like I'm an array :-)
vamped maybe you have multiple personalities? lol. ok. 10:10
masak moritz_-clones!
we'll order 10, and get the test suite finished early!
moritz_ vamped: maybe I have, but on IRC I try to hide them beneath a unified interface :-)
flip214 is there no accessor for them? not even private? 10:14
moritz_ private, yes 10:15
masak I'm always fascinated by different types of "X hijacking", mostly because the exploits are clever-ish. haacked.com/archive/2009/06/25/json...cking.aspx 10:19
do you think that people will send things serialized with .perl in Perl 6, and suffer for it? 10:20
moritz_ I hope they won't, because it requires eval() in the receiver side 10:21
which is very dangerous anyway
masak AFAIU, that's the way it's traditionally been done with JSON. 10:22
(and yes, it's bad)
a JSON parser for JavaScript wasn't written until quite recently.
moritz_ I think firefox has a sandbox-eval that allows only side-effect free evaluation, or some such 10:25
masak which amounts to using the JavaScript parser as a JSON parser, and smacking it over the fingers if it tries something else. 10:26
moritz_ right
moritz_ I wonder if we can have a :pure option to eval() in Perl 6 10:26
masak sounds like a fun job for a module. :) 10:27
moritz_ sounds like poking deep into the compiler, to me
masak yeah, probably.
moritz_ and while glancing over the page you linked to, I think the real problem in there is that something eval()s the js. The rest is "just" a clever environment manipulation to use that for mischief 10:30
masak moritz_: indeed. 10:34
masak moritz_: November the Wiki uses files, .perl and eval in lieu of a database. not because we think it's a good solution, but because it was the simplest thing that could possibly work. 10:35
moritz_: so there's already a precedent in Perl 6 culture of someone doing it wrong. :) 10:36
spinclad it would be a bit safer to eval the .perl in a constrained language, that can only build :pure constructs 10:46
masak i.e. a standalone parser. 10:47
spinclad yup
masak P6ON :)
spinclad a standalone grammar-plus-actions, anyway 10:50
(the grammar engine being the ocean this fish swims in) 10:51
masak hm, so subroutines default to :(@_), but &map defaults to :($_ is rw), correct? 10:55
why is the former readonly but not the latter?
hm, it's not &map, is it? it's anon blocks in general.
masak I guess one motivation for making anon blocks readonly goes like this: map and for are equivalent, and we still would like to be able to do things like `$_ += 2 for @stuff;` 10:58
spinclad otoh you can say `@stuff .= map: *+2`; that would seem to ease the call for mutating mappers somewhat 11:03
masak troo. 11:07
spinclad although that replaces @stuff rather than replacing each element (which might matter); other than that i think it's equally expressive.
it just substitues an effective '@stuff is rw' for '$stuffing is rw' 11:08
masak heh. :) 11:11
moritz_ masak: if the things you store in November are simple enough, you could use JSON - at the cost of a speed hit, of course
masak moritz_: mm. my mental November ROADMAP wants to try Squerl.
spinclad but discards any aliasing on the @stuff[*]'s 11:12
moritz_ masak: Whatever :-) 11:13
spinclad
.oO( ROADMAP discards aliasing ) # nonono
11:14
spinclad thinks november is ripe for squerl 11:16
masak and, possibly, the other way around. :) 11:17
sushi &
moritz_ masak: blocks default to -> Object $_ is ref = OUTER::<$_> or so, subroutines to *@_ 11:18
Juerd juerd.nl/i/017ac09af78e0af54a752e3d6236b18e.png 11:19
Juerd sslh is a green technology. 11:19
spinclad -> bed & 11:21
Juerd Advent day 15: «my @dice = (1, 2, 3, 4, 5, 6); my $index = int (rand() * scalar @dice); print $dice[$index] . "\n";» 11:22
That's unfair to Perl 5
my @dice = (1, 2, 3, 4, 5, 6) = print $dice[rand @dice] . "\n"; 11:23
s/= print/; print/
For the single pick, $dice[rand @dice] isn't that much worse than @dice.pick
moritz_ right 11:24
Juerd The real big benefit comes when you pick multiple things, because in Perl 5 that generally is a lot of administration if you want to avoid picking the same thing twice.
BinGOs print +(1..6)[rand 6], "\n"; 11:26
Juerd «for <♥ ♣ ♦ ♠> -> $suit» I love this use of the unicode characters.
"Juerd Says: Your comment is awaiting moderation." 11:29
I didn't say that :)
wordpress--
moritz_ and approved. 11:30
carlin could someone with access merge the dupe RT #71288 with RT #64688 11:50
moritz_ done 11:52
carlin: thanks
flip214 what, that easy? 12:05
"could someone with knowledge please fix my outstanding tickets?" kthxb
flip214 Sorry for being silly today 12:08
Juerd Heh 12:11
masak flip214++ # "could someone with knowledge" meme 12:52
moritz_ masak++ # handing out karma while no karma is being recorded
JimmyZ xinming: ping
masak Could someone with knowledge please make sure ng lands? kthxbai
carlin mubot: karma masak 12:53
mubot masak has a karma of 5
masak :)
masak++
mubot: karma masak
mubot masak has a karma of 6
masak that's dangerous. :)
moritz_ mubot: karma
mubot has not yet made an impact on this world
flip214 masak++ ++ ++ ++ ++
moritz_ mubot: karma moritz
mubot moritz has a karma of 7
moritz_ mubot: karma moritz_
mubot moritz has a karma of 7
xinming JimmyZ: pong?
moritz_ are these aliased?
masak flip214: no whitespace before postfix ops :)
flip214 mubot: karma masak
mubot masak has a karma of 7
xinming oops, I'm an op. >_<
moritz_ moritz++
carlin you could always make evalbot give you karma anyway... 12:54
moritz_ mubot: karma moritz_
mubot moritz has a karma of 8
carlin rakudo: say "masak++"
p6eval rakudo 7ef386: masak++␤
flip214 rakudo: say 'flip214++';
masak \o/
p6eval rakudo 7ef386: flip214++␤ 12:54
moritz_ isn't that flip215? :-) 12:54
masak carlin: the punishment for making the evalbot give you karma should be that the karmabot kicks you. 12:54
moritz_ flip214: you should change your nick with every karma increment and decrement :-) 12:55
flip214 don't know who I am today 12:55
frettled moritz_: brilliant :) 13:03
IllvilJa Having the option of supplying a 'weight' function to the .pick() method to dynamically manipulate the probability of each element to be .picked() would be very useful. Dynamically letting individual elements get a probability of zero to exempt them from being picked would be useful too. Calls for me writing a module I guess ;-). 13:24
IllvilJa curses the fact there is so much to do and so little time... 13:24
moritz_ well, time doesn't just exist, you have to take the time to do things 13:24
IllvilJa I have to implode into a black hole, and create a little big bang and associated universe with eternal amount of time which I use to write up all kinds of fun code and then return back with the goodies... Should work. Only a few technical details to sort out. 13:26
Like becoming a person again after being a black hole for 0 seconds/1 infinity.... or avoiding that the rest of the world get's sucked in in the process (which really would be in the way for my code writing...) 13:27
moritz_ and in the time you wait for the money to be allocated, you can write a few Perl 6 modules. Sounds like a great plan :-)
(the money you need for buying the equiment to build a black hole, of course)
coke moritz_: I saw that episode of SG:1. apparently you can just get it over the internet. 13:28
masak IllvilJa: the 'weight' feature you're requesting is already spec'd.
IllvilJa: but it's spec'd on Bags, and Rakudo doesn't have those yet.
colomon Was just writing that in a comment reply. ;)
moritz_ coke: somebody wrote the same bullshit as I did? :-)
IllvilJa masak: sounds very good! 13:29
Every day is a teacher about perl 6 :-)
Ok, time to go pick up my daughter at daycare. 13:30
CU later.
IllvilJa (and thx for swift replies) 13:30
Wolfman2000 *yawn* morning 13:53
masak o/
Wolfman2000 Guess my last topic choice was a good one. 13:54
colomon getting a lot of interest, for sure.
carlin Wolfman2000: I told you you picked a good topic ;-)
Wolfman2000 ...of course, now I realized I should have made a Bingo example, but then I remembered that I don't recall the best way to turn 5 lists verticle. 13:55
vertical*
I'll let someone else deal with that.
colomon ha! bingo never occurred to me as an example, but it's keen.
slavik if for and map are equivalent, is there a reason to have both? 13:56
moritz_ yes
slavik bah, chat window didn't scroll down, but question stands :)
colomon anyone have recommendations for a linux rescue CD? my house's mian server appears to be hosed...
colomon *main 13:56
slavik moritz_: for what purpose?
moritz_ colomon: grml
slavik colomon: ubuntu/knoppix
Wolfman2000 colomon: not familiar with rescue CDs
but ubuntu for getting teh data is a good idea 13:57
moritz_ slavik: timtowtdi. They read rather differently
Wolfman2000 would have done so for his dad's old laptop, but the motherboard just gives up after 3 minutes.
masak they're of different grammatical category.
map is a listop, for is a special statement form.
moritz_ grml.org/download/ FWIW 13:58
slavik I see, but other than that, there is no real difference?
colomon moritz_: thanks, trying to figure out which version to download...
moritz_ slavik: there is, if you have a list-thing which overrides map 13:59
slavik I see
for grammars, is it possible to have a grammar act as a parser and output error messages if it doesn't properly match? 14:00
moritz_ colomon: grml-medium should be enough for most recovery tasks (200MB download)
slavik since you can define tokens, it could say what token it was expecting and what it got
moritz_ slavik: yes
slavik sweet
moritz_ slavik: you can also give the tokens different names in the error message
with the :dba ("do business as") adverb
slavik moritz_: is there a working example of this? 14:01
moritz_ rakudo: token foo { :dba<bar> '{' ~ '}' [\s+] }; '{ ' ~~ /<foo>/
colomon moritz_: downloading now. danke.
moritz_ slavik: STD.pm is full of it :-)
p6eval rakudo 7ef386: Unable to find regex 'bar'␤in regex
rodi STD.pm has some nice error messages.
yeah, what moritz_ said. 14:02
moritz_ rakudo: token foo { :dba('bar') '{' ~ '}' [\s+] }; '{ ' ~~ /<foo>/
p6eval rakudo 7ef386: Unable to parse 'bar', couldn't find final '}'␤in regex
moritz_ wtf?
in master, src/parser/grammar.pg contains a :dba('...') 14:04
so I think it should work
ah
it actually worked
but I was confused that it gave an error message :-)
rakudo: token foo { :dba('block with curlies') '{' ~ '}' [\s+] }; '{ ' ~~ /<foo>/ 14:05
p6eval rakudo 7ef386: Unable to parse 'block with curlies', couldn't find final '}'␤in regex
rodi wow, that's nifty.
masak rakudo: token foo { :dba(block with curlies) '{' ~ '}' [\s+] }; '{ ' ~~ /<foo>/ 14:06
p6eval rakudo 7ef386: Unable to parse block with curlies, couldn't find final '}'␤in regex
rodi why does that work?
slavik nice 14:07
moritz_ that's a bit scary
it shouldn't :-)
frettled Re: weighted pick() - I have this nagging feeling that it might be easyish to find a work-around for that. 14:07
rodi I grok :dba<block with curlies> but not what masak wrote...
PerlJam morning
moritz_ rodi: it's a rakudo limitation, not spec
slavik what about token program { <statement>+ }; token statement { blah blah }, you get the idea
PerlJam looking over the last several days of perl6 tweets, it seems that there are many more positive tweets about it. 14:08
frettled IllvilJa: The problem with weighting pick() (or some other method), is how to fribble the notation properly.
slavik and out of multiple possibilities for a statement to tell you what it is expecting
moritz_ slavik: you mean like STD.pm does it?
slavik moritz_: don't know haven't seen it :)
rodi moritz_: gotcha, okay. 14:09
slavik moritz_: idea is to have a parser for code where you only define grammar and then just walk the tree :P
to be able to write an interpreter in perl6 by defining the grammar and then walking the smart matcher object
masak PerlJam: definitely a positive trend since the P6AC, yes. 14:10
jnthn o/
moritz_ slavik: it's probably easier to define action/reduction methods to build some kind of AST as an intermediate format 14:11
slavik hmm
moritz_ otherwise each and every grammar change means changes to the interpreter kernel
and that's really painful
colomon Ack. My server seems to turn over and die in the process of booting Linux -- whether the installed CentOS or grml off the CD. :( 14:23
moritz_ run a memcheck 14:29
colomon moritz_: is that on the grml CD, do you know? 14:29
moritz_ might be, as a boot option 14:30
moritz_ you can press F1, F2 etc. to get online help of the boot options 14:30
(while in the boot menu, that is)
colomon had just gone to thinking about how to rebuild the svn server on the "media" box... 14:31
masak www.polettix.it/perlettix/id_perl-5-parsing 14:33
by some astounding coincidence, STD.pm currently weighs in at 5600 lines of code. but I wouldn't call it ad-hoc. :) 14:34
colomon the good news: grml does indeed have memtest86, even in grml-medium. 14:35
Wolfman2000 is there something magic about 5600?
colomon the bad news: just selecting memtest86 to run kills the system before memtest can actually start. :( 14:35
Wolfman2000 ...I'm starting to wonder if a primarily solo developer of a git app is supposed to be able to manage...right now 5 branches on his own. 14:38
moritz_ colomon: so it's CPU, motherboard or RAM. :/ 14:39
I have no idea where this 5600 comes from, and how fair or unfair it is to compare parsing code with BNF grammars 14:41
colomon moritz_: now we get to find out how well those svn backups I've been making work in practice....
masak grrr! every time I send email to the p6u list, I get annoying an whitelisting email from some Russian guy. 14:48
moritz_ aye
masak wait, no. Ukrainian.
masak I've written about it before on p6u, asking to have him removed. but either no-one whoz op is listening, or the guy keeps coming back. 14:49
moritz_ the latter
he was gone for a while 14:50
masak really? then I'll write to p6u again.
moritz_ don't 14:51
moritz_ write to perl6-users-owner 14:51
masak thanks -- I'll do that. 14:52
masak email sent. 14:53
moritz_ what's the opposite of an "optical dense medium"?
I somehow don't think that "sparse" is the right word :-)
frettled muidem esned lacitpo
moritz_ .frettles flip 14:54
erm
masak moritz_: 'thin'? 14:56
Wolfman2000 ...okay, no clue how I got disconnected
moritz_ just took "medium with smaller refractive index" :/) 14:58
pmichaud_ good morning, #perl6 15:00
masak pmichaud_: good morning! 15:02
moritz_: that works too. but 'optically thinner medium' sounds perfectly ok, at least. 15:03
Wolfman2000 ...forgot to give the /back command. 15:03
frettled masak/moritz_: or «medium with a refraction index closer to 1» :D 15:10
masak meh. 15:11
frettled The terminology seems to be «less optically dense» and «more optically dense»
or «lower optical density» and «higher optical density»
lower or higher refraction index/index of refraction 15:12
masak hokay.
frettled and so on
We could of course introduce the term «undense». ;)
pmichaud_ "optically like a fruitcake" and "optically like a mousse" 15:13
frettled or moose 15:13
moritz_ I don't think moose are so undense :-) 15:14
frettled opaque like an idiot or transparent like a fool
masak Perl 6 aims to be both :) 15:15
The objects, for example, are opaque, so you can't look into them.
But on the other hand, classes allow for great introspection.
moritz_ so classes are fools? 15:17
masak there's an OO in fool. :)
but yes, I think classes are something of the court jester in programming. 15:18
frettled :) 15:20
pmichaud_ Wolfman2000++ # excellent advent post 15:21
Wolfman2000 thanks pmichaud_ 15:22
pmichaud_ at some point I'd like to see
masak indeed, Wolfman2000++
Wolfman2000 Unfortunately, that looks like my last one. I gave up my last day to moritz_.
pmichaud_ for <A 2 3 4 5 6 7 8 9 T J Q K> X <♥ ♣ ♦ ♠> -> $rank, $suit { @deck.push(...) }
Wolfman2000 ...does that actually work? 15:23
masak aye.
pmichaud_ rakudo: for <A 2 3 4 5 6 7 8 9 T J Q K> X <♥ ♣ ♦ ♠> -> $rank, $suit { say "$rank$suit"; }
p6eval rakudo 7ef386: A♥␤A♣␤A♦␤A♠␤2♥␤2♣␤2♦␤2♠␤3♥␤3♣␤3♦␤3♠␤4♥␤4♣␤4♦␤4♠␤5♥␤5♣␤5♦␤5♠␤6♥␤6♣␤6♦␤6♠␤7♥␤7♣␤7♦␤7♠␤8♥␤8♣␤8♦␤8♠␤9♥␤9♣␤9♦␤9♠␤T♥␤T♣␤T♦␤T♠␤J♥␤J♣␤J♦␤J♠␤Q♥␤Q♣␤Q♦␤Q♠␤K♥␤K♣␤K♦␤K♠␤ 15:24
masak ooh! idea for a poster: ideas/concepts in Perl 6, sorted by approximate abstraction level, with history descriptions of the languages which launched that particular feature, along with languages which took the idea further... if someone made such a poster, I'd surely buy it.
if no-one volunteers, I'll make a github repo and start on it myself.
Wolfman2000 rakudo: my @deck; for <A 2 3 4 5 6 7 8 9 T J Q K> X <♥ ♣ ♦ ♠> -> $rank, $suit { @deck.push(...); }; say @deck.pick(5).join(" ");
p6eval rakudo 7ef386: Can't return outside a routine␤in Main (file <unknown>, line <unknown>)␤
Wolfman2000 ...right
pmichaud_ well, I meant to have the Card.new in for the ...
Wolfman2000 rakudo: my @deck; for <A 2 3 4 5 6 7 8 9 T J Q K> X <♥ ♣ ♦ ♠> -> $rank, $suit { @deck.push($rank ~ $suit); }; say @deck.pick(5).join(" ");
p6eval rakudo 7ef386: 4♠ 6♣ 7♦ 6♦ K♦␤ 15:25
Wolfman2000 well, that works just as well.
Juerd Sweet.
masak "Can't return outside a routine"? wtf? 15:25
Wolfman2000 pmichaud_++ for what looks like an excellent use of the Cross Operator
pmichaud_ Wolfman2000: here's the version I had... www.pmichaud.com/2009/pres/oscon-pe...lide5.html
jonasbn hello
colomon masak: sounds cool, but I'd rather have an up-to-date periodic table of operators... :) 15:26
moritz_ hi jonasbn
Juerd Nah, let's stop updating old documents and keep producing new ones.
masak colomon: I thought it was still fairly up-io-date...
jonasbn pmichaud_, we talked about a perl6 hackathon in Copenhagen at some point
Wolfman2000 The Z operator...it's some sort of zip thing, right?
pmichaud_ yes
jonasbn pmichaud_, I am ready to start organizing
pmichaud_ jonasbn: excellent. what timeframe might we be looking at? 15:26
masak Wolfman2000: infix:<Z> and &zip are synonyms.
moritz_ and where will the hackathon be? :-) 15:27
pmichaud_ "in Copenhagen" :-)
masak Perl 6 hackathon in Copenhagen? woot!
Wolfman2000 masak: I still don't quite get what it does. I'm guessing...since it's using the deck, take the name inside each deck, give it a value, and put those key pairs into the hash.
masak let's use all of Copenhagen!
pmichaud_ Wolfman2000: www.pmichaud.com/2009/pres/oscon-pe...ide9a.html 15:28
frettled jonasbn: \o/
masak Wolfman2000: @a Z @b produces @a[0], @b[0], @a[1], @b[1]...
Wolfman2000 pmichaud_: your online slides don't exactly give an easy way of going to the next one
jonasbn pmichaud_, well I have two agendas
pmichaud_ start at www.pmichaud.com/2009/pres/oscon-pe...ide12.html for an explanation
jonasbn pmichaud_, one is to get a "Copenhagen" release 15:29
pmichaud_ Wolfman2000: press "spacebar" or "N" to go to next slide
colomon masak: don't think it's been updated in six months or so. I know for sure the S(equential) operators have been added since then, and I'm pretty sure others as well... have to look at the poster to figure out what else has changed.
jonasbn pmichaud_, the second one is to do it in conjunction with our local open source conference 15:29
pmichaud_ jonasbn: when is that?
jonasbn which is called Open Source days
pmichaud_, in march 2010
Wolfman2000 gotcha
pmichaud_ anyway, the code is explained starting with slide12.html 15:30
(I did this as a lightning talk)
jonasbn: march 2010 is _perfect_
looks like march 5 + 6
jonasbn pmichaud_, 5th. and 6th. 15:31
jonasbn pmichaud_, opensourcedays.org/2010/ 15:31
masak jonasbn++
pmichaud_ masak, moritz: would you be able to make it then?
masak yes!
jonasbn so now I just need to now what you require from me, the I will be the local liason
pmichaud_ I might even have funding
(for others to attend)
jonasbn or whatever the word is
moritz_ pmichaud_: hard to tell, since I'm looking for a job these days 15:31
but at least there's nothing planned for march
masak moritz_: plan it! :)
moritz_ (but that's basically true for all dates in the first half of 2010) 15:32
jonasbn pmichaud_, cph.pm has funds, so I just need to clear with the other guys
pmichaud_ jonasbn: that works too. 15:32
jonasbn so how do you guys want me to go about this?
moritz_ jonasbn: yes! 15:33
pmichaud_ jonasbn: tpf has been asking me about a perl6 hackathon
jonasbn pmichaud_, great
pmichaud_ so let me get back with them and suggest copenhagen as the location, assuming the dates + travel work out
I'll do that today + tomorrow, and send you an email later this week? (more) 15:34
jonasbn okay, sounds good
pmichaud_ in the meantime, have you discussed it with the open source days 2010 organizers, or do you need to do that?
Wolfman2000 where exactly is Copenhagen?
jonasbn I will write a proposal for the Open Source Days organizers
pmichaud_ perfect
moritz_ Wolfman2000: in Europe :-) 15:36
jonasbn Wolfman2000, Capitol of Denmark, Scandinavia, Europe
Wolfman2000 yeah, I can't make it. 15:37
arnsholt likes the idea of Copenhagen 15:38
Just a short flight away
pmichaud_ Wolfman2000: too far to travel, or ... ? 15:45
Wolfman2000 that, and I can't afford the time or money
Wolfman2000 is trying to become a high school math teacher in Wilmington, North Carolina, USA
pmichaud_ there's also been discussion of putting together a rakudo* and parrot hackathon for the eastern u.s.
pmichaud_ likely eastern pennsylvania (or something in that general vicinity) 15:46
jonasbn do you have any material in relation to previous hackathons? 15:46
pmichaud jonasbn: anyway, I'd say let's make it happen :)
jonasbn pmichaud, that is the least part :)
pmichaud, I expect we do it one way or the other, I just want us to be as effective as possible, so we actually contribute
and I want as many of you guys to participate, to hold our hands
Wolfman2000 ...what day would this take place on anyway? Perhaps there are other ways of me being there without me being there...what are your thoughts of video conferencing?
jonasbn Wolfman2000, 5th. and 6th.
Wolfman2000 of March?
pmichaud if we can get <masak mberends jnthn moritz TimToady>.pick(3) there I think it can be highly successful
I'd think we might do it in two parts
masak I'm honoured to be on a list with those names. :)
pmichaud early March 2010 is when we'll want to be finalizing various pieces for Rakudo*
jonasbn Wolfman2000, Friday and Saturday
Wolfman2000 ...if there is a way you can get a live feed of me or something, I can hopefully be there too.
Wolfman2000 has a camera on his Mac at least
sbp chuckle, I just found this: "If you know the perl language, then that is a powerful (if otherwise incomprehensible) language with which to hack together a server." — TimBL, in www.w3.org/Provider/ShellScript.html
jonasbn Wolfman2000, so do I you at least get a picture of me looking confound
pmichaud so in addition to the conference days themselves, we might want to have a couple of days on either end where the Rakudo* core devs can work on things
moritz_ phenny, ask jnthn there are (tentative) plans for a Perl 6 hackathon on 2010-03-0{5,6} in Copenhagen - would that suit you?
phenny moritz_: I'll pass that on when jnthn is around.
jonasbn pmichaud, sounds like a good idea
Wolfman2000 jonasbn: you also want to see if we can pull off being there digitally?
masak sbp: Perl isn't incomprehensible, just insane in a productive-enhancing way. :)
jonasbn pmichaud, we will see if we can set up a venue for you guys
pmichaud Wolfman2000: hackathons often have an online component -- we often do a bunch via irc 15:46
Wolfman2000 perhaps we can add Skype to the mix
jonasbn Wolfman2000, I will see what I can do
pmichaud Wolfman2000: in fact, it's common for two people sitting across a table from each other to be chatting via irc
jonasbn: that would be awesome
jonasbn pmichaud, and a beer component too?
jnthn moritz_: Not, it conflicts with the Dutch Perl Workshop.
phenny jnthn: 15:42Z <moritz_> ask jnthn there are (tentative) plans for a Perl 6 hackathon on 2010-03-0{5,6} in Copenhagen - would that suit you?
pmichaud ...dutch perl workshop is the same time? 15:46
jnthn www.perlworkshop.nl/nlpw2010/
pmichaud aiiiiie
jnthn I already said I'd go there.
Can't be in two places at once!
masak ooh, a Dutch Perl Workshop!
jonasbn only friday
jnthn ETOOFATFORQUANTAMPHYSICSTOAPPLYTOME
moritz_ jnthn: "you're so fat, the complete wave function collapses on you" :-)
masak we all are. :/
ash___ has anyone noticed ng's gather not acting the same as non-ng's gather?
pmichaud jnthn: would you be able to travel from nlpw to copenhagen fairly quickly? either immediately before or immediately after?
masak ash___: I thought that was part of the idea. :)
ash___: ng's gather should eventually be lazy.
jonasbn jnthn, so at least you are in the neighbourhood, we can arrange our part for you to Saturdays (afternoonish) 15:47
pmichaud ...and is it the gather acting differently, or the take? ;-)
ash___ masak: well, accoding to the spec (i thought) rakudo: my @a = gather for 1..2 { }; say +@a; #=> 2 not 1 15:47
moritz_ ash___: that's probably because the range 1..2 doesn't work yet
pmichaud I'm thinking Copenhagen is a lot easier for people to get to than Arnhem :)
I mean, being the "capital of Europe" and all :) :) 15:48
masak ash___: is there supposed to be a 'take' inside that block?
jnthn pmichaud: I thought that was Brussels? ;-)
jonasbn: Is there any reason the two are overlapping? 15:49
jonasbn jnthn, we want to do it at the same time as the local Open Source Conference 15:50
jonasbn jnthn, which is Friday and Saturday 15:50
jnthn, it will be good exposure for Perl 6 and Perl
arnsholt jnthn: I think there are several cities that claim to be "capital of Europe" =) 15:52
masak good news! the downwards trend since the slashdotting has turned, as of yesterday.
colomon \o/
Wolfman2000 ...don't tell me it was my post
All I did was choose one method, and that was it. 15:53
moritz_ Wolfman2000: you should have said "I picked one method" :-) 15:54
Wolfman2000 *groan*
jonasbn well I need to cook dinner, I will join again later
moritz_ and no, it was already rising yesterday
masak Wolfman2000: the upturn was for the 14th.
moritz_ jonasbn++ 15:54
masak but it doesn't have to mean anything. we could be down to the point where the number just fluctuates. 15:55
colomon bet it was people who don't look over the weekend catching up.
masak hm, sounds reasonable. 15:56
arnsholt How many unique visitors does the blog get, roughly?
masak arnsholt: about 1k a day.
arnsholt: it was 11k the day after the slashdotting.
moritz_ actually it was about 20k in 24 hours 15:57
Wolfman2000 since I have to leave soon (I'll stay on IRC), I'll at least leave with one bit of good news.
moritz_ but spread over two days
colomon masak: that's views rather than unique visitors, isn't it?
arnsholt 11k is a lot. But 1k should give some good PR as well
Wolfman2000 My final grades came in. I got all As this semester. I'm on my way to become a teacher!
masak colomon: yes, that might be.
colomon Wolfman2000: \o/
masak Wolfman2000: \o/
Frackin' A! 15:58
Wolfman2000 *groan* enough with the terrible puns already.
masak you must be new here. :P
arnsholt Wolfman2000: One is hardly enough!
Wolfman2000 only a month...
frettled masak: which what was slashdotted? 15:59
frettled has been avoiding /. for the past years.
masak frettled: I think it was pmichaud++'s metaoperators
frettled aha
masak that amused me.
frettled :)
Day 12 has some interesting comment questions, but no answers, interesting or otherwise. 16:00
And I don't know how to answer the questions. Argh!
masak 1. "Write answer" 2. "Push submit"
frettled :)
colomon also the day 1 "getting rakudo" was slashdotted in the same post. 16:01
frettled aha 16:01
masak std: 16:03
diakopter std: !
masak std: *
p6eval std 29343: ===SORRY!===␤Negation metaoperator not followed by valid infix at /tmp/XJg5xvxpXE line 1 (EOF):␤------> !⏏<EOL>␤ expecting any of:␤ prefix or meta-prefix␤ standard stopper␤ term␤ terminator␤ whitespace␤FAILED 00:01 107m␤
std 29343: ok 00:01 104m␤
masak std: my $hash = { 2 => { 6 +> 7, 8 => 9 }␤}; 16:04
p6eval std 29343: ok 00:01 107m␤
masak TimToady: ^
TimToady: S04:232 says that should fail with "closing hash curly may not terminate line". 16:05
diakopter masak: if there's a line after it in the same block
masak diakopter: not according to S04:232. 16:06
pmichaud (slashdotting) not only did slashdot occur right after the metaoperators post, but I think that's about the time that Tim O'Reilly tweeted it as well 16:08
masak nod. it was the same 24 hours. 16:10
very unscientific. now we don't know which one was the bigger contributor. :P
frettled Heh, I love the highest ranked comment on Slashdot: «Word on the street… …is Duke Nukem Forever is being rewritten in Perl 6.»
masak: you can use the Referer header for that
at least for those who haven't disabled it
masak frettled: nod. I think the referer logs showed that Slashdot pulled in quite a bit more than Twitter. 16:11
frettled: I think we should show them all by writing DNF in Perl 6. :)
diakopter std: my %a = { "hi" => "hi" }␤say 3
pmichaud or writing Perl 6 in DNF. 16:11
masak frettled: and then make sure it works on a recent release of Hurd.
p6eval std 29343: ok 00:01 106m␤
frettled masak: heh, DNF = Did Not Finish :) 16:14
diakopter moritz_: re 5600 lines; does that include the p5re grammar 16:16
masak diakopter: was that directed to me? I don't know what it includes.
diakopter masak: no 16:18
masak oh, ok. svn. 16:19
diakopter (moritz_'s comment in the backlog)
masak ah. 16:20
ash___ hi? is anyone else having issues with freenode? 16:37
masak virtually everyone, I'd guess. 16:38
pmurias me too 16:43
frettled ash___: there have been repeated administrative notices about it 16:55
ash___: At least one of the freenode servers is targeted by a DDoS attack.
That's the risk you run with IRC servers. 16:56
masak what kind of people DDoS IRC servers? did they frequent too many channels without hugbots?
ash___ frettled: okay, just wondering if it was me, the internet in my area died for a long time yesterday, just making sure it wasn't my internet 16:57
Infinoid masak: arguably, more hugbots are always better
ash___ masak: so, ummm i never saw your response about gather/tak
gather/take
moritz_ diakopter: re 5600 lines, I have no idea where that number comes from.
ash___ in the ng branch, it does indeed seem lazy, so lazy it can't cant itself :P, because shouldn't my @a = gather for 1..2 {}; say +@a; #=> 2 ? 16:58
diakopter oh, whoops, it *was* masak who said that 16:59
moritz_ ash___: 1..2 doesn't work in ng yet
masak diakopter: I knew it! :P
moritz_ ng: my @a = gather for 1...3 { take $_ }; say +@a 17:00
p6eval ng 0307c2: 3␤
moritz_ with ... it works in simple cases
and you also need to take() :-)
ash___ ah, so it is working right, i just didn't use it right
frettled masak: Well, IRC has almost always been a (set of) place(s) for script kiddies and so on, so DDoS attacks are either just a way to show how 1337 you are, or how 14m3 the other guy is. 17:01
masak frettled: we should find on which channel they hang out, and go there and DDoS them with hugs. :P 17:07
frettled masak: haha :) 17:27
dalek kudo/master: 55f51dc | pmichaud++ | docs/spectest-progress.csv:
"2009-12-15 00:00",7ef3861,32225,504,543,2027,35172,38173,453
17:35
masak huh -- nobody is doing smartmatching for the advent calendar. 17:57
that's a pity.
frettled masak: then that's a good Christmas morning bonus entry!
masak :)
yath the christmas bonus entry should be rakudo star :P 17:58
coke ... gruntlebuggies? 17:58
coke is wondering if the portion of his brain devoted to D. Adams is correctly riffing on frettled's nick.
coke is, it seems, close. 17:59
frettled :D
masak 'fredded'
frettled coke: I think Mr. Adams used the spelling «freddled». «Oh, freddled gruntlebuggit! Thy micturations are to me, like <something> to a lurgid bee!»
Or something like that.
coke micturations? 18:00
coke needs to dig up an emulator and set up his kids to play the text game.
frettled try «vogon poetry» on Wikipedia :) 18:00
Ah, there it is:
"Oh freddled gruntbuggly?thy micturations are to me/As plurdled gabbleblotchis on a lurgid bee. Groop I implore thee, my foonting turlingdromes. And hooptiously drangle me with crinkly bindlewurdles,/ Or I will rend thee in the gobberwarts with my blurglecruncheon, see if I don't!"
TimToady masak: the one on junctions mentions talks about smartmatching some 18:04
masak thanks. I'll read it.
TimToady pick a verb, any verb
frettled verb.pick() 18:05
masak I'm writing tomorrow's post now, and I don't want to skip things or repeat myself.
moritz_ probably. My python-fu is too weak :-) 19:05
but it gives the type object associated with an object
new2perl6 moritz_: Ha. You're excused. ;)
moritz_ actually I wanted to learn python to hack up `cplay' a bit 19:05
but... I have to hand in my diploma thesis in 3 days. Yikes.
colomon what's it on? 19:05
new2perl6 moritz_: Oh my. You're extra busy this week.
moritz_ colomon: "Ballistic Transport of Spin-Polarized Electron Beams in Mesoscopic
Systems"
colomon That's a mouthful. :) 19:05
new2perl6 moritz_: You say "basically, yes" that everything is a reference (except for some "value types"). Does Perl 6 still copy on assignment, like Perl 5? In Python, when you assign one variable to another, you get 2 references pointing to the same object.
TimToady new2perl6: Perl 6 distinguishes assignment from binding
use := to get the Python semantics
new2perl6 TimToady: Ah. Ok. So, by default, we get the usual expected "make a copy of this" behaviour. 19:05
TimToady moritz_: is "mesoscopic" smaller or larger than a flea?
moritz_ TimToady: smaller. Small enough to observe quantum effects
new2perl6 TimToady: I mean, by default using the `=`.
TimToady well, Penrose speculated that flea-sized was the boundary :)
moritz_ TimToady: in our systems it's a few micrometers
but I don't see why there should be an upper boundary for quantum effects (but that's not really a topic I've studied)
TimToady www.bartleby.com/100/211.5.html 19:06
rodi moritz_: Penrose (again) thinks it's how (and why) your brain works. 19:06
diakopter new2perl6: yes 19:07
new2perl6 moritz_: Sorry, I guess this is getting pretty far off-topic from my original question. :) 19:24
moritz_ new2perl6: something along these lines, yes
and no, perl 6 is never off-topic here :-)
colomon moritz_: Never mind my last request, just remembered I had DiffMerge sitting around on my system.
new2perl6 moritz_: Yes, but it's easy to suffer from this condition where, instead of reading the Synopses you just come to #perl6 and keep asking questions. :)
TimToady rodi: well, False is 0 and True is 1 if you force numeric
new2perl6 moritz_: s/you/I/
moritz_ new2perl6: so did I, reading the Synopsis is hard at first, and they don't answer all your questions :-)
rodi TimToady: yeah, should have been more specific- I would like to pick two specific characters at render time (e.g. Bool::True is an X and Bool::False is a .) 19:25
new2perl6 Thanks all. Bye.
pmichaud ...is masak++'s "scanning" example correct? 19:25
(for the next perl6advent post)
moritz_ ('X', ' ')[?$x]
rodi I have a version of it working where I simply stringify the whole array and .subst on the 1's and 0's.
moritz_ erm, actually revert those items in the list 19:26
TimToady <. X>[+$x] I think, if $x is already a Bool
pmichaud phenny: tell masak I think the p6advent post ought to mention that "when" works in any block that sets $_ 19:27
phenny pmichaud: I'll pass that on when masak is around.
pmichaud phenny: in the scanning example, I think you may want to drop the "-> $line" in "for $*IN.lines -> $line {"
er
rodi I find endless amusement by replacing methods and classes by characters and words. 19:28
pmichaud phenny: tell masak in the scanning example, I think you may want to drop the "-> $line" in "for $*IN.lines -> $line {"
phenny pmichaud: I'll pass that on when masak is around.
moritz_ <. X>[+$x] looks like a nice fish operator :-)
rodi moritz_, TimToady, thanks, works great.
heh.
pmichaud looks like a mutant fish, though.
TimToady swimming upside-down 19:29
moritz_ <. X>« would look better 19:30
rodi goes to make himself a new bumper sticker... 19:30
TimToady funny day, backlogging irssi X ilbot2 gives me a large percentage of what someone said somewhere... 19:32
moritz_ TimToady: I guess Europe and the US have been on different sides of the net splits quite often today 19:38
TimToady but it's a bit like people wandering around in a thick, sound-absorbent fog 19:43
colomon Hmmm.... looking at day 16 post. 19:54
next when $line ~~ ''; strikes me as a bit weird.
moritz_ for ... { next when '' } would be better 19:55
jnthn wants to be next if no?
moritz_ and using $_ instead of $line
jnthn well, only use when it testing the topic, yes
colomon I would also explain that when and if are basically the same, except if always "continues".
moritz_ not the same. 'when' does smart matching, 'if' coerces to Bool 19:56
colomon I guess my issue is, won't the when statement automatically "next" if it fires?
moritz_ right 19:57
colomon rakudo; given 10.0 { if Num { say "I'm a Num"; }; }; 19:58
rakudo: given 10.0 { if Num { say "I'm a Num"; }; }; 19:59
p6eval rakudo 55f51d: ( no output )
colomon well I'll be.
good thing I didn't write the given / when day! :)
moritz_ rakudo: given 10.0 { when Num { say "I'm a Num"; }; };
p6eval rakudo 55f51d: I'm a Num␤
diakopter rakudo: given 10.0 { if ~~Num { say "hi" }; when Num { say "I'm a Num"; }; }; 20:02
p6eval rakudo 55f51d: hi␤I'm a Num␤
diakopter std: given 10.0 { if ~~Num { say "hi" }; when Num { say "I'm a Num"; }; }; 20:03
p6eval std 29344: ===SORRY!===␤Preceding context expects a term, but found infix ~~ instead at /tmp/mGo3t6pnvM line 1:␤------> given 10.0 { if ~~⏏Num { say "hi" }; when Num { say "I'm a ␤FAILED 00:01 106m␤
diakopter I guess it's two ~
(in rakudo) 20:04
rakudo: given 10.0 { if ~~~~~Num { say "hi" }; when Num { say "I'm a Num"; }; };
p6eval rakudo 55f51d: hi␤I'm a Num␤
colomon and he definitely doesn't want the "-> $line" in the $*IN example.
Is masak asleep or just afk?
jonasbn sleeping at the keyboard?
colomon bummer. 20:05
diakopter std: say ~~3 # TimToady: why does it find infix ~~ here? 20:07
p6eval std 29344: ===SORRY!===␤Preceding context expects a term, but found infix ~~ instead at /tmp/b3xclq2au2 line 1:␤------> say ~~⏏3 # TimToady: why does it find infix ~~ ␤FAILED 00:01 104m␤
diakopter pugs: sub foo() { return 55 }; say foo ~~ 55 20:09
p6eval pugs: 1␤
diakopter std: sub foo() { return 55 }; say foo ~~ 55
p6eval std 29344: ===SORRY!===␤Preceding context expects a term, but found infix ~~ instead at /tmp/nUfuND6Or4 line 1:␤------> sub foo() { return 55 }; say foo ~~⏏ 55␤FAILED 00:01 107m␤
diakopter rakudo: sub foo() { return 55 }; say foo ~~ 55
p6eval rakudo 55f51d: Too many positional parameters passed; got 1 but expected 0␤in Main (file src/gen_setting.pm, line 324)␤
diakopter imho that's an ambiguity 20:10
moritz_ it's specc 20:16
foo is a listop
and expects a term
if you don't want that, write foo() 20:17
ash___ masak: have you tried your Configure.pm from proto with ng? 20:39
ash___ ng: .say for 1, 2, 3; 20:45
p6eval ng 0307c2: sh: ./perl6: No such file or directory␤
ash___ rakudo: .say for 1, 2, 3;
p6eval rakudo 55f51d: 1␤2␤3␤ 20:46
eiro hello all 20:48
colomon hello 20:51
ash___ so... should we be using ng? or master? i am a bit confused by the differences between those branches
masak o/ 20:52
phenny masak: 19:27Z <pmichaud> tell masak I think the p6advent post ought to mention that "when" works in any block that sets $_
coke unless you're hacking, I'd use master.
phenny masak: 19:28Z <pmichaud> tell masak in the scanning example, I think you may want to drop the "-> $line" in "for $*IN.lines -> $line {"
coke hacking -on rakudo-, that is.
masak pmichaud: good idea and will do, respectively. thanks!
pmichaud ash___: ng branch still has bigger holes.... for the next week or so at least, I'd stick with master 20:53
there will be a big announcement when we switch to ng (more precisely, ng will be renamed "master")
moritz_ masak: also notice that 'next when...' is a bit weird
ash___ okay, thanks pmichaud 20:54
moritz_ masak: siince 'when' already implies somethiing similar to 'next'
as colomon++ pointed out
masak moritz_: it's tautological, but not fatally so.
eiro masak, bug reports/contribs on proto: is there the good place to chat about it ?
masak eiro: here is fine. 20:54
moritz_ here!
eiro ok
moritz_ bug reports supposedly go to the github bug tracker
eiro moritz_, yep but i don't know the good strategy to patch 20:55
i noticed there is no verbose mode. is it ok to add a GetOption
to remove the usage of dotty-progress
colomon masak: I believe it works, it just seems like a confusing example. 20:56
eiro ./proto --verbose --gen-parrot-anyway
masak colomon: agreed.
colomon btw, it's a great post. I love given / when... 20:59
masak me too. :) that's why I claimed the topic early.
oh, I should briefly mention CATCH, also.
TimToady next as a statement modifier does not imply break semantics 21:02
s/next/when/ grr
masak I was thinking about that.
TimToady so "next when" is not redundant
masak does the spec mention that?
TimToady yes 21:03
but nobody reads that.... :/
masak :P
TimToady: I haven't backlogged yet; did you see my block parsing heads-up?
TimToady S04:923
TimToady haven't had a chance to look at that yet. it may be that we can relax that restriction, which was put in for pugs 21:05
jonasbn pmichaud, have got first response from the OSD organizers about the hackathon - they are VERY positive
masak TimToady: sounds good. I've never felt a use for it, fwiw.
jonasbn pmichaud, they inquire if it would be possible to get some 45 min. presentations from some of you guys as part of the bargain 21:06
masak I wouldn't mind giving a presentation. 21:07
jonasbn masak, great :)
moritz_ if I'm able to come, I'll also volunteer for a talk 21:08
jonasbn I will try to collect the threads, is there a better way to contact your guys than via IRC? - like a mailing list or something
moritz_ jonasbn: [email@hidden.address] should work
masak I'd say IRC is the better way, but YMMV. :) 21:09
jonasbn moritz_, thanks, IRC is great but for giving you the complete picture, I might prefer email
TimToady masak: I think that rule predates the notion that the inside of bracketing constructs is a statement in its own right. 21:10
pmichaud jonasbn: I am always glad to give presentations
masak TimToady: aha.
TimToady now that it is, it doesn't matter if the inner } thinks its terminating a statement
so I think we can remove the exception
masak \o/ 21:10
jonasbn I think the OSD people are quite interested in the parrot aspect in more general terms, the majority are not necessarily perl h4X0rs 21:11
jonasbn they might even sponsor travel to some extent 21:11
masak that's great! 21:12
pmichaud perhaps we get could allison to come
coke OSD?
sjohnson hi dudes 21:13
pmichaud coke:
oops
jonasbn they require for me to give some details on requirements for the physical space - do you guys have any idea on this from previous hackathons or similar
pmichaud coke: www.opensourcedays.org/2010/
masak "Obsessive Seduction Disorder" :)
pmichaud copenhagen, denmark, march 5-6 2010
frettled masak: heh
jonasbn masak, yes, it is going to be FUN!
pmichaud we're looking at putting together a Perl 6 hackathon or workshop at that time
masak frettled: don't snicker, it could happen to you! :P
frettled masak: I hope so! 21:14
pugs_svn r29345 | lwall++ | [S04] remove fossilized restriction dug up by masak++
masak "masak: removing things from the spec, adding things to RT"
pmichaud when the spec is empty and rt is full, we will be finished. 21:15
masak "now also in a handy bottle"
frettled heh 21:16
TimToady ss/thinks its/thinks it's/ # durn english orthography...
frettled TimToady: perhaps we should switch to standardized Indonesian 21:17
TimToady as long as it's written in Kanji and Kana, I'll be fine 21:18
masak 'use Indonesian::Standardized;' 21:19
Tene jonasbn: If they can sponsor travel, I'll contribute.
frettled ⠗⠙⠵⠹ 21:20
frettled 一三三七 21:20
pmichaud jonasbn: right now I see three aspects to a workshop (more)
TimToady is entertained 21:21
pmichaud one is to participate in osd, to get the word out about perl 6
another is to provide a venue for people to help with hacking
or to learn how to get started with hacking
and a third is as a dedicated workshop for many of the core Rakudo contributors to meet to clear things in preparation for Rakudo* 21:22
moritz_ we could also be presenthing the Perl 6 book
pmichaud and yes, that also
mberends jonasbn: I'm also happy to give a presentation to OSD
jonasbn pmichaud, that sounds like what we want to aim for
pmichaud however, it looks as though one of our key players (jnthn) won't be able to make it directly to osd
frettled oh :( 21:23
pmichaud because he has a commitment to dutch perl workshop
jonasbn pmichaud, I personally just want to have a "Copenhagen" release ;-)
pmichaud jonasbn: oh, I'm sure we can arrange that :)
a few of us had already been exploring "how and where can we get a rakudo hackathon in early 2010" -- you just popped in at the perfect time
jonasbn pmichaud, what if the hackathon would be saturday and sunday, the dutch perl workshop is friday
pmichaud jonasbn: yes, that's what I'm thinking 21:24
some of us can attend osd on friday, to present and participate there
mberends pmichaud: jnthn, myself and whoever else is interested could drive from Arnhem to Copenhagen together
pmichaud then we can have a general hackathon on saturday and sunday
then, depending on who can stay (and both jonathan and I can), some continued rakudo* work for a couple of days after that
as far as what we need, it depends on how many show up 21:26
in general we just need a room or rooms with wifi, some writing surfaces, and availability of hacking fuel (food and/or nearby eating places)
jonasbn so it is actually the number of participants setting the requirement
pmichaud pretty much 21:27
jonasbn do you have an upper limit?
pmichaud my experience is that they tend to be self-limiting by who can come (and when), but 30 would seem to be a top upper limit
I need to look at the structure of osd a bit as well
it also depends on how many mentors are available 21:28
pmichaud (i.e., people who can help guide others) 21:28
any idea how many people we'd be likely to attract from the copenhagen area?
jonasbn pmichaud, not at this time, but I would prefer if the attendant primarily are local 21:29
with you guys to help us out
pmichaud that seems workable. At the moment we're looking that there may be about 6 of "us guys" helping out 21:30
frettled I'm tempted to make this an excuse to go to CPH again. Don't worry, I'm house trained. ;) 21:31
pmichaud so if there's around 20-30 participants overall, that could be good. I suspect we might do some "structured introduction" at the first part of the hackathon, to introduce newbies to Perl 6 and how things are put together, and then break up into smaller groups or individual tasks where people can hack on whatever they think will be most interesting. That formula worked extremely well at NPW earlier this year. 21:32
jonasbn then that is what we do
what is your take on spectators 21:33
I mean regular OSD attendees
pmichaud that'd be fine with me, unless you envision a problem
to me "spectator" is "rakudo hacker who doesn't realize it yet"
:-)
jonasbn much of the stuff is normally "configuration", so I really look forward to putting the open source into open source days :)
pmichaud, great, since this is propably what we have to deal with 21:34
pmichaud works for me
I may start a google group for this topic
jonasbn please feel free
pmichaud I'll do that later today
jonasbn or a wave :)
Tene wave isn't public access yet
coke I have wave invites if anyone wants one. 21:35
jonasbn Tene, you want an invite?
pmichaud I'll take an invite :)
coke pmichaud: incoming.
jonasbn pmichaud, a google group will do 21:36
pmichaud mberends: if driving from arnhem to copenhagen, what's the expected availability in copenhagen?
yes, I'll do a google group for now.
I'll pre-subscribe the people commenting here (let me know if you wish to not be subscribed)
Tene jonasbn: I'm on wave already, but many potentially interested people aren't. 21:37
pmichaud: please subscribe me.
pmichaud Tene: will do.
mberends pmichaud: driving 7-9 hours overnight, arriving early Saturday morning
pmichaud mberends: that could work out really well, if people aren't too tired :) 21:38
mberends timezones are in the mind ;)
jonasbn what about night train?
mberends will look, but fears the price
jonasbn that all can have a beer
s/that/then/
mberends :)
pmichaud I was even thinking of trying to make it to Dutch Perl Workshop in that case... but I'm not sure it's good for me and jnthn to both be in the same vehicle for an overnight trip in the cold of winter in scandinavia :) 21:39
mberends I'll drive *really* carefully
jonasbn I will investigate sponsorship options in adition, so do not make any decision based on economy just yet
jnthn pmichaud: meh, Denmark is the unhardcore point of Scandinavia.
;-)
No polar bears and extreme snow there, right? :-) 21:40
pmichaud it did concern me a bit in 2005 when I was driving a vehicle containing both TimToady and audreyt :)
jonasbn jnthn, weatherwise yes - coastal climate and no mountains
mberends March should be early spring
jonasbn jnthn, I can take you to the zoo :)
pmichaud I think there may also be some sponsorship opportunities from other sources as well 21:41
and if there's a strong Rakudo* component, we may be able to use hague funds to support some of this
Tene I remember this was also discussed at PDS. 21:43
eiro for someone who just wants to play with perl6, is there a difference between parrot_in_rakudo and rakudo_in_parrot ? 21:44
eiro is there a prefered choice ? 21:45
jonasbn pmichaud, who are the 6 of you? - is that the complete list you mentioned earlier?
pmichaud jonasbn: basically, depending on who can make it.
Tene eiro: if you're just playing a bit, no difference.
jnthn mberends: There is a night train Koln - Copenhagen.
colomon pmichaud: I guess I would be interested in being on the IRC support end of things for the hacking, at least a bit. (depending on time zones, I suppose :)
eiro thx Tene
jonasbn pmichaud, okay and sponsorships is a great motivator I guess 21:46
jnthn mberends: That depends on getting to Koln by 21:00 or so, iirc.
pmichaud as I said, we were already starting to try to put something together for the list I gave earlier
pmichaud one of the things we didn't yet have was an event+location that was in the right time frame and generally easy for folks to get to 21:46
you just provided that :) 21:47
[particle] last time i was in Koln there was a guy singing dylan covers really badly in the main square.
hope he's not still there.
masak my daft draft is now updated with everyone's suggestions, and I probably won't touch it until it publishes itself at 00:01. 21:48
masak should anyone find any last-minute corrections or improvements, you have my permission to just go in and make them. 21:48
good night, everyone.
jnthn night, masak
pmichaud masak++ # excellent
jonasbn pmichaud, so we are talking room for 30 + 6? 21:49
pmichaud jonasbn: yeah, that seems reasonable. might say 40 just to be on the safe side
anyone remember about how many perl6-hackers we had at npw? 21:50
jonasbn 40 in total
pmichaud right 40 in total
pmichaud I want to say that at npw we had about 20 perl 6 hacking folks 21:50
might've been 25 21:51
jonasbn pmichaud, I think we will land on the same number
pmichaud :)
agreed
frettled: if this is a good excuse for you to come to cph, I'm sure we'd like having you 21:52
ash___ are there any perl 6 related events going on in/near/around Atlanta, GA? 21:53
eiro it seems that proto comes with a little YAML parser: why don't use YAML.pm ? 21:54
moritz_ where's that YAML.pm everybody keeps talking about? 21:55
mberends eiro: proto needs to be self contained, to begin installing any modules
eiro moritz_, perl -MYAML -E 'say $INC{"YAML.pm"}' 21:56
/usr/share/perl5/YAML.pm
:)
moritz_ eiro: that's not a Perl 6 module 21:57
eiro mberends, ok ... so the patch i'm writting is dumb: i began by including Getopt::Long :)
moritz_, yep, understood
coke ah, TimToady was about, so I can ask again, what should this do: 21:58
rakudo: sub foo { try {return 5}; return 4}; say foo()
p6eval rakudo 55f51d: 4␤
mberends eiro: write a Perl 6 Getopt::Long, and use it :)
pmichaud coke: I'm pretty sure it should return 5 21:58
pmichaud note that option handling is described in Synopsis 19, too :) 21:58
coke that was my reading of the spec, too. 21:59
want an RT?
coke (it's also an issue in NQP) 21:59
mberends eiro: the proto script itself is a small bootstrap written in Perl 5, the rest is Perl 6
eiro mberends, yep but this boostrap failed for me so i plan: 22:00
coke odd. perl6 queue has 279 new and 279 open tickets.
eiro - to add a verbose mode to know what's really happening (remove ./dotty-progress use )
Tene eiro: there's a Getopt library in Parrot that you can use from Rakudo. 22:00
eiro - to fix the bug
Tene, yeah but i'm patching the perl5 code 22:01
mberends eiro: good idea :)
eiro i'll just handle a -v as first argument: no need of GetOptions for that 22:02
is this ok ?
mberends also add a -h for help 22:03
eiro ok ... perhaps a multiflag ... $ARGV[0] =~ /^-/ and @options = ( split //,$ARGV[0] )[1,-1] 22:06
mberends eiro: whatever works for you initially. several other proto developers are likely to refactor the code anyway. 22:08
eiro mberends, when this refactoring will come true ? 22:10
jonasbn good night all you lovely Perl 6 ppl - I hope it will work out to get you to Copenhagen
eiro oops ... i click on the "fork button" on github :) 22:12
mberends eiro: it tends to happen in the course of other proto development. it needs volunteer time, so it's quite irregular. behind that is the philosophy that proto is the simplest thing that could possibly work, and that it should make way for a better tool asap. 22:13
Tene can anyone here confirm that try{} in Perl 6 should *NOT* catch return? 22:14
mberends eiro: are you looking at proto's installed-modules branch? 22:14
coke Tene: aside from me? =-) 22:15
Tene coke: last I heard, you were asking whether it should or not. Did you have this confirmed? 22:15
coke pmichaud agrees. 22:16
Tene is this all control exeptions, or just return?
coke all control exceptions, no?
eiro mberends, no... i'm on master
mberends, not good ?
coke "A CATCH block handles only "bad" exceptions, and lets control exceptions pass unhindered."
Tene coke: okay. thanks. 22:16
coke (from S04) 22:17
eiro mberends, i'm on here now 22:18
mberends eiro: the installed-modules branch is more recent, and would perhaps be more suitable for your patching
eiro mberends, ok... i install gittk to see that (i'm not skilled with git) 22:19
mberends eiro: ok
eiro mberends, if i push my patches in my github fork, is it easy for the git maintainers to merge with their own repos ? 22:22
is that the best way to do ?
moritz_ eiro: tell us your github ID
then we'll add you to proto as a committer
and you push directly
less hassle, everyone's happy :-)
eiro my github id is eiro 22:23
moritz_ hugme: add eiro to proto
hugme hugs eiro. Welcome to proto!
eiro :)
thanks
mberends moritz_++ # coolness!
moritz_ eiro: thank you for the great patches to come :-) 22:24
sjohnson y0 22:25
eiro moritz_, haha ... i don't know if it would be great patches :) 22:26
pmurias mberends: is you secret project ready to be unvailed 22:44
?
mberends sorry, was afk. no, unfortunately :( 22:45
moritz_ what's the matter with your guys? everbody has a secrit project, it seems :-) 22:46
masak, mberends, tene... 22:50
mberends too ashamed to show the (buggy) code ;) 22:50
eiro :))
mberends HDD = Hubris Driven Development, has pros and cons
frettled moritz_: I only know about others' secret projects, I don't have any of my own. 22:52
wayland I can tell you what's up with the secret projects; those who talk about their projects (I have maybe 4 I talk about) aren't actually working on them :) 22:58
carlin talk while the tests are running :-)
Wolfman2000 back from errands/work. pmichaud: I replied to your post. 23:11
Wolfman2000 pmichaud++ 23:19
pmichaud Wolfman2000: replied to your reply to my reply :)
Wolfman2000 Nothing wrong with shortcuts, but often times roleplaying games also look at the values of individual dice, not just the total.
frettled I want to write a reply to the reply^3, but I think it may turn into a blog entry instead. 23:24
Yet another excuse for delaying my post about time, the setting, and Temporal.pm.
carlin gist.github.com/257402#file_gistfile1.txt # What does it mean if rakudo keeps dying with this output? 23:26
Tene That's a Parrot bug. 23:27
You should report it to parrot and open a trac ticket about it, ideally. 23:28
The GC and calling conventions are getting some attention lately, so chances are good of getting someone to notice it.
If you could identify which line it's failing on, that would be ideal.
IllvilJa impatiently checking the Perl 6 advent calendar (it has been December 16th for over 30 minutes now in Sweden...) 23:31
carlin IllvilJa: it has been the 16th for 12 hours and 30 minutes here :-) 23:33
jnthn carlin: ooh...what are the winning lottery numbers for the morning draw? ;-) 23:34
IllvilJa The men from the future :-D. We are time travelers!
Wolfman2000 The post for the 16th is to come in...at least 30 minutes from now 23:36
carlin Tene: filled the program with warn statements, so I'll wait until it crashes again and then open a trac ticket
Tene carlin: Great, thanks.
wayland carlin: Where are you? New Zealand? 23:37
carlin wayland: yip
wayland (Australia myself :) )
sjohnson hi 23:56
colomon Next Advent post should be in five minutes...
IllvilJa Wooooo!
IllvilJa hitting 'reload' button frantically 23:57
eiro ok .. patch is working but i can't push: 23:58
pastebin.com/d1d46eef4