|
2009 -- the year of November. <november-wiki.org> <github.com/viklund/november> <irclog.perlgeek.de/november-wiki> <nopaste.snit.ch> Set by moderator on 7 April 2009. |
|||
|
00:53
sri_kraih joined
01:01
sri_kraih__ joined
01:42
sri_kraih joined
03:26
ihrd joined,
ihrd left
09:03
ihrd joined,
ihrd left
11:35
ruoso joined
14:41
masak joined
|
|||
| masak | I almost have a working prototype of the Genshi clone. | 14:51 | |
| but I'm a bit busy right now. if someone who likes Perl 6 grammars wants to go the final few yards, I could make a gist paste and link to it here. | 14:52 | ||
| right now, I've settled on the name "Hitomi", meaning "doubly beautiful". | 14:53 | ||
| moritz_ | feel free, but I won't get to it in the next 2 or 3 hours (though maybe later) | 14:54 | |
| masak | great. it'll be interesting to discuss, at least. I'm mainly being hampered by insufficient introspection into Match objects. (and I got too tired to code last night.) | 14:55 | |
| masak goes to make the gist | |||
| moritz_ | masak: I fixed that last known issues with Match.perl today | 14:57 | |
| masak | sweet. | ||
| masak svn-ups Rakudo | |||
| moritz_++ | |||
| karma moritz_ | |||
| zarah | moritz_ has a karma of 10 | ||
| moritz_ | svn up? | 14:58 | |
| where are you living? 2007? | |||
| masak | er. | ||
| my thought patterns seem to have survived the move to git... | 14:59 | ||
| I abstract away all the piping with huffmanized aliases :) | |||
| gist.github.com/99851 # simple hitomi prototype | 15:17 | ||
| moritz_ | do closing tags allow attributes? | 15:18 | |
| and it seems you don't make sure that opening and closing tags match | 15:19 | ||
| ie you'd parse something like <a></b>, no? | |||
| masak | oops. removing the attrs from the closing tags. | 15:20 | |
| yes, I don't check that opening and closing match. that's for later. | |||
| moritz_ | you could, you know? | ||
| masak | I just want to prototype something right now. | ||
| moritz_ | with backreferences | ||
| masak | moritz_: patches welcome. :) | ||
| but I'd rather make the filtering work right now. | 15:21 | ||
| moritz_ | ok | ||
| as I said, I'll look into it a bit later | |||
| masak | excellent. | ||
| the objective is to filter the pe:if things and only include the element in question iff the code evals to true. | 15:22 | ||
| s/the code/the code in the attribute value/ | |||
| moritz_ | masak: what's your motivation not to use action methods? | 15:28 | |
| masak | moritz_: also the prototyping. | 15:29 | |
| moritz_ | ah | ||
| masak | I saw in the beginning that action methods would be good here. | ||
| but I'm not familiar enough with them yet. | |||
| I even tend to forget the syntax for tying them in. | |||
| in the long run, it would surely be a Good Thing, especially if the separation meant that the grammar could be kept pure XML while the action methods did the Hitomi part. | 15:30 | ||
| Tene | masak: I got rakudo using other HLLs properly, except for some case issues mentioned on the list. | 15:59 | |
| masak | Tene: cool! | ||
| ok, will be heading home soon. | 17:04 | ||
| I might be hacking more on the Hitomi prototype, but if others want to have a go at it, feel free. | |||
| I expect to be able to blog my week 5 of Web.pm tomorrow. | |||
| Tene | masak: posted hitomi anywhere? | 17:38 | |
| besides the paste? | |||
| masak | Tene: no. maybe I should push it to WEb.pm/drafts | ||
| Tene | Yeah | ||
| masak | s/E/e/ | ||
| masak does so | |||
| Tene | thanks. :) | ||
| I'll be working on moving rakudo to its own HLL tonight | 17:39 | ||
| well, getting it as far as I can before bugs, which allison will then look at | |||
| masak | sounds great. | 17:40 | |
| I love the progress we're seeing right now. | |||
| Tene | hitomi is a PCT language? | ||
| right? | |||
| masak | ideally, yes. | ||
| Tene | right now? | ||
| masak | right now it's a prototyped Perl 6 script. | ||
| Tene | ah | ||
| masak | I've pushed now. | ||
|
17:59
szabgab joined
|
|||
| moritz_ | @tell masak re xml parsing gist, I've put a 'say $chunk.perl' before the offending line - $chunk has only one named capture, that is named 'content' - no <opening>, so that's where your failure comes from | 18:43 | |
| zarah | Consider it noted. | ||
| moritz_ | @tell masak that is you have a tag that's followed by text, not other tags | 18:44 | |
| zarah | Consider it noted. | 18:45 | |
| moritz_ | @tell masak I tried to re-do the stuff with action methods, but hit a segfault pretty soon :/ - so recursion seems to be the way to go, still | 19:27 | |
| zarah | Consider it noted. | ||
|
20:48
masak joined
|
|||
| masak | @messages | 20:48 | |
| zarah | masak: 2 h 4 m 21 s ago, moritz_ said re xml parsing gist, I've put a 'say $chunk.perl' before the offending line - $chunk has only one named capture, that is named 'content' - no <opening>, so that's where your failure comes from | ||
| masak: 2 h 3 m 17 s ago, moritz_ said that is you have a tag that's followed by text, not other tags | |||
| masak: 1 h 20 m 57 s ago, moritz_ said I tried to re-do the stuff with action methods, but hit a segfault pretty soon :/ - so recursion seems to be the way to go, still | |||
| masak | moritz_: nice to know that our efforts keep digging up things to do. :) moritz_++ | ||
| moritz_: also, thanks for the investigation. | |||
| moritz_ | masak: you're welcome | 20:49 | |
| masak | I tried earlier to devise a test that doesn't trigger an 'undefined value' warning, and that does exactly what I want. | ||
| haven't succeeded yet. | |||
| will give it another go now with this new knowledge. | |||
| grr, .WHAT on Matches still give the name of the grammars that matched them. | 20:52 | ||
| I thought pmichaud fixed that. | |||
| moritz_ | anyway, use the power of .perl | 20:53 | |
| masak just did | |||
| moritz_ | I spent 1 1/2 hours fixing that yesterday night | 20:54 | |
| masak | mberends and I will soon unleash a yet-to-be-written little web app called "context", which will help in diagnosing grammars, showing how and what they match. | ||
| moritz_++ | |||
| will there be a way to bunch $h<several><hash><indexing><steps><together> ? | 20:55 | ||
| PerlJam | masak: [{}] $h, <several hash indexing steps together> # ;-) | 20:56 | |
| masak | PerlJam: wow. | ||
| PerlJam | I doubt that works though. | 20:57 | |
| masak | quick, let's hack it into the spec! | ||
| PerlJam | I remember dicussing this with TimToady at some point in the past though | ||
| Having such a mutable spec is quite nice. We can grow or shrink the language as we see fit :) | 20:58 | ||
| masak | is there a precedent to the specification strategy of Perl 6? | ||
| PerlJam | What's hitomi all about? | 21:02 | |
| masak | PerlJam: it's a clone of Python's Genshi. | ||
| PerlJam | ah | ||
| not yet functional? | |||
| masak | PerlJam: I want a clone of a popular templating system in Web.pm, and Genshi seems very well likes. | ||
| PerlJam: not at all functional. just a broken prototype. | 21:03 | ||
| I like the name, though :) | |||
| ok, dropping below the radar again. g'night. | 21:14 | ||