perl6-projects.org/ | nopaste: sial.org/pbot/perl6 | evalbot: 'perl6: say 3;' | irclog: irc.pugscode.org/
Set by mncharity on 25 March 2009.
Casan btw.. the property feature of C# is maybe already supported in another way through roles, say you could apply a does something to a $.attribute is rw, and in there write something similar to a property method that supports the encapsulation. just an idea. 00:02
skids could be. 00:03
Casan roles is an intriguing concept... pictured it once as a very dynamic include system. 00:05
skids pugs: my $b; my $a = Proxy.new(:for($b), :FETCH{"OH".say}, :STORE{"HAI".say}); $a = 1; 00:09
p6eval pugs: ( no output )
skids pugs: my $b; my $a is Proxy(:for($b), :FETCH{"OH".say}, :STORE{"HAI".say}); $a = 1; 00:10
p6eval pugs: OUTPUT«*** ␤ Unexpected ");"␤ expecting term postfix or operator␤ at /tmp/ebeb47mBZv line 1, column 68␤»
00:11 M_o_C left
skids pugs: my $b; my $a is Proxy(:for($b), :FETCH{"OH".say}, :STORE{"HAI".say},); $a = 1; 00:11
p6eval pugs: OUTPUT«*** ␤ Unexpected ");"␤ expecting "," or operator␤ at /tmp/tHvXOYNtwu line 1, column 69␤»
00:43 sitaram joined 00:51 sitaram left 01:06 sitaram joined 01:11 frew|work joined 01:21 jferrero left 01:33 LylePerl left 01:38 LylePerl joined 01:48 LylePerl left 01:49 cspencer joined 01:52 agentzh left, eternaleye joined 02:03 agentzh joined 02:06 Casan left 02:24 nbrown left 03:10 meppuru joined 03:26 meppl left 03:45 alester joined 03:47 orafu left, orafu joined 04:05 SamB left 04:14 iblechbot joined 04:16 justatheory left, nihiliad left 04:21 Tene joined 04:23 redicaps joined 04:30 cspencer left 04:33 Tene_ left 04:38 jaldhar joined
jaldhar quick question. How do you split up a string into unicode codepoints? $string.comb gives back characters not codepoints 04:41
literal .ord for "foo".split ? 04:48
perl6: print .ord for "foo".split 04:49
p6eval elf 26187: OUTPUT«Use of uninitialized value in concatenation (.) or string at ./elf_h line 5105.␤syntax error at (eval 125) line 4, near "(->ord"␤ at ./elf_h line 5881␤»
..rakudo 679e48: OUTPUT«too few arguments passed (1) - 4 params expected␤current instr.: 'parrot;Any;split' pc 34525 (src/gen_setting.pir:3295)␤»
..pugs: OUTPUT«102»
literal oh well 04:50
jaldhar ok. I Will try again the next time I recompile rakudo. 04:55
04:55 jaldhar left 04:59 alester left 05:01 frew|work left 05:11 iblechbot left
jnthn likes airports with free wifi 05:12
05:23 skids left 05:26 mberends joined
mberends jnthn: and that airport would be ... ? 05:26
lambdabot mberends: You have 1 new message. '/msg lambdabot @messages' to read it.
mberends @massage 05:27
lambdabot Casan said 6h 7m 19s ago: regarding p6 mutators, C# properties: afaics the C# properties offer the encapsulation by allowing a private attribute in the class to be given a value from the class using
it through $classinstance.attritbute=value; and it will go through a mutator process before the value is stored. the example provided at xrl.us/gnxp is just using the mutator concept also
used by java where you have to specify eg a set_Attribute() and there
mberends @tell Casan oh yes, I see, and also saw the lvalue sub discussion :) 05:29
lambdabot Consider it noted.
05:36 dukeleto joined, FurnaceBoy left
jnthn mberends: Vienna. 05:39
mberends :)
jnthn mberends: Though my other local airport - Bratislava - has it too. :-)
mberends enjoy :) and happy landings 05:40
jnthn -> coffeeeeee 05:48
06:01 redicaps left 06:19 simcop2387 left 07:05 [particle] left 07:06 DemoFreak joined 07:12 [particle] joined 07:16 xinming_ joined 07:35 xinming left 07:46 icwiener joined 07:49 masak joined
masak greetings, flip-camels 07:51
mberends masak: good @greeting[day-part::before-noon] 07:59
masak mberends: oh hai. 08:01
today is the day I start writing my slides in earnest.
that means less of the usual hacking. oh well.
mberends the tuits do get rounder as deadlines approach :) 08:02
masak 哈哈
mberends yeah, whatever
masak dives into slidemaking 08:03
mberends: have you tried pun? 08:06
mberends I read the book, so I wasn't in a great hurry to see the movie. sry ;) 08:07
I grokked it tho'
masak ah, but the three-part play is awesome. 08:08
mberends: it contains a bug.
08:08 barney joined
mberends easter buggy? 08:08
masak or rather, Rakudo does.
or maybe Parrot.
yah, probably Parrot.
it reads a line too much. :/
mberends will see the matinee performance
masak hm, maybe I should just find the appropriate RT ticket and prioritize it... 08:09
mberends yah I noes parrot reds 2 much.
masak does so
it sucks.
how are we supposed to do precision engineering under such circumstances? :P
mberends Parrot appends a \n after a slurp, I was going to RT it and forgot, because I had hoped to include a proof and test. 08:10
just chomp it 08:11
masak that would be a fine solution (except it sucks to have to adapt code to bugs), but here I'm reading line-by-line.
mberends there are 4 places where Parrot slurps, making the bug a bit harder to find.
masak that's part of the nice thing about -n and -p 08:12
08:13 samlh joined
mberends basically if the last line in a file does _not_ end in \n, Parrot adds one for you, trying to be consistent presumably. 08:13
masak mm. 08:14
mberends and you get an extra line for free :/
masak parrot--
mberends mberends-- # not flagging this earlier 08:15
masak well, it's in RT since many months back: rt.perl.org/rt3/Ticket/Display.html?id=60142 08:16
08:17 wolv- joined
masak rakudo: class A; use Test 08:19
p6eval rakudo 679e48: ( no output )
masak that one Null-PMCs on my box.
rakudo: class A::C {}; A::B.foo 08:20
p6eval rakudo 679e48: OUTPUT«Null PMC access in invoke()␤current instr.: '_block14' pc 60 (EVAL_20:41)␤»
masak submits rakudobug
mberends masak, these are not slides ;) 08:21
masak erm.
research. :)
(actually they're offline finds since yesterday.) 08:22
mberends that's allowed :) 08:23
masak phew. :) 08:24
masak wipes brow
08:30 wolv left 08:37 Woody4286 left 08:57 ejs joined 09:02 szabgab joined 09:10 ludan joined 09:20 agentzh left 09:25 sri_kraih joined 09:26 framp joined, ludan left, framp left 09:27 iblechbot joined 09:30 agentzh joined 09:31 M_o_C joined 09:33 agentzh left 09:42 grwi joined 09:52 agentzh joined 09:57 barney left 10:02 masak left 10:06 sitaram left 10:22 Woody4286 joined 11:01 masak joined 11:03 DemoFreak left, SamB joined
masak proto keeps leaving those make.log files in all my repos... 11:06
I wish it'd stop doing that.
mberends CAN HAZ FLIP LOBSTR o/ 11:13
masak \o/ 11:14
11:14 goksie joined 11:15 Woody4286 left
masak mberends: oh, and I just successfully worked around the one-line-too-many parrotbug in pun. 11:15
(yeah, yeah. slides. :) )
mberends :) 11:16
and well done :)
masak 谢谢 11:17
masak uses cat(1) for its original purpose
mberends and after the slides, suggestion: for the hordes who will want their own Lobster, include a PERL6LIB= somewhere in the README. 11:19
masak the README of Web.pm? aye, it's way behind the times.
mberends aye
masak "after the slides" would be sometime tomorrow, by the current time plan.
mberends :) 11:20
masak perl6n and perl6p now accept input files after the script, too. 11:25
hacking in bash hurts. :/
11:28 grwi left, eduard joined
masak but the scripts are already quite useful to me. I doogfood them a lot. 11:28
11:31 payload joined, eduard is now known as DHGE 11:35 zamolxes joined
ingy au 11:44
11:49 ejs1 joined
wayland76 The time is 9:46 in au 11:49
11:50 ejs1 left 11:54 payload left
masak Au is also the chemical symbol for gold. 11:55
wayland76 Yes. "We've golden soil, and wealth for toil..." (a quote from our national anthem) :) 11:56
masak maybe not a coincidence. 11:58
11:58 ejs left
wayland76 Maybe not, but I suspect it is :) 11:59
Or rather, was providential, rather than with any human intent :)
masak good enough for me. :) 12:00
12:23 Woody4286 joined 12:39 masak left, masak joined 12:48 goksie left 12:53 DHGE left 13:03 sitaram joined 13:10 ludan joined 13:11 masak left 13:18 LylePerl joined 13:23 masak joined 13:41 barney joined 13:48 skids joined 13:51 Tene_ joined, jan_ left, frobnitz left 13:52 frobnitz joined 13:56 simcop2387 joined 14:00 lucs left, szbalint left, scrottie left, yves left, PerlJam left, pmichaud left, shachaf left, mj41 left, Woody2143 left, allbery_b left, shachaf joined, szbalint joined, scrottie joined, allbery_b joined 14:04 Tene left 14:14 M_o_C left 14:15 M_o_C joined 14:17 ludan left 14:30 amoc joined 14:36 ludan joined 14:39 PacoLinux joined 14:48 ingy left 14:49 ingy joined 15:01 Trey left, Trey joined 15:03 cognominal joined 15:08 rafl_ joined 15:09 rafl left 15:12 nihiliad joined
LylePerl I've finished the first part of my "helping with Perl 6 Development" guide 15:12
www.perlfoundation.org/perl6/index....evelopment
masak reads
LylePerl I've managed to document everything I've learned so far 15:13
masak amazing.
LylePerl Now I'm (finally) up to the bit of writing spec for a new feature (chdir)
masak LylePerl++ 15:14
LylePerl And I'm a bit stuck :/
masak just ask.
15:14 [particle]1 is now known as [particle]-
masak LylePerl: a nit: Pugs is usually written like a normal word, even though it's technically an acronym. 15:14
LylePerl masak: ok, I'll fix that next time I update :) 15:15
masak on the other hand, SVN is usually written with all-caps, unless you mean the CLI command.
15:15 sri_kraih_ joined
LylePerl Damnd conventions :) 15:16
masak indeed.
LylePerl I've read through s32 IO
There is section IO::DirectoryNode that has rmdir 15:17
So I'm guessing chdir would go there?
I'm really not sure what I'm doing :s 15:18
masak I think you're right.
LylePerl So do I make changes to the file then upload by svn? 15:19
masak aye.
LylePerl Do I need to get commit access?
Also TimToady was saying about a $CD object...
masak you need a Pugs commitbit.
15:19 pmurias joined
[particle]- i can give you one 15:20
LylePerl particle: Thanks
[particle]- all i need is your email address and preferred svn username
LylePerl particle: I am new to svn though, it's version controlled so I wont be able to accidentally break anything will I?? 15:21
masak LylePerl: my suggestion is to write the smallest thing that works. if we need a $CD object, one will surely be added later. what's important now is that the chdir function is added.
[particle]- no, don't worry
masak LylePerl: trust the anarchy.
[particle]- we have a "forgiveness is better than permission" model
LylePerl :)
masak if a bad commit comes in, someone will revert it.
15:21 jan_ joined
masak that's the way it works. :) 15:21
LylePerl ok, my email [email@hidden.address] and user cosmicnet 15:22
[particle]- invite sent to that email address.
LylePerl thanks
masak [particle]-: oh hai, by the way. is there a time plan for some of the lower-hanging flags to perl6? 15:23
[particle]- it may take a few minutes to arrive, depending on server load
masak [particle]-: you might have seen what I did to fake -n and -p for the time being.
[particle]- masak: i've just finished up a consulting gig that should restore a healthy quantity of free time in my life again.
masak sounds promising.
[particle]- ...which i will devote to S19. 15:24
15:24 amoc left
masak \o/ 15:24
[particle]- i haven't seen the -n/-p work
but, i'll review it soon
masak github.com/masak/pun/
15:26 exodist joined, frew|work joined 15:27 ludan left 15:28 barney left 15:29 pmichaud joined
[particle]- thanks! 15:29
15:30 ludan joined 15:34 sri_kraih left 15:45 riffraff joined 15:48 rindolf joined
rindolf Hi all. 15:48
15:49 PZt joined
diakopter hi 15:49
etoofewops 15:51
masak most of the ops are in transit. 15:52
15:52 ChanServ sets mode: +o masak, ChanServ sets mode: +o [particle]-, ChanServ sets mode: +o pmichaud
masak :) 15:53
15:53 ChanServ sets mode: +o Tene_
diakopter ok better 15:53
masak thanks. I'm one of those who log out, so it won't stick, unfortunately.
but I appreciate the thought.
diakopter k 15:54
15:55 Psyche^ joined
pmichaud I'm about to log out/in again, as I need to reset my session. 15:58
15:59 lucs joined 16:02 zamolxes left 16:03 ludan left
pugs_svn r26188 | cosmicnet++ | added spec for chdir 16:04
[particle]- cosmicnet++ 16:05
masak LylePerl++ 16:07
16:07 Patterner left, Psyche^ is now known as Patterner
pmichaud bbiab -- resetting irssi session 16:09
masak LylePerl: might I suggest that it returns some informative value of True, such as a Str with the name of the directory?
16:09 pmichaud left 16:10 pmichaud joined, masak sets mode: +o pmichaud
masak hm, I see now that rmdir is specced to return true on success... 16:10
16:17 icwiener_ joined
pugs_svn r26189 | cosmicnet++ | added spec for chdir 16:18
masak LylePerl: or you could write "touched 'last-modified' and added self as author" as the commit summary. :) 16:19
LylePerl cool changes appear here 16:20
masak: your write I probably should have wrote that, can I edit it? 16:21
masak no need. :)
just keep it in mind till next time.
LylePerl: I reviewed both commits, and the look fine.
LylePerl I wasn't sure if i should update the document version number or not?
masak I think so, whenever you introduce something new. 16:22
but I also think that it doesn't matter very much. I've never understood why we keep with those version numbers.
LylePerl masak: should I change it now? (and earlier I meant your right...) 16:23
masak perhaps the one instance when it might be important is when some detail actually changes.
LylePerl: you could, if you like.
16:24 amoc joined
masak going for a run. will be back tonight. 16:26
16:26 masak left
[particle]- that's a long run! it's 0927 here 16:27
16:32 icwiener left
LylePerl Right, now to figure out how to write spec tests 16:34
This might sound a bit dumb 16:38
But I'm assuming there are Perl 5 spec tests for chdir?
Where are they?
[particle]- do you have ack installed? 16:39
cpan App::Ack
also, make sure you have the pugs t/ directory checked out 16:40
then ack chdir t/
ack is a grep replacement, written in perl, especially useful when working in working copies 16:41
LylePerl hmmm can't find an ActivePerl Ack package, I'll try to build 16:42
[particle]- ppm install App::Ack 16:43
it's there
but, it's an easy build from cpan
LylePerl That's odd it's not coming up for me. I'm on 5.10
I'm showing plain 'ack' 16:44
[particle]- nopaste.snit.ch/16260 16:47
dalek kudo: 2c13d6c | pmichaud++ | docs/spectest-progress.csv:
spectest-progress.csv update: 359 files, 10298 passing, 5 failing

   S32-hash/reverse.t aborted 5 test(s)
16:49
LylePerl particle: I see. I was using the ppm GUI that wan't showing it. App::Ack is part of the ppm ack 16:50
16:53 DemoFreak joined
[particle]- aha. i've never used the gui 16:53
LylePerl Thanks that's brought up 3 files that try to use chdir
Not as test though... I'll investigate and add that to my guide :)
[particle]- if they're under t/spec, then they're in spec tests 16:54
if they're outside t/spec, they're old pugs tests that should be converted
LylePerl there in t/builtins
I see perl 5 16:55
so there are no chdir tests
as chdir is part of s32/io 16:56
do I create the folder t/spec/S32-io? 16:57
There is already a t/spec/S16-io, but chdir isn't part of s16... 16:58
Would that be correct?
[particle]- sure 17:00
17:17 Woody2143 joined 17:24 sitaram left, kane_ left 17:31 maerzhase joined 17:34 [particle]- left, [particle]1 joined 17:36 [particle]1 is now known as [particle]- 17:46 kidd left 17:48 japhb left 17:49 Tene joined 17:52 cspencer joined 17:54 szabgab left 17:56 frew|work left 18:00 Tene_ left 18:03 cspencer left 18:06 mberends left 18:16 LylePerl left 18:26 LylePerl joined 18:27 LylePerl left 18:40 dduncan joined, dduncan left 18:47 japhb joined 18:56 minazo joined 19:00 kidd joined
TimToady /id 19:08
not to mention /ego 19:09
[particle]- i was just thinking how glad i am that you're now in immediate gratification mode 19:10
TimToady use Christmas :asap; 19:12
lunch &
19:23 icwiener-_- joined 19:27 smtms left 19:31 payload joined 19:33 ejs joined 19:34 cspencer joined 19:36 LylePerl joined 19:38 payload left 19:39 payload joined 19:40 icwiener_ left 19:42 masak joined, cspencer left 19:43 alester joined 19:46 payload left
LylePerl hi masak, good run? 19:55
masak LylePerl: aye, thank you.
ran for almost an hour.
my body feels very satisfied afterwards. 19:56
LylePerl good for you :)
masak I'm currently trying not to procrastinate writing my slides too much. 19:57
19:57 fridim_ left 19:58 fridim_ joined
LylePerl been looking at the perl5 tests for chdir 19:58
It uses File::Spec::Functions
masak ok. 19:59
LylePerl I don't fully understand the state on Perl 6 modules
So there is no central PAN? 20:00
Some Pugs, others in Rakudo, other on Git???
masak LylePerl: that's right. things are very much spread out and in flux. 20:02
LylePerl That's a pain :/ Maybe a page on the wiki where things can be listed? At least until a new kind of cpan is formed... 20:03
masak LylePerl: to be honest, I don't count the things in Pugs, since they are probably mostly outdated and haven't been tested in Rakudo.
LylePerl: perl6-examples on github was started partly to port things over from the Pugs repo. 20:04
LylePerl: Rakudo holds exactly one module: Test.pm. people keep saying that it shouldn't be a module, that it should be integrated into the setting, etc. that keeps not happening. :) 20:05
20:05 payload joined, ejs left
LylePerl masak: I came across perl6-examples at one point, I'll have to look again in more detail 20:05
masak it also has new modules not from Pugs, thanks to mberends++ 20:06
pmichaud I'm also hoping to get some clarity in modules at NPW
LylePerl wish I was going to NPW :( 20:07
20:07 M_o_C left
masak pmichaud: I will re-read the specs looking for things on modules in time for NPW. 20:07
pmichaud masak: that would be great. Many of the specs are purposefully vague, leaving it to the implementors and module writers to work something out. 20:08
TimToady++ will (rightly) point out that we also need to deal with versioned modules; my approach has been to kick that can down the road a bit further.
masak pmichaud: me too. none of my projects are versioned. :) 20:09
pmichaud I'm wondering if rakudo should include any modules in its releases (more)
and if so, should any of those modules appear in git checkouts
perhaps we need a "make lib" or "make stdmodules" target to check them out of whatever repo is appropriate. 20:10
masak pmichaud: I've always had the impression that implementations only need ship with the modules necessary for bootstrapping connection with a CPAN equivalent. 20:11
pmichaud sure, but there's also a question of expectations -- what will someone expect upon downloading Rakudo ?
at least until we have specific distributions available as .rpm or .deb or whatever
LylePerl Some users (like windows ones) will expect everything to be included from the first install 20:13
masak well. what _will_ someone expect upon downloading Rakudo?
pmichaud that's part of what I hope to explore at NPW :-)
masak which modules are we talking about, exactly?
pmichaud a good question would be things like File::Spec
masak are any of them written yet? :)
LylePerl I've come across plenty of win32 hosting companies that struggle to use ppm
pmichaud and there are some in pugs ext/ directory 20:14
which might be good candidates to update to recent Perl 6 implementations
masak hm. I'm afraid I will have to pull the plug to get some slide-making done. the intertubes are too distracting.
will backlog.
pmichaud okay, see you at NPW, then :-) 20:15
(tomorrow is a travel day for me)
masak pmichaud: yes. looking forward to it.
pmichaud: have a pleasant journey.
20:16 iblechbot left, masak left
LylePerl Is there a Rakudo version of File::Spec? 20:18
pmichaud not yet.... but there really shouldn't be a "Rakudo version" or a "Pugs version". There should just be a File::Spec 20:19
[particle]- and i hope the interface is much more like class::path than file::spec 20:20
maybe named IO::Path 20:21
LylePerl for chdir.t I'm thinking I'll just extract the bits I need from the File::Spec at Pugs, rather than depend on the module... Would you agree? 20:23
pmichaud seems reasonable.
If it turns out to be unreasonable, we'll fix it then. :-)
LylePerl ok :) 20:24
Would anyone mind if I created a page to list the current Perl 6 modules and how to get them? I don't want to step on any toes... 20:32
pmichaud Sounds like a terrific idea. 20:33
I have a couple of place to link to it, as well. 20:34
There's also perl6-projects.org
[particle]- perl6-examples
pmichaud well, I think of perl6-examples as being more example programs than actual modules
[particle]- er, if perl6-examples is the standard repo for modules, the docs may fit best there 20:35
but, perl6-projects.org seems a good fit as well
pmichaud I'm not sure it'll be the standard repo for modules. I'm thinking of creating an initial standard repo under github/perl6
LylePerl pmichaud: I think that'd be a great idea. Having things all over the place is a real pain for any new developers 20:36
pmichaud yes, but like you, I also don't want to step on any toes. :-)
on the other hand, perhaps "forgiveness" is the better philosophy here. And JFDI. 20:37
LylePerl I'd say JDI (I don't like to swear) :p 20:39
pmichaud I think JDI might infringe on a trademark :-)
20:42 iblechbot joined
[particle]- LylePerl: the f is silent 20:45
20:58 icwiener-_- left 21:09 japhb left 21:10 japhb joined 21:15 Casan joined 21:16 payload left
pmichaud www.perlfoundation.org/perl6/index....on_targets 21:18
21:20 payload joined 21:21 amoc left 21:23 Limbic_Region joined 21:30 wknight8111 joined 21:43 nihiliad left 21:44 maerzhase left
skids pmichaud: if you run out of "language targets" early, I have put some more stuff on www.perlfoundation.org/perl6/index....erl6_tasks probably since last you looked. 21:45
21:46 fridim_ left
pmichaud maybe we link to perl6_tasks from my list 21:46
skids But mostly, best of luck!
21:54 alester left 21:59 liufeng joined
liufeng ?eval [+] 1..100 22:00
[particle]- rakudo: say [+] 1..100 22:02
p6eval rakudo 2c13d6: OUTPUT«5050␤»
22:09 iblechbot left 22:15 liufeng left, skids left, ludan joined 22:32 ludan left 22:34 riffraff left 22:46 hercynium joined 22:47 payload left 22:48 payload joined 23:06 ruoso joined
ruoso Hello 23:07
23:08 davidad left 23:10 DemoFreak left 23:29 exodist left 23:30 davidad joined, cspencer joined 23:39 wknight8111 left
pmurias ruoso: hi 23:48
ruoso hi pmurias
ruoso working a lot lately 23:49
almost no time to be around here
pmurias the refactored smop is starting to run some code, "1;" with --empty-setting 23:51
ruoso cool
pmurias shower& 23:52
23:56 brunov joined 23:59 bacek_ joined