Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-11

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

All times shown according to UTC.

Time Nick Message
00:15 marty I'll be afk for a while chaps.  Have a great time and NO PARTIES while I'm gone.  :)
00:15 * sri hides the beer keg
00:15 sri have fun! :)
00:17 diegok sri: sorry. What I don't understand is why this fails: https://github.com/diegok/mojo-route​-wtf/blob/master/lib/Routest.pm#L17
00:17 diegok and this works: https://github.com/diegok/mojo-route​-wtf/blob/master/lib/Routest.pm#L23
00:17 marty I will.  I'll be building a cabin up in the hills.  If I dont kill myself, I'll return with pictures.
00:17 * marty vanishes in a puff of sawdust
00:17 diegok https://github.com/diegok/mojo-ro​ute-wtf/blob/master/t/basic.t#L13
00:18 diegok I was expecting both routes, /a and /b to be the same
00:19 diegok but only /b and /b?one=1 works as expecting...
00:20 diegok /a and /a?one=1 goes always to /a :-/
00:21 sri diegok: normally i don't look at multi file apps... but i'll make an exception for you
00:21 diegok \o/
00:22 sri $bridged comes first, so it matches first, the behavior is perfectly fine
00:22 diegok you don't need to look at controllers. Both are the same: render_text('...')
00:23 sri diegok: then don't include controllers!
00:23 sri ->to(text => 'One!')
00:23 sri you can render directly from routes
00:23 diegok sri: oh!, right!
00:23 * diegok hides behind my keyboard...
00:24 sri you could have shown the whole thing with a lite app ;p
00:24 sri my $r = app->routes; and so on
00:24 sri would have been like 5 lines :)
00:24 * diegok to fat to hide on a keyboard
00:27 GitHub126 joined #mojo
00:27 GitHub126 [mojo] kraih pushed 1 new commit to master: http://git.io/h0cFNg
00:27 GitHub126 [mojo/master] more arrows - Sebastian Riedel
00:27 GitHub126 left #mojo
00:27 diegok what I was trying to do is to have several routes that need to go to one namespace passing some times thru a bridge if the same route fails a condition before...
00:28 diegok now I kind of understand I can't do it the way I was trying to...
00:28 sri look at script/myapp routes
00:28 sri it will give you an idea of how routes match
00:29 diegok yep, knowing this I will experiment again after some sleep :)
00:32 diegok basically I need to have some routes to serve one thing for non users and non json reqs, other for json reqs and other for non json but a user exists... it works when I do it like in /b. I was trying to do it more like /a to not repeat the bridge thing every time...
00:32 diegok but, thank you for looking at it. I'll rethink/rework on it :)
00:33 diegok conditions are the only way of having more than one action matching same route, right?
00:51 dk joined #mojo
00:54 noganex joined #mojo
00:58 GitHub104 joined #mojo
00:58 GitHub104 [mojo] kraih pushed 1 new commit to master: http://git.io/EvXfIw
00:58 GitHub104 [mojo/master] improved header tests - Sebastian Riedel
00:58 GitHub104 left #mojo
01:19 noganex joined #mojo
02:04 jb360 joined #mojo
02:07 jb360 left #mojo
02:17 GitHub36 joined #mojo
02:17 GitHub36 [mojo] kraih pushed 1 new commit to master: http://git.io/ToCL8w
02:17 GitHub36 [mojo/master] a few more arrows - Sebastian Riedel
02:17 GitHub36 left #mojo
02:37 asarch joined #mojo
02:38 Psyche^ joined #mojo
02:49 yko joined #mojo
02:54 yko joined #mojo
02:56 noganex joined #mojo
04:13 avenj joined #mojo
04:59 xaka joined #mojo
05:44 sri \o\
05:44 sri /p/
05:44 sri ouch!
06:15 marcus_ pouch?
06:29 sri i accidentally my neck
06:45 dk joined #mojo
06:49 Britzel joined #mojo
06:58 ryozi joined #mojo
07:15 Vandal joined #mojo
07:25 marcus_ the whole neck?
07:33 davido joined #mojo
07:47 rem_lex|pivo joined #mojo
08:07 rem_lex| joined #mojo
08:40 Leandr joined #mojo
08:42 rem_lex joined #mojo
08:52 davido joined #mojo
09:03 rem_lex|pivo joined #mojo
09:33 rem_lex| joined #mojo
09:35 batman has there been any internal memory leak fixes in mojo since 2.96? i couldn't find any mentions of it in the changelog but i just want to ask to be sure...
09:35 batman i don't really see how it could be leaking either, since Devel::Size reports a stabel size on $ioloop :/
09:43 sri Devel::Size doesn't catch that king of leak
09:44 sri you want Devel::Cycle
09:46 Htbaa joined #mojo
09:48 batman but shouldn't the size increase if i have a leak?
10:02 sri no
10:02 batman oh.
10:03 batman but how can i run Devel::Cycle if i don't know where my objects are?
10:04 sri how can you Devel::Size if you don't know where your objects are? Oo
10:04 batman :D
10:04 batman true
10:04 sri search for circular references after setting your closures
10:05 sri that's when you can find leaks
10:05 batman ok. will try it
10:05 sri later on the closures might already be gone from the object and be unreferenced by anything but themselves
10:05 batman yes. that is what i think is happening...
10:05 sri (that's the leak)
10:05 batman yup
10:06 sri perl should have automatic detection for that...
10:06 batman i agree. perl should have a "use pleasedonotleak;" feature :P
10:08 batman i wonder when i'm going to stop adding quotes around my hash keys...
10:08 batman been doing it for eight years i think...
10:09 sri stop writing ugly perl
10:09 batman is {'ugly'} ugly?
10:09 * sri nods
10:09 batman that's a bit harsh :)
10:10 batman but it might be the comment that makes me stop doing it
10:11 sri but maybe you shouldn't listen to me... i like arrows a lot too... https://github.com/kraih/mojo/commit/74​af25cb18e6cdb340187023a1b1b3236c43690c
10:12 batman i really like fat commas.
10:12 batman not only for pairs either:)
10:12 batman but i don't like ->... like $foo->{bar}->{baz} vs $foo->{bar}{baz}
10:12 batman (i like the latter)
10:13 sri i use the latter too
10:13 batman the interesting part is that i like the latter, since it's less fuzz. but i guess {'fuzz'} could be considered too much fuzz as well
10:14 sri the perl6 version is neat
10:14 batman how is that?
10:14 sri $foo<bar>
10:15 batman i don't get how that's neat. but it's probably because i'm only doing js and perl
10:15 batman :%s/{'\(\w\+\)'}/{\1}/gc # <--- i'm crazy. after eight years...
10:15 batman :)
10:16 sri i still change my style all the time after 10 years ;p
10:17 batman yeah. imo that's a good thing
10:19 dwierenga joined #mojo
10:30 GitHub10 joined #mojo
10:30 GitHub10 [mojo] kraih pushed 1 new commit to master: http://git.io/gI91Hg
10:30 GitHub10 [mojo/master] removed redundant tests - Sebastian Riedel
10:30 GitHub10 left #mojo
11:05 Htbaa1 joined #mojo
11:10 inokenty joined #mojo
11:18 alexeiras joined #mojo
11:50 memowe joined #mojo
12:46 Htbaa1 has anyone ever had any success in using Mojolicious::Plugin::I18N ?
12:46 Htbaa1 playing around with it and it just doesn't seem to work right
12:49 batman it might be easier for "someone" to help you if you describe what you do, and what you expect
12:50 Htbaa1 I'm more or less copying the examples from the documentation
12:50 Htbaa1 added an 'en' and 'nl' package
12:51 Htbaa1 when using the 'en' (English, of course) text identifiers it just displays the identifiers. When using the 'nl' one it works fine
12:52 Htbaa1 and when turning off header detection and setting a default language, e.g. 'nl' it'll show the 'en' behavior, and when setting it to 'en' it'll show the 'nl' translations
12:53 Htbaa1 very inconsistent behavior
12:54 Htbaa1 or maybe the docs aren't clear enough
12:58 Htbaa1 hmm, using the MOJO_I18N_DEBUG environment variable it seems to be looking for en_us and nl_nl packages
13:00 Htbaa1 not that renaming them makes a whole lot of difference
13:08 batman yay! my server is leaking *less*
13:08 batman :(
13:08 batman meaning it just gets more difficult to find the objects... crap, crap, crap...
13:08 Htbaa1 hmm well I'll stay away for it for now. Going to celebrate my weekend
13:39 memowe joined #mojo
13:58 arpadszasz joined #mojo
14:01 gryphon joined #mojo
14:07 alexeiras joined #mojo
14:17 vel joined #mojo
15:08 preflex_ joined #mojo
15:43 mire joined #mojo
16:47 SmokeMachine_ joined #mojo
16:50 vel joined #mojo
16:59 xaka joined #mojo
17:16 alexeiras joined #mojo
17:37 SmokeMachine_ joined #mojo
17:39 Britzel joined #mojo
17:55 alexeiras joined #mojo
19:02 vel joined #mojo
20:04 batman joined #mojo
20:19 vel joined #mojo
20:23 xaka joined #mojo
21:06 perlite_ joined #mojo
21:22 asarch joined #mojo
21:54 SmokeMachine_ joined #mojo
22:04 SmokeMachine_ joined #mojo
22:15 sri tempire: you can close such tickets right away ;)
22:30 jnap joined #mojo
22:35 batman http://mamp.info/en/index.html <-- is this something we should make?
22:50 jnap joined #mojo
22:57 SmokeMachine_ joined #mojo
23:14 augensalat joined #mojo
23:14 al joined #mojo
23:15 plu joined #mojo
23:17 stephan48 joined #mojo
23:21 vel joined #mojo
23:31 jnap joined #mojo
23:36 dminus joined #mojo

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