Camelia, the Perl 6 bug

IRC log for #november-wiki, 2009-05-06

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

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

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary