Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-27

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

All times shown according to UTC.

Time Nick Message
00:04 judofyr joined #mojo
00:05 judofyr joined #mojo
00:27 tempire marcus: is nordaaker going to open a branch in seoul?
01:10 batman joined #mojo
01:41 xaka joined #mojo
01:48 kitt_vl joined #mojo
02:34 noganex_ joined #mojo
03:47 memowe joined #mojo
03:47 mattp joined #mojo
03:51 noganex_ joined #mojo
03:53 asarch joined #mojo
04:33 marty joined #mojo
05:03 mattp joined #mojo
05:24 Foxcool joined #mojo
05:43 marty joined #mojo
06:21 davido joined #mojo
06:43 inokenty joined #mojo
07:15 Vandal joined #mojo
07:19 Mike-PerlRecruiter_ joined #mojo
08:20 marty joined #mojo
08:53 batman joined #mojo
09:44 Britzel joined #mojo
10:04 marty joined #mojo
10:11 nic sri: Why were you saying 0 is a bad value for FALSE?  Was it because of context bugs?
10:12 nic I'm just coding up ->has_valid_token; till now I've always returned 0 for FALSE; I see some people use () or undef
10:28 nic ah, it seems PBP recommends returning nothing, not even undef
10:29 pierrick joined #mojo
11:37 mauriez https://www.securecoding.cert.org/confluence​/display/perl/EXP00-PL.+Do+not+return+undef
11:37 mauriez more about that
12:01 nic ta
12:45 judofyr joined #mojo
13:27 rem_lex| joined #mojo
13:38 sri nic: yea, that's something where PBP is wrong
13:38 nic ah, what would you recommend?
13:39 sri 0 is a bad false value because it has a length and is defined
13:40 * sri recommends return undef and return, depending on list context support
13:40 nic right, I'll adopt that
13:41 nic It's true that the majority of my routines would never sensibly be called in list context
13:41 sri only using return will go wrong when you use it like foo('bar', $req->charset, 'baz')
13:42 batman left #mojo
13:46 nic perl -E'$a = undef; say ":: $a ::"'
13:46 Ulti so what does a bare return return?
13:46 nic that works -- I was expecting an error
13:46 nic Ulti: nothing :0
13:46 nic sorry, i'm wrong
13:46 Ulti is it undef just in any context?
13:47 nic it returns a value appropriate to the calling context
13:47 Ulti k
13:47 sri perl -E'use warnings; $a = undef; say ":: $a ::"'
13:47 nic ah
13:48 nic that works for me too (with "my $a = ...")
13:48 nic I want to try it with an older perl
13:49 nic crumbs I'm being dumb today
13:49 * nic shuts up and tries to only code unimportant things till his brain wakes up
13:50 ladnaV joined #mojo
14:26 judofyr joined #mojo
14:33 gryphon joined #mojo
14:47 nic I love that I can debug by ua code (MOJO_USERAGENT_DEBUG=1) _before_ hitting the real server
14:47 nic simply by firing up a mojolicious daemon on 127.0.0.1:3000
14:48 nic pretty quickly I've ironed out all my daft mistakes without getting my ip blacklisted or my account on the server disabled
14:49 vervain joined #mojo
14:49 nic that's just one of the really valuable things that comes with mojolicious, and something I didn't have easy access to before
14:50 batman joined #mojo
15:03 Vandal joined #mojo
15:06 arthas joined #mojo
15:07 ladnaV joined #mojo
15:10 abra joined #mojo
15:20 ladnaV joined #mojo
15:31 Vandal joined #mojo
15:36 sh4 joined #mojo
15:44 abra joined #mojo
15:54 abra joined #mojo
16:04 Britzel Can I run multiple morbo instances at the same time, on different ports?
16:06 ladnaV joined #mojo
16:31 dabudabu joined #mojo
16:59 asarch joined #mojo
17:40 jberger joined #mojo
17:41 jberger marcus: https://metacpan.org/source/JB​ERGER/Galileo-0.008/Changes#L3
17:44 nic Britzel: yes
17:55 nic I need to GET a url (via ua) with s/:/%3A/
17:56 nic It seems I can't do that myself, cos then the new '%' is replaced with '%25', giving '%253A'
18:17 Britzel nic: k, thx
18:40 tempire Ulti: it returns an empty list
18:58 xaka joined #mojo
19:18 good_news_everyone joined #mojo
19:18 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/-KHkUw
19:18 good_news_everyone mojo/master 2aa87e4 Sebastian Riedel: documentation tweaks
19:18 good_news_everyone left #mojo
19:18 Adura Why so colourful?
19:19 Mike-PerlRecruiter_ joined #mojo
20:09 gryphon joined #mojo
20:20 sh4|2 joined #mojo
20:49 ki0 joined #mojo
21:02 Ulti thanks tempire
21:26 SirG having a hard time getting IOLoop/delay... https://gist.github.com/3966312 does not like my calling wait
21:34 ki0 joined #mojo
21:55 ki0 joined #mojo
22:05 sri SirG: http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Cookbook#Backend_web_services
22:12 good_news_everyone joined #mojo
22:12 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/M37KqQ
22:12 good_news_everyone mojo/master 59bd4ab Sebastian Riedel: improved Mojo::Template documentation a bit
22:12 good_news_everyone left #mojo
22:16 ki0 joined #mojo
22:20 good_news_everyone joined #mojo
22:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/OL1jtg
22:20 good_news_everyone mojo/master 0d2e5c1 Sebastian Riedel: better Mojo::Template description
22:20 good_news_everyone left #mojo
22:37 ki0 joined #mojo
22:40 jzawodn joined #mojo
22:51 nic sri: decamelize...  AbCd -> ab_cd;  aBcD -> aBcD
22:51 nic for the second one I was hoping for a_bc_d -- any reason why it's like it is?
22:52 nic I suppose I could add a dummy letter on the start and then remove it later
22:53 dabudabu joined #mojo
22:53 sri nic: historical, aBcD is never used in perl
22:53 nic ah, so there's a possibility of considering a patch?
22:53 sri nope
22:54 sri backcompat issues
22:54 nic k
22:54 sri and of course we don't need it in core
22:54 nic i'll go with my horrible hackaround
22:55 nic I've been fighting a Google API all day and finally won
22:55 nic the fight was with the Google docs, which are full of lies
22:56 nic the UserAgent side of things was awesome
23:40 SirG sri: Thanks, I was having problems getting heavy post-processing tacked on to the end of first step, instead of beginning of next one; got it  now : https://gist.github.com/3966312.
23:42 sri SirG: why not just do all post-processing in the second step?
23:43 sri would be 14 lines of code less
23:44 SirG sri: in this example it does not matter, but if a ua request had a looong post-process sequence, want to start that before all requests complete...

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