Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2009-01-23

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:06 pugs_svn r25004 | lwall++ | [STD] implement unary associativity as specced, mtnviewmark++
00:42 Exodist joined #perl6
00:53 sjn joined #perl6
01:03 pugs_svn r25005 | lwall++ | [STD] fake-infix adverbs interact badly with last fix
01:25 Sepheebear joined #perl6
01:28 Sepheebear joined #perl6
02:00 jhuni joined #perl6
02:02 tak11 joined #perl6
02:04 alester joined #perl6
02:08 [particle] joined #perl6
02:46 kanru joined #perl6
02:58 pugs_svn r25006 | putter++ | [elfparse] Update to spec: the old <?foo> is now spelled <.foo>.  Also /'a'/.
03:20 [particle]1 joined #perl6
03:21 pugs_svn r25007 | putter++ | [elfparse] Uncommented a bit more of std.pm.  Fixed <before> argument passing.
04:14 frew joined #perl6
04:16 frew Hey all
04:16 frew I was looking into helping out with some stuff
04:16 frew and I wanted to make sure my test was right because everything seems to fail it
04:17 frew Specifically in TASKS for S29 it says that positional args should work for lots of builtins
04:17 frew but they don
04:17 frew 't
04:20 [particle] joined #perl6
04:37 jhuni joined #perl6
05:38 justatheory joined #perl6
05:44 hikozaemon joined #perl6
05:45 hikozaemon left #perl6
06:17 mtnviewmark joined #perl6
06:18 mtnviewmark 'allo all!
06:18 mtnviewmark anyone here have a sense of the current thinking about various quote forms?
06:18 mtnviewmark there seem to be, well, alot of them that are just aliases
06:19 mtnviewmark like rx/.../ m/.../  and /.../  I think are all the same thing!
06:20 mtnviewmark and I know TIMTOWTDI -- but just wondering -- since there is (surprise) difference between S02 and STD.pm
06:27 mberends joined #perl6
06:29 meppl joined #perl6
06:33 mberends mtnviewmark, the people here can not to be trusted to answer that last question very well. the more knowledgeable ones here tend to forward that sort of question to perl6-language (p6l) but I don't know what happens there...
06:33 mtnviewmark ah - okay, well.. i'll write it up and forward there then
06:35 mberends I would put my $0.02 on the Synopsis, fwiw
06:37 mberends because TimToady cares for and feeds it
06:39 [particle]1 joined #perl6
06:50 zev joined #perl6
06:50 lsyx joined #perl6
06:51 lsyx left #perl6
06:52 spx2_ joined #perl6
07:00 xinming joined #perl6
07:43 DemoFreak joined #perl6
07:48 Tene_ joined #perl6
08:04 pugs_svn r25008 | Ovid++ | pugs:  Add trim_start and trim_end tests per P6L discussions.
08:28 iblechbot joined #perl6
08:31 pugs_svn r25009 | moritz++ | [t/spec] skip dying tests in trim.t instead of jut TODO'ing them
08:38 mberends_ joined #perl6
08:45 sjn joined #perl6
08:51 jhuni joined #perl6
08:58 PerlJam joined #perl6
08:58 mberends_ joined #perl6
08:58 spx2_ joined #perl6
08:58 Casan joined #perl6
08:58 Maghnus joined #perl6
08:58 araujo joined #perl6
08:58 kcwu joined #perl6
08:58 Lunchy joined #perl6
08:58 cognominal joined #perl6
08:58 r0bby joined #perl6
08:58 sunnavy joined #perl6
08:58 charsbar_ joined #perl6
08:58 c9s joined #perl6
08:58 jan_ joined #perl6
08:58 rhr joined #perl6
08:58 khatar joined #perl6
08:58 mj41_ joined #perl6
08:59 p6eval joined #perl6
08:59 integral joined #perl6
08:59 hcchien joined #perl6
08:59 jrockway joined #perl6
08:59 namenlos joined #perl6
08:59 ayrnieu joined #perl6
08:59 meteorjay joined #perl6
08:59 idemal joined #perl6
08:59 dh_ joined #perl6
08:59 krunen joined #perl6
08:59 diakopter joined #perl6
08:59 Caelum joined #perl6
08:59 kolibrie joined #perl6
08:59 shachaf joined #perl6
08:59 awwaiid joined #perl6
08:59 felipe joined #perl6
08:59 cls_bsd joined #perl6
08:59 smg joined #perl6
08:59 Khisanth joined #perl6
08:59 tcliou|Away joined #perl6
08:59 ilogger2 joined #perl6
08:59 BinGOs joined #perl6
08:59 rakudo_svn joined #perl6
08:59 pugs_svn joined #perl6
08:59 clkao joined #perl6
08:59 LCamel_ joined #perl6
08:59 Gothmog_ joined #perl6
08:59 pmichaud joined #perl6
08:59 perlbot joined #perl6
08:59 Maddingue joined #perl6
08:59 [particle] joined #perl6
09:09 braceta joined #perl6
09:17 ChrisDavaz joined #perl6
10:06 schmalbe joined #perl6
10:39 rindolf joined #perl6
10:40 zamolxes joined #perl6
10:42 Maddingue joined #perl6
10:56 ruoso joined #perl6
10:57 ruoso Hello!
10:58 mberends_ echo, echo, echo hello! it's super quiet here today
11:01 masak joined #perl6
11:10 alanhaggai joined #perl6
11:17 [particle]1 joined #perl6
11:23 pmurias joined #perl6
11:23 pmurias hi
11:51 ludan joined #perl6
11:54 pdcawley` joined #perl6
11:54 vixey joined #Perl6
12:06 vixey joined #Perl6
12:06 rindolf Hi pmurias
12:06 ludan joined #perl6
12:14 masak non-locking reading of individual characters: will such a thing be implementation-specific?
12:16 jnthn masak: non-locking?
12:16 jnthn Or non-blocking?
12:16 masak jnthn: the latter.
12:16 masak like $INKEY in QBasic.
12:17 moritz_ masak: just write it in S16, then everybody has to implement it :-)
12:17 masak moritz_: good idea. :) I wish I were that bold.
12:17 jnthn masak: There should be a standard way to do it in Perl 6.
12:17 jnthn How implementations implement it is up to them.
12:17 masak jnthn: really? that makes me very glad.
12:17 jnthn I woulda thought so.
12:18 jnthn I think it's possible on most platforms...
12:18 jnthn AIO and all that.
12:18 masak right.
12:18 masak suggestions for a reasonable syntax?
12:18 rob joined #perl6
12:19 masak (plus reasonable values for 'no key yet' and for strange keys like the arrow keys)
12:21 moritz_ masak: $STDIN.getc(:!block)
12:21 masak moritz_: you mean, $*IN, of course.
12:21 moritz_ erm, yes :)
12:22 masak maybe something positive instead of :!block ?
12:22 moritz_ where it would just return an empty string, and on error it would fail()
12:22 jnthn :async?
12:22 * jnthn is horrid at syntax
12:22 jnthn irclogs?
12:22 jnthn purl, irclogs?
12:23 moritz_ no purl in #perl6
12:23 moritz_ irc.pugscode.org
12:23 jnthn ooh, channel fail
12:23 mberends joined #perl6
12:24 masak jnthn: not at all. it's a feature that purl isn't here.
12:24 masak the logs are in the topic.
12:24 * masak likes :async
12:25 jnthn masak: More of a fail on my part for thinking I was on #parrot
12:26 mberends looking at keyboard interactive code on various systems, it is definitely platform specific
12:26 moritz_ perl has a long history of abstracting away such things
12:28 mberends ja, perl5 has modules that automagically map to the underlying drivers
12:33 masak nevertheless, I'm pleasantly surprised to hear that it'll be available in core. that will surely help when writing the kind of programs that need async getc.
12:34 jnthn masak: Just because I'd expect it to be, doesn't mean it will be. ;-)
12:37 pmurias hi rindolf
12:37 rindolf pmurias: what's up?
12:38 jnthn masak,moritz_: Which one of you was it that did the Perl 6 prelude, or who I need permission from to do stuff with it, or a commit bit?
12:38 jnthn As in, the one for Rakudo...
12:38 moritz_ jnthn: it was me...
12:38 jnthn OK
12:39 moritz_ jnthn: you need a gmail email adress, then I can give you commit bit
12:39 jnthn I'm pondering starting to fill out the array/hash roles
12:39 jnthn jnthnwrthngtn
12:39 jnthn I can't just call them Array and stuff as it'll conflict.
12:39 jnthn Maybe P6PArray etc?
12:40 jnthn But it'd mean I can actually get typed arrays working somewhat.
12:40 jnthn And then when the prelude "goes official" they can just be renamed and become the real ones.
12:40 jnthn Does this sound OK to you?
12:41 moritz_ sure
12:41 moritz_ jnthn: ok, you are a project admin now... http://code.google.com/p/rak​udo-prelude/source/checkout for instructions
12:42 jnthn moritz_: Thanks. Going for lunch/walk now, will play later. :-)
12:42 pmurias rindolf: i'm studing CS now; smop now has basic p5 interop
12:43 rindolf pmurias: ah.
12:44 moritz_ jnthn: have fun... I'll be offline during the weekend, feel free to do with that repo whatever you want
12:45 pmurias rindolf: i find the "what's up?" question too generic to anwser accuratly ;)
12:46 rindolf pmurias: OK.
12:46 rindolf I'm trying to optimise File-Find-Object now.
12:47 jnthn moritz_: I'll try not to do anything too awful. ;-)
12:47 moritz_ jnthn: it keeps track of the revision... I can always restore the previous state :-)
12:48 jnthn :-P
13:05 pdcawley` joined #perl6
13:38 [particle] joined #perl6
13:44 ejs joined #perl6
13:58 ejs joined #perl6
14:00 rakudo_svn r35910 | pmichaud++ | [rakudo]: spectest-progress.csv update: 295 files, 6523 passing, 0 failing
14:05 km2 joined #perl6
14:14 DemoFreak joined #perl6
14:15 alexn_org joined #perl6
14:28 iblechbot joined #perl6
14:31 mberends pmichaud: ping
14:34 pmichaud pong
14:36 mberends if you have a few minutes, I would appreciate you looking at and doing 'Try it out:' from http://github.com/eric256/perl6-exa​mples/blob/master/lib/Pod/Makefile
14:36 mberends no harm will come to your computer or your pets
14:36 fuse405 joined #perl6
14:36 pmichaud sure, just a bit.
14:36 fuse405 left #perl6
14:40 maerzhase joined #perl6
14:42 On joined #perl6
14:42 PerlJam mberends: why build parrot each time?
14:43 pmichaud what am I supposed to be looking for/at ?
14:49 mberends sorry, the code is incompatible with latest parrot/rakudo. the looking for/at was that some later parrots cause that PGE;Match message mentioned yesterday.
14:50 pmichaud okay, I can look at that.
14:51 mberends with r35309 (pre rvar2) it shows you Pod::Parser running some tests of pod6 in Rakudo
14:52 mberends that $*ERR sure would help troubleshooting on latest rakudo...
14:56 pmichaud I get:
14:56 pmichaud precompile Parser.pm -> Parser.pir
14:56 pmichaud Statement not terminated properly at line 162, near "{ self.par"
15:01 mberends oops, error has changed. I hope it runs with the suggested r35308 though, did you try that also?
15:02 pmichaud I can run it with r35308; what am I looking for there?
15:09 mberends The immediate goal was to reproduce the PGE;Match under your eyes, but the latest error is different so I'm failing on that. The broader goal was to show you some Pod6 tools that masak and I plan to beef up for his U4X project. Did you ever see a prove and Test::Harness written in Perl 6 before?
15:10 pmichaud no, haven't seen those.
15:10 pmichaud I'm waaaaay behind on being able to review things :-|
15:11 pmichaud I don't know why you're getting the latest error, it looks like it should be okay to me.
15:11 pmichaud (but haven't looked in great detail)
15:13 mberends I cannot suggest other actions right now. thanks for looking, and I'll try to get that PGE;Match for you another way. TiMBuS may have spotted a grammar / regex bug for me this morning. Again thanks, I'll stop distracting you for today.
15:14 pmichaud I'm still planning to work on $*ERR this morning.
15:14 mberends excellent
15:34 alester joined #perl6
15:36 jhorwitz joined #perl6
15:40 ruoso joined #perl6
15:43 tux300181 joined #perl6
15:58 [particle]1 joined #perl6
16:00 vixey joined #Perl6
16:10 Jedai joined #perl6
16:13 pmurias ruoso: i'm thinking that tools/ri could generate the do all work in a m0ld block style methods
16:15 cosimo joined #perl6
16:30 pmurias ruoso: ping
16:41 pbuetow joined #perl6
16:43 iblechbot_ joined #perl6
16:53 justatheory joined #perl6
16:53 stephenlb joined #perl6
17:02 jferrero joined #perl6
17:14 silug joined #perl6
17:28 szabgab std: my %h{<a b>};
17:28 p6eval std 25009: OUTPUT«00:05 84m␤»
17:28 perl7 joined #perl6
17:29 szabgab rakudo: my %h{<a b>};
17:29 p6eval rakudo 35913: OUTPUT«Statement not terminated properly at line 1, near "{<a b>};"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
17:30 perl7 I just download 0.9 version on Windows Vista. If I do: "perl6 -e 1", I get "load_bytecode" couldn't find file 'PCT.pbc' error .... why?
17:31 hercynium joined #perl6
17:32 kisu_ joined #perl6
17:35 perl7 was anyone able to run parrot 0.9 on windows vista?
17:40 aindilis joined #perl6
17:43 szabgab std: my %h; exists %h{'a'};
17:43 p6eval std 25009: OUTPUT«Unknown routines:␤     exists called at 1 ␤00:05 84m␤»
17:43 szabgab std: my %h; %h{'a'}:exists;
17:43 p6eval std 25009: OUTPUT«00:05 87m␤»
17:44 szabgab std: my %h; %h{'a'}.exists;
17:44 p6eval std 25009: OUTPUT«00:05 84m␤»
17:45 szabgab So if I understand correctly there is no "exists" function in main just an exists method of the hash and and exists adverb
17:45 szabgab pugs/t/spec/S29-hash/exists.t seems to think otherwise
17:46 gbacon joined #perl6
17:46 szabgab rakudo: my %h; %h{'a'}.exists;
17:46 p6eval rakudo 35914: OUTPUT«Method 'exists' not found for invocant of class 'Failure'␤current instr.: 'parrot;P6metaclass;dispatch' pc 287 (src/classes/ClassHOW.pir:145)␤»
17:48 TimToady if there is a .exists method, it would be used %h.exists('a')
17:49 szabgab rakudo: my %h; %h.exists('a');
17:49 p6eval rakudo 35914: RESULT«0»
17:49 szabgab std: my %h; %h.exists('a');
17:49 p6eval std 25009: OUTPUT«00:05 84m␤»
17:49 szabgab std: my %h; %h{'a'}.exists;
17:50 TimToady std won't tell you if there is a method of that name :)
17:50 p6eval std 25009: OUTPUT«00:05 84m␤»
17:50 szabgab so the last one is a mistake ?
17:50 TimToady std: my %h; %h{'a'}.foo.bar.baz
17:50 p6eval std 25009: OUTPUT«00:05 87m␤»
17:50 TimToady see, legal
17:50 szabgab ah
17:51 TimToady std is just syntax, with occasional semantic checking
17:51 szabgab ok and what about exixts %h{'a'} ?
17:51 szabgab should that, err exist ?
17:51 TimToady it can tell you that a function is unrecognized only because the def is required to exist by CHECK time
17:51 TimToady methods bind later than CHECK time
17:52 TimToady there is no exists macro anymore
17:52 TimToady because it would have to be a macro
17:52 TimToady likewise delete
17:52 szabgab so I understand that the spec test is incorrect then
17:53 TimToady yes, it's incorrect
17:54 szabgab thanks
17:54 TimToady assuming there's a .exists method, it would not be incorrect if it actually did what the comment said
17:54 TimToady that is, if the comma were a colon
17:56 szabgab oh, now I got confused
17:56 TimToady exists $x, $y is a function call
17:56 TimToady exists $x: $y is a method call
17:56 szabgab so is there going to be an .exists metho for the hashes or an exists function in main?
17:56 TimToady equiv to $x.exists($y)
17:56 TimToady there will not be an exists function
17:57 TimToady if there's a method, it should probably be .contains
17:58 szabgab so currntly we don't know yet how to test if a certain key is available in a hash as it is not speced yet?
17:58 TimToady but we're trying to discourage the method interface in favor of .{$y}:exists
17:59 TimToady :exists is specced
17:59 TimToady in fact, STD.pm uses it, and :delete too
18:00 TimToady they're just modified subscripting operations, after all
18:00 schmalbe joined #perl6
18:00 szabgab so I should write %h :exists 'a'  ?
18:00 TimToady no, the whole idea is to write the subscript the same way always
18:00 TimToady %h<a>:exists
18:00 TimToady %h{'a'}:exists
18:01 TimToady you can even do %h{'a'} :exists :delete
18:01 szabgab and delete ?  the same ?
18:02 szabgab which would do what ?
18:02 TimToady delete the element, and return true if there was one
18:02 szabgab ah, and what is :delete along returns ?
18:03 szabgab the old value ?
18:03 TimToady they're just named arguments to the subscript operator, so order doesn't matter
18:03 TimToady what :delete returns by defualt
18:03 TimToady *default
18:03 TimToady just as in p5
18:05 szabgab so in case are  :exists and :delete adverbs or they just look like adverbs?
18:05 szabgab to my untrained eyes ?
18:05 TimToady they're adverbs syntactically
18:05 TimToady the compiler may choose to treat them specially though
18:06 TimToady but they should work as if subscript were just multi dispatched based on presence/absence of named args
18:09 TimToady you should be able to write your own multi subscript operator with additional modifiers, and it should just work
18:09 szabgab Oh I am just trying to use what is already there :-)
18:09 TimToady or not, as the case may be :)
18:14 TimToady afk &
18:28 braceta left #perl6
18:41 Psyche^ joined #perl6
18:54 aindilis joined #perl6
18:55 japhb_ joined #perl6
19:05 aindilis joined #perl6
19:08 ejs1 joined #perl6
19:18 japhb_ joined #perl6
19:34 szabgab my November $wiki = November.new;
19:34 szabgab is the firts November necessary ?
19:35 spx2 joined #perl6
19:37 ejs1 joined #perl6
19:37 japhb_ joined #perl6
19:38 pjcj joined #perl6
19:43 Tene_ szabgab: no.
19:43 szabgab tx
19:43 Tene_ szabgab: you could also drop the second instead, if you wanted.  my November $wiki .= new();
19:47 stephenlb joined #perl6
19:50 szabgab I like the first one better
19:54 __felix__ joined #perl6
19:55 zamolxes joined #perl6
19:59 japhb__ joined #perl6
20:19 PZt joined #perl6
20:23 zamolxes joined #perl6
20:26 spx2_ joined #perl6
20:47 japhb_ joined #perl6
21:00 meppl good night
21:03 pugs_svn r25010 | putter++ | [elfparse] Synced std.pm to STD.pm.  Continued adding STD.pm idiom support, and unpodding std.pm.
21:17 smtms joined #perl6
21:36 Tene joined #perl6
21:54 zamolxes joined #perl6
22:05 pasteling joined #perl6
22:39 aindilis joined #perl6
23:16 s1n joined #perl6
23:30 Limbic_Region joined #perl6
23:43 legis left #perl6
23:43 kid51 joined #perl6
23:45 kanru joined #perl6
23:53 aindilis joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo