pugscode.org/ planetsix.perl.org/ | nopaste: sial.org/pbot/perl6 | evalbot: perl6: say 3; (or rakudo:, pugs:, elf:, etc) | irclog: irc.pugscode.org/ | ~330 days 'til Xmas
Set by mncharity on 25 January 2009.
00:16 icwiener left 00:17 eternaleye left 00:29 jhuni joined 00:37 DemoFreak left, spx2_ left 00:41 eternaleye joined 00:43 spx2 joined 00:48 spx2_ joined 00:53 spx2 left 00:54 timebomb left 01:00 |jedai| left 01:01 |jedai| joined 01:02 spx2 joined 01:03 spx2_ left 01:17 Chillance left 01:21 mj41 joined 01:24 shinobi-cl_ left 01:26 |jedai| left 01:27 |jedai| joined, spx2_ joined
Whiteknight rakudo: my $x = { say 5; }; $x(); 01:37
p6eval rakudo 36267: OUTPUT«5␤»
Whiteknight rakudo: my $x = -> $a { say $a; }; $x("hello world");
p6eval rakudo 36267: OUTPUT«hello world␤»
Whiteknight always happy when my code examples not only parse, but actually produce the right output 01:38
01:39 mj41_ left 01:40 shinobi-cl_ joined 01:42 spx2 left 01:59 c1sung joined 02:02 jfredett joined
shinobi-cl_ perl6: my %Example ; push %Example{"a"}, 1, 2, 3; say %Example{"a"}; 02:02
p6eval pugs: OUTPUT«1 2 3␤»
..rakudo 36267: OUTPUT«No applicable methods.␤␤current instr.: '_block14' pc 104 (EVAL_16:50)␤»
..elf 25169: OUTPUT«␤»
02:03 alester joined, shinobi-cl_ left 02:11 |jedai| left 02:12 |jedai| joined
s1n hmm, does rakudo from github currently build for anyone else? 02:19
i'm getting PARROT_FLOATVAL_INF_NEGATIVE and POSITIVE errors and don't see it defined in parrot anymore
02:27 aindilis left 02:28 aindilis joined 02:35 spx2_ left
s1n n/m, outdated repo 02:36
02:38 spx2 joined 02:43 TheOrz joined 02:58 spx2 left 03:01 spx2 joined 03:15 Whiteknight left 03:19 spx2 left 03:22 spx2 joined 03:23 alester left
pugs_svn r25170 | diakopter++ | deleting cruft. 03:28
03:28 justatheory left 03:37 justatheory joined 03:38 justatheory left, justatheory joined, justatheory left 03:50 |jedai| left 03:51 |jedai| joined 03:53 mberends joined 03:54 gravity left 03:55 meppuru joined 03:56 meppl left 04:06 alexn_org left 04:15 Sepheebear joined 04:17 meppuru is now known as meppl 04:21 spx2_ joined 04:29 spx2 left 04:36 spx2 joined 04:40 km2 left 04:48 alester joined 04:51 |jedai| left 04:52 |jedai| joined, spx2_ left 04:55 |jedai| left, |jedai| joined 05:11 scrottie joined 05:16 Tene_ joined
s1n moritz_: i think you can close rt #59372, i can't seem to reproduce it anymore 05:26
05:27 Tene left, justatheory joined 05:28 justatheory left
s1n moritz_: while you're at it, close rt #60510 too 05:32
05:43 spx2 left, spx2 joined 05:49 spx2_ joined
mberends is anyone with OS X lurking here right now? 05:50
05:56 jrockway joined
mberends on OSX, what does "perl6 -e 'say %*VM<config><osname>'" print? osx? 05:59
06:00 spx2 left 06:01 TheOrz left, |jedai| left 06:02 |jedai| joined 06:04 maerzhase joined 06:05 |jedai| left, |jedai| joined 06:09 TheOrz joined 06:15 meppl left 06:34 spx2 joined 06:35 Sepheebear left 06:39 maerzhase left 06:47 spx2_ left
moritz_ s1n: closed, thanks 06:52
06:55 |jedai| left 06:56 |jedai| joined 06:57 Sepheebear joined 07:04 khatar left 07:09 ayrnieu left 07:10 ayrnieu joined 07:14 maerzhase joined 07:19 alester left 07:27 eternaleye_ joined, eternaleye left 07:33 iblechbot joined 07:35 |jedai| left, |jedai| joined 07:41 eternaleye joined 07:42 eternaleye_ left 07:48 Casan left 08:03 timebomb joined 08:05 DemoFreak joined 08:06 ayrnieu left 08:07 ayrnieu joined 08:08 iblechbot left 08:10 jhuni left 08:18 ashizawa joined
szabgab_ I saw in the docs the way to open directory is S16-io.pod: my $dir = IO::Dir::open('.'); 08:26
has this been implemented in Rakudo ? 08:27
in other words, how can I list all the files in a directory ? 08:29
moritz_ I'd be surprised if you could 08:30
run('ls > tempfile'); 08:31
szabgab_ tx 08:32
regarding open() for files, is the normal behavior now to throw an exception if it cannot open the file? 08:38
moritz_ the specced behaviour is to fail(), which throws an exception only if 'use fatal;' is in scope 08:39
08:43 maerzhase left 08:45 Sepheebear left 09:02 ejs joined 09:10 maerzhase joined, |jedai| left 09:11 |jedai| joined
szabgab_ std: my $line = "bla"; if ($line ~~ /x/ ff $line ~~ /y/) {say "in" } 09:11
p6eval std 25170: OUTPUT«00:04 34m␤» 09:12
szabgab_ rakudo: my $line = "bla"; if ($line ~~ /x/ ff $line ~~ /y/) {say "in" }
p6eval rakudo 36276: OUTPUT«Statement not terminated properly at line 1, near "ff $line ~"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
09:14 maerzhase1 joined 09:16 maerzhase1 left, maerzhase1 joined 09:28 maerzhase left 09:36 |jedai| left 09:37 |jedai| joined 09:43 maerzhase1 left, maerzhase joined 09:45 DemoFreak left 09:46 meppl joined 10:12 masak joined 10:25 maerzhase left, maerzhase joined 10:37 yves joined
mberends masak: hi 10:39
masak mberends: greetings
moritz_ hi there 10:40
masak all the people starting with 'm' are here.
where are the others?
mberends Hmmm 10:41
what does your computer say for perl6 -e'say %*VM<config><osname>' ?
is it osx ?
Matt-W Is it just that people beginning with M are more likely to be in Europe?
masak mberends: darwin 10:42
moritz_ masak: yesterday night TimToady tried to @tell you something, but ENOλBOT 10:43
masak mberends: are you slipping into the dangerous territory of OS detection? :)
moritz_: ok, will backlog.
mberends thanks, that goes into my Makefile.p6
masak mberends: just make sure the fallback is sensible. :)
Matt-W surely the default os is windows 95 :) 10:44
mberends the fallback is my local OS :)
masak lunch & 10:45
10:47 |jedai| left
szabgab_ masak: when you are back from lunch, how should I reuse parts of November in some other application ? 10:48
right now I am writing a static web site so I'd like to reuse HTML::Template
for now I start by copy-ing the required files from the November source tree to my directory 10:49
10:49 xinming_ joined
masak szabgab_: not technically back from lunch, but short reply: 10:51
HTML::Template is being obsoleted in the long run. we're starting a Web project, whose objective is re-use. in the meantime, feel free to use whatever you want. any feedback to prevent code drift and increase collaboration is appreciated. 10:52
masak recloaks
szabgab_ and why do you drop HTML::Template ? 10:54
moritz_ if "they" drop it, I'll adopt it
szabgab_ can modules already loaded from other directories (is @INC already in place ?) or only from . ? 10:55
moritz_ you can BEGIN { @*INC.push('dir') } 10:57
szabgab_ oh and just to catch up with the changes in last week, I see the parrot SVN repo moved, what about Rakudo, is it still in the languages/perl6 subdir of parrot ?
moritz_: oh, that's better than copying the files 10:58
I could not compile Dispatcher.pm
moritz_ szabgab_: it has moved to git (or so I think), but there hasn't been an announcement yet 10:59
11:00 Maghnus joined 11:03 |Jedai| joined 11:06 hercynium joined 11:07 maerzhase left 11:15 maerzhase joined
masak szabgab_: we'll drop HTML::Template because November is XML-based, so a text-based templating system feels both dangerous and wasteful. 11:19
11:19 iblechbot joined
masak TimToady: re a class lying to itself: maybe I'm using 'handles' for the wrong thing then. I have a class hierarchy in which plenty of delegation is made to a central class, and I found it made things a lot shorter and more convenient to use 'handles'. however, only the class itself uses those delegated methods, and it even feels a bit odd to be exposing them. hence the question about 'handles' and private methods. 11:24
11:27 |Jedai| left
moritz_ if you use 'handles' excessively, can't you use roles + composition instead? 11:30
masak moritz_: no, because part of the reason I use it is so that I can have separation of concerns. 11:31
11:31 Jedai left
masak moritz_: github.com/masak/druid/ 11:31
Druid::Game is in the middle, Druid::View and Druid::Player depend on it. 11:32
but both the latter are interested in things like board size and the position of pieces, information found in the former.
uh, I'm consciously blurring the object/class distinction in the above, as is often done. 11:33
11:35 Jedai joined
masak anyway, doing roles+composition would be counter to the idea that Druid::Game holds all the important information (model), while surrounding classes (views) query it for things. 11:35
szabgab_ is there an .ini or .conf file reader implemented in Perl 6 ? 11:43
masak szabgab_: not to my knowledge. 11:44
we usually take the eval(slurp) route.
Matt-W eww
masak suboptimal, but fast.
Matt-W that's not very safe 11:45
masak Matt-W: that's correct.
it's generally advised against.
Matt-W a handy stopgap until you implement something better though
szabgab_ but then you assume the file format to be perl 6 , not the "standard" [section] and key = value lines
masak we figure that we're allowed to make such transgressions if we put up big warning signs and produce working code :)
Matt-W lol
and replace it with a proper configuration file later?
masak aye.
Matt-W you're forgiven 11:46
masak szabgab_: right.
szabgab_: writing a grammar for that ought to be a pleasant task.
szabgab_ oh, so now I should learn how to that, :-),
lots of yaks to be shaven here
masak szabgab_: if you're here for an hour or so, I can walk you through it. 11:48
it should be really easy.
that's the nice thing about Perl 6 grammars.
rakudo: grammar Conf { regex TOP { <heading> }; regex heading { ^^ '[' <ident> ']' $$ }; regex ident { \w+ } }; say '[test]' ~~ /<Conf::TOP>/ 11:49
p6eval rakudo 36277: OUTPUT«[test]␤»
masak szabgab_: there you go, just to get you started :) 11:50
now, go forth and spread the Perl 6 joy in the world.
szabgab_ masak: I want my code work first and start creating the web site 11:51
and I'd like to make it happen today 11:52
I can always improve tomorrow :-)
masak szabgab_: go with eval(slurp) so far, then.
or no conf file at all.
pugs_svn r25171 | masak++ | [S12] fixed minor typo in class name 12:05
r25172 | masak++ | [S16] added :async flag to getc
12:05 TheOrz left
Matt-W masak: I spent a while the other day going mad trying to write a grammar 12:05
masak: I may need to ask many questions about it at some point 12:06
masak Matt-W: I'd be glad to help.
Matt-W: writing grammars is supposed to be rewarding, not frustrating. you're doing something wrong. :P
Matt-W I know! 12:07
I think it's just some basic understanding about whitespace handling and things like that
if I can get my head around all that, I should be fine
masak aye.
Matt-W Then I shall just kick myself over using _something_ to denote emphasis instead of some sort of matching brackets
masak to be honest, I haven't grokked that either.
Matt-W lunch & 12:08
12:12 ashizawa left 12:16 donaldh joined
jnthn hi from Bulgaria 12:21
12:21 |Jedai| joined
masak jnthn: say 'hi' back :) 12:21
jnthn :) 12:24
Flying home tomorrow.
And then it'll be back to Rakudo hacking. :-)
masak jnthn: it will be nice to have you back. when both you and pmichaud are absent, reality feels strangely hollow and unfulfilling. 12:27
plus, I don't know who to complain to. :P 12:28
jnthn RT? ;-) 12:29
masak jnthn: come on, I've done that to death. :P 12:30
I think I have 150 open bugs or some such reported by me. 12:31
new/open
jnthn That used to be our entire queue size! :-|
masak aye.
jnthn will try to reduce the bug count using his Rakudo Days.
12:32 maerzhase1 joined
masak jnthn++ 12:32
jnthn OK, so what's the git equivalent to svn up?
git pull?
12:33 maerzhase left
masak jnthn: basically, yes. 12:33
seems I have only 114 new/open bugs. :)
jnthn: pull = fetch + merge
git.or.cz/gitwiki/GitFaq#head-4740b...c853acf5a7 12:34
12:34 |Jedai| left, |Jedai| joined 12:36 maerzhase1 left, maerzhase joined 12:38 maerzhase left, maerzhase joined 12:39 maerzhase left 12:42 maerzhase joined 12:43 maerzhase1 joined 12:46 maerzhase1 left 12:47 maerzhase1 joined, maerzhase left 12:48 maerzhase joined, maerzhase1 left 12:57 _Jedai_ joined 13:07 maerzhase left, TheOrz joined
mberends masak: down the slippery slope, what does darwin show for 'ps o args' ? 13:12
masak mberends: it shows something I don't understand. what is it I'm looking at? 13:15
mberends the 'o' option of ps does user defined columns of output. On GNU/Linux it gives 'COMMAND' 13:17
it's a little used section of 'man ps' 13:18
masak I see.
well, it does work here.
but it shows 'ARGS' and then some empty lines.
mberends oh dear, empty lines not good 13:19
masak they seem to correspond to the command '-bash' in full ps.
mberends that's not the same as GNU. I'm trying to replace your Perl 5 scaffolding with Perl 6, and make it autodetect differences between your OS and mine. 13:20
it looks like 'o' is a valid option for you, but what follows must differ. 13:21
masak aye. 13:22
mberends could you peruse 'man ps' for me and summarize the available arguments after the 'o' option? I would like to read the full command line, including its arguments. The purpose is to detect the paths used by parrot and perl6.pbc 13:23
13:24 |Jedai| left, |Jedai| joined
masak mberends: gist.github.com/56912 13:25
mberends brilliant, standby for my work in progress 13:27
masak: gist.github.com/56913 13:29
13:29 donaldh left 13:30 ruoso joined 13:32 _Jedai_ left 13:35 _Jedai_ joined
masak mberends: nice. 13:36
for those first debug statements, you might want to consider a 'given %*VM<config> { ... }' block
oh! you did that later, I see. 13:37
mberends yes, the first lines are deprecated, only retained for possible copy/pasting 13:38
you have to start somewhere...
masak mberends: why do you need to find yourself in the ps listing?
mberends 13:23 : to get the possibly independent parrot and perl6.pbc directories 13:39
masak not sure I understand.
ps shows processes, not directories :)
just get people to set the damn $PARROT_DIR env variable. :) 13:40
mberends ah, but the right ps incantation will show the executable filenames and args. Works a treat on Linux.
masak $ perl6 -e 'say @*ARGS' 1 2 3
123
wot's wrong with dat? 13:41
mberends: no, I confess to being utterly confused as to what information it is you are trying to extract from ps. 13:42
literal masak: nothing?
masak literal: exactly!
mberends this approach was: don't give people unnecessary work. bearing in mind that some people want to use 'perl6' and others 'parrot perl6.pbc', let them choose and then detect how the Makefile.p6 was invoked. 13:43
literal does it put spaces between the numbers if you do say ~@*ARGS ?
masak literal: yep.
literal cool
jnthn wondes why they'd do different things...
masak mberends: I'd say detect as much as possible (via $PATH and $PARROT_DIR or whatever) but don't go overboard trying to please. 13:44
sometimes what the user needs is a good slap-around and a message telling them to set their environment variables.
mberends it already works for me, I was just trying to get it to work for you too.
being a good neighbour an' all that 13:45
masak yes, but why do you have to mix 'ps' into it all?
I just don't get it.
I mean, given that ps apparently exists in a multitude of flavours.
oh well, I guess we just have different priorities. you seem to be willing to sacrifice platform independence for that little extra service. 13:46
13:49 |Jedai| left 13:50 |Jedai| joined 13:53 _Jedai_ left
ruoso masak, I've just replied to your last commit message... 13:58
masak ruoso: the :async one?
ruoso yes
masak reads
ruoso I agree with leon that it should be called non-blocking instead 13:59
but more importantly, I think being blocking-or-not is an attribute of the IO object,
not a parameter of that specific io operation
masak yes, I agree with you both about the name.
ruoso: my main objective was to make sure the functionality is in S16. 14:00
I'm not particularly attached to the name of the parameter or to its exact location.
ruoso so, role IO { has $.blocking; }
masak has Bool $.blocking; 14:01
anyway, I don't have the time to make elaborate changes right now. feel free to change it any way you please. 14:02
ruoso out-of-time 14:04
masak I'm sure someone will take pity on the change sooner or later. 14:05
14:06 meppl left, meppl joined 14:11 DemoFreak joined 14:14 |Jedai| left 14:15 |Jedai| joined 14:20 spx2 left, maerzhase joined 14:21 maerzhase left, maerzhase joined, spx2 joined
szabgab_ std: my %h; %h<a><b> = 42; 14:24
p6eval std 25172: OUTPUT«00:02 33m␤»
szabgab_ rakudo: my %h; %h<a><b> = 42;
p6eval rakudo 36282: OUTPUT«Method 'postcircumfix:{ }' not found for invocant of class 'Failure'␤current instr.: 'postcircumfix:{ }' pc 3633 (src/classes/Associative.pir:77)␤»
szabgab_ rakudo: my %h{Str;Str}; %h<a><b> = 42;
p6eval rakudo 36282: OUTPUT«Statement not terminated properly at line 1, near "{Str;Str};"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤» 14:25
masak szabgab_: autovivification not implemented yet in Rakudo.
neither are chained-dimensional indices.
szabgab_ rakudo: my %h; %h<a> = {}; %h<a><b>= 42;
p6eval rakudo 36282: RESULT«42»
moritz_ or typed arrays/hashes
szabgab_ so is this the way to use multi dimensianl hashes ? 14:26
masak moritz_: not even typed arrays? I thought they were just broken.
szabgab_: aye.
szabgab_ rakudo: my %h; %h<a> = {}; %h{"a"}{"b"}= 42; 14:27
p6eval rakudo 36282: RESULT«42»
szabgab_ rakudo: my %h; %h<a> = {}; %h{"a"; "b"}= 42;
p6eval rakudo 36282: 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)␤» 14:28
szabgab_ is the {;} syntax only used for declaration or also for the indexing ?
masak szabgab_: no, really not implemented yet. :)
szabgab_: I think for both.
szabgab_ std: my %h; %h<a> = {}; %h{"a"; "b"}= 42; 14:29
p6eval std 25172: OUTPUT«00:04 33m␤»
14:29 maerzhase left, maerzhase1 joined 14:32 spx2_ joined 14:37 pmurias joined
pmurias ruoso: hi 14:38
ruoso hi pmurias
14:40 spx2__ joined, hercynium left
pmurias ruoso: i'm thinking if i would be worth to make the $scope register special so we could have &?ROUTINE.lexical withought having to call .set_lexical 14:43
14:44 spx2 left
pmurias s/thinking/considering 14:44
ruoso pmurias, I'd argue to keep the set_lexical specially and make $scope special in m0ld code 14:45
14:46 TheOrz left, spx2 joined
szabgab_ how do I compare two deep data structures if they contain the same data ? 14:46
shouldn't ~~ do the job ? 14:47
masak Test.pm's is_deeply does the job.
not sure if ~~ is the right tool for that.
szabgab_ hmm, I missed is_deeply when searched for it a few minutes ago, thanks 14:48
actually there should be some tool without involving Test.pm as well 14:49
but for now I need it in a test anyway 14:50
ruoso szabgab_, in theory eqv should do it 14:51
14:51 Exodist joined, spx2_ left
pmurias ruoso: the $scope register would be special by convention rather then syntactially, .set_lexical would also be kept 14:52
szabgab_ is_deeply(%data, {"names" => {"fname" => "foo", "lname" => "bar"}}, $file);
ruoso pmurias, I mean it would be treated by the compiler specially...
szabgab_ says they are not the same, even though if I %data.perl.say
it shows the same thing
ruoso pmurias, so you don't need to mess with the register count 14:53
masak szabgab_: please submit a rakudobug for that.
pmurias ruoso: it's already treated specially by the compiler
ruoso I mean the m0ld compiler, not mildew
szabgab_ I have BEGIN { @*INC.push("{%*ENV<PARROT_DIR>}/languages/perl6/") } in my test file 14:54
but is that the right version of rakudo? 14:55
masak the git project resides in languages/rakudo, no? 14:56
14:57 spx2__ left
szabgab_ so has rakudo moved to git or is it still in the parrot svn? 14:57
masak yes.
:)
szabgab_: pmichaud did the move last week, and then he mysteriously disappeared. 14:58
pmurias ruoso: the m0ld compiler would only need support for a volatile declaration so that the register would have the appropriate number 14:59
my $scope is volatile(0); ?
ruoso I was thinking it would be easier if you just assumed that "my $scope;" meant that register would already contain the lexical scope of that mold 15:00
like if "my $scope;" actually meant "my $scope = $mold.lexical"
pmurias is volatile seems easier to implement and we currently depend on handwritten blocks not being optimised in a few places already 15:03
15:04 maerzhase1 left
ruoso pmurias, if you say so, go for it ;) 15:04
15:04 |Jedai| left
ruoso it looks great to me ;) 15:04
15:05 |Jedai| joined 15:06 masak left 15:15 pmurias left 15:16 timebomb left 15:22 kanru left 15:41 spx2_ joined 15:45 ejs left 15:47 khisanth_ joined 15:49 khisanth_ is now known as Khisanth 15:53 spx2 left 15:54 justatheory joined, aindilis` joined 16:08 aindilis left 16:17 maerzhase joined 16:21 alester joined 16:26 stef_ joined 16:28 stef_ left 16:29 stef_ joined 16:30 nihiliad joined
alester Where's the pmichaud? 16:31
Oh Paaaatrick
16:33 Tene joined 16:34 icwiener joined 16:39 |Jedai| left, hercynium joined, |Jedai| joined 16:41 maerzhase left 16:44 Tene_ left 16:56 maerzhase joined 16:57 maerzhase left, maerzhase joined 17:02 alc joined 17:03 eternaleye left 17:04 |Jedai| left, |Jedai| joined 17:06 jferrero joined 17:13 ayrnieu_ joined, ayrnieu left, ayrnieu_ is now known as ayrnieu 17:14 jfredett left 17:19 sahadev joined
sahadev hello, i am not svn-savvy, so can someone tell when this means in svn-speak? 17:19
>> svn update
svn: PROPFIND request failed on '/parrot/trunk'
svn: PROPFIND of '/parrot/trunk': 302 Found (svn.perl.org)
moritz_ sahadev: it means that you've missed the switch to the parrot.org svn server 17:20
sahadev: see www.parrot.org/
sahadev ah. how do i fix that?
moritz_ there are some instructions on that page
sahadev ok. thanks.
moritz_: i recently came across your series of "Perl 5 to 6" lessons. thanks for them. very useful. 17:22
moritz_ sahadev: good to hear; you're welcome 17:25
17:40 smtms left 17:41 jferrero left 17:46 dalek left, dalek joined 17:49 |Jedai| left, |Jedai| joined, _Jedai_ joined, smtms joined 17:50 alc left 17:55 meppl left 18:02 Psyche^ joined 18:14 _Jedai_ left 18:15 _Jedai_ joined 18:18 Patterner left, Psyche^ is now known as Patterner 18:26 japhb left, smtms left, stef_ left, dmpk2k joined 18:28 cognominal left 18:30 Caelum_ joined, smtms joined 18:32 cognominal joined, maerzhase left 18:35 mtnviewmark joined 18:39 _Jedai_ left 18:40 _Jedai_ joined 18:41 barney joined 18:44 preflex joined 18:56 icwiener left, icwiener joined 19:00 japhb joined 19:06 sri_kraih joined 19:09 maerzhase joined 19:10 kcwu joined, simcop2387 joined, pugs_svn joined 19:17 pugs_svn left, simcop2387 left, kcwu left 19:18 kcwu joined, simcop2387 joined, pugs_svn joined 19:20 timbunce joined
mberends timbunce: hi, do visit here regularly? 19:25
timbunce mberends: no, just when I run my irc client, which isn't very often at the moment
mberends ah. I can tell you that DBI is one of the most yearned after features not yet in Rakudo. 19:27
timbunce feel free to write one layered over Simon Cozens driver code 19:28
mberends if only I could...
rodi out of curiosity, why do people want DBI in rakudo at this stage? 19:29
</delurk>
19:29 _Jedai_ left, pugs_svn left, simcop2387 left, kcwu left 19:30 _Jedai_ joined
mberends the most complete application is a Wiki engine, november-wiki.org 19:30
in addition, there is enough of Perl 6 working now that the data it manipulates is worth storing in something smarter than flat files. 19:31
the November project is github.com/viklund/november/tree/master 19:33
19:34 meppl joined
rodi mberends: cool, thanks for the link. 19:37
19:39 maerzhase1 joined
mberends the other must-use link is irclog.perlgeek.de/perl6/today 19:39
rodi feels very recursive to look over there while I'm typing over here... 19:41
mberends rorrim a ekil | like a mirror
19:42 _timbunce joined 19:45 maerzhase left, simcop2387 joined 19:48 cognominal left 19:50 timbunce left 19:51 cognominal joined 19:53 M_o_C joined 19:58 lisppaste3 left 20:03 lisppaste3 joined 20:04 nihiliad left 20:23 sahadev left 20:24 barney left 20:25 kcwu joined, pugs_svn joined 20:29 M_o_C left 20:30 jan_ left, Caelum_ is now known as Caelum 20:34 jeremiah left 20:37 jan_ joined, c9s_ joined 20:50 maerzhase1 left 20:54 _Jedai_ left, _Jedai_ joined 21:03 mberends left 21:09 maerzhase joined 21:12 _Jedai_ left 21:18 ayrnieu_ joined 21:20 ayrnieu left, ayrnieu_ is now known as ayrnieu 21:29 jferrero joined
Khisanth hmm 21:29
perl6: 1..10:by(2)
p6eval pugs: OUTPUT«*** ␤ Unexpected ":by"␤ expecting "_", fraction, exponent, term postfix or operator␤ at /tmp/LmU4e4iw1T line 1, column 6␤» 21:30
..elf 25172: OUTPUT«Parse error in: /tmp/G2wP4wnErK␤panic at line 1 column 11 (pos 11): No previous operator visible to adverbial pair ([#<Match:0x819d6bc @on_str="1..10:by(2)", @from=5, @to=11, @bool=true, @hash={:value=>#<Match:0x819d874 @on_str="1..10:by(2)", @from=6, @to=11, @bool=true,
..@hash={:...
..rakudo 36300: OUTPUT«Statement not terminated properly at line 1, near ":by(2)"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤»
moritz_ no implementation does adverbs on operators yet :/ 21:31
rodi I can help with that, actually:
(2,4,6,8,10)
next?
moritz_ rodi: now do that for 2..*:by(2) ;-) 21:32
rodi moritz_: done. it's lazy, though, so you won't get
'em til you need 'em.
:-P
crap, I can never remember if I'm supposed to be parsimonious or lazy there. 21:34
Khisanth moritz_: I just try that once every couple of months :P
moritz_ Khisanth: ;)
21:42 Jedai left 21:43 sri_kraih left
TimToady I can do that one. (2,4,6,8,10...*) 21:50
avar my @fib = (2,3,5,7...*) 21:51
TimToady currently just (1,1...&[+]) 21:52
moritz_ &[+] works?
I'm surprised
TimToady specced
moritz_ is that new?
TimToady less than a week :)
moritz_ ie "yes"
TimToady but not new :) 21:53
moritz_ not .new ;-)
TimToady but given that &[+] is just short for &infix:<+> it shouldn't be hard to implement
'course, some folks define fib() as (0,1...&[+]) 21:56
so obviously the standard P6 definition should be (0|1, 1 ... &[+]) 22:00
moritz_ cries out in agony 22:03
araujo (1,1 ... &[+]) , means .... (1,1, 1+1, 2+1, 3+2 .... ) ? 22:04
22:04 _timbunce left
moritz_ yes 22:04
although... not sure 22:05
22:05 rob joined
TimToady same as (1,1 ... { $^a + $^b }) only without creating a new closure 22:05
araujo nice fib
moritz_ TimToady: doesn't [+] expect arbitrary many arguments?
pugs_svn r25173 | putter++ | [elfish/on_sbcl] A start at supporting multiple CL implementations - libraries are now organized into implementation specific copies.
r25173 | putter++ | [STD_red] More UTF fiddling. Unbreaks on_sbcl
moritz_ so it would be (1, 1, 1+1, 1+1+2, ...)
22:05 rob is now known as Guest73922
TimToady no, specced as left associative 22:06
moritz_ ok
TimToady and perhaps the &[] form always picks a 2-ary form
pugs_svn r25174 | putter++ | [elfparse] rx_on_re - A start at cleaning up field accesses. 22:07
TimToady much as [~] $a, $b, $c implies $a ~ $b ~ $c despite being list associative 22:08
araujo so like a fold? 22:09
TimToady that's how we spell it in p6
araujo I see ... 22:10
:)
araujo likes it 22:11
TimToady, is this true for any operator? .. I mean, [+], [-], ..... 22:12
?
TimToady pugs: [-] 10,1,1,1 22:13
p6eval pugs: RESULT«7»
[particle]1 any infix operator
TimToady any simple infix
araujo right, good :)
TimToady doesn't do thunky stuff
and lvalues are unlikely to work well
but anything without side effects, sure 22:14
including user-define operators
araujo yeah, it is a very declarative feature
TimToady pugs: sub infix:<foo> ($a,$b) { "$a:$b" }; [foo] 1,2,3,4,5 22:15
p6eval pugs: RESULT«1»
TimToady pugs: sub infix:<foo> ($a,$b) { "$a:$b" }; say [foo] 1,2,3,4,5
p6eval pugs: OUTPUT«1␤»
TimToady hmm
well, seems buggy
araujo :(
but it is cool indeed
who is in charge of pugs these days? 22:16
[particle]1 yes.
TimToady no one
araujo mm..
jnthn finally gets around to scribbling something about his hacking in his blogs.
TimToady officially, no one was ever in charge of pugs :) 22:17
araujo Long time I don't look at pugs code...
wonder how much it has changed.... will take a look
TimToady almost nothing has changed...if you want to bring it more up to date, feel free
or write a STD backend that spits out Haskell... 22:18
araujo I can play a bit with it for sure
avar araujo: yay 22:19
araujo avar, :) 22:20
22:21 Exodist left
TimToady it's suffered a certain amount of "design rot" as the P6 specs have evolved 22:22
22:22 Exodist joined
mtnviewmark ah, so the fib example shows that the &[op] syntax is clearly being confused by people with [op] metaop 22:23
perhaps &<op> would be better? (and I know what yer gonna say.... :-) )
the comment moritz_: so it would be (1, 1, 1+1, 1+1+2, ...) 22:24
implies that he thought it was passing the [+] operator, not the + operator
diakopter araujo: see the recent Pugs releases on hackage 22:25
araujo: I'm curious to know how Pugs has changed apart from svn.pugscode 22:26
araujo diakopter, that one is the latest 6.2.13.14? 22:27
diakopter, do you use it?
22:28 Whiteknight joined
diakopter araujo: I have a local install of that release, yeah, that I was using to build smop 22:29
moritz_ I tried to install it on the server on which p6eval lives, but it fell victim to the OOM-killer 22:30
araujo diakopter, does it work latest ghc?, I heard it had some problems
with*
ok, I will try this 22:31
pugs_svn r25175 | lwall++ | [S03] remove frivolous sub [op] form of reduce declaration 22:36
r25175 | lwall++ | &[op] always refers to a binary infix even for list associative ops
22:37 Guest73922 left
TimToady mtnviewmark: can't really use &<op> because far more ops contain < and > than contain [ and ] 22:37
and I'm trying to change the meaning of [op] to mean infix, and the reduce form works that way merely because it's being used where a term is expected 22:38
and if that's what you expected me to say, I guess it doesn't hurt to repeat it for everyone else :) 22:39
araujo :) 22:40
TimToady now I'm trying to figure out what $a [\op] $b means :)
araujo haha
diakopter, i can see pugs is available from cabal-install ..... 22:41
TimToady not sure how close to HEAD that is; was audreyt doing that on a private branch? 22:42
or did that get merged? 22:43
moritz_ there were no pugs commits in the last couple of months
araujo well, the hackage tarball package seems a bit outdated 22:45
TimToady it was some months ago in any case
anyway, I don't know how much success you'll have compiling src/Pugs directly, but you'd need that in order to hack on it 22:46
araujo isn't audrey around here these days? 22:47
TimToady, next to it...
pugs_svn r25176 | moritz++ | [t/TASKS] remove task for which the spec was just removed
22:47 phade joined
araujo looking at the cabal file, I think i won't have too much problems 22:47
i am checking the svn repo though
diakopter araujo: how is the hackage tarball outdated? there's been a new release posted quite often the past few months 22:48
araujo Upload dateTue Dec 16 09:01:01 UTC 2008 22:50
for latest tarball?
diakopter (that seems fairly recent to me)
relative to the last time someone committed something to Pugs in svn here 22:51
TimToady my impression is that audrey lurks, but doesn't want to promise (implictly or explicitly) anything that might exceed her current bandwidth, which seems completely sane to me :)
22:56 wolv joined
araujo diakopter, ok, just asked, because i got a 2006 package in my repo for the pugs tarball .. version 6.2.13 22:57
diakopter oh.... 2006? wow.
araujo yeah :P
22:58 iblechbot left
araujo but i guess it is just us (Gentoo) too outdated 22:58
:|
I am testing svn though ...
23:00 AzureStone_ joined, AzureStone left
diakopter which ghc version do you have? I recommend the cabal/hackage release of Pugs 6.2.13.14 (you mentioned above), on ghc 6.10.1. 23:00
araujo svn: REPORT of '/pugs/!svn/vcc/default': Could not read response body: connection was closed by server (svn.pugscode.org) 23:01
diakopter, i've got 6.8
moritz_ that's too old
araujo i need that version for some packages 23:02
moritz_, will test first 23:03
23:05 phade left, ruoso left
moritz_ oh wait, the 6.6.* are too old, not sure about 6.10 23:05
23:07 wolverian left, wolv is now known as wolverian 23:11 lambdabot joined
diakopter wb lambdabot 23:11
TimToady @messages 23:13
lambdabot You don't have any new messages.
23:16 Bribles left 23:19 ruoso joined
araujo moritz_, yeah, 6.6 is the 'old' one 23:22
6.8 is quite good yet
and 6.10 is latest
23:29 maerzhase left, maerzhase joined 23:34 wolverian left 23:36 jferrero left
araujo diakopter, which version do you use? 23:37
23:48 meppl left
diakopter araujo: ghc 6.10.1 23:48
but, only to build smop a little ago
araujo oh i mean 23:50
of pugs
diakopter the latest hackage/cabal release, 6.2.13.14
araujo diakopter, through caball install?
diakopter yeah
on windows, no less.
23:54 maerzhase left 23:57 jhorwitz joined 23:59 hercynium left