Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-10-30

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:10 cognominal joined #perl6
00:21 eternaleye joined #perl6
00:22 pcbuetow joined #perl6
00:41 dmq joined #perl6
01:13 alester_ joined #perl6
01:17 spx2 is there anything ... some kind of framework that indexes all documents on a directory and provides searching capabilities through a web front-end ?
01:28 eternaleye joined #perl6
02:23 wayland_ joined #perl6
02:33 wayland_ spx2: written in Perl6?
02:33 wayland_ Not that I know of
02:42 literal write a cgi frontend to grep? :P
02:48 sail0r joined #perl6
02:49 zamolxes joined #perl6
02:52 alc joined #perl6
02:52 sail0r left #perl6
02:55 hercynium_ joined #perl6
03:07 wayland_ literal: or ack  :)
03:07 zamolxes joined #perl6
03:15 literal yes..
03:43 ab5tract joined #perl6
03:58 drbean joined #perl6
04:00 Psyche^ joined #perl6
04:14 wayland_ left #perl6
06:13 ashizawa joined #perl6
06:29 _Jedai_ joined #perl6
06:35 moritz_ spx2: you mean like KinoSearch?
06:45 Jedai joined #perl6
06:49 alester_ I am
06:55 Bzek joined #perl6
06:56 Ontolog joined #perl6
07:00 pasteling "Ontolog" at 59.37.36.178 pasted "match.from() returning incorrect values on zero-width match?" (28 lines, 496B) at http://sial.org/pbot/32945
07:00 Ontolog moritz_: please see my pasting
07:03 moritz_ Ontolog: why should it return 3?
07:03 moritz_ Ontolog: the match starts from 2, and ends at 2.
07:04 moritz_ (remember, indexes are zero-based)
07:04 Ontolog it's the second match though
07:04 Ontolog hmm
07:05 Ontolog i see
07:05 moritz_ you tell it not to match before 2, and it does not.
07:10 sri_kraih joined #perl6
07:25 adc_Penner joined #perl6
07:40 elmex joined #perl6
08:19 iblechbot joined #perl6
08:38 Ontolog joined #perl6
08:44 Alias__ joined #perl6
08:49 cosimo joined #perl6
08:53 jan_ joined #perl6
08:58 schmalbe joined #perl6
09:08 pbuetow joined #perl6
09:11 cosimo joined #perl6
09:40 Bzek joined #perl6
09:41 yantom joined #perl6
10:09 ejs joined #perl6
10:42 bacek joined #perl6
10:50 moritz_ pugs: my @l = 1, 2, 0, 0, 5, 0; say reverse [\||] @l.reverse;
10:50 p6eval pugs: OUTPUT[555550␤]
10:54 smg joined #perl6
10:55 moritz_ pugs: my @l = 1, 2, 0, 0, 5, 0; say ([\,] @l).perl
10:55 p6eval pugs: OUTPUT[*** No such subroutine: "&prefix:[\\,]"␤    at /tmp/wDl6iOKyhs line 1, column 32-39␤]
10:59 wayland76 joined #perl6
10:59 wayland76 rakudo: my $r = <1 2 3>; for $r -> $t { say $t };
10:59 p6eval rakudo 31963: OUTPUT[1 2 3␤]
10:59 b_jonas joined #perl6
11:00 wayland76 rakudo: my $r = <1 2 3>; $r ==> map { say $t; }
11:00 p6eval rakudo 31963: OUTPUT[Statement not terminated properly at line 1, near "==> map { "␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
11:01 moritz_ rakudo doesn't do feeds yet.
11:01 wayland76 Yeah, I thought not, but I thought I'd check :)
11:02 wayland76 I'm answering a question on the mailing list :)
11:08 xinming joined #perl6
11:10 xiaoyafeng joined #perl6
11:25 spx2 joined #perl6
11:36 anonymous_ joined #perl6
11:43 sri_kraih joined #perl6
12:15 xiaoyafeng joined #perl6
12:15 sri_kraih_ joined #perl6
13:06 ZuLuuuuuu joined #perl6
13:19 Ontolog joined #perl6
13:20 wayland76 ...incorrectly :)
13:21 smtms_ joined #perl6
13:22 iblechbot joined #perl6
13:24 ispy_ joined #perl6
13:26 Ontolog moritz_: sent a patch for split on zero-width
13:26 bacek_ joined #perl6
13:27 moritz_ Ontolog++
13:27 jhorwitz joined #perl6
13:28 Ontolog it was tricky and i worry it might be fragile
13:28 Ontolog additional test cases welcome
13:31 fridim_ joined #perl6
13:34 iblechbot_ joined #perl6
13:38 _iblechbot joined #perl6
13:43 _iblechbot_ joined #perl6
13:46 xiaoyafeng_ joined #perl6
13:50 iblechbot joined #perl6
14:15 Psyche^ joined #perl6
14:16 masak joined #perl6
14:16 PZt joined #perl6
14:21 TJCRI joined #perl6
14:26 bacek__ joined #perl6
14:35 zamolxes joined #perl6
14:50 pmichaud RT #60228 looks good to apply to me
14:51 pmichaud (zero-width and split)
14:52 * masak applies
14:52 pmichaud thanks!  masak++ Ontolog++
15:10 ZuLuuuuuu left #perl6
15:35 ispy_1 joined #perl6
15:50 Exodist joined #perl6
15:50 Exodist joined #perl6
16:02 pugs_svn r22825 | moritz++ | [t/spec] unfudge now passing test for Str.split with zero-width matches
16:02 moritz_ Ontolog++ # again
16:03 azawawi joined #perl6
16:04 azawawi hi
16:04 masak azawawi: y0
16:05 azawawi hi masak, how r u doing?
16:05 masak azawawi: fine, thank you. busy week, only now regaining balance. and you?
16:06 azawawi finished my work .. hack holiday tomorrow and sat
16:06 smtms joined #perl6
16:07 masak very nice.
16:17 justatheory joined #perl6
16:27 pugs_svn r22826 | azawawi++ | [STD_syntax_highlight] refactored highlight_match() to be simpler
16:29 pugs_svn r22827 | lwall++ | [Cursor] start switching to mutable cursors where it makes sense (I hope)
16:32 ispy_1 left #perl6
16:37 smtms joined #perl6
16:37 ab5tract joined #perl6
16:41 ruoso joined #perl6
16:53 Lorn joined #perl6
16:59 pugs_svn r22828 | azawawi++ | [STD_syntax_highlight] main(ARGV) refactoring
17:35 smg joined #perl6
17:37 smg joined #perl6
17:44 pugs_svn r22829 | azawawi++ | [STD_syntax_highlight] converted CSS to one liners
17:44 pugs_svn r22829 | azawawi++ | [STD_syntax_highlight] redspans identifies routines and types like --simple
17:47 azawawi moritz_: ping
17:52 moritz_ azawawi: pong
17:52 azawawi moritz_: i examined pod comment output from redspans and i dont think it will be useful
17:53 moritz_ azawawi: in what way? doesn't it identify pod as such?
17:53 azawawi moritz_: nop... only '=cut' as pod, no starter token... like pod_start or something
17:54 ZuLuuuuuu joined #perl6
17:55 moritz_ azawawi: ah, but you can walk up the parse tree, and see that it's matched by pod_comment somewhere
17:56 moritz_ azawawi: I have an experimental highlighting script here (based on redspans) that walks the parse tree until it finds a token name that it can handle
17:56 azawawi moritz_: that's what i basically have here in STD_syntax_highlight --redspans
17:58 moritz_ then what's wrong with it?
17:59 azawawi moritz_: nothing... ;-)
17:59 moritz_ azawawi: ok ;)
17:59 azawawi moritz_: i was only sharing ideas...
17:59 moritz_ ok ;)
17:59 TimToady =cut is not pod  :)
18:00 lambdabot TimToady: You have 1 new message. '/msg lambdabot @messages' to read it.
18:00 * ruoso just as a side note... it seems that merging SMOP and p5 together is a very viable idea... Coro::State already implements a great part of the job...
18:01 TimToady okay, I'll expect it to be done by Monday  :)
18:01 pbuetow joined #perl6
18:02 ruoso :P
18:02 [particle] he didn't say which monday
18:03 ruoso heh
18:03 TimToady moritz_: unrecognized =foo directives are considered standalone in p6
18:03 TimToady and =cut currently falls into that category
18:04 * moritz_ tested with =begin foo ... =end foo anyway
18:05 pugs_svn r22830 | azawawi++ | [STD_syntax_highlight] #-comments support in --redspans
18:07 b_jonas so perl6 isn't like p5 in that =cut is the only thing that can return the perl interpreter from pod to perl
18:08 TimToady correct, =end returns to previous parse state, and standalone directives act like their own =begin/=end
18:09 b_jonas I hope there'll be a negated =begin
18:09 azawawi TimToady: what does vws and unv stand for?
18:09 b_jonas that's what I'm most missing from p5od
18:09 moritz_ vws = vertical whitespace
18:09 b_jonas because with =begin you can embed any special formatting to a pod
18:09 moritz_ b_jonas: what do you mean by "negated begin"? "don't begin here?"
18:09 [particle] negated =begin? you mean =end?
18:09 b_jonas but I still want a default
18:10 b_jonas no, not =end
18:10 azawawi sample redspans output: http://feather.perl6.nl/~azawawi/test.pl.txt
18:10 b_jonas where =begin foo means to speak only to the pod2foo converter, =begin !foo (or some other syntax) should speak a default pod to any pod converter other than pod2foo
18:11 b_jonas so your pod can be viewed by any pos converter even if it displays some features better in foo
18:11 azawawi moritz_: take a look at the link i sent earlier plz; check out =begin and =cut
18:12 TimToady unv = "un-vertical whitespace"
18:12 moritz_ b_jonas: how could you ever know that all but one POD converter can handle a special markup (or, whatever)
18:12 azawawi ;-)
18:12 TimToady azawawi: also looks like redspans is putting out ''' for single quotes, which looks bad
18:13 b_jonas moritz_: no, that part would have ordinary markup as a fallback
18:13 b_jonas eg. you'd have like
18:13 b_jonas =begin html foo <font color="red">bar</font> qux =end =begin !html foo B<bar> qux =end
18:14 TimToady the current language of pod markup is controlled by modules usage, just as p6 itself is
18:14 b_jonas TimToady: yes, =begin foo can be controlled by that, but =begin !foo needs to be standardized
18:14 b_jonas so that if a converter does not know "foo" it would include the part in =begin !foo but not include the part in =begin foo
18:15 b_jonas that is, this is an incompatible change you can't add to p5od for all the existing converters would be wrong
18:15 TimToady that may be something TheDamian is going to propose
18:15 TimToady he's got another proposal in the works
18:15 b_jonas I don't care about the exact syntax for it
18:16 TimToady anyway, STD doesn't pretend to parse real pod yet
18:16 pugs_svn r22831 | ruoso++ | [smop_highlight] outputs redspans-html by default, since it recognizes POD correctly
18:16 b_jonas STD is special, it doesn't need to know about this
18:16 TimToady esp since we don't know what real pod is yet...
18:16 b_jonas for it should ignore both =begin foo and =begin !foo
18:16 b_jonas neither of them contain code
18:16 TimToady STD will need to know real pod
18:17 TimToady or it can't supply %=DATA and such
18:17 b_jonas that's a pity actually: a change only the perl interpreter needs to know about is easier to implement than one _all_ the pod2foo converters need to know about
18:18 ruoso er... it's seeing indentation white spaces as comment for some reason...
18:19 TimToady well, indentation is merely a form of commentary in p6 :P
18:19 TimToady b_jonas: it's called STD for a reason
18:19 b_jonas I mean, even if I wrote a patch for all pod2foo converters, I couldn't release modules with =begin !foo in their pod because whoever isntalls it might not have installed new versions of the pod
18:20 ruoso TimToady, the only problem is weird people like me who like comments with a different background-color than the rest of the code.../
18:20 TimToady which they will discover as soon as they hit the =use B_Jonas_Module
18:21 azawawi moritz_: so i should find =cut <pod_comment> and move backwards until i see what =ident?
18:21 b_jonas maybe I should write the patches to all pod2foo now (how many are there? five? fifty?) and to the perldoc perlpod, and then after like eight years when no-one uses perl 5.10.0 anymore I'll be able to use it
18:21 moritz_ azawawi: dunno, I'm out of sync right now... :/
18:22 TimToady azawawi: if you find =cut, you should halt and catch fire
18:22 azawawi TimToady: ;-) please take a look at http://feather.perl6.nl/~azawawi/test.pl.txt
18:23 TimToady parrot even has a HCF instruction for that...
18:24 moritz_ "token on fire, please extinguish before I'll try to backtrack"
18:24 TimToady azawawi: what do you want me to see?
18:24 azawawi TimToady: =begin
18:25 b_jonas is that what !!! calls?
18:26 [particle] hrmm. std doesn't have <.hcf> yet, though
18:27 TimToady azawawi: cool, looks like ^^ is maybe busted
18:34 ZuLuuuuuu left #perl6
18:35 szabgab joined #perl6
18:35 azawawi the famous rx.t from STD_syntax_highlight --redspans-html => http://feather.perl6.nl/~azawawi/rx.t.html
18:35 lambdabot Title: ../../t/spec/S05-mass/rx.t
18:37 szabgab azawawi: on #parrot I was told to talk to you about syntax highlighting of perl6
18:38 azawawi szabgab: ok
18:38 szabgab I am trying to do that in padre, the IDE
18:38 szabgab so how do you generate thos htmls?
18:39 moritz_ szabgab: there's STD_syntax_highlight in src/perl6/ in the pugs repo
18:39 azawawi szabgab: cd pugs/src/perl6; perldoc STD_syntax_highlight
18:39 moritz_ szabgab: that runs STD.pm to generate a parse tree
18:39 moritz_ for running STD.pm you need perl5.10.0, re::engine::TRE, Moose and JSON::XS
18:41 szabgab thanks, I'll take a look at that later
18:41 szabgab my main interest will be is to use perl 6 for syntax highlighting
18:42 azawawi moritz_: do we have cgi-bin enabled on feather1?
18:42 moritz_ azawawi: don't think so
18:42 azawawi szabgab: btw, i did simple javascript highlighting for runpugs for p6
18:43 moritz_ azawawi: do you want to offer an online syntax hilighter?
18:43 azawawi moritz_: ;-)
18:43 azawawi moritz_: but probably i will run off feather3
18:43 szabgab I have to go now, thanks for the pointers
18:44 azawawi moritz_: s{run}{run it}
18:44 moritz_ azawawi: that's non-trivial, because it needs write access to lex/
18:46 azawawi moritz_: "hmmm" . ("." x 5)
18:47 TheFluff_ joined #perl6
18:48 TimToady thanks
18:49 TimToady azawawi: problem is STD currently requires 2 \n inside =begin/=end; fixing
18:50 azawawi TimToady: so i would get something like <pod_comment> for all of it or part of it?
18:50 szabgab trying to understand the syntax highlighter, it is perl 5, but "use"-es STD.pm which is perl6 ?
18:50 szabgab or is it too late for me ?
18:51 moritz_ szabgab: gimme5 "compiles" the Perl 6 grammar to Perl 5 code, which is then run
18:51 moritz_ that compilation happens when you run 'make'
18:51 szabgab aha
18:52 pugs_svn r22832 | lwall++ | [STD] allow =begin\n=end
18:52 azawawi szabgab: take a look at STD.pm5 and STD.pmc after make in pugs/src/perl6
18:52 * azawawi is typing 'svn up'
18:53 TimToady also now detects missing =end
18:53 TimToady and non-identifiers after =begin
18:54 azawawi and is cloud-computing enabled by default ;-)
18:54 TimToady but currently =begin FOO is allowed to be missing =end FOO in general
18:55 TimToady could restrict that to END and DATA, I suppose
18:56 TimToady or warn in the absence of END/DATA
18:58 azawawi perfecto, TimToady++
18:59 meppl joined #perl6
18:59 TimToady azawawi++
18:59 pugs_svn r22833 | azawawi++ | [STD_syntax_highlight] add .pod_comment to the magic CSS file, TimToady++
18:59 meppl good evening
19:02 TimToady シャワー &
19:02 azawawi so who wants to dump DumpMatch.pm in favor in redspans? ;-)
19:05 azawawi moritz_: perl6.vim has problems with =begin...=end, it only understands =cut
19:08 schmalbe joined #perl6
19:10 * ruoso .oO( I just wish p5 had less magic globals )
19:10 azawawi moritz_: btw, firefox 2.x is gonna be eol-ed soon ;-)
19:13 azawawi ruoso: finally http://feather.perl6.nl/~azawawi/html_smop/src-s1p/ClassHOW.pm.html ;-)
19:13 lambdabot Title: ../../v6/smop/src-s1p/ClassHOW.pm, http://tinyurl.com/5koqf3
19:14 ruoso azawawi++ :D
19:14 azawawi nothing like good old pod... TimToady++
19:16 pugs_svn r22834 | azawawi++ | [STD_syntax_highlight] code cleanup
19:19 pedrob joined #perl6
19:33 adc_Penner joined #perl6
19:38 anonymous_ joined #perl6
19:48 riffraff joined #perl6
19:49 rdice joined #perl6
19:53 azawawi sleep &, cya
20:08 renormalist joined #perl6
20:08 anonymous_ joined #perl6
20:09 jsut|work joined #perl6
20:10 ruoso http://www.perlfoundation.org/perl6/index.cgi?smopp5
20:10 lambdabot Title: SMOPP5 / Perl 6
20:10 ruoso this is the secret plan on how to make perl 5.12 run Perl 6 ;P
20:18 riffraff hi
20:21 spx2 we are approaching perl6 ?
20:21 spx2 :D
20:21 PerlJam approach carefully so as to not wake it
20:22 spx2 PerlJam: :))
20:22 spx2 I just want to know when it will be time to learn it
20:22 ruoso PerlJam, if you happen to have some time, please take a look at the link I just posted above :)
20:23 PerlJam spx2: the sooner you learn it the better prepared you'll be when it gets here.
20:23 PerlJam spx2: plus,  there are implementations  that you can use today.  They aren't complete, but they are very usable.
20:24 spx2 so I can become a hero by implementing in perl6 functionality already existing in perl5 ?
20:24 spx2 :D
20:25 PerlJam ruoso: sounds like a lot of work.  Also sounds like it'll make p5 even slower.  (these are just my initial reactions)
20:26 ruoso in optimizers I trust ;)
20:43 ofer joined #perl6
20:43 anonymous_ joined #perl6
21:01 rdice joined #perl6
21:14 explorer joined #perl6
21:21 Lorn joined #perl6
21:30 b_jonas joined #perl6
21:42 ryanc joined #perl6
21:54 pmurias joined #perl6
22:01 spx2 joined #perl6
22:12 bsb joined #perl6
22:14 pmurias PerlJam: do you think anything from ruoso's list is particulary hard? or does it seems a lot of work as it consists of multiple steps?
22:14 lambdabot pmurias: You have 1 new message. '/msg lambdabot @messages' to read it.
22:41 zamolxes joined #perl6
22:44 Limbic_Region joined #perl6
22:58 LumberCartel joined #perl6
22:58 LumberCartel left #perl6
22:59 anonymous_ joined #perl6
23:09 pedrob_ joined #perl6
23:21 wayland76 spx2: As for when to learn Perl6, I'd say sometime between now and the end of January, depending on how complete you want it to be when you're learning it :)
23:27 ab5tract joined #perl6
23:27 eternaleye joined #perl6

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

Perl 6 | Reference Documentation | Rakudo