pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/ Set by Tene on 29 July 2008. |
|||
00:09
pedrob left
00:10
cognominal joined
00:20
eternaleye left
00:21
eternaleye joined
00:22
pcbuetow joined
00:27
xiaoyafeng left
00:33
pbuetow left
00:38
pcbuetow left
00:41
dmq joined
00:59
eternaleye left
01:07
Bzek left
01:13
alester_ joined
|
|||
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:17 | |
01:28
eternaleye joined
01:31
meppl left
02:23
wayland_ joined
02:25
wayland76 left
|
|||
wayland_ | spx2: written in Perl6? | 02:33 | |
Not that I know of | |||
02:40
Limbic_Region left
|
|||
literal | write a cgi frontend to grep? :P | 02:42 | |
02:48
sail0r joined,
zamolxes left
02:49
zamolxes joined
02:52
alc joined,
sail0r left
02:55
hercynium_ joined
03:04
drbean__ left
03:06
hercynium_ left
|
|||
wayland_ | literal: or ack :) | 03:07 | |
03:07
zamolxes left,
zamolxes joined
|
|||
literal | yes.. | 03:15 | |
03:43
ab5tract joined
03:58
drbean joined
04:00
Psyche^ joined
04:10
Patterner left,
Psyche^ is now known as Patterner
04:14
wayland_ left
05:16
justatheory left
06:13
ashizawa joined
06:29
_Jedai_ joined
|
|||
moritz_ | spx2: you mean like KinoSearch? | 06:35 | |
06:44
Jedai left
06:45
Jedai joined
06:46
|Jedai| left
|
|||
alester_ | I am | 06:49 | |
06:55
Bzek joined
06:56
Ontolog joined
|
|||
pasteling | "Ontolog" at 59.37.36.178 pasted "match.from() returning incorrect values on zero-width match?" (28 lines, 496B) at sial.org/pbot/32945 | 07:00 | |
07:00
ab5tract left
|
|||
Ontolog | moritz_: please see my pasting | 07:00 | |
moritz_ | Ontolog: why should it return 3? | 07:03 | |
Ontolog: the match starts from 2, and ends at 2. | |||
(remember, indexes are zero-based) | 07:04 | ||
Ontolog | it's the second match though | ||
hmm | |||
i see | 07:05 | ||
moritz_ | you tell it not to match before 2, and it does not. | ||
07:10
Bzek left,
sri_kraih joined
07:17
alester_ left
07:25
adc_Penner joined
07:32
Ontolog left
07:40
elmex joined
07:45
falesca left
07:48
anonymous_ left
08:16
bacek left
08:19
iblechbot joined
08:38
Ontolog joined
08:44
Alias__ joined
08:49
cosimo joined
08:51
jan_ left
08:53
jan_ joined
08:57
cosimo left
08:58
schmalbe joined
09:08
pbuetow joined
09:11
cosimo joined
09:13
kst left
09:17
alc left
09:21
PZt left
09:22
pbuetow left
09:24
smg left
09:27
adc_Penner left
09:40
Bzek joined
09:41
yantom joined
10:09
ejs joined
10:10
Alias__ left
10:27
ruoso left
10:42
bacek joined
10:44
Ontolog left
|
|||
moritz_ | pugs: my @l = 1, 2, 0, 0, 5, 0; say reverse [\||] @l.reverse; | 10:50 | |
p6eval | pugs: OUTPUT[555550ā¤] | ||
10:54
smg joined
|
|||
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
|
|||
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
|
|||
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)ā¤] | ||
moritz_ | rakudo doesn't do feeds yet. | 11:01 | |
wayland76 | Yeah, I thought not, but I thought I'd check :) | ||
I'm answering a question on the mailing list :) | 11:02 | ||
11:08
xinming left,
xinming joined
11:09
zamolxes left
11:10
xiaoyafeng joined
11:24
spx2 left
11:25
spx2 joined
11:36
anonymous_ joined,
iblechbot left
11:42
sri_kraih left
11:43
sri_kraih joined
12:09
xiaoyafeng left
12:15
xiaoyafeng joined,
sri_kraih_ joined
12:33
sri_kraih left
13:06
ZuLuuuuuu joined
13:19
Ontolog joined
|
|||
wayland76 | ...incorrectly :) | 13:20 | |
13:21
smtms_ joined
13:22
smtms left,
iblechbot joined
13:23
smtms_ is now known as smtms
13:24
ispy_ joined
|
|||
Ontolog | moritz_: sent a patch for split on zero-width | 13:26 | |
13:26
bacek_ joined
|
|||
moritz_ | Ontolog++ | 13:27 | |
13:27
jhorwitz joined
|
|||
Ontolog | it was tricky and i worry it might be fragile | 13:28 | |
additional test cases welcome | |||
13:31
fridim_ joined
13:34
iblechbot_ joined
13:38
_iblechbot joined
13:39
bacek left
13:42
smtms left
13:43
_iblechbot_ joined
13:46
xiaoyafeng_ joined
13:48
iblechbot left
13:50
iblechbot joined
13:52
iblechbot_ left
13:53
Patterner left
13:57
_iblechbot left
14:05
_iblechbot_ left
14:08
xiaoyafeng left
14:15
Psyche^ joined,
Psyche^ is now known as Patterner
14:16
masak joined,
PZt joined
14:21
TJCRI joined
14:24
ejs left
14:26
bacek__ joined,
bacek_ left
14:35
zamolxes joined
14:36
eternaleye left
|
|||
pmichaud | RT #60228 looks good to apply to me | 14:50 | |
(zero-width and split) | 14:51 | ||
masak applies | 14:52 | ||
pmichaud | thanks! masak++ Ontolog++ | ||
15:07
ashizawa left
15:10
ZuLuuuuuu left
15:22
zamolxes left
15:35
ispy_1 joined
15:42
schmalbe left
15:50
Exodist joined,
Exodist left,
Exodist joined
15:51
ispy_ left
|
|||
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
|
|||
azawawi | hi | 16:04 | |
masak | azawawi: y0 | ||
azawawi | hi masak, how r u doing? | 16:05 | |
masak | azawawi: fine, thank you. busy week, only now regaining balance. and you? | ||
16:05
smg left
|
|||
azawawi | finished my work .. hack holiday tomorrow and sat | 16:06 | |
16:06
smtms joined
|
|||
masak | very nice. | 16:07 | |
16:09
Alias_ left
16:17
justatheory joined
|
|||
pugs_svn | r22826 | azawawi++ | [STD_syntax_highlight] refactored highlight_match() to be simpler | 16:27 | |
r22827 | lwall++ | [Cursor] start switching to mutable cursors where it makes sense (I hope) | 16:29 | ||
16:30
cosimo left
16:32
ispy_1 left
16:33
smtms left
16:37
smtms joined,
ab5tract joined
16:41
ruoso joined
16:53
Lorn joined
16:54
masak left
|
|||
pugs_svn | r22828 | azawawi++ | [STD_syntax_highlight] main(ARGV) refactoring | 16:59 | |
17:27
yantom left
17:35
smg joined
17:36
smg left
17:37
smg joined
|
|||
pugs_svn | r22829 | azawawi++ | [STD_syntax_highlight] converted CSS to one liners | 17:44 | |
r22829 | azawawi++ | [STD_syntax_highlight] redspans identifies routines and types like --simple | |||
azawawi | moritz_: ping | 17:47 | |
moritz_ | azawawi: pong | 17:52 | |
azawawi | moritz_: i examined pod comment output from redspans and i dont think it will be useful | ||
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
|
|||
moritz_ | azawawi: ah, but you can walk up the parse tree, and see that it's matched by pod_comment somewhere | 17:55 | |
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 | ||
moritz_ | then what's wrong with it? | 17:58 | |
azawawi | moritz_: nothing... ;-) | 17:59 | |
moritz_ | azawawi: ok ;) | ||
azawawi | moritz_: i was only sharing ideas... | ||
moritz_ | ok ;) | ||
TimToady | =cut is not pod :) | ||
lambdabot | TimToady: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
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:00 | ||
TimToady | okay, I'll expect it to be done by Monday :) | 18:01 | |
18:01
pbuetow joined
|
|||
ruoso | :P | 18:01 | |
[particle] | he didn't say which monday | 18:02 | |
ruoso | heh | 18:03 | |
TimToady | moritz_: unrecognized =foo directives are considered standalone in p6 | ||
and =cut currently falls into that category | |||
moritz_ tested with =begin foo ... =end foo anyway | 18:04 | ||
pugs_svn | r22830 | azawawi++ | [STD_syntax_highlight] #-comments support in --redspans | 18:05 | |
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:07 | |
TimToady | correct, =end returns to previous parse state, and standalone directives act like their own =begin/=end | 18:08 | |
b_jonas | I hope there'll be a negated =begin | 18:09 | |
azawawi | TimToady: what does vws and unv stand for? | ||
b_jonas | that's what I'm most missing from p5od | ||
moritz_ | vws = vertical whitespace | ||
b_jonas | because with =begin you can embed any special formatting to a pod | ||
moritz_ | b_jonas: what do you mean by "negated begin"? "don't begin here?" | ||
[particle] | negated =begin? you mean =end? | ||
b_jonas | but I still want a default | ||
no, not =end | |||
azawawi | sample redspans output: 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 | ||
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 | ||
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) | ||
azawawi | ;-) | ||
TimToady | azawawi: also looks like redspans is putting out ''' for single quotes, which looks bad | ||
b_jonas | moritz_: no, that part would have ordinary markup as a fallback | 18:13 | |
eg. you'd have like | |||
=begin html foo <font color="red">bar</font> qux =end =begin !html foo B<bar> qux =end | |||
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 | ||
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 | |||
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 | ||
he's got another proposal in the works | |||
b_jonas | I don't care about the exact syntax for it | ||
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 | ||
b_jonas | STD is special, it doesn't need to know about this | ||
TimToady | esp since we don't know what real pod is yet... | ||
b_jonas | for it should ignore both =begin foo and =begin !foo | ||
neither of them contain code | |||
TimToady | STD will need to know real pod | ||
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 | ||
ruoso | er... it's seeing indentation white spaces as comment for some reason... | 18:18 | |
TimToady | well, indentation is merely a form of commentary in p6 :P | 18:19 | |
b_jonas: it's called STD for a reason | |||
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 | ||
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 | ||
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 | ||
moritz_ | azawawi: dunno, I'm out of sync right now... :/ | ||
TimToady | azawawi: if you find =cut, you should halt and catch fire | 18:22 | |
azawawi | TimToady: ;-) please take a look at feather.perl6.nl/~azawawi/test.pl.txt | ||
TimToady | parrot even has a HCF instruction for that... | 18:23 | |
moritz_ | "token on fire, please extinguish before I'll try to backtrack" | 18:24 | |
TimToady | azawawi: what do you want me to see? | ||
azawawi | TimToady: =begin | ||
b_jonas | is that what !!! calls? | 18:25 | |
[particle] | hrmm. std doesn't have <.hcf> yet, though | 18:26 | |
TimToady | azawawi: cool, looks like ^^ is maybe busted | 18:27 | |
18:31
Bzek left
18:34
ZuLuuuuuu left
18:35
szabgab joined
|
|||
azawawi | the famous rx.t from STD_syntax_highlight --redspans-html => feather.perl6.nl/~azawawi/rx.t.html | 18:35 | |
lambdabot | Title: ../../t/spec/S05-mass/rx.t | ||
szabgab | azawawi: on #parrot I was told to talk to you about syntax highlighting of perl6 | 18:37 | |
azawawi | szabgab: ok | 18:38 | |
szabgab | I am trying to do that in padre, the IDE | ||
so how do you generate thos htmls? | |||
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 | ||
moritz_ | szabgab: that runs STD.pm to generate a parse tree | ||
for running STD.pm you need perl5.10.0, re::engine::TRE, Moose and JSON::XS | |||
szabgab | thanks, I'll take a look at that later | 18:41 | |
my main interest will be is to use perl 6 for syntax highlighting | |||
azawawi | moritz_: do we have cgi-bin enabled on feather1? | 18:42 | |
moritz_ | azawawi: don't think so | ||
azawawi | szabgab: btw, i did simple javascript highlighting for runpugs for p6 | ||
moritz_ | azawawi: do you want to offer an online syntax hilighter? | 18:43 | |
azawawi | moritz_: ;-) | ||
moritz_: but probably i will run off feather3 | |||
szabgab | I have to go now, thanks for the pointers | ||
azawawi | moritz_: s{run}{run it} | 18:44 | |
moritz_ | azawawi: that's non-trivial, because it needs write access to lex/ | ||
azawawi | moritz_: "hmmm" . ("." x 5) | 18:46 | |
18:47
TheFluff_ joined,
ChanServ sets mode: +o diakopter,
diakopter sets mode: +o TimToady,
diakopter sets mode: -o diakopter
|
|||
TimToady | thanks | 18:48 | |
azawawi: problem is STD currently requires 2 \n inside =begin/=end; fixing | 18:49 | ||
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 ? | ||
or is it too late for me ? | |||
moritz_ | szabgab: gimme5 "compiles" the Perl 6 grammar to Perl 5 code, which is then run | 18:51 | |
that compilation happens when you run 'make' | |||
szabgab | aha | ||
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 | ||
azawawi is typing 'svn up' | |||
TimToady | also now detects missing =end | 18:53 | |
and non-identifiers after =begin | |||
azawawi | and is cloud-computing enabled by default ;-) | 18:54 | |
TimToady | but currently =begin FOO is allowed to be missing =end FOO in general | ||
could restrict that to END and DATA, I suppose | 18:55 | ||
or warn in the absence of END/DATA | 18:56 | ||
azawawi | perfecto, TimToady++ | 18:58 | |
18:59
TheFluff left,
meppl joined
|
|||
TimToady | azawawi++ | 18:59 | |
pugs_svn | r22833 | azawawi++ | [STD_syntax_highlight] add .pod_comment to the magic CSS file, TimToady++ | ||
meppl | good evening | ||
TimToady | ć·ć£ćÆć¼ & | 19:02 | |
azawawi | so who wants to dump DumpMatch.pm in favor in redspans? ;-) | ||
moritz_: perl6.vim has problems with =begin...=end, it only understands =cut | 19:05 | ||
19:08
schmalbe joined
|
|||
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:12
anonymous_ left
|
|||
azawawi | ruoso: finally feather.perl6.nl/~azawawi/html_smop...OW.pm.html ;-) | 19:13 | |
lambdabot | Title: ../../v6/smop/src-s1p/ClassHOW.pm, tinyurl.com/5koqf3 | ||
ruoso | azawawi++ :D | 19:14 | |
azawawi | nothing like good old pod... TimToady++ | ||
pugs_svn | r22834 | azawawi++ | [STD_syntax_highlight] code cleanup | 19:16 | |
19:19
pedrob joined
19:33
adc_Penner joined
19:38
anonymous_ joined
19:48
riffraff joined
19:49
rdice joined
|
|||
azawawi | sleep &, cya | 19:53 | |
19:53
azawawi left
19:56
anonymous_ left
20:08
renormalist joined,
anonymous_ joined
20:09
jsut|work joined
|
|||
ruoso | www.perlfoundation.org/perl6/index.cgi?smopp5 | 20:09 | |
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:13
jsut|work is now known as jsut
20:17
jsut is now known as jsut|work
|
|||
riffraff | hi | 20:19 | |
20:20
jhorwitz left
|
|||
spx2 | we are approaching perl6 ? | 20:21 | |
:D | |||
PerlJam | approach carefully so as to not wake it | ||
spx2 | PerlJam: :)) | 20:22 | |
I just want to know when it will be time to learn it | |||
ruoso | PerlJam, if you happen to have some time, please take a look at the link I just posted above :) | ||
PerlJam | spx2: the sooner you learn it the better prepared you'll be when it gets here. | 20:23 | |
spx2: plus, there are implementations that you can use today. They aren't complete, but they are very usable. | |||
spx2 | so I can become a hero by implementing in perl6 functionality already existing in perl5 ? | 20:24 | |
:D | |||
20:24
schmalbe left
|
|||
PerlJam | ruoso: sounds like a lot of work. Also sounds like it'll make p5 even slower. (these are just my initial reactions) | 20:25 | |
ruoso | in optimizers I trust ;) | 20:26 | |
20:31
anonymous_ left
20:41
ruoso left
20:43
ofer joined,
anonymous_ joined
20:44
ofer left
20:55
rdice left
21:01
rdice joined
21:09
rdice left,
bacek__ left
21:10
TJCRI left
21:14
explorer joined
21:18
Lorn left
21:21
Lorn joined
21:29
b_jonas left
21:30
b_jonas joined
21:40
riffraff left
21:42
ryanc joined
21:54
pmurias joined
22:00
spx2 left
22:01
spx2 joined
22:12
iblechbot left,
bsb joined
22:13
adc_Penner left
|
|||
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:17
Lorn left,
anonymous_ left
22:26
hercynium left
22:40
fridim_ left
22:41
zamolxes joined
22:44
Limbic_Region joined
22:55
Exodist left
22:58
LumberCartel joined,
LumberCartel left
22:59
anonymous_ joined
23:01
pmurias left
23:02
ab5tract left
23:09
pedrob_ joined
|
|||
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:21 | |
23:21
pedrob left
23:26
pbuetow left
23:27
ab5tract joined,
eternaleye joined
23:31
elmex left
23:37
renormalist left
23:40
eternaleye left
23:45
zamolxes left
23:47
b_jonas left
23:54
Ontolog left
|