Camelia, the Perl 6 bug

IRC log for #perl6, 2008-08-25

Perl 6 | Reference Documentation | Rakudo | Niecza | Specs

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

All times shown according to UTC.

Time Nick Message
00:18 bacek joined #perl6
00:33 eternaleye joined #perl6
00:38 alester joined #perl6
00:47 araujo joined #perl6
01:09 eternaleye joined #perl6
01:29 apeiron_ joined #perl6
01:29 luqui joined #perl6
01:38 xinming joined #perl6
02:18 xinming_ joined #perl6
02:31 meppl joined #perl6
02:36 s1n joined #perl6
02:44 sri_work joined #perl6
02:46 eternaleye joined #perl6
03:02 s1n joined #perl6
03:21 alester joined #perl6
03:45 meppl good night
04:18 alanhaggai joined #perl6
04:41 eternaleye joined #perl6
05:02 |alanhaggai| joined #perl6
05:04 BinGOs joined #perl6
05:12 alanhaggai joined #perl6
05:34 Psyche^ joined #perl6
05:57 ashizawa joined #perl6
06:02 [particle]1 joined #perl6
06:02 xinming joined #perl6
06:03 PZt joined #perl6
06:09 Myoma joined #perl6
06:10 Auzon joined #perl6
06:22 viklund joined #perl6
06:23 bbkr_ joined #perl6
06:50 zamolxes joined #perl6
07:01 Myoma joined #PERL6
07:22 masak joined #perl6
07:53 elmex joined #perl6
07:56 pmurias joined #perl6
08:02 penk joined #perl6
08:03 fridim_ joined #perl6
08:11 pmurias svn: REPORT request failed on '/pugs/!svn/bc/22012'
08:11 pmurias svn: REPORT of '/pugs/!svn/bc/22012': 400 Bad Request (http://svn.pugscode.org)
08:11 lambdabot Title: Revision 22032: /
08:11 pmurias whe svn up'ing is a problem with the network not with the repo?
08:12 pmurias * when
08:12 moritz_ when I try, and it works for me, it's a problem with the network (as in this case) ;-)
08:14 pmurias how can i check if there's a proxy and workaround it?
08:15 moritz_ dunno
08:20 pmurias checking out via https worked
08:23 frobnitz_ joined #perl6
08:26 larsen_ joined #perl6
08:34 japhb joined #perl6
08:37 IRSeekBot joined #perl6
08:39 Gothmog_ joined #perl6
08:41 dr_df0 joined #perl6
08:44 df_df0 joined #perl6
08:44 dr_df0 joined #perl6
08:56 iblechbot joined #perl6
09:04 dr_df0 sorry for bothering You, but I've been looking at readme and howto files
09:04 masak dr_df0: yes?
09:45 wknight8111 joined #perl6
09:48 jferrero joined #perl6
09:52 barney joined #perl6
09:55 Gothmog_ joined #perl6
10:08 dr_df0 left #perl6
10:10 dr_df0 joined #perl6
10:12 dr_df0 rakudo: say "just testing .."
10:12 p6eval rakudo 29834: OUTPUT[just testing ..␤]
10:13 moritz_ you can also let pugs or elf eval your code
10:14 moritz_ pugs: say [+] 1..4
10:14 p6eval pugs: OUTPUT[10␤]
10:14 dr_df0 left #perl6
10:41 megamic joined #perl6
10:54 meppl joined #perl6
11:01 masak pugs: say [=>] 1..4
11:01 p6eval pugs: OUTPUT[1  2       3       4␤]
11:01 masak pugs: say ([=>] 1..4).perl
11:01 p6eval pugs: OUTPUT[\(1, \(2, \(3, 4)))␤]
11:05 moritz_ pugs: say [>=] 1..4
11:05 p6eval pugs: OUTPUT[␤]
11:05 moritz_ pugs: say [<=] 1..4
11:05 p6eval pugs: OUTPUT[1␤]
11:07 moritz_ masak: I tried to write a lexer for the Perl 6 version of HTML::Template, but RT #58312 stopped me :/
11:08 masak moritz_: I'm on it. I'll rewrite the whole HTML::Template today or tomorrow.
11:08 masak with tests.
11:08 moritz_ my plan was to tokenize the input into chunks of normal text and directives, and then write a recursive decending parser on these tokens
11:08 moritz_ well, you already have some tests ;)
11:08 masak I'll see if I can find a way to make Perl 6 grammars do the recdescent
11:09 moritz_ and I guess you could ask samtregar if you can use his HTML::Template test suite, at least the relevant parts
11:10 masak I've looked a bit at that test suite
11:10 masak it looks very comprehensive
11:10 masak but it may or may not be too tied to the Perl 5 HTML::Template
11:10 masak that said, I might be able to 'borrow' the good parts, or at least get inspiration from it
11:11 moritz_ it certainly depends on whether you want to be HTML::Template 5 compatible, or only alike
11:11 masak alike
11:11 masak I thought I'd redesign the interface while I'm at it
11:11 masak (yes, 2nd sys synd, I know)
11:11 masak I've noticed that all of our usages follow the pattern create - set params - output
11:12 masak so I thought I'd design the interface around that
11:12 masak make it easy to do that case, with sensible fallbacks if you want to get more elaborate
11:12 moritz_ sounds great
11:13 masak will probably write something about it on use.perl.org
11:13 masak maybe I'll decide to make our HTML::Template fully compatible, and then write a wrapper that does the DWIMmery
11:14 moritz_ or the other way round
11:14 moritz_ clean break, remember? ;-)
11:15 masak true.
11:15 moritz_ masak: when you're done with your refactor, ping me, and I'll contribute an implementation of default_escape
11:15 masak moritz_: nice. I will.
11:15 moritz_ (which I consider to be most important wrt XSS)
11:16 masak moritz_: do you still prefer to send us patches from outside? :)
11:16 moritz_ at the moment, yes
11:16 masak that's ok.
11:17 moritz_ when I'm more confident with git I'll certainly accept a commit bit
11:18 masak moritz_: you're going to love git
11:18 moritz_ speaking of which...
11:18 moritz_ "error: Entry 'p6w/HTML/Template.pm' not uptodate. Cannot merge.
11:18 moritz_ what do I do now?
11:19 masak moritz_: btw, your #58312 is just a special case of #57858. marking it as such.
11:19 wknight8111 joined #perl6
11:19 masak moritz_: git merge?
11:19 masak oh, that's what you're doing. sorry
11:19 masak what was the command you were running when you got that error?
11:21 moritz_ git-pull
11:22 moritz_ I probably shouldn't have modified the file in master, right?
11:23 masak check out a clean version of that file and try again
11:23 masak that might solve it
11:24 masak git does some unexpected things for a few days, and then it becomes wonderful
11:24 masak but I'm still a bit unclear on the way to handle merge conflicts, because it doesn't happen too often
11:25 moritz_ so how do I check out a clean copy of the file?
11:25 masak git checkout
11:25 moritz_ ok, that tells me M       p6w/HTML/Template.pm
11:25 moritz_ Your branch is behind the tracked remote branch 'origin/master' by 12 commits,
11:25 moritz_ and can be fast-forwarded.
11:26 moritz_ what do I do then? git-pull again?
11:26 masak interesting.
11:26 masak yes, try that...
11:26 moritz_ p6w/HTML/Template.pm: needs update
11:27 moritz_ error: Entry 'p6w/HTML/Template.pm' not uptodate. Cannot merge.
11:27 masak :/
11:27 moritz_ git-diff|patch -R -p1
11:27 moritz_ followed by a git-pull
11:27 moritz_ not very nice, but worked :
11:27 moritz_ :/
11:28 masak heh
11:28 moritz_ perhaps git-clean might have helped
11:28 masak dunno
11:36 meppl joined #perl6
11:49 pmurias joined #perl6
11:52 rindolf joined #perl6
11:58 pmurias joined #perl6
12:04 fridim__ joined #perl6
12:15 iblechbot_ joined #perl6
12:28 jferrero joined #perl6
12:31 wolverian does the spec allow you to "wrap" a class method with a role method? in scala, this kind of a trait method is marked "abstract override", and it calls the class method via super
12:32 wolverian particularly this allows you to stack these traits (roles) that modify a given method
12:34 masak will subs in classes be inlined automatically?
12:36 pmurias masak: i think inlining is implementation dependend
12:37 masak but there's no theoretical obstacle?
12:38 pmurias subs in classes should be inlined the same as subs everywhere
12:39 pmurias i think it should be possible
12:39 moritz_ rakudo: my $M; my $str = 'abc'; while $M := $str ~~ /b/ { say "from ", $M.from; $str = '' };
12:40 p6eval rakudo 29834: OUTPUT[from 1␤]
12:42 masak seems to work.
12:42 moritz_ aye
12:42 moritz_ now I'm one step closer to my tokenizer
12:43 masak moritz_++
12:44 pasteling "moritz_" at 89.13.210.223 pasted "Shot at a first tokenizer for HTML::Template" (30 lines, 694B) at http://sial.org/pbot/31985
12:44 moritz_ I wonder why it says No match on ' <dsadf '
12:44 moritz_ but then @tokens is ["foo ", "<TMPL_VA", ""]
12:44 moritz_ ie last item is empty
12:48 moritz_ ah, @otkens.push: $str.substr(0); # weird way to get a copy of a string
12:49 masak moritz_: interesting work. best of luck. right now I'm at $work, so I'm not hacking on a new HTML::Template -- but when I get home, I'll take a closer look at what you've done.
12:50 masak without any real proof, I'd say you are inventing Perl 6 grammars right now
12:50 moritz_ masak: ok, I have a tokenizer now that basically works
12:50 masak but -Ofun, so...
12:50 moritz_ I know, but this actually works ;)
12:50 masak so do Perl 6 grammars :)
12:50 moritz_ my succcess with grammars was verly limited so far
12:51 masak I've had the opposite experience
12:51 moritz_ how do I match against a grammar rule? $stuff ~~ /<Grammar.TOP>/ ?
12:51 masak $stuff ~~ Grammar.TOP
12:51 masak see Wiki.pm
12:51 moritz_ ok
12:51 masak that's how we parse wiki markup at present
12:51 masak though there, too, I have some pending changes
12:52 moritz_ do you knew if 'token ws { ... }' does what it should?
12:52 moritz_ ah, probably no :sigspace yet
12:52 masak I think it was a mistake to parse on the article level as opposed to the paragraph level
12:53 masak Str.split could pry apart paragraphs better than a grammar could, and then intra-whitespace handling becomes simpler
12:53 masak s/intra-/intra-paragraph /
13:01 kolibrie joined #perl6
13:08 moritz_ grammars work fine for me as long as I don't recurse :(
13:09 masak hm, we recurse, so far without problems
13:09 masak but what you say does sound like a new rakudo bug
13:09 moritz_ I'll try to track it down
13:10 masak also, be careful not to call any of your tokens 'text' :/
13:10 masak PGE doesn't like that.
13:10 moritz_ f*ck, I did
13:10 masak haha
13:10 masak I call mine 'twext'
13:10 moritz_ I call it 'plain
13:12 masak developing in rakudo is a bit like building sand castles in a mine field.
13:12 masak as long as you build in the right spots, it's pretty nice.
13:13 moritz_ do you know if lookaraounds are implemented and accessible?
13:13 masak we've used both -aheads and -behinds a bit
13:13 masak see Wiki.pm
13:13 moritz_ cool
13:15 moritz_ YaY
13:15 masak :)
13:19 kanru joined #perl6
13:32 moritz_ I have a working grammar for HTML::Template now
13:33 pugs_svn r22033 | pmurias++ | [smop] fixed warnings raised by gcc and the bugs that caused them
13:33 moritz_ mostly working ;)
13:33 masak moritz_: cool!
13:37 pugs_svn r22034 | pmurias++ | [smop] removed a no longer relevant files which likely appeared due to a svk bug
13:40 rdice joined #perl6
13:54 moritz_ masak: sent mail
13:55 dmq joined #perl6
13:56 masak moritz_: many thanks
13:56 moritz_ no problem, that was -Ofun indeed
13:58 masak -Ofun++
14:01 TJCRI joined #perl6
14:02 gbacon joined #perl6
14:04 jhorwitz joined #perl6
14:14 bbkr joined #perl6
14:32 allbery_b joined #perl6
14:32 cmarcelo joined #perl6
14:37 hercynium joined #perl6
14:46 kanru joined #perl6
15:01 Exodist joined #perl6
15:04 rakudo_svn r30536 | pmichaud++ | [rakudo]: spectest-progress.csv update: 127 files, 2278 passing tests
15:15 Myoma joined #PERL6
15:17 penk left #perl6
16:07 moritz_ TimToady: %hash.exists<key> doesn't look like English to me. What about an alias %hash.contains<key>, or perhaps .has?
16:10 smg has_key?
16:10 masak has-key?
16:10 masak contains-key?
16:10 moritz_ smg: just has
16:11 * masak likes 'has'
16:11 masak as long as we're making a clean break -- we already changed length to elems/chars/etc
16:12 masak so s/exists/has/++
16:24 masak OTOH, `exists %hash<key>` _does_ make sense
16:25 masak is that syntax still valid in Perl 6?
16:25 zamolxes joined #perl6
16:27 moritz_ no
16:28 moritz_ we discussed this the other day when larry added symbol tables to STD.pm which caught such mistakes
16:32 alanhaggai joined #perl6
16:44 masak moritz_: in that case, I'd say that `exists` has played out its wole
16:44 masak s/w/r/
16:45 moritz_ I CAN HAZ HASH KEY?
16:46 rindolf joined #perl6
17:02 allbery_b joined #perl6
17:15 Khisanth more like English? Perl6 stealing from COBOL? :)
17:16 allbery_b lemme guess, - in identifiers?
17:17 moritz_ Perl has always been happily stealing features from other languages, and admitted it freely ;)
17:50 jferrero joined #perl6
17:57 aindilis joined #perl6
18:48 TJCRI joined #perl6
18:56 calin joined #perl6
19:09 moritz_ on use.perl.org, how do I become a "fan" of somebody else?
19:26 BinGOs the little smiley faces.
19:28 moritz_ is fan == friend?
19:28 BinGOs i believe so.
19:31 moritz_ ah, I think if I declare somebody as my friend, I'll appear as his fan - or something like that
19:36 dr_df0 joined #perl6
19:39 rindolf joined #perl6
19:44 dr_df0 Hi all, I've installed Pugs from sources and i have problems running prove6 utility
19:44 dr_df0 it always stops with error on first test
19:45 moritz_ how did you install pugs? with 'perl Makefile.PL && make' ?
19:45 moritz_ from svn?
19:46 dr_df0 Yeah, just before building i've done svn up
19:46 moritz_ can you pleae nopaste the error message?
19:46 moritz_ and what happens when you run 'make test'?
19:46 dr_df0 but I did also the last bit "make install" ?!?
19:46 rindolf joined #perl6
19:46 moritz_ I never did that ;)
19:49 moritz_ dr_df0: so what's the error message?
19:50 dr_df0 info: Harness with pugs (Haskell backend).
19:50 dr_df0 t/spec/S03-operators/arith....NOK 144#   Failed test (t/spec/S03-operators/arith.t line 330, column 1-17)
19:50 dr_df0 #   Expected: 'Inf'
19:50 dr_df0 #     Actual: '-Inf'
19:50 dr_df0 # Looks like you failed 1 tests of 190
19:50 dr_df0 t/spec/S03-operators/arith....FAILED test 144
19:50 dr_df0 Failed Test                  Stat Wstat Total Fail  Failed  List of Failed
19:51 dr_df0 ----------------------------------------​---------------------------------------
19:51 dr_df0 t/spec/S03-operators/arith.t              190    1   0.53%  144
19:51 dr_df0 Failed 1/1 test scripts, 0.00% okay. 1/190 subtests failed, 99.47% okay.
19:51 moritz_ it means the test fails ;)
19:52 moritz_ which is because it's written wrongly
19:52 moritz_ is -Inf.abs, Inf;
19:52 moritz_ should actually be   is (-Inf).abs, Inf;
19:52 moritz_ dr_df0: could be your first test to fix
19:53 dr_df0 i've checked few of them, and i could not find any working
19:54 moritz_ pugs isn't really well maintained at the moment
19:54 moritz_ which is why I mostly focus on rakudo these days
19:56 gbacon_ joined #perl6
20:07 pugs_svn r22035 | moritz++ | [t/spec] fixed precedence bug in arith.t, dr_df0++ for spotting it
20:09 moritz_ perlbot: karma dr_df0
20:09 perlbot Karma for dr_df0: 2
20:37 larsen_ joined #perl6
20:54 eternaleye joined #perl6
20:55 ruoso joined #perl6
21:07 BinGOs joined #perl6
21:12 meppl joined #perl6
21:21 Auzon joined #perl6
21:31 Limbic_Region joined #perl6
21:40 dr_df0 left #perl6
22:09 aindilis joined #perl6
22:10 eternaleye_ joined #perl6
22:25 cotto_work joined #perl6
22:31 ruoso joined #perl6
23:00 simcop2387 joined #perl6

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

Perl 6 | Reference Documentation | Rakudo | Niecza | Specs