»ö« 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!
Set by sorear on 4 February 2011.
00:04 aindilis joined 00:07 risou_ left 00:15 cosimo joined, ymasory_ joined
sorear good * #perl6 00:24
colomon \o 00:25
00:26 sftp_ joined, sftp left 01:20 envi joined 01:25 woosley joined 01:31 bluescreen10 left 01:35 Alias__ left 01:36 JimmyZ_ left 01:37 JimmyZ joined 01:42 drbean_ joined 01:45 whiteknight left 01:46 drbean left 01:49 bluescreen10 joined 02:00 [Coke] left 02:02 [Coke] joined
tadzik o/ 02:08
gosh, I think my wrist's broken
02:12 JimmyZ left, jferrero left 02:22 cdarroch left
sorear tadzik: owww, I did that once 02:24
02:31 [Coke] left 02:32 [Coke] joined 02:48 mtk left 02:56 mtk joined 03:11 hudnix left 03:55 alester joined 03:56 satyavvd joined, orafu left, orafu joined 04:01 sftp_ left 04:03 wooden left 04:06 nymacro joined 04:09 rhr left 04:10 kaare_ joined 04:13 rhr joined 04:31 colomon left 04:34 donri joined 04:37 alester left, ymasory left 04:41 colomon joined 04:44 am0c joined 04:54 dalek joined, ChanServ sets mode: +v dalek
dalek ast: 3d1828e | (Martin Berends)++ | S32-str/flip.t:
[S32-str/flip.t] fudge 2 grapheme tests for niecza
05:11
sorear mberends \o/ 05:24
mberends sorear: flip commit coming soon, spectesting... 05:25
05:27 sbp left, phenny left, phenny joined 05:30 kjeldahl joined
dalek ecza: 9e6dc8b | (Martin Berends)++ | / (5 files):
add string flip() method and function and enable 13 spectests
05:31
sorear 13 spectest files?
!? 05:32
mberends 13 tests only (out of 15) in S32-str/flip.t
05:32 sbp joined
mberends dayjob & 05:34
05:58 wtw joined 06:10 satyavvd left, satyavvd joined 06:18 colomon left, justatheory left 06:19 justatheory joined 06:23 justatheory left 06:24 mfranc joined 06:33 birdwindupbird joined 06:39 mdxi left 06:42 mdxi joined 06:47 nymacro left 07:08 mfranc left 07:12 hanekomu joined 07:22 jfried left 07:33 Mowah joined 07:45 SHODAN joined 07:50 pernatiy left 08:09 satyavvd left, satyavvd joined 08:11 drbean_ is now known as drbean 08:12 tzhs joined 08:15 cosimo left 08:19 pernatiy joined, kjeldahl_ joined 08:20 kjeldahl left
miso2217 morning all 08:38
is longest token matching implemented in rakudo?
rakudo: my token ab { 'ab' }; my token abb { 'abb' }; if ('abb' ~~ /<&ab> | <&abb> /) { say 'match:', $/; } else { say 'no match'; };
p6eval rakudo 4bf132: OUTPUT«match:ab␤»
08:41 meswami joined, meswami left
moritz miso2217: no 08:41
miso2217 moritz: clear end simple answer :-) 08:44
moritz: the spectest in S05 is wrong, should it be reported somewhere? ( /<ab> | <abb> / instead of /<&ab> | <&abb> /) 08:46
08:49 am0c left 08:56 woosley left
moritz miso2217: which file? 09:02
miso2217 moritz: github.com/perl6/roast/blob/master...t#L55-L127 09:17
09:22 bacek joined 09:23 PZt left
moritz miso2217: you're right, fixing... 09:28
niecza: say 'abcdefg' ~~ m:c(2)/.+/ 09:31
p6eval niecza v4-57-g9e6dc8b: OUTPUT«abcdefg␤»
09:32 birdwindupbird left
moritz phenny: tell sorear that I find it weird that niecza just ignores adverbs on regex - if there's one present that is not handled yet, IMHO it's better to die (example: m:c(2)/.../) 09:32
phenny moritz: I'll pass that on when sorear is around.
09:32 birdwindupbird joined
moritz there's more in that file which needs fixing... 09:33
dalek ast: 1c3c6f7 | moritz++ | S05-metasyntax/longest-alternative.t:
clean up longest-alternative.t

  * use lexical tokens, reported by miso2217++
  * stop relying on outdate :g in scalar context behavior
  * Grammar.parse(:action*s*)
09:36
09:55 awoodland joined 10:00 awoodland left 10:15 pernatiy left 10:17 IRSeekBot joined 10:22 IRSeekBot left 10:24 hanekomu left 10:36 mtk left 10:40 birdwindupbird left 10:41 birdwindupbird joined 10:44 mtk joined 10:52 pernatiy joined
dalek kudo: b63fa28 | petdance++ | src/ops/perl6.ops:
removed unused variables. Added some consts.
11:17
kudo: 5ac05ef | petdance++ | src/ops/perl6.ops:
consted pointers
tadzik o/ 11:22
wassup #perl6
moritz tests parrot patches for the rakudo segfaults
mberends tadzik: is your wrist okay? (I once had a painful inline-skate fall) 11:25
tadzik mberends: not really, I have this big, heavy white thing all over my hand :( 11:29
thy're not sure if it's a little bit broken or just heavily twisted
mberends owww, I wish you a healthy recovery 11:30
moritz too 11:31
tadzik thank you 11:32
11:39 colomon joined 11:40 _twitch joined 11:47 satyavvd left 11:52 Patterner left 11:56 Psyche^ joined, Psyche^ is now known as Patterner 11:59 MayDaniel joined 12:09 MayDaniel left
bbkr_ ah, joy of falls and broken bones :) 12:11
tadzik :P 12:14
takadonet morning all
tadzik hello takadonet
12:18 shi joined 12:20 PZt joined 12:37 bluescreen10 left 12:50 bluescreen10 joined 12:55 noganex_ joined 12:57 noganex left 13:00 Axius joined 13:01 Holy_Cow joined 13:10 pmurias joined 13:17 hudnix joined 13:36 coldhead left 13:40 wtw left 13:42 Alias_ joined 13:47 newguy joined
newguy anyone home? 13:47
13:48 Trashlord left
newguy i am new to perl6, will need some help 13:48
how
how can I add two numbers and print to the screen?
PerlJam rakudo: say 4 + 5; 13:49
p6eval rakudo 5ac05e: OUTPUT«9␤»
13:49 Trashlord joined
newguy I have downloaded and installed Rakudo on my Vista computer. How do I "compile" a .pl file? 13:49
moritz with perl6 yourfile.pl it is compiled and immediately executed 13:50
PerlJam newguy: perl6 file.pl
newguy > perl6 samtest.pl Could not find sub &samtest 13:51
I am using the perl6.exe black window to do this? 13:52
moritz nope
start a command window
and there type perl6 sametest.pl
newguy msdos?
moritz yes 13:53
or you can associate .pl files with the perl6 binary
then you can just double-click the file in the windows explorer
PerlJam newguy: What is your intent in learning Perl 6? Just for fun? 13:54
newguy to create a batch of text files changing variables in each one.
13:55 isBEKaml joined
sorear good * #perl6 13:56
phenny sorear: 09:32Z <moritz> tell sorear that I find it weird that niecza just ignores adverbs on regex - if there's one present that is not handled yet, IMHO it's better to die (example: m:c(2)/.../)
13:57 xinming_ joined
newguy OK, my results c:\Perl\bin>perl6 samtest.pl 'perl6' is not recognized as an internal or external command, operable program or batch file. 13:58
moritz since it probably didn't install into c:\Perl\bin you need to add the install location to %PATH% 13:59
or use the fully qualified path to the perl6 binary
14:00 xinming left
pmurias sorear: hi 14:00
sorear moritz: odd... I'll look into it. 14:01
moritz niecza: say 'abcdefg' ~~ m:c(2)/.+/ 14:02
p6eval niecza v4-57-g9e6dc8b: OUTPUT«abcdefg␤»
14:04 alester joined, rhr left 14:05 mkramer joined 14:07 _jaldhar left 14:12 Axius left 14:13 rhr joined, mkramer left
newguy Eureka! My first successful "Hello World" with rakudo on Vista! 14:14
moritz \o/
newguy thank you moritz!
dalek ecza: b210553 | pmurias++ | hoopl/ (5 files):
[hoopl] added a constant propagation pass which does nothing but
14:15
ecza: 535c736 | pmurias++ | hoopl/ConstProp.hs:
[hoopl] constant folding for bif_plus
pmurias sorear: say (2+1)+3 is now optimised to say 6 :)
dalek ecza: ad6f3a5 | pmurias++ | hoopl/ConstProp.hs:
[hoopl] constant registers are replaced with constants
ecza: 5615c21 | pmurias++ | hoopl/nam.hs:
[hoopl] debugging output is more descriptive
moritz newguy: you're welcome. Have fun hacking!
newguy msg moritz and I think this is how I PM in IRC..? 14:17
nope
pmurias /msg 14:18
at least in irssi
dalek ecza: a31f8f4 | pmurias++ | hoopl/ (2 files):
[hoopl] fix ghc warnings
14:19
isBEKaml pmurias: what's hoopl? 14:23
sorear pmurias: awesome 14:27
isBEKaml pmurias: nm, hackage.haskell.org/package/hoopl. rock on! 14:28
TimToady ooh, a newguy! 14:33
newguy me?
isBEKaml newguy: welcome to perl6land! :) 14:34
14:36 ymasory joined 14:37 ymasory_ left 14:41 Mowah left
sorear newguy: welcome from me too! 14:49
niecza: say "a b" ~~ m:s/a b/
p6eval niecza v4-62-ga31f8f4: OUTPUT«a b␤»
14:50 sftp joined, nadim joined
isBEKaml rakudo: say 42 14:57
p6eval rakudo 5ac05e: OUTPUT«42␤»
sorear checks out moritz' regex adverb stuff in rakudo 14:58
moritz it's a bit hacky 15:01
sorear niecza: sub foo($x) { constant %h = ( a => 1, b => (say 3; 2) ); %h{$x} }; say foo('a'); say foo('b') 15:06
p6eval niecza v4-62-ga31f8f4: OUTPUT«3␤1␤2␤»
15:11 M_o_C joined
sorear hrm 15:13
15:13 hercynium joined
sorear m/foo/ # rakudo: $_.match(/foo/) niecza: /foo/.ACCEPTS($_) 15:13
15:22 fhelmberger left 15:23 Rotwang joined 15:24 justatheory joined 15:29 risou joined 15:30 Rotwang left 15:31 Rotwang joined 15:33 Rotwang left, Rotwang joined 15:35 Rotwang left 15:37 Rotwang joined 15:42 stkowski joined 15:44 kaare_ left
dalek ecza: bdcd777 | sorear++ | src/niecza:
Parse regex modifiers and complain about NYI ones
15:47
sorear likewise, s/foo/bar/ # rakudo: $_ = $_.subst(/foo/, {bar}) niecza: _subst($_, /foo/, {bar}) 15:48
I guess the Rakudo way is probably more correct here? ( moritz TimToady )
15:53 isBEKaml left 16:01 Kharec joined
Kharec hi 16:01
is there a way to checkout the perl6 svn/git ?
I didn't find any link on perl6 website
16:01 Rotwang1 joined, Rotwang left
newguy what is the command to create a simple text file from Perl6? 16:03
sorear Kharec: depends on what you want to do. There are a lot of Perl 6 related repositories 16:05
PerlJam Kharec: perlpilot@github.com/rakudo/star.git
16:05 shi left
PerlJam Kharec: that's Rakudo Star, a perl 6 distribution. 16:05
Kharec sorear: I want to work on perl6 code.
sorear newguy: spew($name, $contents)
PerlJam Kharec: If you're looking to contribute, we have several Perl 6 implementations, each with their own repositories 16:06
Kharec on parrot, by example?
It's on parrot which I want to work.
PerlJam Kharec: github.com/rakudo/rakudo.git
sorear The only Perl 6 implementation on Parrot currently is Rakudo
PerlJam oops, that first URL apparently has my github id in it. Ignore that part :) 16:07
Kharec thanks 16:08
16:08 Kharec left
PerlJam bummer 16:09
I wish he would have stuck around.
Hopefully he'll clone the rakudo repo and then be back
16:11 ymasory_ joined, ncow joined 16:13 Rotwang1 left 16:14 birdwindupbird left 16:16 birdwindupbird joined, Rotwang joined
sorear TimToady: consider 「my $foo = "ab"; $foo ~~ m:rw/(.)(.)/; $1 = "cd"; $2 = "ef"; say $foo」. What should this do? How should it do it? 16:16
16:18 snarkyboojum left 16:19 snarkyboojum joined 16:22 pernatiy left
dalek ecza: 4b7a361 | pmurias++ | hoopl/ (2 files):
[hoopl] refactor the passes, add helper mapE and insnToGraph functions
16:23
pmurias how can optimalisations be tested?
all tests run correctly and specified tests run faster after they have been applied? 16:24
tadzik hmm, 2 new 6perlists today 16:29
16:30 Alias_ left 16:34 cggoebel joined, ggoebel left
dalek ecza: 79da9b6 | pmurias++ | hoopl/ (4 files):
[hoopl] constant folding for bif_minus and bif_divide
16:38
16:41 M_o_C left
pmurias sorear: if you look at the commit you'll see that adding support for a new opcode require a lot of code, any ideas how that could be reduced 16:42
?
16:43 birdwindupbird left
newguy having problem creating new file from perl. What's the command? Do you use file handle? 16:45
tadzik use open() 16:46
newguy even if the file does not exist?
takadonet my $ fh = open($file,:w); 16:47
tadzik like in C :) 16:48
16:52 MayDaniel joined 16:54 Chillance joined 16:57 masak joined
masak oh hai zebras! 16:57
an hour and a few minutes remain till the #cqrs-perl6 mini-course. open invitation; come as you are.
sorear hello mzsak.
masak hi zorear. 16:58
sorear I hear you think I'm famous.
pmurias masak: will it be logged?
tadzik masak: o/
masak sorear: yes, and I think you're only getting started.
pmurias: yes.
masak prepares a bit of course material 16:59
16:59 pmurias left
sorear attempts to find out what CQRS is 17:00
masak let me know how that goes :) 17:01
moritz sorear: /join #/w 16 17:02
sorry
sorear: /join #cqrs-perl6 and find out
masak sorear: what moritz said. class starts in an hour, lasts for two, and is free :) 17:03
moritz newguy: my $file = open($filename, :w); $file.say("new line"); $file.close; 17:08
masak moritz++
moritz newguy: the .close is important, otherwise the file might not get written at all
(which is a bug in rakudo, but one that's not easily fixed)
masak there are no guarantees for timely DESTROY, or even that DESTROY is called at all. 17:09
moritz not a good language for world destruction :-)
newguy moritz: so i need to define variable $file above that line right? 17:10
moritz newguy: no, just $filename
or just use a literal string there 17:11
sorear Why isn't the hash sigil #?
newguy moritz: ok will try now
moritz the 'my' already declares the $file variable
sorear: because that's for comments :-)
masak my $file = open('README', :w);
moritz NOOO
don't override the README file! :-)
sorear I've seen other characters besides # used for comments
masak no-one reads it anyway :P
newguy moritz: so what would be the file name that is created in my directory?
moritz newguy: if you have my $filename = 'output.txt'; the the file will be called output.txt 17:12
sorear #, %, *, \, ", ', ;, : I think are all the end-of-line comment chars I've seen
moritz sorear: I think the mapping from symbol to meaning is primarily historical, and less bound to the name of the symbol 17:14
17:14 MayDaniel left
moritz .u zip 17:14
phenny U+A290 YI SYLLABLE ZIP (ꊐ)
moritz we could use that instead of infix:<Z>
people would hate us :-)
I mean, more than they do now :-)
tadzik I just imagined like 10 yrs ago people thought "we can use » instead of >>... but no, people will hate us" :) 17:15
masak 10 yrs later... they do :) 17:16
newguy moritz: It works... now i need to learn how to manipulate text
masak newguy: that's the fun part! :) 17:17
newguy: Perl is very good at manipulating text.
newguy moritz: I am network administrator. I will be using this to create script files that get applied to routers on a WAN 17:18
sorear tadzik: ~10 years ago Perl 6 was much more APLy
tadzik sorear: APLy? 17:20
masak really?
we've gotten *more* metaops since then.
I'd say 10 years ago, Perl 6 was a lot more like Perl 5. 17:24
17:26 mberends left, mberends joined
sorear AIUI, early Perl 6 relied on Unicode operators for a lot of stuff 17:28
masak oh, that's what you meant. yes. 17:29
there was the yen symbol for zipping, for example.
17:29 ymasory_ left
masak but you could also use a 'Y', I think. 17:29
sorear how would that interact with unspace? 17:30
17:30 cdarroch joined, cdarroch left, cdarroch joined
sorear aren't the yen and backslash encoded ambiguously in a lot of Japanese encodigng? 17:30
masak not sure how that'd work out.
17:31 newguy left
PerlJam masak: 10 years ago Perl 6 was a lot more like Perl 5 .... along which axes? ;) 17:33
masak PerlJam: syntax-wise, for example.
PerlJam: also the terminology was a lot more alike. 17:34
PerlJam: look at E03, which ends by stating how little you need to change for it to be valid Perl 6.
might've been E02, I don't remember.
PerlJam Hmm.
masak it's something like "96% similar!"
PerlJam I think I agree. 17:35
aside from the Regex revamp, Perl 6 was a lot like Perl 5 back then
masak ...which makes sense, of course.
PerlJam and if you compare Perl 6 then with Perl 5 *now* they were even *more* similar 17:36
moritz modulo sigl invariance
masak :)
and parens.
17:36 kfo joined
masak 24 minutes to #cqrs-perl6. feel free to drop in. 17:37
PerlJam So ... Perl 5 is slowly evolving into Perl 6, it's just 10-20 years behind the state-of-the-art
;-)
17:38 f00li5h left 17:39 kfo_ left
masak PerlJam: big words from a language whose most featureful implementation is 1e2-1e4 slower than Perl 5 :) 17:41
PerlJam That's just an implementation detail.
:)
masak ...they cheerfully declared, and set of on their long road to obscurity and obsolesence... :) 17:43
masak seems to be channeling the Grinch today
PerlJam It sounded slightly Tolkienesque though 17:46
17:48 f00li5h joined 17:55 patrickas joined
patrickas o/ Zs 17:55
can someone close RT #86764 if no one obejects to it?
moritz takes a look 17:57
rakudo: say (1, 2, 3).Array.perl 17:58
p6eval rakudo 5ac05e: OUTPUT«[1, 2, 3]␤»
moritz patrickas: do we have a test?
patrickas I think we have three :-)
moritz great 17:59
patrickas github.com/perl6/roast/commit/3977...eb8adaf845
but I keep forgetting the thingy that triggers a mail to RT when I add tests :(
moritz the mailer might be sleeping 18:00
patrickas: your commit message should have triggered it
patrickas oh ok 18:01
18:02 skyheights joined 18:06 impious joined, impious left, _twitch left 18:25 benabik joined, pernatiy joined, hudnix left 18:30 cxreg left 18:31 newguy joined
newguy when output to a file... how do you go to new line? This does not work.. my $file = open($filename, :w); $file.say("new line1/nline2"); $file.close; 18:32
masak newguy: backslash.
newguy masak: like this? $file.say("new line1\nline2") 18:33
18:33 benabik left
masak newguy: exactly. 18:33
newguy masak: does not work.. output is "new line1 line2 " all on 1 line 18:34
18:35 MayDaniel joined
tadzik windows line endings? 18:37
try \r\n or something
PerlJam tadzik: \n is still a logical newline I think, so it should work no matter the OS 18:40
tadzik dunno 18:41
newguy thanks. this works $file.say("new line1\r\nline2"); $file.close
PerlJam interesting.
newguy im using raduko on vista
sorear rakudo 18:42
newguy oops.. I am newguy :P
patrickas using rakudo, \n inserts char 0x0a on windows 7 too 18:43
masak that's a rakudobug.
please submit it. 18:44
18:47 f00li5h left
flussence
.oO( what if you *need* a \n? )
18:56
masak flussence: chr(10), perhaps. 18:58
flussence oh, I always forget the obvious stuff :)
19:02 f00li5h joined 19:03 mberends left 19:05 mberends joined 19:09 orphu joined 19:11 patrickas left
newguy ok im signing out for the day. Today i wrote hello world and output blah to a new text file! 19:18
masak newguy++
o/
newguy and 19:19
masek: yes i will be using "++" next to increment numbers in an array to each of my text file
19:20 Rotwang left
masak :) 19:20
19:29 envi left 19:37 isBEKaml joined 19:42 orphu left, [particle] left 19:44 [particle] joined 19:47 MayDaniel left 19:50 f00li5h left 19:55 birdwindupbird joined, jaffa4 joined 19:56 birdwindupbird left 19:57 birdwindupbird joined 19:59 cognominal left, jevin left 20:00 [hercynium] joined 20:01 cognominal joined, f00li5h joined 20:02 hercynium left, [hercynium] is now known as hercynium 20:05 s1n left, Chillance left 20:07 f00li5h left 20:08 f00li5h joined 20:15 Tedd1 left 20:16 rindolf joined
rindolf Hi all. 20:16
masak hi rindolf.
rindolf masak: what's up?
masak giving a course :)
rindolf: and you?
rindolf masak: checking Twitter.
masak: worked on www.shlomifish.org/philosophy/foss-...version-3/ today (Please don't print.) 20:17
masak :)
rindolf masak: and I published www.shlomifish.org/humour/human-hac...-guide-v2/ 20:18
masak: which course are you giving? 20:19
masak rindolf: #cqrs-perl6.
rindolf: it's almost over. been at it for 2.5 hours now.
rindolf masak: what is CQRS? 20:20
20:22 bluescreen10 left
masak rindolf: that's what I'm trying to convey in the course :) 20:22
rindolf: you can backlog that channel if you like.
rindolf masak: :-S
masak rindolf: it's *because* it's non-trivial to explain that I'm holding the course :) 20:23
moritz rindolf: it's basically an architecture style where you separate commands to a backend from their responsens 20:25
rindolf moritz: ah.
20:27 Mowah joined 20:29 jaffa4 left 20:35 [hercynium] joined, [hercynium] left, [hercynium] joined, bluescreen10 joined 20:37 hercynium left, [hercynium] is now known as hercynium 20:39 pmurias joined 20:42 birdwindupbird left 20:44 Tedd1 joined 20:47 mtk left, f00li5h left
jnthn phew, home :) 20:57
masak jnthn: welcome back! \o/
jnthn :)
rindolf jnthn: hi.
jnthn: what's up?
tadzik jnthn: o/ 20:58
jnthn rindolf: Just back from a trip to teach a couple of classes. So I'm tired, but all is well. :)
rindolf jnthn: ah, OK.
21:00 cognominal left, cognominal joined 21:03 Holy_Cow left, f00li5h joined 21:08 f00li5h left
sorear hello jnthn 21:09
jnthn o/ sorear
21:12 hercynium left 21:15 f00li5h joined 21:20 isBEKaml left 21:24 f00li5h left 21:26 skyheights left, f00li5h joined, kjeldahl_ left 21:34 jevin joined 21:46 SHODAN left 21:48 ruben1194navarro joined
ruben1194navarro hey anyone knows if pugs is faster than rakudo 21:49
pmurias why do you ask?
masak ruben1194navarro: I think it might be in some cases. but speed isn't everything.
ruben1194navarro: Rakudo is more featureful in almost all respects nowadays. 21:50
21:50 MayDaniel joined
masak ruben1194navarro: if you want speed more than features, have a look at Niecza. 21:50
ruben1194navarro ooh thanks ill check it out
masak as usual, resources over at perl6.org 21:52
21:53 ymasory left 21:54 f00li5h left 22:02 bacek left
masak 'night, #perl6. 22:06
22:06 masak left 22:08 alester left 22:10 ruben1194navarro left 22:11 Mowah left 22:16 bacek joined 22:24 rindolf left 22:40 whiteknight joined 23:05 MayDaniel left 23:07 JodaZ_ is now known as JodaZ 23:23 ymasory joined 23:27 Vlavv left, coldhead joined, Vlavv joined 23:38 pmurias left 23:41 sftp left 23:55 sftp joined 23:57 risou left