|
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. |
|||
|
08:38
masak joined
|
|||
| masak | ruoso++ # github.com/ruoso/faz/tree/master | 08:56 | |
| zarah | masak's link is also tinyurl.com/dhfa3l | ||
|
12:21
lagarino joined
12:22
lagarino left
12:36
ruoso joined
13:31
masak joined
14:01
ruoso joined
|
|||
| ruoso | masak, btw... what did you think about the Faz thing? | 14:05 | |
| masak | ruoso: I think it's cool what you're doing. | ||
| what were the Rakudo issues you encountered? | |||
| ruoso | basically... | ||
| masak | ruoso: want me to add you to proto's list of projects? | ||
| ruoso | 1 - no contextual variables | ||
| 2 - no closures in regexes | 14:06 | ||
| masak, that would be nice | |||
| masak | are contextual variables those that look $*like-this? | ||
| ruoso: the latter is at least partially workaroundable, with PIR closures. | |||
| ruoso | masak, do you know how to access Perl 6 lexical from PIR closures? | 14:07 | |
| masak | ruoso: no, but it's a perfect question for jnthn or pmichaud. | ||
| moritz_ | find_lex | ||
| ruoso: there are examples in the setting library | |||
| ruoso has no PIR skills at all | 14:09 | ||
| moritz_ | it's a bit like assembler with a huge library that you wouldn't expect from assembler :-) | 14:10 | |
| masak | indeed. | ||
| masak just had a git conflict, and loved it | 14:11 | ||
| I think git is getting to my head. | |||
| even conflicts are lovely nowadays. | |||
| moritz_ | git-rerere is also nice | ||
| masak | rerere? | 14:12 | |
| oh, nice! | |||
| moritz_ | git-rerere - Reuse recorded resolution of conflicted merges | ||
| and the nicest thing about it is that you don't need to call it yourself | |||
| masak | that _is_ nice. | 14:13 | |
| moritz_ | you just need to enable it once | ||
| masak | ruoso: added faz to projects.list in proto, and added you as a proto committer. | 14:16 | |
| proto now has 12 committers. :) | 14:17 | ||
| ruoso | would you like a commit bit in faz? | ||
| masak | sure, why not? | ||
| ruoso | how do I add you? | 14:18 | |
| masak | there's an Admin button to the far right. | 14:19 | |
| my user name is 'masak' on github. | |||
| ruoso | hah... | 14:20 | |
| github site doesn't work with different font resolutions | |||
| masak | I'm sure they'd appreciate hearing that. | ||
| ruoso | the admin link was hidden... | ||
| done | 14:21 | ||
| masak | gracias. | 14:22 | |
| Tene | ruoso: find_lex | 15:21 | |
| $P0 = find_lex '$foo' | |||
| you were asking about lexicals from PIR? | |||
| ruoso | Tene, I need / foo { make $bar } / to work | 15:40 | |
| pmichaud already told me PGE doesn't handle Perl 6 in the closures | |||
| Tene, would a PIR code inside that regex be able to find $bar from Perl 6 | |||
| moritz_ | just try it? | 15:41 | |
| masak | ruoso: yes. | ||
| ruoso: that's what Tene's code does. | |||
| (except with $foo, not with $bar) :) | |||
| ruoso | how is the syntax for a PIR closure inside a regex? | 15:42 | |
| moritz_ | {{...}} IIRC | ||
| masak | nod. | 15:43 | |
| ruoso | hmm... it doesn't seem to work... | 15:50 | |
| find_lex doesn't seem to be looking in the Perl 6 lexical scope | 15:51 | ||
| masak | ruoso: there are examples of it doing this in Any-list.pm and Num.pm in src/setting in the Rakudo source tree. | 15:52 | |
| ruoso | masak, not inside a regex | 15:53 | |
| masak | ruoso: ah. | ||
| right, that might indeed be different. | |||
| sounds like material for a rakudobug, though. | 15:54 | ||
|
16:43
Tene joined
16:46
zarah joined,
ascent_ joined
16:47
ascent_ joined
|
|||
| ruoso | @tell masak It Works! github.com/ruoso/faz/blob/14007bce9...example.pl | 19:48 | |
| zarah | ruoso's link is also tinyurl.com/dzs8n5 | ||
| Consider it noted. | |||
|
20:21
masak joined
|
|||
| masak | zarah: any messages for me? :) | 20:23 | |
| zarah | masak: you've just exceeded my capabilities :/ | ||
| masak: You have new messages. Write '/msg zarah @messages' to read them. | |||
| masak | @massage | ||
| zarah | masak: 34 m 55 s ago, ruoso said It Works! github.com/ruoso/faz/blob/14007bce9...example.pl | ||
| masak | \\o/ | ||
| masak pulls | |||
| ruoso | and pmichaud said contextual variables should be workign by friday | ||
| masak | sounds promising. | 20:24 | |
| ruoso | we then just need an easy way to declare those | ||
| masak | ruoso: could you explain to me in a few short sentences what contextual variables do for us in this context. | 20:26 | |
| Tene | context vars by friday? | ||
| nice! | |||
| I can fix Tags to not be singleton anymore. :D | |||
| ruoso | transient information will be seen by contextual variables | 20:27 | |
| which means you don't need to be sending it back and forth | |||
| for instance... | |||
| $request | |||
| inside an action, you might need to talk to to the request or response objects, rigth? | |||
| moritz_ | Tene: also jnthn made identifiers with colonpairs parse in rakudo... | ||
| ruoso | masak, so, you just use $*request | 20:28 | |
| and $*response | |||
| as well as $*application | |||
| and $*action | |||
| $*session as well | 20:29 | ||
| Tene | moritz_: orly? foo:bar<baz> ? | ||
| moritz_ | Tene: ORLY | ||
| Tene | sweet | ||
| moritz_ | rakudo: module A:ver<bar> { say "alive" } | ||
| p6eval | rakudo ee7d45: OUTPUT«alive» | ||
| Tene | I'll see what I can do about getting traits up to spec | ||
| ARGH too much going on at once. | |||
| masak | 'transient information' -- do I interpret this correctly as "information needed by multiple subs and methods, but which would be cumbersome to pass around as params"? | 20:30 | |
| sorry, my connection is a bit flaky here. | |||
| I think it sounds like the right thing. | |||
| contextual vars seem to be another of those things that can be misused. but this feels like what they should be used for. | |||
| Tene++ # courage | |||
| Tene | courage? | ||
| ruoso | yes... variables that represent the current context | ||
| masak | Tene: or whatever quality is needed to get through 'interesting' times. :) | ||
| Tene | ah | ||
| masak | 德 is probably the word I was looking for. | 20:31 | |
| 'doughtiness' | |||
| ruoso | masak, do you think Faz fits together with Web.pm? | 20:33 | |
| masak | ruoso: haven't looked closely at it yet. but in my opinion, we'd better make it fit with Web.pm :) | ||
| would be kind of a shame otherwise. | |||
| ruoso | basically... all Faz expects is to receive a request and response object as params | 20:34 | |
| (but it even defaults to get them as contextual vars if you don't send it) | |||
| it does that without strong typing | |||
| so you just need to provide a request object that can .uri and this uri must can .path | 20:35 | ||
| and path must be something that can be smartmatched with a regex | |||
| masak | ruoso: basically, you're the first person who implements something on top of Web.pm | ||
| in a sense, our first client. | |||
| ruoso: I'll definitely have a look at it during the week. | |||
| ruoso: ihrd keeps having requests similar to those you just expressed. | 20:36 | ||
|
22:59
ruoso joined
|
|||