»ö« 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:03 hercynium joined 00:04 jaldhar left 00:05 jaldhar joined 00:12 mfollett left 00:13 Italian_Plumber joined
diakopter no phenny 00:47
00:50 nym joined 00:58 QinGW joined 01:00 nym is now known as nymacro 01:05 QinGW left 01:06 QinGW joined 01:12 redicaps joined 01:13 __rnddim__ is now known as lue 01:18 Chillance joined 01:46 rgrau` left 01:49 satyavvd joined 01:54 satyavvd left 02:07 leprevost joined 02:08 satyavvd joined 02:09 LaVolta joined 02:14 Italian_Plumber left 02:21 s1n left 02:23 agentzh joined 02:36 s1n joined 02:37 meppl left 02:39 satyavvd left 02:54 thowe joined 02:55 sundar joined, cdarroch left 02:56 bbkr left, bbkr joined
diakopter quiet afternoon/evening 02:59
nymacro *nod* 03:01
LaVolta make some noise! 03:02
03:05 molaf joined 03:06 proller_ left 03:07 proller joined
thowe Hi 03:12
it's odd, but looking at Perl6 lately has me semi interested in Perl 5 again... I want to replace my nanoc site with some perlish concoction 03:15
I think I want template toolkit for perl6 03:17
ash_ i don't think there are any actively developed template toolkits for perl6 yet
but feel free to start one
there are a number for perl5 based ones however 03:18
thowe I'm on Chapter 3 of the perl6 book. I think me building anything that other people use should wait a bit.
ash_ if you want a simple tool for a perl based site you could try Mojolicious::Lite 03:19
thowe I'm not enjoying the font selections in this book... I'm curious as to the software used to make the pdf
it looks like learning the template toolkit would be knowledge that pays off in other ways. 03:20
I'll bet it is much faster than erb, which might help me with some stuff at work.
ash_ its all auto generated from tex 03:21
well, i think its .pod -> latex -> pdf
thowe hmm. then I wonder if my issues are xpdf related? It seems I don't have these readability problems with other PDFs. I'm tempted to blame the fonts 03:22
ash_ it might be font related
but pdf's should have to font's embedded, but you could re-configure the build process to use a different font
03:23 alester joined
nymacro thowe, 2010.08 one? Reads fine in Evince 03:23
thowe they may look great on paper... I had to set to 200% to see that a - was really a ~
I'm using 2010.07 one. 2010.08 failed to build for me so I went back. 03:24
03:24 proller left
ash_ github.com/perl6/book is the source code, you can read it all there 03:24
03:24 proller joined
thowe It looks swell at 200%. I'll bet it will look great on paper. 03:25
ash_ hmm, i don't have the same problem
thowe I (or XPDF) must be missing something 03:26
nymacro you could try one of the pre-built PDFs. Not sure if it would help at all
github.com/perl6/book/downloads
ash_ ya, if you built the pdf yourself, you may be missing a font or something 03:27
thowe is the one in the docs folder built when I build rakudo?
ash_ umm, i am not sure
thowe I hadn't noticed, but I am getting by with it.
03:29 fod joined 03:31 molaf left
sorear good * #perl6 03:34
03:36 sundar left, echosystm joined
echosystm why does perl6 have 3 different ways to pass parameters? 03:36
i dont get it 03:37
03:37 Chillance left
echosystm isnt this the kind of insanity that made so many people leave perl in the first place? 03:37
03:37 fod left
sorear perl 6 only has one way to pass parameters 03:37
echosystm wikipedia says 3 : positional, named, "slurpy"
ash_ i don't understand what you mean by 3 different ways
echosystm en.wikipedia.org/wiki/Perl_6#Parame...sing_modes 03:38
sorear those are actually parameter parsing modes, not passing...
echosystm ok 03:39
the point remains though... why 3 ? 03:40
sorear because they're all useful
ash_ they are all expressive ways of passing parameters, a lot of languages support those 3 kinds of ways of passing args, including ruby and python
sorear what's your favorite programming language? I'd be happy to make inflammatory remarks about its parameter passing system 03:41
echosystm probably java
ash_ they are useful because you can use them to express different things with different types of parameters, for instance you can also add a constraint that is based off of the type of an arg 03:43
echosystm right
03:43 mfollett joined
ash_ sigil on the parameter can add meaning too, like @ means your expecting a Positional type 03:43
Positional is a fancy way of saying its array like 03:44
echosystm yep
ash_ array/list whatever word you want to describe
errr
however you want to describe it
03:44 silug left
echosystm a big concern for me is the general lack of convention in most programming languages 03:44
nymacro echosystm, most modern languages support these 3 modes. They're somewhat conventional -- the only difference is how languages denote them 03:45
03:45 satyavvd joined
echosystm is perl6 goign to be really anal about naming ? 03:45
03:45 sjn_ left
nymacro Perl 6 slurpy is the equivalent of C/Java varargs 03:45
ash_ as an alternative to named params, most languages look for a hash with the values set in it, it solves a similar problem to pass a hash 03:46
echosystm does anyone know about my previous question? 03:48
this is a big issue for me and im curious if perl6 is going to be a fresh start in this regard
03:48 DemoFreak left
ash_ you mean naming? 03:48
nymacro naming conventions?
ash_ like with var names, subs names, obj names?
echosystm yeah like method/variable/package naming
yes
ash_ they are pretty free
rakudo: my $a-b-c = "can have dashes even"; 03:49
p6eval rakudo be80e9: ( no output )
LaVolta btw, does it have particular convertion?
echosystm i mean, are we going to have strong conventions in the standard library etc?
ash_ std: class foo-bar { };
p6eval std : OUTPUT«ok 00:01 114m␤»
echosystm i learned java as my first language, where everything is really strict about naming 03:50
you'll never see underscores etc.
nymacro echosystm, I believe the general Perl community has its own pseudo-standard naming conventions, but you're free to do whatever you want
echosystm then i learned php and wanted to stab my eyes out
LaVolta this is Perl
:)
ash_ in the std library, you'll see dashes in things on occasion, its generally a single word for each sub names when possible
sorear echosystm: What, precisely, is your goal here?
echosystm trying to work out whether to learn perl6 03:51
ash_ have you learned perl5?
echosystm yep
nymacro ash_, is that a trick question? :P 03:52
LaVolta echosystm: what's your opinion on Perl 5?
ash_ not really, the are perl5 and 6 have so many similarities that its useful to understand perl5 to see why things are the way they are in perl6
echosystm i think perl5 is a good language in itself
its what people have done with it that is the problem
most of the perl code i see is an unmaintainable pile of crap that doesnt even try adhere to any kind of standard practice or conventions 03:53
thowe its what people have done with it that is often the solution! =)
sorear Perl 5, the language, is garbage
nymacro ash_, I'm just making fun. :)
sorear the only reason to ever use it is the fact that it has a real library culture 03:54
LaVolta ah...people write Perl doesn't mean they are good at it
ash_ i fail at english right now, sorry if i don't make sense
LaVolta though, ""
echosystm well
when im using modules off CPAN (popular ones too)
theyre just all over the place
LaVolta "get your job done", pardon me
echosystm sometimes you see method calls like (-var => x, etc.
LaVolta and? :) 03:55
echosystm other times you see ({var => x}), (Var => x) etc
it makes the code horrible to look at and i basically just want nothing to do with it 03:56
nymacro echosystm, nb. Perl is expressive and doesn't have "one way" to do anything
echosystm evidently
thowe poor programming practices are universal. I have seen Perl that has made me angry, but I probably run into that more with PHP
LaVolta modules I met often offer both ways to specify 'var'
like a directly one and a 'named' one 03:57
sorear echosystm: TIMTOWDI is non-negotiable.
LaVolta and i think's it's just reflect the way of doing it Perlly, nothing else
grok it or leave it
that's my understanding
ash_ TIMTOWDI in every language, you can make python look just as bad as php if you try hard enough even though python swears by the 'there is one way to do it' way of thinking 03:58
echosystm python is a lie
all the hype about that language is false
LaVolta you can write assembly in any language :) 03:59
sorear a good FORTRAN programmer can write FORTRAN in any language.
thowe I really wanted to like Python... I just couldn't do it
echosystm same thowe
ash_ i work with python all the time, i don't mind it, its just another way of doing things 04:00
echosystm i heard all these claims of it being such a beautiful and elegant language... total nonsense
its no better than perl/php/whatever
ash_ i only use it when i have to use libraries it has that other's dont
04:00 gottreu_ joined
nymacro there is nothing wrong with Python 04:00
echosystm the irony is that python folk always slam PHP for its naming conventions (or lack of)
nymacro this is coming down to personal preference
thowe I find that Perl6 seems to be easier to read the way my brain wants to read it without needing to think as much as perl5 made me think. I find a lot of what I like about Ruby in Perl6 04:01
04:01 proller_ joined
ash_ thowe: same, i liked ruby a lot, but i realize perl6 offers more flexibility and power in a number of areas 04:02
LaVolta "Ruby: Because I can't wait until Perl 6 is finished"
thowe and that's just me. I sighed a big sigh and moved to Ruby about 7 years ago. Perl6 currently is drawing me back in by being cool.
04:02 proller left
thowe LaVolta, EXACTLY! 04:02
ash_ thowe: try.rakudo.org/
nymacro d8-)
04:03 DemoFreak joined, ash_ left
thowe ash_ , I have Rakudo here and I am going through the perl6 book already =] 04:03
The Wiki book kind of sold me, plus I read some of the Apocalypse stuff 04:04
04:04 ash_ joined
thowe some of those Perl/Parrot guys are just crazy smart... 04:05
ash_ thowe: have you read the current spec?
its useful if you don't mind technical babble
nymacro I learnt words which I didn't even know existed 04:06
thowe ash_ I have looked at it a little, but I haven't read it.
ash_ the Apocalypse are a bit dated, same with the Exegesis 04:07
the spec, however, is current
04:09 ggoebel left
ash_ alpha: ([\,] 1..3).perl.say 04:09
p6eval alpha 30e0ed: OUTPUT«Syntax error at line 10, near "([\\,] 1..3"␤in Main (file <unknown>, line <unknown>)␤» 04:10
ash_ rakudo: ([\,] 1..3).perl.say
p6eval rakudo be80e9: OUTPUT«(1, (1, 2), ((1, 2), 3))␤»
04:15 proller_ left
ash_ thowe: perlcabal.org/syn/ is the spec if you need a link 04:15
04:16 proller joined 04:26 ash_ left 04:28 proller left, proller joined 04:29 nymacro left
cbk how does one set up a hash when declaring a default constructor in perl6? 04:29
or a array for that matter? 04:30
plobsing rakudo: class B { has $.x = { :x('y'), :y('z'), :z('x') }; }; B.new.x 04:34
p6eval rakudo be80e9: ( no output )
plobsing rakudo: class B { has $.x = { :x('y'), :y('z'), :z('x') }; }; B.new.x.perl.say 04:35
p6eval rakudo be80e9: OUTPUT«{"x" => "y", "y" => "z", "z" => "x"}␤»
cbk plobsing, ok i'll try that.... Thanks.
04:39 cls_bsd left, LaVolta left 04:40 LaVolta joined 04:45 satyavvd left, mjk joined 04:49 gottreu_ left 04:55 hercynium left 05:03 proller left, gottreu_ joined, proller joined 05:06 cls_bsd joined 05:14 mfollett left 05:21 alester left 05:22 kaare joined, kaare is now known as Guest7356 05:24 Guest7356 is now known as kaare_ 05:53 justatheory left 05:58 pythonian4000 is now known as pythonian4000afk 05:59 nymacro joined 06:02 mfollett joined 06:03 mfollett left 06:13 gottreu_ left 06:25 Su-Shee joined
moritz_ good morning 06:25
Su-Shee good morning to the south! 06:26
06:50 wtw joined 07:03 mberends joined 07:07 rgrau` joined, rgrau` left 07:10 baest_ is now known as baest 07:22 echosystm left 07:24 sftp left 07:36 tadzik joined 07:52 dju joined
tadzik good morning 08:02
08:03 gfldex left, gfldex joined 08:17 Tene left 08:22 wamba joined, dakkar joined 08:24 boggy joined 08:34 boggy left 08:35 mjk left
jnthn morning, #perl6 08:47
mberends hola jnthn
jnthn o/ mberends 08:49
mberends jnthn: no 6model updates from me today, still surveying the overall approach. More than half the nqp code seems to fit without any change \o/ 08:51
jnthn Yes, I kinda hoped a bunch of it would be re-usable by you. :-) 08:52
I kinda got lazy and used var in a couple of places
That should be eliminated in the .Net one too at some point though
(So anything you do in the Java on towards that, the C# one will borrow back at some point :-)). 08:53
s/on /one/ 08:54
08:55 pnu left
mberends :) 08:57
08:57 pnu joined
jnthn mberends: I got another few bits of the C implementation in place last night too. :-) 08:58
mberends mberends: cool!
08:58 dalek left
mberends er, jnthn: cool! 08:59
jnthn
.oO( Is talking to yourself one of the first signs of madness if you do it on IRC? )
mberends (sign of semility)
s/m/n/
08:59 wamba left
mberends it's gonna be one of those days... 09:00
09:02 dalek joined, ChanServ sets mode: +v dalek 09:11 timbunce joined 09:21 hudnix joined 09:25 [hudnix] left 09:29 redicaps left 09:31 aloha left 09:32 aloha joined 09:41 nymacro left 09:44 mikehh joined 09:46 LaVolta left 09:53 Italian_Plumber joined 10:01 QinGW left 10:05 lamstyle joined 10:08 tadzik left 10:17 pythonian4000afk is now known as pythonian4000 10:18 dju left 10:22 dju joined 10:32 ggoebel joined 10:33 leprevost left, pythonian4000 is now known as pythonian4000afk 10:38 pythonian4000afk is now known as pythonian4000 10:39 Italian_Plumber left 10:47 mjk joined 10:54 sjn_ joined 10:57 ruoso left 10:58 boggytwo joined 10:59 Italian_Plumber joined 11:04 agentzh left 11:10 pythonian4000 is now known as pythonian4000afk 11:27 meppl joined 11:30 wallberg joined 11:51 daxim joined
moritz_ github.com/moritz/perlgeek.de/blob/...do-org.txt any comments before I publish? 12:05
jnthn moritz_: +1 12:16
takadonet I will post it to reddit asap :)
moritz_ perlgeek.de/blog-en/perl-6/announci....writeback 12:17
takadonet www.reddit.com/r/programming/commen...ve_perl_6/ 12:18
jnthn wow, that was fast :)
takadonet I have a perl6 macro..... 12:20
12:22 pythonian4000afk is now known as pythonian4000 12:24 pythonian4000 is now known as pythonian4000afk 12:25 pythonian4000afk is now known as pythonian4000 12:27 pythonian4000 is now known as pythonian4000afk 12:28 phenny joined, ChanServ sets mode: +v phenny 12:30 ruoso joined
arnsholt .u ṣ 12:36
phenny U+1E63 LATIN SMALL LETTER S WITH DOT BELOW (ṣ)
12:43 masak joined
masak nämen hej, #perl6! 12:43
phenny masak: 20 Sep 12:09Z <moritz_> tell masak that some code seems to be incomplete at strangelyconsistent.org/blog/idiomatic-perl-6
masak moritz_: thanks -- will investigate.
takadonet maybe I should have posted in r/perl instead of r/programming 12:44
masak indeed. previously bolded code didn't make it though the convesion.
takadonet: r/programming generally gets more comment.
s/comment/comments/
arnsholt .u ḥ 12:45
phenny U+1E25 LATIN SMALL LETTER H WITH DOT BELOW (ḥ)
takadonet masak: indeed but Perl 6 gets lots of downvotes normally
moritz_ takadonet: you can always do both :-) 12:46
I usually do
takadonet sometime I do 12:47
masak upvotes 12:48
moritz_ who's doing the release on Thursday?
mathw?
jnthn masak: "nämen"?
masak jnthn: interjection, expressing mild surprise. nej + men. 12:49
jnthn yeahbut nobut...
masak jnthn: possibly the closest one gets to "oh hai" in Swedish.
jnthn: well, those are used when arguing. this one isn't.
jnthn :)
masak I'd translate it back to English as "well", as in "well hello". 12:50
12:50 ash_ joined
jnthn
.oO( Swedes greet their wells? In English we just pulled the water out of them... )
12:52
ash_ hi
phenny ash_: 15 Sep 09:24Z <moritz_> ask ash_ what to do when try.rakudo.org is unresponsive - is there a way to restart the backend? if yes, how?
jnthn *England 12:53
arnsholt .u ḫ
phenny U+1E2B LATIN SMALL LETTER H WITH BREVE BELOW (ḫ)
jnthn Aww, my font is missing that one. 12:54
moritz_ hi ash_. I just blogged about try.rakudo.org
masak moritz_++
ash_ moritz_: currently, if try.rakudo.org is messed up, you have to ssh into the screen and reset it, i know its not the best way of doing it
hey, i blogged about it too, last night
moritz_ where 'it' = what? 12:55
masak url? 12:56
moritz_ perlgeek.de/blog-en/perl-6/announci....writeback
12:56 tadzik joined
ash_ umm, that depends on which part is unresponsive, it's currently 1 screen for the repl server and 1 screen for the http server (its a mojo daemon) 12:56
mathw moritz_: I'm down for it. I really probably should try and persuade someone else to do it though, things are a bit... mad 12:57
ash_ i haven't ever written a /etc/init.d script or anything like that, so i wasn't sure how to go about making a daemon to start the repl server
moritz_ mathw: if nobody else chimes in, I can do it
mathw thanks 12:58
moritz_ ash_: I don't think it's really necessary; having a README that tells which process to kill and how to start them again would be a great start
and under which user IDs
mathw most things don't seem to be working out properly this week!
ash_ alright, i'll set that up, where can i put the readme? 12:59
moritz_ ash_: in the repo, I'd say
ash_ kk
i'll write that up now
moritz_ ash_++
ash_ i have noticed it going unresponsive a few times, i wish i knew a better way of restarting it to keep it up and running
moritz_ ash_: Infinoid uses some supervision for the dalek bot... maybe we can steal that mechanism 13:00
ash_ do you have a link to infinoid? so i can read up on it 13:01
moritz_ ash_: Infinoid is a nick in here :-)
ash_ greaterthaninfinity.com/2010/09/try...r-browser/ btw
ah
moritz_ oh, I missed that 13:02
ash_ but my blog doesn't go many places, so the more that write about it the better chances it will be found
13:02 patspam joined
flussence is anyone aware that the graphs on smolder.parrot.org are broken? 13:02
moritz_ flussence: best ping dukeleto about it
ash_: I've now added a link to your blog too 13:04
arnsholt .u ṭ 13:05
phenny U+1E6D LATIN SMALL LETTER T WITH DOT BELOW (ṭ)
ash_ .u ¢ 13:06
phenny U+00A2 CENT SIGN (¢)
ash_ cool, thanks moritz_
tadzik hah, try.rakudo.org got some reddit effect 13:07
takadonet really? 13:08
how badly?
sorry :(
tadzik hah, I managed to get to it 13:09
ash_ hmm, something is wrong with the repl server, someone just tried "Zażółć gęślą jaźn".chars and it crashed the repl server, i don't know why :-\
i'll look into it
flussence s/Unfurtounately/Unfortunately/
mberends Yesterday - The Backup Song www.iks-jena.de/mitarb/lutz/usenet/...erday.html :) 13:10
jnthn rakudo: say "Zażółć gęślą jaźn".chars
p6eval rakudo be80e9: OUTPUT«17␤»
tadzik > say 'Zażółć gęślą jaźń'
ZażóÅÄ gÄÅlÄ jaźÅ
↑ REPL
13:10 kaare_ left
ash_ tadzik: commandline repl ? 13:11
tadzik ash_: ywis
moritz_ mberends: nice :-) hope there's no specific reason for you to sing it :-)
tadzik ash_: → say 'Zażółć gęślą jaźń' 13:12
ERROR: failed to gather a result Wide character in syswrite at /usr/local/share/perl/5.10.1/IO/Pty/HalfDuplex/Ptyish.pm line 191, <$cfg> line 1.
ash_ hmm
i'll keep trying it locally, and try to update the server when i can
moritz_ probably a missing encode_utf8() before writing to the REPL
ash_ hmm "£æ".say and "¢£".chars both worked 13:14
13:17 Patterner left 13:18 dju left 13:20 dju joined 13:23 leprevost joined 13:24 nymacro joined
ash_ i didn't know there was a version of pugs that ran in your browser 13:24
13:24 rgrau` joined
[Coke] wow, ages ago, yes. 13:26
try.rakudo.org seems to have hung my copy of IE8.
moritz_ wow 13:27
flussence I'm installing Konqueror just so I can have something to complain about
(and maybe fix)
ash_ unicode seems to break the repl server, but not all unicode, which is annoying. 13:28
[Coke] repl is using readline under the covers. perhaps there's a setting to be tweaked.
13:28 Psyche^ joined, Psyche^ is now known as Patterner
ash_ i configured it to not use readline 13:29
[Coke] ah, IE8 is fine. it just goes haywire if I <do too much of thing X I haven't figured out>
ash_: ah, then it's probably the REPL. =-)
13:30 mjk left
ruoso er... try.rakudo.org seem to have gone offline 13:31
takadonet good old reddit
ash_ i keep restarting it because i keep breaking it
i don't recommend trying to print unicode characters, they seem to cause problems
ruoso javascript utf8 support is terrible 13:36
moritz_ rakudo utf8 support is also fragile 13:37
tadzik well, rather REPL, no? 13:38
moritz_ it works well for files, but used to have lots of bugs for -e, REPL, modules etc.
13:38 nymacro left 13:40 javs joined
ruoso std: my @c = map -> $n, $s { $n ~ $s }, @n Z @s; 13:41
p6eval std : OUTPUT«===SORRY!===␤Variable @n is not predeclared at /tmp/kOwviqJ5aQ line 1:␤------> my @c = map -> $n, $s { $n ~ $s }, @n⏏ Z @s;␤Variable @s is not predeclared at /tmp/kOwviqJ5aQ line 1:␤------> @c = map -> $n, $s { $n ~ $s }, @n Z @s⏏[31…
ruoso std: my @s; my @n; my @c = map -> $n, $s { $n ~ $s }, @n Z @s;
p6eval std : OUTPUT«ok 00:01 121m␤»
ruoso rakudo: my @s; my @n; my @c = map -> $n, $s { $n ~ $s }, @n Z @s;
p6eval rakudo be80e9: OUTPUT«No candidates found to invoke for method 'map' on object of type 'Array'; available candidates have signatures:␤:(Mu : &block;; *%_)␤␤ in 'map' at line 1758:CORE.setting␤ in main program body at line 22:/tmp/QAYidGPLJo␤»
ruoso rakudo: my @s; my @n; my @c = map -> $n, $s { $n ~ $s }, (@n Z @s); 13:42
p6eval rakudo be80e9: ( no output )
13:42 tadzik left
ruoso bug? 13:42
ash_ is Z the right precedence? (just checking) 13:43
moritz_ rakudo: my @n; my @c = map -> $n, $s { $n ~ $s }
p6eval rakudo be80e9: ( no output )
masak ruoso: you're not outputting anything.
13:43 tadzik joined
ruoso masak, the bug was about the earlier eval 13:43
moritz_ masak: I think it's the "No candidates found"
masak oh, I see now.
no, that's correct.
moritz_ why?
masak STD never tries to call &map.
Rakudo does.
and Z has very loose prec. 13:44
moritz_ but why is it an error?
I read that as
(map $block, @n) Z @s
13:44 molaf joined
masak checks the prec of Z just to be sure 13:44
ruoso hmm... that would be surprising.. 13:45
masak it's tighter than 'list prefix', of which &map is a member.
moritz_ ok
ruoso makes more sense
moritz_ ah
masak so, no bug.
moritz_ it's parsed as
ruoso no bug?
ruoso read it the other way
moritz_ map(($block, @n) Z @s)
masak ruoso: no, it's tighter. no bug.
moritz_ so it's basically map(@list)
masak right. 13:46
moritz_ which misses the block
so masak++ is right
masak for once :P
I don't very much like being right here.
but TimToady knows about this one.
it's one of those which you can't get right for every single use case, so you have to get it wrong sometimes.
moritz_ I think map is supposed to have a slurpy block, but even then: @s is empty, so the zip returns the empty list 13:47
masak a good lint tool should be able to detect it, though.
moritz_ masak: it's one of the reasons I like the method form of map
masak moritz_: aye. I don't use Z enough in that position to have been burnt by this a lot. 13:48
ruoso yeah... after thinking for a while I realize why it is a bug...
but it looks quite odd
moritz_ ruoso: as a comfort, you'd use Z~ instead of the map + Z anyway :-) 13:49
ash_ is there a bigger pi? 13:50
rakudo: more-accurate-pi
p6eval rakudo be80e9: OUTPUT«Could not find sub &more-accurate-pi␤ in main program body at line 22:/tmp/gnNZ41c7Rr␤»
tadzik . o O ( Math::Pi )
moritz_ rakudo: say 0.1+pi # bigger pi :-)
p6eval rakudo be80e9: OUTPUT«3.24159265358979␤» 13:51
ash_ lol
masak rakudo: say pi ** pi
p6eval rakudo be80e9: OUTPUT«36.4621596072079␤»
ash_ s/bigger/more decimals of accuracy/
:pi<123> # o.0
masak ruoso: it looks a bit odd at first, but the more I think about it, the more I realize that Z *has* to have that precedence.
tadzik or rather Math::π
.u π 13:52
phenny U+03C0 GREEK SMALL LETTER PI (π)
ruoso masak, yes... the problem is not from Z, actually
masak, the origin of that parsing comes from accepting lists without the parenthesis
ash_ rakudo: "{GREEK BIG LETTER PI}".perl
p6eval rakudo be80e9: OUTPUT«Could not find sub &PI␤ in main program body at line 22:/tmp/Go6JFO8TaR␤»
ash_ um... is that a bug?
or did i do it wrong?
tadzik hm?
what is the bug here?
moritz_ {...} is closure interpolation
you want \c[...] 13:53
jnthn \c[GREEK BIG LETTER PI]
rakudo: "\c[GREEK BIG LETTER PI]".perl.say
p6eval rakudo be80e9: OUTPUT«===SORRY!===␤Unrecognized character name GREEK BIG LETTER PI at line 22, near "]\".perl.sa"␤»
moritz_ s/BIG/CAPITAL
jnthn rakudo: "\c[GREEK CAPITAL LETTER PI]".perl.say
p6eval rakudo be80e9: OUTPUT«"Π"␤»
ash_ ah, i was thinking the opposite of small was big
jnthn rakudo: "\c[GREEK CAPITAL LETTER PIE]".perl.say
p6eval rakudo be80e9: OUTPUT«===SORRY!===␤Unrecognized character name GREEK CAPITAL LETTER PIE at line 22, near "]\".perl.sa"␤»
jnthn Aww
:-)
tadzik The Pie is a Lie!
jnthn .u pie 13:54
phenny U+A03D YI SYLLABLE PIE (ꀽ)
ash_ rakudo: "\c[CAKE]".say
p6eval rakudo be80e9: OUTPUT«===SORRY!===␤Unrecognized character name CAKE at line 22, near "]\".say"␤»
tadzik rakudo: Pie.isa('Lie')
p6eval rakudo be80e9: OUTPUT«Could not find sub &Pie␤ in main program body at line 22:/tmp/_bC9hruJtH␤»
tadzik rakudo: class Lie {}; class Cake {}; say Cake.isa('Lie').Bool
p6eval rakudo be80e9: OUTPUT«0␤»
tadzik pff
rakudo: class Lie {}; class Cake is Lie {}; say Cake.isa('Lie').Bool
p6eval rakudo be80e9: OUTPUT«1␤»
moritz_ the quotes aren't necessary 13:55
jnthn The quotes are hateful.
tadzik oh
right
jnthn Trouble is, which Lie?
moritz_ The Lie
jnthn What if there's different ideas of what a Lie is in different scopes?
arnsholt Sophus Lie? 13:56
13:56 snearch joined
moritz_ sorry, unrecognized Lie at line 2, 13:56
ash_ hmm, should i setup the library that lets you use perl5 in rakudo? (that did work, right?) 13:57
on the server, the try.rakudo.org server
moritz_ nope 13:58
too high risk
ash_ kk
moritz_ it would be a cool demo, but dangerous
ash_ i'd have to override a bunch of things in perl5 i guess to make it safe 13:59
moritz_ "a bunch of things" sounds like a broad oversimplification :-) 14:01
jnthn /me går för att köpa öl...bbiab
14:01 dju left
moritz_ that sounds like "I'm going to buy some beer" 14:02
not an unlikely thing for jnthn to say
masak if you interp "going" quite literally, it does mean that.
jnthn++ # Swedish is getting better -- at least the beer-related parts :) 14:03
moritz_ yeah, more like "going (to the shop) to buy"
tadzik ól is beer?
masak aye.
tadzik nice word to know
masak English has 'ale' there in the same clade. 14:04
tadzik ale is "but" in Polish :) 14:05
14:07 Guest23195 joined
masak we could keep on like this all evening :P 14:07
tadzik www.reddit.com/r/programming/commen...ve_perl_6/ -- there is a sad someone 14:12
14:12 dju joined
szbalint jnthn: www.youtube.com/watch?v=IpHniCEHY7I # learning swedish 14:13
ash_ jnthn: you use windows, right? 14:14
[Coke] listens to _Camilla_ by the art of noise, which is close enough to camelia that he had to double check.
ash_ oh, he's buying beer, nevermind, anyone else use windows? 14:15
or more specifically, has anyone had any issues with try.rakudo.org on windows?
ruoso rakudo: my @numbers = 2..10, «J Q K A»;my @suits = «hearts diamonds clubs spades»;my @deck = @numbers X| @suits;my @hand = @deck.pick(5); say @hand; say (([eq] @hand) && (!grep { $_ == any(2..10) }, @hand)) ?? 'royal flush' !! 'not a royal flush'; 14:16
p6eval rakudo be80e9: OUTPUT«any("J", "spades")any(5, "clubs")any(6, "hearts")any(7, "spades")any(5, "spades")␤not a royal flush␤»
14:18 wtw left
ruoso notes that it only works because poker hands have 5 cards and the deck has only 4 suits 14:19
moritz_ ash_: perlmonks chatterbox reports a few successes on windows 14:20
ash_ k
well, i'll have to find a windows computer to test this on 14:21
ash_ changing classrooms bbl 14:22
14:22 ash_ left
moritz_ 16:23 <@cbstream> [mje] google chrome on Windows XP - > 3 minutes and still no answer 14:23
14:28 wallberg left 14:30 ash_ joined, alester joined
gfldex std: my @a = <foo.txt bar.txt baz.txt>; @a>>.split('.')[-1].say; 14:31
p6eval std : OUTPUT«===SORRY!===␤Unsupported use of [-1] subscript to access from end of array; in Perl 6 please use [*-1] at /tmp/fWzwoveIpb line 1:␤------> xt bar.txt baz.txt>; @a>>.split('.')[-1]⏏.say;␤Parse failed␤FAILED 00:01 119m␤»
gfldex std: my @a = <foo.txt bar.txt baz.txt>; @a>>.split('.')[*-1].say; 14:32
p6eval std : OUTPUT«ok 00:01 119m␤»
gfldex rakudo: my @a = <foo.txt bar.txt baz.txt>; @a>>.split('.')[*-1].say;
p6eval rakudo be80e9: OUTPUT«txt␤»
gfldex am i asking for something unreasonable? 14:33
masak gfldex: why not do the split after the indexing?
gfldex: depends what you want to do, of course.
moritz_ gfldex: no; you get exactly what you're asking for
gfldex :(
moritz_ rakudo: my @a = <foo.txt bar.txt baz.txt>; @a>>.split('.')>>.[*-1].say;
p6eval rakudo be80e9: OUTPUT«footxtbartxtbaztxt␤»
masak gfldex: start by exaplaining what you expected.
[Coke] ash_ i used try.rakudo.org with IE8 no problems. 14:34
gfldex i want to split by '.' and get the last element for each element in @a
ash_ [Coke]++ thanks for trying it, i don't have regular access to windows
masak I see. seems moritz_++ caught on before I did.
14:34 pmurias joined, Su-Shee left
moritz_ problem is that >>. flattens the left-hand side 14:35
masak nod.
gfldex i c
masak so that can't work.
probably use a map instead.
gfldex so >>. is not so hot if i want to modify values of a list
unless the method is doing it ofc
masak rakudo: my @a = <foo.txt bar.txt baz.txt>; .say for map { .split('.')[*-1] }, @a
p6eval rakudo be80e9: OUTPUT«txt␤txt␤txt␤» 14:36
masak \o/
jnthn I'm back. Nu jag har öl! Moja chladnička je vesela.
masak gfldex: it's not so much about modifying values as it is about flattening.
ash_ is there much of a difference between @a.map: { } and map { }, @a ? 14:38
moritz_ precedence! 14:39
as ruoso demonstrated above
14:39 alester left
masak although to be fair, both can bite you precedence-wise :P 14:40
moritz_ yes 14:41
tadzik ash_: the first one is better for you don't have to remember the order of arguments to map :) 14:42
jnthn: "My fridge is happy"?
ash_ rakudo: my @a = <a b c>; .say for @a.map: { $^x eq 'b' | 'c' } 14:43
p6eval rakudo be80e9: OUTPUT«any(Bool::False)␤any(Bool::True, Bool::False)␤any(Bool::False, Bool::True)␤»
jnthn tadzik: 'cus it's full of beer now :-)
moritz_ instead you have to remember if the list or the block is used as invocant
tadzik jnthn: yeah, I figured that out. I was just checking my Slovak (Czech?) understanding :)
jnthn 'twas Slovak. :-)
moritz_ my hovercraft is full of eels!
tadzik I recently bought the beer in a shop and it was outdated :(
jnthn Which is too bad, because otherwise you coulda czeched your understanding... :-) 14:44
ash_ s/hovercraft/lovercraft/ ?
tadzik lovecraft rather :)
jnthn tadzik: Eww :-(
tadzik and it was my favourite one!
At least they give back 0.5 PLN for a bottle
jnthn I loved that scheme.
You collected enough bottles, then you eventually could take enough back to get "free" beer :-) 14:45
tadzik haha, we call that the deriviate (?) of the party
14:45 leprevost left
tadzik how is it spelled... 14:45
moritz_ derivative? 14:46
or derivate?
jnthn ...dunno, I just know that beer is an integral part of a party. :-)
tadzik derivative
moritz_ that makes sense
ash_ oh, the math jokes :P
tadzik so the derivative of the party is an amount of beer you can buy for selling the bottles from the party
masak a derivative is something you can get in maths; a derivate is something you can get in chemistry
tadzik and a good party is one of which the 2nd derivative is positive
[Coke] jnthn: ... I think you've taken this joke to the limit. 14:47
tadzik hah, Math jokes. <i> Get rational! – <pi> Get real! 14:48
s/Get/Be/
pmichaud good morning, #perl6
tadzik good morning pmichaud 14:49
moritz_ good morning
jnthn morning, pmichaud
pmichaud did we ever pick a time for #cpan6sketch?
tadzik 70 minutes remaining 14:50
masak mo'nin', pm.
14:50 meraxes joined, hirschnase left
[Coke] ~~ 14:50
masak std: ~~ 14:51
p6eval std : OUTPUT«===SORRY!===␤Expecting a term, but found either infix ~~ or redundant prefix ~␤ (to suppress this message, please use space between ~ ~) at /tmp/FRCh9Q68g0 line 1:␤------> ~~⏏<EOL>␤Parse failed␤FAILED 00:01 115m␤»
[Coke] Given how hard it seems to be to meet on IRC for cpan6sketch, wouldn't email be a good fallback?
masak [Coke]: ssh, don't ruin it! this meeting will be the one that everyone makes it to! :)
[Coke] HEE! 14:52
good luck, we're all counting on you!
masak speaking of which, will sorear++ attend? 14:53
14:55 mfollett joined
masak finds himself using T much more since the PGE-to-nqp-rx regression re charclasses with backslashed things in them 14:55
probably a good thing.
moritz_ what is \T ? 15:00
masak anything but \t 15:01
the general rule is...
moritz_ right
masak ...right.
moritz_ you don't talk about the fight club.
masak :)
tadzik I'm tempted to watch this film 15:02
[Coke] I read the book first. I'm not sure which I recommend doing first. 15:03
tadzik When I watch the films after reading the book, I'm always disappointed and I happen to hate the films after all
15:03 leprevost joined, lamstyle left
tadzik Forrest Gump, Night Watch... maybe Hannibal series wasn't _that_ bad 15:04
15:04 Italian_Plumber left 15:06 justatheory joined 15:08 lamstyle joined, mberends left 15:22 plainhao joined
masak rakudo: my @a = <foo bar baz>; say @a[3] ~~ /foo/ 15:24
p6eval rakudo be80e9: OUTPUT«Method 'match' not found for invocant of class ''␤ in 'Regex::ACCEPTS' at line 5948:CORE.setting␤ in main program body at line 22:/tmp/_OtNlBNk6k␤»
15:24 arnsholt left
masak this feels familiar? might I have reported this one previously? 15:24
rakudo: my @a = <foo bar baz>; say @a[3].WHAT
p6eval rakudo be80e9: OUTPUT«Any()␤» 15:25
masak rakudo: say Any ~~ /foo/
p6eval rakudo be80e9: OUTPUT«Method 'match' not found for invocant of class ''␤ in 'Regex::ACCEPTS' at line 5948:CORE.setting␤ in main program body at line 22:/tmp/rdxfe0X2Om␤»
masak I think I'd maybe like for the match to appear to have been done against an empty string. and then a warning. 15:26
moritz_ that can be arranged, if specced
masak glances at the spec. the spec glances back. 15:27
jnthn It must be love!
masak 15:28
Any Regex pattern match .match(X) 15:29
moritz_ indeed
masak there's already a line in the smartmatch table for it.
moritz_ then it's probably a simple matter of moving .match from Cool to Any
15:29 JimmyZ_ joined
masak "The spec: in half of the cases, it already had it that way" :) 15:30
15:31 Italian_Plumber joined
masak Any Match identity $_ 15:32
I find that line confuddling.
it's about regex Match objects, yes?
how does the description "identity" square against checking only $_ (which should be only the lhs of the infix:<~~>)?
s/square against/square with/ 15:33
JimmyZ_ 晚上好,麦高 15:34
moritz_ it returns the Match, not the Any
masak well, that's not "identity". that's "was the Match true?"
moritz_ it's one of two possible identities 15:35
15:35 takadonet left
masak 下午好,卓明亮 15:35
moritz_: ok, fair enough.
moritz_ I agree it's not very accurate though 15:36
JimmyZ_ 呵呵
15:36 Ross joined
masak moritz_: I also question whether it's very useful. if I want identity, most often I do... nothing. and that tends to work. 15:36
I realize that this is for 'when' semantics.
and I still question whether it's useful.
generally, I'd expect string comparison against the stringified Match in that case. 15:37
moritz_ masak: so you expect 'abc' ~~ m/b/ to fail?
15:37 Holy_Cow joined
masak depends what's in $_ 15:38
15:38 takadonet joined
moritz_ ~~ sets $_ to 'abc' 15:38
masak oh right!
new semantics.
moritz_ "new"
masak :)
newer than those in my brain, that is.
15:39 ruoso left
moritz_ \o/ Stuttgart.pm currently brainstorms about making a Rakudo workshop 15:43
jnthn \o/
masak \o/
jnthn Ooh, I never went there.
moritz_ they invited me, and offered to pay train ticket and a pizza :-)
jnthn oooh 15:44
pizza++
That's how know know it's a *real* hackathon.
moritz_ :-)
gottreu should the perl6.org homepage point to the STD.pm6 and viv files directly in github, or to the perl6/std repo as a whole? 15:47
gottreu is finding bugfixes that are at his level.
moritz_ probably to the repo as a whole
dalek p-rx/master: f59925c | pmichaud++ | examples/fib.nqp:
Add fib.nqp as a recursion benchmark example.
15:50
15:51 mberends joined 15:52 Intensity left 15:58 JimmyZ_ left
mberends #cpan6sketch in 1 min? 15:59
15:59 Holy_Cow left 16:00 Holy_Cow joined
masak mberends: now now now 16:00
Trashlord now now now
NOW
16:00 dju left, dju_ joined
Trashlord oh, I mean hey 16:00
masak hey 16:01
gottreu there's a parrot sketch and a cpan6 sketch, are there perl6 or rakudo sketches?
masak there used to be a perl6sketch, but it changed names to '#phasers' 16:02
and it's three hours from now, I think.
gottreu masak: Danke.
16:05 JimmyZ_ joined
TimToady Alias_: they're looking for someone who knows something on #cpan6sketch :) 16:07
masak Alias_: halp! 16:08
16:09 ruoso joined 16:13 leprevost left 16:17 stkowski joined 16:20 JimmyZ_ left 16:27 cdarroch joined, cdarroch left, cdarroch joined 16:31 daxim left 16:35 risou joined 16:39 rgrau` left 16:48 uniejo joined 16:53 Holy_Cow left, masak left 16:54 dju joined, Holy_Cow joined 16:55 dju_ left 17:00 dju left 17:01 dju joined, mberends left, rgrau_ joined 17:07 alester joined 17:08 risou left 17:14 dakkar left 17:18 sjn is now known as __sjn, sjn_ is now known as sjn
flussence huh... konqueror accepts -webkit- css prefixes now. 17:27
17:27 __sjn is now known as sjn_
flussence is attempting to get try.rakudo.org working in KHTML 17:27
17:28 orafu joined 17:29 Chillance joined
moritz_ rakudo: say [+] False, False, True, False 17:31
p6eval rakudo be80e9: OUTPUT«1␤»
ash_ flussence: i use webkit, mozilla and css3 identifiers in the stylesheet on try.rakudo.org, so if it supports css3 properly it just uses that 17:32
17:32 svetlins joined, svetlins left, svetlins joined
ash_ the great thing about css, is if it sees a completely bogus statement, it just ignores it, so having all 3 doesn't cause any problems 17:32
flussence ash_: yeah, it seems to work fine (KDE 4.5.1). Used to be the case that -khtml- had better compatibility than -webkit-. 17:33
now I need to figure out why the JS doesn't work...
oh, F5 fixed it. 17:34
17:35 dju left, orafu left 17:37 rainerschuster joined 17:39 dju joined, dju left, dju joined 17:43 rschuster joined, rschuster left 17:44 dju left 17:45 dju joined 17:48 frodwith_ is now known as frodwith 17:50 Holy_Cow left, Holy_Cow joined, molaf left 18:02 ggoebel left 18:05 uniejo left 18:09 javs left 18:12 ggoebel joined 18:20 pmurias left
dalek osystem: f7b94ff | supernovus++ | projects.list:
Added hash-has, HashConfig and WebRequest. Removed ww6.
18:24
18:26 javs joined 18:28 ggoebel left, sftp joined 18:29 estrabd_afk is now known as estrabd
ash_ gah, i feel like the second i exit my ssh to the try.rakudo server, it gets all slow and i get worried its about to barf again 18:30
18:33 mberends joined
ash_ .u   18:38
phenny U+00A0 NO-BREAK SPACE ( )
ash_ .u
phenny ash_: 1 SPACE (U+0020)
ash_ when did the spec remove the AUTO* from packages? i see its all handled by a multi CANDO now 18:40
err, CANDO is for checking if it something responds to a method name, i guess thats not the same 18:41
std: package Foo { AUTOSUB { { "foo" } } } 18:45
p6eval std : OUTPUT«===SORRY!===␤Undeclared name:␤ 'AUTOSUB' used at line 1␤Check failed␤FAILED 00:01 116m␤»
ash_ can you inspect a namespace? 18:51
18:55 masak joined 19:00 c9s_ is now known as c9s 19:03 timbunce left 19:09 lamstyle left, timbunce joined
masak "Perl 6 has Moose built in" -- while not strictly true, has a certain truthiness to it. twitter.com/bingosnet/status/25143238401 19:10
19:10 rschuster joined, rainerschuster left, rschuster is now known as rainerschuster, nymacro joined
tadzik the part of my Rakudo Star talk was about "what modules we won't need now", there were a few 19:13
. o O ( Perl 6 doesn't have to steal its successor OOP ) 19:14
masak tadzik: I might have a section on that in my madness/method talk in Paris next month.
jnthn method madness() { ... }
tadzik btw, what happened to alexm?
He was giving my a talk with a traslated slides of mine on the day of first R* release, and I haven't seen him ever since to ask how it was 19:15
btw, you may know, where on the trac.parrot.org/parrot/wiki/Languages page is the url to LOLCODE repo? 19:16
ash_ tadzik: what do you mean? like svn.parrot.org/languages/lolcode/ ? 19:18
tadzik ash_: exactly, thank you. Where is that url?
19:19 lamstyle joined
ash_ i guessed it? all the stuff in the parrot trac for languages is in the svn.parrot.org/langauges repo 19:19
svn.parrot.org/languages/ has the whole lot of them
tadzik I guessed. Exactly. I think it'd be nice for it to be listed on the page somewhere 19:20
Parrot folks are busy optimizing stuff now, I'll maybe poke them later :)
19:21 jaldhar left 19:23 wamba joined
diakopter masak: oi 19:37
masak diakopter: io
19:38 nymacro left, Guest23195 left
masak question: can rt.perl.org/rt3/Ticket/Display.html?id=58022 be closed? 19:39
moritz_ yes
masak what's the status on tests for 'as'? 19:40
moritz_ t/spec/S06-traits/as.t has some 19:41
masak closes
diakopter may I ask what 'as' is
moritz_ coercion
Util perl6: my @z = 1,2 X 3,4 X 5,6; @z.perl.say;
p6eval rakudo be80e9: 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/Fb9IZKjNqn␤»
..pugs: OUTPUT«[1, 2]␤»
masak rakudo: sub foo($a as Str) { say $a.WHAT }; foo(42)
moritz_ rakudo: sub f($x as Int) { say $x.perl }; f('123')
p6eval rakudo be80e9: OUTPUT«Str()␤» 19:42
rakudo be80e9: OUTPUT«123␤»
masak :P
moritz_ :-)
diakopter masak: blogs.msdn.com/b/ericlippert/archiv...as-is.aspx
Util perl6: ( 1,2 X 3,4 X 5,6 ).perl.say; 19:43
p6eval rakudo be80e9: 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/lMbqBtJgTL␤»
..pugs: OUTPUT«((1, 3, 5), (1, 3, 6), (1, 4, 5), (1, 4, 6), (2, 3, 5), (2, 3, 6), (2, 4, 5), (2, 4, 6))␤»
Util Why does this fail in Rakudo?
masak pugs is right. rakudo used to handle this.
it's some parsing issue.
moritz_ not parsing
absence of slice/tree context
masak oh!
diakopter: love the title :P 19:44
19:44 itz joined
sbp "I do not necessarily write about things that are important for developers to understand; I write about things that are fabulous! And the person who gets to decide what is fabulous is me." 19:44
(from is is as or is as is, a comment by the author)
19:45 wamba left
masak sbp: "all your money back if you're not satisfied" :) 19:46
19:47 takadonet left
Util moritz_: S03 says it should work as stated. 19:48
moritz_ Util: right; I just disagree with masak's diagnosis of why it doesn't work today
masak and I agree with moritz_. :P
moritz_ (at least in rakudo)
diakopter masak: so basically, in C#, they're the the same operation, just with different return types at the type-checking level.
masak diakopter: cute. 19:49
Util Is there a workaround syntax? (for a RosettaCode solution I am working on)
moritz_ knows none
diakopter does Perl 6 have a "coercion succeeded" test (similar to "is" in C# as mentioned above) 19:50
pmichaud rakudo: (( 1,2 X 3,4 ) X (5,6)).perl.say
p6eval rakudo be80e9: OUTPUT«((1, 5), (1, 6), (3, 5), (3, 6), (1, 5), (1, 6), (4, 5), (4, 6), (2, 5), (2, 6), (3, 5), (3, 6), (2, 5), (2, 6), (4, 5), (4, 6))␤»
masak Util: writing your own sub that DTRT.
pmichaud oh, that's flattening.
bleh. 19:51
masak flattening will get you nowhere!
moritz_ any objections to bumping PARROT_REVISION?
diakopter I mean, I retract my question.
jnthn
.oO( She really flattened me... )
pmichaud moritz_: no objection... I tested earlier (it worked) but didn't get to commit the bump.
19:52 patspam left
masak jnthn: you probably shouldn't have gone to her flat, then. 19:52
dalek kudo: 1222485 | moritz++ | t/spectest.data:
run two more test files
19:53
kudo: acc8fcb | moritz++ | build/PARROT_REVISION:
bump PARROT_REVISION to 2.8.0 release
kudo: ac9fdb9 | moritz++ | t/spectest.data:
fix test nmae, moritz--
Util jnthn: Do you have MSI-building directions for R* written up anywhere? (presuming you did the 2010.07 MSI) 19:54
jnthn Util: No, writing them up is on my todo list.
moritz_ anybody wants to do the release on Thursday?
Util jnthn: OK, thanks
jnthn Util: But basically, just used the MSI builder built into Visual Studio.
A setup project or worreva it's called 19:55
Util (which I lack)
jnthn So the instructions won't be very useful to anyone without VS
Right.
moritz_ if nobody wants to, I can do it; but I've done two releases before, and don't need practise anymore :-)
flussence rakudo: say Hash.new(:key('A'|'B'|'C'), :value<bronze>).perl # is it possible to write this out shorter? (from irclog.perlgeek.de/perl6/2010-09-20#i_2845966) 19:58
p6eval rakudo be80e9: OUTPUT«{"key" => any("A", "B", "C"), "value" => "bronze"}␤»
masak huh.
moritz_ rakudo: say { key => any(<A B C>), :value<bronze> }.perl 19:59
p6eval rakudo be80e9: OUTPUT«{"key" => any("A", "B", "C"), "value" => "bronze"}␤»
masak flussence: that doesn't look like it means what you probably think it means.
then again, I haven't checked the backlog reference.
moritz_ anyway, { ... } is shorter than Hash.new(...)
19:59 Italian_Plumber left
masak :) 19:59
ash_ rakudo: {key => 'A'|'B'|'C', :value<bronze>}.perl.say 20:00
p6eval rakudo be80e9: OUTPUT«{"key" => any("A", "B", "C"), "value" => "bronze"}␤»
flussence yeah, I was being verbose there just to rule out everything...
masak the essence of flussence's question is very worthwhile, though. I'd definitely like for all of the basic types to be creatable via constructors on their type objects.
20:00 Italian_Plumber joined
Util rakudo: my %h = < A B C > X=> 'bronze'; %h.perl.say; 20:00
p6eval rakudo be80e9: OUTPUT«{"A" => "bronze", "B" => "bronze", "C" => "bronze"}␤»
flussence (it's not originally my question, so I don't know the right answer :) 20:01
ash_ Util++ i didn't even think of that
masak flussence: what I meant was that you have one key named 'key' and one key named 'value'. I figured that with those names, there was a high probability in confusion in the questioner. :)
ash_: that's not the same, though. doesn't have the junction. 20:02
Util ash_: RosettaCode is honing my golfing^Widioms.
masak: I was assuming that flussence did not really want the junction; that it was in error.
ash_ it's probably closer to what the original questioner wanted though, i imagine...
flussence whoops, yeah that line of code I wrote was completely wrong 20:03
masak Util: an assumption as good as any, I think.
flussence needs more coffee
ash_ has spent the last 2 weeks trying to not drink coffe... or caffeine
20:05 Italian_Plumber left 20:10 ash_ left 20:11 daemon left, daemon joined
moritz_ any suggestions for a release name? 20:12
hudnix rakudo: ([X] 1,2).perl.say
dalek kudo: 750a024 | moritz++ | docs/announce/2010.09:
[release] initial 2010.09 announcement
moritz_ any perlmongers group that did something Perl 6 related in the last few months?
jnthn Did we already have an Oslo?
I guess so
p6eval rakudo be80e9: OUTPUT«maximum recursion depth exceeded␤ in 'Block::count' at line 5898:CORE.setting␤ in 'Block::count' at line 5902:CORE.setting␤ in 'Any::join' at line 1␤ in 'List::perl' at line 2631:CORE.setting␤ in <anon> at line 1␤ in 'Any::join' at line 1␤ in 'List::perl' at line
..2631:CORE.s…
masak I believe in finding ways to code that don't require stimulants. :)
moritz_ jnthn: yes, after NPW
jnthn masak: I did. 20:13
masak: I use a depressant instead.
:P
But I drink coffee in a morning too.
So it all balances out perfectly.
moritz_: Yeah, I seemed to remember they'd already had it. Otherwise woulda been good. 20:14
masak or, put differently, I don't want to limit my coding to moments of some kind of chemical high. I like coding too much for that.
20:14 frew is now known as frooh, masak left
sjohnson yo dudes 20:17
20:19 pjcj left, timbunce left
jnthn o/ sjohnson 20:20
sjohnson hi!
20:24 pjcj joined 20:26 timbunce joined
avuserow hello #perl6! 20:30
I'd like to give some kudos to all the people who have been optimizing rakudo. It's certainly a big difference from when I last wrote code for it. 20:31
jnthn avuserow: Thanks for the encouragement. :-) There's plenty of optimization to go yet, but happy that you're finding what's improved so far helpful. :-) 20:32
avuserow (that was about a year ago, and at least the startup time has been improved a ton.)
it's to the point now where I'll start using it for random one-off things for classwork instead of perl5 20:33
tadzik how likely is it to use some post-2.8.0 Parrot for the Rakudo release? 20:39
PerlJam tadzik: you mean to get the recent optimizations in? 20:42
tadzik ywis :)
and maybe even gc_massacre 20:43
20:50 Mowah left 20:53 mberends left
flussence yay, I got a try.rakudo.org server running locally 20:56
now to see if I can break it... 20:57
20:58 timbunce left 21:01 snearch left 21:03 mberends joined 21:05 timbunce joined 21:07 Ross left, justatheory left 21:11 Intensity joined, ruoso left 21:14 estrabd left 21:16 estrabd joined 21:19 leprevost joined 21:26 javs left 21:34 ZZamboni joined, ZZamboni left 21:38 justatheory joined 21:47 NordQ joined, Trashlord left 21:50 linux-m00n joined 21:52 tadzik left 21:54 pythonian4000afk is now known as pythonian4000 21:55 leprevost left 21:57 NordQ left, NordQ joined 21:59 NordQ left, NordQ joined 22:00 LionMadeOfLions joined 22:01 flatwhatson left 22:03 lamstyle left 22:05 NordQ left 22:07 lamstyle joined 22:10 Holy_Cow left 22:12 rainerschuster left 22:14 linux-m00n left, flatwhatson joined 22:19 timbunce left
TimToady so I'm translating a relatively large program, and now it compiles, and I run it and I get "Too many positional parameters passed; got 2 but expected 1" 22:19
from somewhere...
jnthn It...really says "somewhere"? 22:20
TimToady no, it says nothing
that's all it says
the stuff in quotes
jnthn :| 22:21
diakopter this is in pugs, right? ;)
TimToady perhaps it's because I have a: say $! if $!;
jnthn TimToady: Can sometimes happen when something goes horribly wrong with e.g. code running to set up meta-objects.
TimToady well, I did just tranlate a hash/array solution to a class-based solution... :/ 22:22
jnthn Sounds possible. I can probably track it down if I have the code. 22:23
22:23 dju left
TimToady trying to run it without the try, which was really just a safegard in raw mode 22:23
ah, $! is apparently only reporting the first line
jnthn Oh. 22:24
Yeah, I guess it doesn't dump the whole backtrace by default.
TimToady all the location info is in subsequent lines
jnthn That's probably right much of the time...
Well, it's more that when it's caught at the top level, it prints $! and then goes and prints the backtrace.
Rather than the actual message containing that all stringified too. 22:25
TimToady well, perl 5's message usually has a line number in the first line
jnthn Ah.
TimToady with rakudo I usually have to look down the list for the one line number that makes sense
jnthn The first one in the list is usually meant to, unless the failure occurs somewhere in CORE 22:26
TimToady which it was, in this case 22:27
jnthn *nod*
TimToady EnumMap::new, specifically :)
jnthn I can argue showing the core frames by default either way.
sjohnson hi!
jnthn When the failure is in some closure, it's maybe less confusing to know it was actually invoked by map, for example.
TimToady: Anyways, opinions on improving/re-shuffling error info welcome. Especially in email-to-rakudobug form. 22:30
Once I get my head out of the meta-model re-implementation, I can take a look at improvements there. Other @other can. 22:31
Morning meeting in Malmö, sleep time. o/ 22:32
22:32 estrabd is now known as estrabd_afk 22:34 araujo left 22:37 dju joined 22:51 mjk joined 22:53 leprevost joined 22:56 Trashlord joined 22:58 mfollett left 23:00 mfollett joined, mfollett left 23:08 leprevost left
flussence rakudo: sub tetrate { [**] * xx * }; say tetrate(2, 4) 23:16
p6eval rakudo 750a02: OUTPUT«PackFile_unpack: This Parrot cannot read bytecode files with version 8.4.␤␤PackFile header failed during unpack␤»
flussence caught it at a bad time?
diakopter weird 23:17
flussence just tried it locally and it wouldn't work anyway, it wanted $^a and $^b instead :( 23:18
23:25 ash_ joined 23:27 s1n left
ash_ so 23:27
who wants to help me with something?
i know someone wants to, who knows javascript and/or json? :P
flussence !
me(-ish)
ash_ i want to get working on the tutorial system in try.rakudo, it would be nice/awesome/useful/helpful if you want to help out 23:28
flussence ok, I've been poking around the code already :) 23:29
(not that bit so far)
23:31 alester left
ash_ github.com/moritz/try.rakudo.org/bl...try.js#L82 i have a command in there already that is the beginings of this 23:31
basically, i have a list of commands in javascript, and if the stdin (the textbox) has something that matches, then i execute the command 23:32
so, saying, 'chapter 1' should load chapter 1's text and so on 23:33
github.com/moritz/try.rakudo.org/bl...s/index.js has the index of the chapters, i was going to build all of the content from those, in that folder i started a 1.js which should be chapter 1, i need to figure out a bit more on how you'll specify input and output, so you can tell when to progress through the tutorial though. i haven't figured that out yet, i imagine it will be a lot of regex's though 23:35
flussence seems straightforward enough 23:37
23:37 rgrau_ left
ash_ i'll need to add commands to move forward/backwards through the steps of the chapter, but each chapter will be a set of steps, i imagine, along the lines of "try typing 1 + 3" "try [+] 1..3" 23:39
23:42 s1n joined
flussence I've made a start on it, anyway: github.com/flussence/try.rakudo.org...it/d085ee7 23:46
23:47 araujo joined
ash_ ping moritz_ 23:48
have you figured out how to run the server andstuff on your computer? 23:50
flussence yep
ash_ cool, i tried to keep the requirements basic, it uses Mojo and IO::HalfDuplex so far 23:51
23:52 mjk left 23:54 Italian_Plumber joined
ash_ flussence: do you want me to merge any of your changes up? 23:55
flussence go ahead if you think they're useful 23:56
ash_ kk 23:57
23:57 ggoebel joined
ash_ hmm 23:59