pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by diakopter on 11 July 2007.
00:04 rfordinal left 00:05 BinGOs_ joined, c9s joined 00:06 theorb joined 00:07 BinGOs left 00:13 c9s left, c9s joined 00:17 thoughtpolice left
pugs_svnbot r17894 | avar++ | r63481@t: avar | 2007-09-18 00:15:22 +0000 00:17
r17894 | avar++ | PREREQ, pod docs and croak on make install
r17895 | avar++ | r63482@t: avar | 2007-09-18 00:16:06 +0000
r17895 | avar++ | the dependencies list has been moved to Makefile.PL
diff: dev.pugscode.org/changeset/17895
lambdabot Title: Changeset 17895 - Pugs - Trac
00:17 theorbtwo left
pugs_svnbot r17896 | avar++ | r63485@t: avar | 2007-09-18 00:22:00 +0000 00:23
r17896 | avar++ | removed DEPENDENCIES
diff: dev.pugscode.org/changeset/17896
lambdabot Title: Changeset 17896 - Pugs - Trac
00:25 justatheory left 00:34 weinig left, weinig joined 00:37 thoughtpolice joined 00:51 kanru left 01:00 ashleyb left, zamolxes left 01:01 zamolxes joined 01:07 weinig left 01:08 justatheory joined 01:11 justatheory left 01:32 Schwern joined 01:40 daxim_ joined, Schwern left, Psyche^ joined 01:44 weinig joined
platypus has been reading A06.pod "Its not immiditly clear how one defines a new type" 01:45
01:45 [particle1 joined 01:50 [particle] left 01:54 daxim left 01:56 Gothmog_ left 01:57 Patterner left, Psyche^ is now known as Patterner 02:13 Gothmog_ joined 02:20 Limbic_Region left 02:57 vel joined 03:04 elmex_ joined 03:19 elmex left 03:22 amnesiac joined 03:25 hkb_SMZ is now known as hkb_aw 03:27 lyokato joined 03:42 ashleyb joined
ahmadz_ hi * 03:43
03:47 ahmadz_ left 03:49 [particle] joined 04:04 weinig left 04:07 justatheory joined, [particle1 left 04:22 ahmadz joined
ahmadz ?perl6 '123' 04:23
lambdabot Unknown command, try @list
ahmadz ?eval '123'
kp6: say 'hello world'; 04:27
exp_evalbot r17896: OUTPUT[hello worldā¤]
ahmadz eval: my @a = <foo 1 2 3>; 04:28
buubot ahmadz: 4
ahmadz perl6: my @a = <foo 1 2 3>;
exp_evalbot kp6: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a = <foo 1 2 3>ā¤ ^ HEREā¤] 04:29
..pugs: OUTPUT[["foo", "1", "2", "3"]ā¤]
..p6: OUTPUT[Null PMC access in invoke()ā¤current instr.: 'parrot;Perl6::Compiler;main' pc 138 (perl6.pir:98)ā¤]
..nqp: OUTPUT[Statement not terminated properly at line 1, near "@a = <foo "ā¤current instr.: 'parrot;PGE::Util;die' pc 123 (runtime/parrot/library/PGE/Util.pir:83)ā¤called from Sub 'parrot;NQP::Grammar;statement_list' pc 3574 (src/Grammar_gen.pir:1275)ā¤called from Sub 'parrot;NQP::Grammar;TOP' pc
..537 (src/Grammar_gen.pir:103)ā¤called from Sub 'parrot;PCT::HLLCo...]
ahmadz kp6: my @a = (foo 1 2 3);
exp_evalbot r17896: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a = (foo 1 2 3)ā¤ ^ HEREā¤]
ahmadz kp6: my @a = ("foo",1,2,3);
exp_evalbot r17896: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a = ("foo",1,2,3)ā¤ ^ HEREā¤]
04:30 weinig joined 04:31 weinig left, weinig joined
ahmadz kp6: 1..* 04:34
exp_evalbot r17896: OUTPUT[syntax error at position 2, line 1 column 2:ā¤1..ā¤ ^ HEREā¤no method 'APPLY' in Class 'Int'ā¤]
ahmadz pugs: 1..*
exp_evalbot OUTPUT[pugs: out of memory (requested 1048576 bytes)ā¤]
04:48 penk left 04:49 [particle] left 04:52 [particle] joined 05:05 ahmadz left 05:07 daxim_ left 05:16 luqui left 05:18 rutlov joined 05:25 jisom joined, rutlov left 05:33 Ashizawa joined
moritz_ pugs: my @a:=1..*; say "success" 05:35
exp_evalbot OUTPUT[successā¤]
05:40 rfordinal_ is now known as rfordinal 05:51 devogon joined 06:09 Aankhen`` joined 06:16 justatheory left 06:19 BinGOs joined 06:21 ashleyb left 06:24 BinGOs left 06:25 wayg joined
wayg 0,2 st-pitch.miniville.fr/ 06:25
lambdabot Title: Miniville
06:25 wayg left 06:26 autark left 06:27 autark joined 06:31 BinGOs_ left 07:02 thoughtp1lice joined 07:07 snearch joined 07:15 c9s left, BinGOs joined
pugs_svnbot r17897 | Darren_Duncan++ | ext/Muldis-DB/ : removed Literal.pm, as Muldis DB will now use Perl arrays,hashes,scalars for data interchange instead 07:16
diff: dev.pugscode.org/changeset/17897
lambdabot Title: Changeset 17897 - Pugs - Trac
07:18 thoughtpolice left 07:22 kanru joined 07:31 amnesiac left 07:33 snearch left 07:37 dduncan left, iblechbot joined
pugs_svnbot r17898 | azawawi++ | [runpugs] updated TODO with latest status 07:49
diff: dev.pugscode.org/changeset/17898
lambdabot Title: Changeset 17898 - Pugs - Trac
moritz_ what's the URL of the new runpugs again? 07:50
07:50 ak__ joined, revdiablo left
moritz_ ah, found it: feather3.perl6.nl/runpugs/ 07:50
lambdabot Title: Run Perl 6 Now -- in your browser!
moritz_ that version runs without the escaping fix 07:51
07:52 franck___ joined 07:55 revdiablo joined 07:59 riffraff joined 08:33 IllvilJa left 08:50 IllvilJa joined 08:57 Grrrr left 08:58 Grrrr joined 09:06 Ast joined 09:07 koye- joined 09:18 drrho joined 09:23 koye left 09:39 drupek12102 left 09:40 flokuehn joined 09:48 drupek12102 joined 09:56 broquaint joined 10:03 ruoso joined 10:09 Aankhen`` left, Aankhen`` joined 10:11 jisom left 10:12 thepler left
pugs_svnbot r17899 | azawawi++ | [runpugs] added safari win32 support 10:14
r17899 | azawawi++ | [runpugs] fixed typos/css/ui
diff: dev.pugscode.org/changeset/17899
lambdabot Title: Changeset 17899 - Pugs - Trac
10:16 theorb left 10:17 theorbtwo joined
ruoso hmmm... the Makefile.PL in kp6 doesn't seems to be doing the right thing 10:21
avar, Makefile.PL is installing into blib/lib the contents of lib/ it should take the contents of lib-kp6-kp6-p5 10:23
10:26 clkao joined 10:29 drupek12102 left 10:35 Arathorn joined 10:36 ahmadz joined
ahmadz hi moritz 10:36
10:38 Blwood joined
ahmadz @tell moritz "Did runpugs work with the new fixes on your machine (feather3.perl6.nl/runpugs)? (Remember to refresh cache just in case)" 10:38
lambdabot Consider it noted.
10:38 ahmadz left
moritz_ ahmadz no, it didn't work. Part of the problem seems to be that < and > don't even arrive correctly at pugs - if I enter 'my @a= <foo bar>;' the prompt changes as if my expression wasn't finished 10:41
@tell ahmadz no, it didn't work. Part of the problem seems to be that < and > don't even arrive correctly at pugs - if I enter 'my @a= <foo bar>;' the prompt changes as if my expression wasn't finished 10:45
lambdabot Consider it noted.
10:47 ahmadz joined
ahmadz kp6: my @a = <foo 1 2 3>; 10:49
lambdabot ahmadz: You have 1 new message. '/msg lambdabot @messages' to read it.
exp_evalbot r17899: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a = <foo 1 2 3>ā¤ ^ HEREā¤]
ahmadz @messages
pugs_svnbot r17900 | fglock++ | [kp6] rough Range class
diff: dev.pugscode.org/changeset/17900
lambdabot moritz_ said 4m 11s ago: no, it didn't work. Part of the problem seems to be that < and > don't even arrive correctly at pugs - if I enter 'my @a= <foo bar>;' the prompt changes as if my expression
wasn't finished
Title: Changeset 17900 - Pugs - Trac
ahmadz moritz_: are u there? 10:50
moritz_ ahmadz: yes
ahmadz cool
moritz_: what's ur browser/os?
moritz_ I just used firebug, and it shows an empty line in the "POST" tab
ahmadz ff2/linux?
moritz_ iceweasel 2.0 (unbranded firefox for debian) on debian
ahmadz try ctrl-f5 [to refresh cache] 10:51
moritz_ doesn't make a difference 10:52
I used ctrl+shift+r before
ahmadz ok, it works on ff2 win; i need to try it on ff2/linux then 10:53
the good thing it worked on safari/win32 10:54
moritz_ is it normal that the requests (or some of them) are sent to runpugs3.pl?
ahmadz no they shouldnt... 10:55
what's the address you're using again?
moritz_ feather3.perl6.nl/runpugs/
lambdabot Title: Run Perl 6 Now -- in your browser!
moritz_ is there anything I can do to help you with debugging? 10:56
ahmadz im tracing it... ;-) 10:57
moritz_: try feather.perl6.nl:8096/runpugs/ plz 10:58
lambdabot Title: Run Perl 6 Now -- in your browser!
moritz_ same result 10:59
ahmadz moritz: cool ;-) 11:00
moritz: i guess html escaping is different on FF2/linux in <PRE> tags 11:01
moritz_ ahmadz: I guess it's a problem with the input method
ahmadz: on my german keyboard I have to type AltGr+q to produce an @ sign
ahmadz moritz_: aha cool... we're getting somewhere
moritz_ a simple <foo bar>.say works 11:02
as expected
ahmadz moritz: try this link: people.w3.org/rishida/utils/keyevents/
lambdabot Title: ishida utilities >> Key event monitor
moritz_ it produces a keydown 0 first 11:03
and then a keyup 50
ahmadz on a '<' ?
moritz_ no, on AltGr+q (which produces @) 11:04
the < and > work for me
the @ sign seems to be the problem
theorbtwo It's been my experince that german keymaps are very annoying to code with (in general and across most languages).
fglock_ i'm reading www.sidhe.org/~dan/blog/archives/000157.html and related articles (re: lazy gather/take)
lambdabot Title: Squawks of the Parrot: Continuations and VMs, part 2
moritz_ theorbtwo: they are, yes 11:05
theorbtwo That kevents thingy gets very confused by my compose key, BTW.
moritz_ ahmadz: maybe just try to strip 0 bytes from the strings before sending them to the server?
ahmadz moritz_: so you enter "my @a = <foo 1 2 3>" 11:06
moritz_: and you see it echo-ed again as my @ = <foo 1 2 3>?
moritz: srry without the @
moritz_ ahmadz: no, it is echoed as "pugs my\n...>" 11:07
ahmadz moritz_: oh, ok then 11:08
moritz_ also copy&paste doesn't work in the console window 11:09
11:09 iblechbot left
ahmadz moritz_: im doing keydown/keyup javascript handling... so that's expected... home/del/left/right/up/down should work 11:10
moritz_ ahmadz: they do 11:11
ahmadz moritz_: cool
moritz_ so it's most likely a combined weirdness of my german keyboard and javascript event handlers 11:12
ahmadz we can debug it if you have the time
moritz_ mabe later today, now I have to get some food ;) 11:14
ahmadz moritz_: cool ty for your time 11:15
moritz_: one more thing, i was looking at your evalbot.pl code for possible re-use of kp6 into runpugs
moritz_ it's rather simplistic, not a REPL loop 11:16
ahmadz moritz_: but the thing is we need the process to be running all the time in a REPL fashion like pugs
moritz_: then i should focus next on the tutorial part and maybe debug your german keyboard problem later in the night... ty for your time... enjoy ur food ;-) 11:17
moritz_ ahmadz: thank you, and see you later 11:18
11:18 ahmadz left 11:19 pdcawley joined 11:20 pdcawley left 11:21 thepler joined
pugs_svnbot r17901 | azawawi++ | added german keyboard problem fix TODO 11:25
diff: dev.pugscode.org/changeset/17901
lambdabot Title: Changeset 17901 - Pugs - Trac
11:49 Aankhen`` left 11:50 Aankhen`` joined 11:54 drupek1253 joined
pugs_svnbot r17902 | moritz++ | [runpugs] attempt to fix German keyboard weirdness 12:01
r17902 | moritz++ | (AltGr produces a 0 byte)
diff: dev.pugscode.org/changeset/17902
lambdabot Title: Changeset 17902 - Pugs - Trac
12:02 vel left
pugs_svnbot r17903 | fglock++ | [kp6] possible coro impl without threads 12:04
diff: dev.pugscode.org/changeset/17903
lambdabot Title: Changeset 17903 - Pugs - Trac
12:07 DarkWolf84 joined 12:13 ahmadz joined
ahmadz hi 12:13
12:19 iblechbot joined
moritz_ hi ahmadz 12:21
12:21 Ashizawa left
moritz_ I commited a change to the JS... 12:21
is the server updated automatically?
ahmadz moritz_: no... not right now... however checkout the changeset... lots of cr/lfs 12:23
12:23 cmarcelo joined
ahmadz moritz_: i could test it for you on my account... 12:24
moritz_ ahmadz: sorry about the cr/lfs... should I convert them to single lfs? 12:26
ahmadz moritz_: no need the only change you made is if(keyCode == 0) right? 12:27
moritz_ right
ahmadz moritz_: i will update my copy and test it...
moritz_: feather.perl6.nl:8096/runpugs/ 12:28
lambdabot Title: Run Perl 6 Now -- in your browser!
moritz_ ahmadz: didn't solve my problem :( 12:29
ahmadz moritz_: let me add my debugging on the interface... 12:30
moritz_: it is now on... try it plz 12:44
same url
moritz_ ahmadz: trying...
ahmadz: I entered 'my @a;', and cmd= showed exactly that 12:45
ahmadz moritz_: and the reply alerts? 12:46
moritz_ and the response is the complete Pugs intro with ascii art, ... and then "Loading Prelude...done\n...> my\n...>"
and then another one with a few &nbsp;s
ahmadz ok
so it /perl/runpugs.pl 12:47
moritz_ do you log the cmd strings?
ahmadz ya but that's in andara's account since im using his server... let me check 12:49
im not a sudoer... so i cant access it... /home/andara/apache/log/error.log 12:51
moritz_: could u please try one last time? i added more logging [data to be sent to server] 12:53
moritz_: as u can see our current runpugs send whole images of the whole session, even when we're sending commands, but that's going to be fixed soon with the ajax/json 12:55
Juerd ahmadz: If you need root access, there's feather3 for you :) 12:56
lambdabot Juerd: You have 1 new message. '/msg lambdabot @messages' to read it.
Juerd @messages
lambdabot ahmadz_ said 18h 25m 23s ago: "feather3.perl6.nl is now online, please check out feather3.perl6.nl/runpugs/"
ahmadz hi juerd
juerd: could u help and copy /home/andara/apache/log/error.log to my /home/azawawi directory? 12:57
jeurd: on feather0
Juerd No, you don't have access to feather0
ITYM feather1
moritz_ ahmadz: I tried again 12:58
ahmadz juerd: yeah feather1
pugs_svnbot r17904 | azawawi++ | [runpugs] added browser testing info 13:05
diff: dev.pugscode.org/changeset/17904
lambdabot Title: Changeset 17904 - Pugs - Trac
ahmadz i have to go home now... i will continue working on runpugs after 1-2 hours... cya all
13:06 ahmadz left 13:08 baest joined 13:11 Casan_ joined 13:13 K0brik joined, platypus left
K0brik I was wondering something like: Whats the big difference. More strict class definitions? 13:15
moritz_ K0brik: difference between what and what? 13:16
K0brik perl6 and the former
moritz_ lots of them, actually
here are some: dev.perl.org/perl6/faq.html 13:17
lambdabot Title: Perl 6 FAQ - perl6
K0brik did it get any worse?
moritz_ what?
K0brik I like perl 5 alot and thought of upgrading my code :) 13:18
moritz_ Perl 6 is not yet ready for production :/
but you can contribute if you like
K0brik I'm writing some tutorials on OO in perl and mod_perl 13:19
moritz_ do you know about Moose?
that provides some of the Perl 6 object model for Perl 5 13:20
K0brik some text gui?
moritz_ search.cpan.org/author/STEVAN/Moose...b/Moose.pm
lambdabot Title: Moose - A complete modern object system for Perl 5 - search.cpan.org
jrockway moose++
13:21 ferreira joined
avar ruoso: Yes, it's putting all the wrong stuff into blib/, that's known to be broken atm. I'm having make install die for that reason 13:21
pugs_svnbot r17905 | fglock++ | [kp6] examples/coro.pl - coro subroutine 13:23
diff: dev.pugscode.org/changeset/17905
ferreira @messages
lambdabot rhr said 16h 36m 1s ago: in 'my @E = map ...' there needs to be a comma after the block
Title: Changeset 17905 - Pugs - Trac
ferreira @tell rhr Thanks. Fixed.
lambdabot Consider it noted.
13:27 Casan left 13:28 jhorwitz joined
K0brik ponders about a GTK perl6 debugger 13:31
moritz_ write one!
avar well, there's a gtk perl5 debugger... 13:32
K0brik good idea
moritz_ if you want to commit access to the pugs repository, just /msg me your email adress and desired nick name
K0brik avar: whats the name?
avar K0brik: emacs 22
moritz_ lol
K0brik damn. I though emacs had lots of problems even with perl highlighting
jrockway fuck no 13:33
avar no, it's the best perl highlighter
jrockway emacs has the best perl mode of anything else i've seen
K0brik avar: what mode do you use cperl?
avar yeah, cperl-mode
jrockway i am planning on porting angerwhale to elisp just so i can highlight my posts the same as emacs :)
K0brik cperl-mode is screwing my code
jrockway how?
moritz_ jrockway: wyh don't you just write Text::EmacsColor? 13:34
K0brik the auto indentation
moritz_ jrockway: in analogy to Text::VimColor
jrockway K0brik: don't use it then
moritz_: yeah
moritz_: if you thought vimcolor was slow, wait until you see emacscolor :)
moritz_ jrockway: then use PPI::HTML ;)
jrockway yes, that's a good idea 13:35
moritz_ jrockway: I wrote a offline CMS which uses vimcolor for syntax hilighting
jrockway: because I couldn't find another hilighter for perl 6 code
and I wanted syntax hilighting so badly for perl-6.de/
lambdabot Title: Perl 6 - Schmerzloses Programmieren
jrockway www.kentcowgill.org/blog/view/133
lambdabot Title: Too slow - kentcowgill.org/blog
moritz_ jrockway: caching, caching, caching 13:36
I think it's acceptable to slow on posting
that happens just every once in a while
jrockway i use Syntax::Higligh::Engine::Kate
but it's slow, and i cache too :)
moritz_ or you can even let the server side script fork into the background to do the hilighting progressively 13:37
jrockway angerwhale is mostly static, it only recalculates pages when they change
the real reason i haven't written emacscolor is that i don't know how
maybe exec emacs and have it print out its internal representation of the buffer
jrockway delegates to avar for that
moritz_ jrockway: another idea... use a MAD enabled blead perl and parse its XML output
then you get correct output - always ;) 13:38
jrockway emacs actually does a little better than MAD, it highlights inside regexes too
moritz_ I didn't know that MAD doesn't handle regexes 13:39
jrockway: but it doesn't execute BEGIN blocks ;)
jrockway i think it just dumps them as a string
i haven't looked for a while though, so i could be completely wrong
code that i post to my blog doesn't use BEGIN to affect compiliation anyway :) 13:40
avar yes and the mad xml isn't very useful for most things, it's not an AST
moritz_ :)
jrockway anyway, to get back on topic
moritz_ avar: is it sufficient for syntax hilighting?
jrockway cperl lets you customize indentation
although i still haven't gotten it right in one place, and just press "C-u SPACE" in that situation
avar moritz_: it would be very painful
jrockway also 13:42
long time no see, avar
how is #perl these days?
avar meh 13:43
13:45 TJCRI joined
K0brik #perl is strange 13:46
or maybe they forwarded me to the dreamers channel 13:47
I only go there when I want to be helpful 13:48
13:54 lyokato left
pugs_svnbot r17906 | fglock++ | [kp6] coro cleanup 13:56
diff: dev.pugscode.org/changeset/17906
lambdabot Title: Changeset 17906 - Pugs - Trac
14:02 K0brik left, devogon_ joined 14:03 cognominal_ left 14:07 devogon left
ferreira Juerd is the keeper of feather? I am interested at an account at feather. It would make much easier for me to work/experiment with pugs. 14:16
moritz_ ferreira: see www.mail-archive.com/perl6-language...20060.html 14:17
lambdabot Title: Perl development server
ferreira thanks
14:23 pdcawley joined 14:30 justatheory joined 14:31 cognominal_ joined 14:32 amnesiac joined 14:38 TJCRI left 14:39 justatheory left 14:47 Arathorn left 14:48 Limbic_Region joined
pugs_svnbot r17907 | fglock++ | [kp6] (1 .. Inf) is a Range 14:56
diff: dev.pugscode.org/changeset/17907
lambdabot Title: Changeset 17907 - Pugs - Trac
moritz_ kp6: ((1 .. Inf).WHAT).say 14:57
exp_evalbot r17907: OUTPUT[no method 'say' in Class 'Range'ā¤]
moritz_ kp6: say (1 .. Inf).WHAT
exp_evalbot r17907: OUTPUT[Rangeā¤]
moritz_ YaY
kp6: say (1 .. Inf).perl
exp_evalbot r17907: OUTPUT[( 1..inf )ā¤]
moritz_ fglock++
Limbic_Region what about negative infinity to positive infinity? 14:58
moritz_ kp6: say (-Inf .. Inf).WHAT
exp_evalbot r17907: OUTPUT[syntax error at position 4, line 1 column 4:ā¤say (-Inf .. Inf).WHAā¤ ^ HEREā¤ā¤]
fglock_ kp6: (0 - Inf) .. Inf 14:59
exp_evalbot r17907: OUTPUT[( -inf..inf )ā¤]
fglock_ implementing prefix-minus ...
15:03 cognominal_ left 15:11 cognominal_ joined 15:12 ferreira left
pugs_svnbot r17908 | fglock++ | [kp6] -(1) - parentheses are required for now 15:14
diff: dev.pugscode.org/changeset/17908
lambdabot Title: Changeset 17908 - Pugs - Trac
fglock_ kp6: -(Inf) 15:18
exp_evalbot r17908: OUTPUT[-infā¤]
avar kp6: -(Inf) .. Inf 15:19
exp_evalbot r17908: OUTPUT[-139496048ā¤]
avar kp6: (-(Inf) .. Inf).WHAT
exp_evalbot r17908: OUTPUT[ā¤]
fglock_ mm?
moritz_ kp6: say (-(Inf) .. Inf).WHAT 15:20
exp_evalbot r17908: OUTPUT[Intā¤]
fglock_ kp6: (-(Inf)) .. Inf
exp_evalbot r17908: OUTPUT[( -inf..inf )ā¤]
fglock_ precendence bug
precedence 15:21
15:24 flokuehn left
avar fglock_: Like the Makefile.PL stuff? 15:24
15:25 pmurias joined
pmurias hi 15:25
lambdabot pmurias: You have 1 new message. '/msg lambdabot @messages' to read it.
fglock_ avar: nice - thanks for working on it :) 15:26
avar fglock_: Is the -mp6- stuff going to be kept around? 15:27
15:27 barney joined
fglock_ yes, it doesn't bootstrap yet 15:27
avar is that going to happen any time soon? 15:28
I'm wondering how to make kp6 installable
moritz_ avar: you don't need the mp6 stuff at run time 15:29
avar: so for non-cpan usage you can just compile it to perl 5
fglock_ it is possible to install the kp6-mp6 version for now, and switch when it bootstraps
avar might need lib-modules-kp6-mp6-p5
but anyway, I think it's best to have blib look like blib/lib/KindaPerl6/kp6-mp6-p5/{modules,lib}/, what do you think? That would make room for multiple emitter backends 15:30
15:30 TJCRI joined
avar then the frontends could look for KindaPerl6/$something/lib/ in @INC 15:31
fglock_ it makes sense to me
avar make forcerecompile all fails b.t.w. 15:35
15:36 pdcawley left
pmurias fglock_: any thoughts how context wars could be implemented, they might be usefull for example gather 15:36
* for gather 15:37
i'm thinking of PadWalker
but it's a additional dependenciy
fglock_ pmurias: either by asking the Pad object, or PadWalker - I'd rather use Pad, because it's more portable
pmurias * dependency 15:38
fglock_ i think gather doesn't need it
pmurias one could use a local
fglock_ i'm planning to use coroutines for lazy gather
$ perl examples/coro.pl 15:39
i'm trying out a visitor to implement that
pmurias is gathers laziness speced somewhere?
moritz_ I think implicitly "all lists are lazy" 15:40
fglock_ looking
PerlJam all lists are lazy is specced, so I'd call that "explicit" :) 15:41
(unless you've marked them otherwise)
pmurias List context in PerlĀ 6 is by default lazy.
S02 15:42
Limbic_Region I am lazy but I don't think there is any need to spec that - just check out my waist line 15:46
15:48 ruoso left 15:50 ashleyb joined
pmurias fglock_: looked a examples/coro.pl lookes sane 15:51
15:51 ruoso joined
moritz_ Limbic_Region: perhaps we need to know that when we execu^Wimplement you ;) 15:52
15:53 drrho left
Limbic_Region moritz++ 15:53
15:56 drrho joined
bloonix which combination on my keyboard prints ā¤ ? 16:00
pugs_svnbot r17909 | fglock++ | [kp6] Visitor::Coro stub
diff: dev.pugscode.org/changeset/17909
lambdabot Title: Changeset 17909 - Pugs - Trac
pmurias fglock_: using a seperate AST node for Gather might be resonable 16:13
16:14 Casan_ left
fglock_ k 16:16
pmurias shall i extend the grammar? 16:17
fglock_ i'm working on it :) 16:18
pmurias thought so, did it anyway ;) 16:19
fglock_ heh
i'm only working on coro - i think gather can be implemented as syntax sugar 16:20
pugs_svnbot r17910 | fglock++ | [kp6] added Coro node
diff: dev.pugscode.org/changeset/17910
lambdabot Title: Changeset 17910 - Pugs - Trac
fglock_ no need for a gather node 16:21
16:22 [particle] left 16:23 [particle] joined
pmurias i need to stop using the dev.pugscode.org/changeset 16:24
lambdabot Title: Changeset 17910 - Pugs - Trac
pmurias diffs which change the -p5 dirs are to big for my firefox
16:27 silug left 16:29 Southen_ joined 16:31 weinig left
pugs_svnbot r17911 | fglock++ | [kp6] added coro to the grammar 16:31
diff: dev.pugscode.org/changeset/17911
lambdabot Title: Changeset 17911 - Pugs - Trac
16:40 Southen left 16:46 Aankhen`` left 16:47 franck___ left, Aankhen`` joined 16:49 c9s joined 16:50 vel joined 16:51 vel left 16:54 ahmadz joined
ahmadz hi all 16:55
TimToady fglock_: note that gather/take is currently specced as dynamically scoped, not lexically. I wonder whether coro can handle a take in different sub than its gather.
ahmadz: hi 16:56
16:56 weinig joined
moritz_ TimToady: do you think custom ternary (or n-ary) operators should be possible? 16:57
is that possible with STD's approach?
I'm refering to www.perlmonks.org/?node_id=639643 16:58
lambdabot Title: &#91;Perl 6&#93; Even more freedom for custom operators?
fglock_ yes, i'm handling that case - but what i'm calling "coro" not be the same thing 16:59
TimToady well, anything is possible. the current bottom-up parser is just a method, after all
fglock_ may not be 17:00
TimToady k
17:00 justatheory joined
fglock_ i wonder if you had a specific implementation strategy in mind? 17:00
TimToady not really 17:01
moritz_ TimToady: ok, let's rephrase it: it is feasible without too much change to existing STD? 17:02
TimToady gather/take is just a way to hide continuations inside list context, theoretically
define "too much"
method EXPR does 1-token lookahead
moritz_ too much = change at least 30% of existing code in STD
TimToady you could write an EXPR that does multi-token lookahead 17:03
and it would be roughly the same size as the current EXPR method
17:03 ferreira joined
moritz_ but it would impose a performance overhead, right? 17:03
TimToady the primary difficulty is not performance, it's explaining to mere mortals why it isn't doing simple operator precedence anymore :) 17:04
moritz_ ok, that answers my question, thank you ;)
TimToady it makes it a lot hard to answer "What went wrong with my program?"
*harder
still haven't got to PM yet this morning, obviously... 17:05
darn, it's too early to make jokes too 17:06
should have said
still haven't got to PM yet this AM, obviously
moritz_ ;)
TimToady but if you folx will stop saying interesting things for a while, maybe I'll get a chance :) 17:07
17:09 Psyche^ joined, TJCRI left
fglock_ i wonder if dynamically scoped coros would be more useful 17:14
17:14 mj41 left 17:15 rindolf joined
TimToady well, a yield has to know where it's sending its value somehow 17:16
a coro sends its value to the caller of this routine, at least by defualt 17:17
a take sends its output unambiguously to the innermost dynamically scoped gather
17:20 Patterner left, Psyche^ is now known as Patterner
pmurias pugs: sub f { my $a = -> $x {return $x} $a("?") }; say f() 17:27
exp_evalbot OUTPUT[*** ā¤ Unexpected "$a"ā¤ expecting operator or "}"ā¤ at /tmp/cLdYdj8RC9 line 1, column 35ā¤]
pmurias pugs: sub f { my $a = -> $x {return $x}; $a("?") }; say f()
exp_evalbot OUTPUT[?ā¤]
17:27 vel joined
pmurias pugs: sub f { my $a = -> $x {return $x}; $a("?");"?!" }; say f() 17:27
exp_evalbot OUTPUT[?ā¤]
Limbic_Region TimToady - the number of perl 6 related questions at PM in the last few days has seemed to jumped up - which happens every so often 17:29
17:34 d4l3k_ joined
ferreira Limbic_Region: you say it due to the three top nodes by blazar, "Perl 6 and exe" and the micro-articles? Or there is more I am not seeing? 17:35
17:36 ruoso left, tflorez left, nipra left, arguile left, ting__ left, dvorak left, SubStack left, Kattana left, dalek left, pugs_svnbot left, shachaf left, d4l3k_ is now known as dalek 17:37 ruoso joined, tflorez joined, nipra joined, arguile joined, ting__ joined, dvorak joined, SubStack joined, Kattana joined, pugs_svnbot joined, shachaf joined, moritz_ joined, Eidolos joined, cognominal joined
Limbic_Region ferreira - I say it based off spending every day obsessed with PM 17:37
did you read "Musings on the future"? 17:39
ferreira Nope. But I will ;-)
17:41 ashleyb left 17:43 TJCRI joined
ahmadz @seen moritz_ 17:43
lambdabot moritz_ is in #perl6. I don't know when moritz_ last spoke.
ahmadz @tell moritz_ "I added more debugging aids to runpugs on feather.perl6.nl:8096/runpugs/). Please send me the whole status line so i can debug. 17:46
lambdabot Consider it noted.
ferreira Limbic_Region: Interesting reading.
17:48 riffraff left
fglock_ Limbic_Region: link? 17:48
Limbic_Region ferreira - yes, but don't confuse it why my similarily named node "Anticipation of future needs and other musings from the crystal ball" www.perlmonks.org/?node_id=194937 17:49
lambdabot Title: Anticipation of future needs and other musings from the crystal ball
Limbic_Region fglock_ - just a sec
www.perlmonks.org/?node_id=639289 # the one about perl 6
lambdabot Title: Musings on the future 17:50
ferreira I've not read yours yet. I just looked for the title you gave.
17:50 autark left
Limbic_Region ferreira - don't bother reading mine. It was from years ago when I had just started with perl 17:50
I just found it funny that it had a similar title 17:51
Limbic_Region wonders if TimToady reads his /msgs on PM
ferreira thinks he does, but he won't tell you ;-) 17:52
17:52 drrho left 17:53 vel left
Juerd ferreira: I'm creating an account for you in a few minutes :) 17:56
I need to reboot my laptop first
ferreira Juerd: thanks 17:57
fglock_ home & 17:58
17:58 blindfish joined
ferreira I'm not very inspired. The next article is by now an insipid text about the concatenation operation: ferreira.nfshost.com/perl6/stitching6.html 18:01
lambdabot Title: stitching.pod6
ferreira Not much to say about it.
Hey, that title was chosen by perldoc2xhtml, not me. 18:02
Comments and feedback welcome. 18:04
The pretention is to publish the article at ONLamp Monday, Wednesday and Friday.
Juerd ferreira: Check your mail :) 18:05
ferreira Well, it started today (Tuesday) but I think it can get regular from tomorrow on.
18:06 lambdabot left
Juerd ferreira: "String append is likewise '~='." is not redundant enough to be understood by someone who is not fluent in English 18:06
18:06 lambdabot joined
ferreira Juerd: thanks again. I will follow the instructions. 18:07
Juerd I suggest: "Appending to a string can likewise be done with ~=. Compare to += that adds to a number."
ferreira Agreed.
18:08 silug joined
Juerd "The infix operator '~' keeps additive precedence in Perl 6." - I do not know what additive precedence is :) 18:08
ferreira The same precedence of '+' :/ This is not very informative, is it? 18:09
18:12 riffraff joined 18:16 jisom joined 18:21 ashleyb joined 18:22 ahmadz left
ferreira Juerd: your suggestions were entered into the article. 18:23
moritz_ @tell ahmadz 'my @a' results in ascii=(109,121,32,0,64,97,) 18:24
lambdabot Consider it noted.
moritz_ @tell ahmadz and everything after the 0 byte is ignored, it seems
lambdabot Consider it noted.
18:25 ahmadz joined
ahmadz kp6: my @a = <1 2 3>; 18:26
lambdabot ahmadz: You have 2 new messages. '/msg lambdabot @messages' to read them.
exp_evalbot r17911: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a = <1 2 3>ā¤ ^ HEREā¤]
ahmadz @messages
lambdabot moritz_ said 2m 26s ago: 'my @a' results in ascii=(109,121,32,0,64,97,)
moritz_ said 1m 37s ago: and everything after the 0 byte is ignored, it seems
Juerd What country is .jo?
[particle] it's next to .jp 18:27
Juerd Grin
ahmadz jordan...
TimToady ferreira: "'.' was after a few years of OO practice the operator by excellence to join..." is not really English
Juerd Ah. I think I've never seen a .jo hostname before!
ahmadz juerd: ;-)
TimToady did you mean "the operator of choice"? 18:28
ferreira yes, makes sense. I use to write a few silly things in English because I try not to think in my own language. And then I think for a moment and it seems like I am not thinking at all. 18:30
TimToady also "after a few years of OO practice" sounds like "after a few rounds of golf practice" 18:31
that is, it sounds like you're doing the practicing, not the industry
perhaps the phrase "common practice" could be used 18:32
18:32 dduncan joined
ferreira Replaced 'OO practice' by 'common practice'. It improved. 18:34
Sometimes I insist on some expressions, like the 'OO' in this case, and then I discover it doesn't add much. 18:36
18:39 pmurias left
TimToady well, "common OO practice" would work fine too 18:41
18:41 c9s left
TimToady one other thing, I usually use Perl&nbsp;6 just to avoid line breaks in the middle 18:43
ferreira ok. How do I say that in POD6: E<nbsp> ? 18:44
18:46 rindolf left
ferreira Yes, that works. I will need to tame perldoc2xhtml (the XHTML producer of Perl6::Perldoc) to produce the HTML without line breaks in paragraphs, to keep MT happy (that's what ONLamp uses). 18:47
18:55 ahmadz left, Limbic_Region left 19:00 lisppaste3 left 19:04 TJCRI left 19:06 lisppaste3 joined 19:08 ruoso left 19:09 kane_ left
pugs_svnbot r17912 | azawawi++ | [runpugs] fixed moritz's AltGr+q problem by filtering all keys on ascii value in keypress 19:11
r17912 | azawawi++ | [runpugs] added debug on/off aids in runpugs.js to debug communication
diff: dev.pugscode.org/changeset/17912
lambdabot Title: Changeset 17912 - Pugs - Trac
19:11 ahmadz joined
ferreira Well, I learned a bit of POD6 today. It seems nice. I will think about at an extension define for example a macro inline code. That would make possible to write M<Perl 6> that rendered as PerlE<nbsp>6. 19:16
19:20 amnesiac left
moritz_ ahmadz++ # YaY, it worked 19:21
lambdabot moritz_: You have 1 new message. '/msg lambdabot @messages' to read it.
ahmadz ahmadz: ty ;-) 19:22
moritz_ @massages
lambdabot ahmadz said 1h 36m 4s ago: "I added more debugging aids to runpugs on feather.perl6.nl:8096/runpugs/). Please send me the whole status line so i can debug.
ahmadz moritz: ty ;-)
moritz_ thank _you_ ;)
TimToady ferreira: well, M<Perl 6> would have no advantage over S<Perl 6>. 19:25
ahmadz moritz_: feather3.perl6.nl/runpugs/ has now the same fixes... off to runpugs tutorial task ;-)
lambdabot Title: Run Perl 6 Now -- in your browser!
pugs_svnbot r17913 | azawawi++ | [runpugs] removed AltGr bug from TODO 19:29
diff: dev.pugscode.org/changeset/17913
lambdabot Title: Changeset 17913 - Pugs - Trac
ferreira It seems like I spoke too soon about learning something about POD6. Strangely, perlpod2xhtml is translating S<Perl 6> into bizarre "&nbsp;P&nbsp;e&nbsp;r&nbsp;l&nbsp; &nbsp;6&nbsp;" 19:30
avar kp6: my @a = <a b c>; \@a 19:31
exp_evalbot r17913: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a = <a b c>; \@ā¤ ^ HEREā¤]
ferreira \ is for captures, I think
pugs: my @a = < a b c>; \@a 19:32
exp_evalbot OUTPUT[["a", "b", "c"]ā¤]
avar kp6: my @a = ("a", "b", "c"); @a
exp_evalbot r17913: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a = ("a", "b", "c"); @ā¤ ^ HEREā¤]
ferreira well, it is not working yet in kp6
avar kp6: my @a := "a"; @a 19:33
exp_evalbot r17913: OUTPUT['a'ā¤]
avar kp6: my @a := <a b c>; @a 19:34
exp_evalbot r17913: OUTPUT[syntax error at position 6, line 1 column 6:ā¤my @a := <a b c>; @ā¤ ^ HEREā¤]
ferreira Funny. Damian got bit by x modifier: " $text =~ s{ }{&nbsp;}gxms; " should have been " $text =~ s{[ ]}{&nbsp;}gxms; "
avar shouldn't have used /x at all 19:35
and ms? 19:36
ferreira but his rule is to always use /gxms, so what he should have not forgotten is [ ] to make space explicit
s| to always use /gxms | to always use /xms | 19:37
the /g was to get a global substitution 19:38
avar always use /gxms? is that one of his retarded best practices? *ducks* 19:39
ferreira yep. These practices made into Perl 6 as well. /x is no longer necessary, because it is the default. (Use rx:perl5// or something to get the old behavior) 19:40
19:41 ferreira left
avar Yes, but why would you want /s AND /m ? 19:41
19:41 justatheory left
PerlJam sado masochism. 19:41
TimToady in p6 /s is default but not /m 19:42
that is, . always matches anything, but ^ and $ are still beg/end of the entire string
19:43 ferreira joined
TimToady and they are no longer switched lexically. use \N or ^^ or $$ explicitly to get the other behavior 19:43
avar well that's because p6 ^ and $ != p5 ^ and $, and ^^ and $$ = \A and \z
[particle] perl 6 regexes are sadistic by default, but no longer masochistic
avar :)
PerlJam perl 6 regex is *much* saner by default. 19:44
19:44 rff_ joined
PerlJam *much* *saner* 19:44
TimToady avar: no, you've got ^^ and $$ backwards 19:45
\A and \z are ^ and $
avar yeah, seems like it:)
But when is /sm in p5 not the same thing as /s ? 19:46
TimToady mnemonic: ^^ and $$ can match multiple times in the same string
they're entirely independent
the /s merely changes the meaning of ., while the /m merely changes the meaning of ^ and $
they're only related by both usages being correlated to having a string with multiple lines in it 19:47
part of why Damian's BP on that is bogus is that /^foo/ can be optimized much better than /^foo/m can 19:48
and, in fact, that's why the default is the way it is in p5 19:49
19:49 ahmadz left, ahmadz joined, riffraff left
TimToady afk & 19:50
19:51 rff_ left
ferreira I just mailed a patch to Damian via RT CPAN. Someone knows if it would be faster if other e-mail/channel were used to talk to him? 19:51
PerlJam "faster"? I don't think the bottleneck is in getting the text to Damian, but rather getting the Damian to process it and respond. 19:52
avar Damian replies to e-mail patches, don't know about rt 19:53
19:53 barney left, justatheory joined
avar ferreira: Is this for the perldoc6 stuff? 19:53
ferreira Yes. It is a fix to XHTML conversion in Perl6-Perldoc-v0.0.5 distribution 19:54
19:56 jisom left
ferreira Hum. "Damian Conway incommunicado at present" - "I'm won't have access to email from September 13 to September 23" Well, I knew he was a busy man. 19:58
19:58 TJCRI joined 20:00 weinig left, weinig joined, vel joined, vel left 20:05 ferreira left 20:13 ruoso joined
pugs_svnbot r17914 | azawawi++ | adding initial unedited tutorial files 20:13
diff: dev.pugscode.org/changeset/17914
lambdabot Title: Changeset 17914 - Pugs - Trac
20:14 ruoso left 21:11 ahmadz left 21:16 blindfish left 21:27 TJCRI left 21:35 iblechbot left 21:44 kaether joined 21:52 kaether left 21:53 kaether joined 22:03 moritz__ joined, moritz_ left 22:21 araujo left 22:28 cmarcelo left 22:49 Aankhen`` left 22:57 Southen_ left 22:58 hkb_aw is now known as hakobe 23:02 [particle1 joined 23:04 cognominal_ left 23:05 cognominal_ joined 23:14 [particle] left 23:20 Blwood left 23:28 justatheory left 23:29 Caelum left 23:31 hakobe is now known as hkb_zz 23:32 weinig left 23:33 weinig joined 23:46 BinGOs left 23:47 koye- left