Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-27

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

All times shown according to UTC.

Time Nick Message
00:22 davido joined #mojo
00:38 kthakore hi
01:42 asarch joined #mojo
01:51 scott joined #mojo
02:00 d4rkie joined #mojo
02:01 d4rkie joined #mojo
02:16 xaka joined #mojo
02:23 davido joined #mojo
02:41 noganex_ joined #mojo
05:23 arthas joined #mojo
05:26 Britzel joined #mojo
06:31 Netfeed tempire: had a question about your DBIx::Class + Mojo example. i was wondering why you create a new Schema object inside a "has schema ..." and then have a helper call it, instead of just creating the object inside the helper. do you gain something with doing it in a has?
06:42 memowe_ joined #mojo
06:45 Vandal joined #mojo
06:47 Britzel joined #mojo
06:50 pau4o joined #mojo
07:03 * crab looks at #mojo through his new monitor
07:20 dbr joined #mojo
07:33 davido joined #mojo
08:18 daxim joined #mojo
08:23 tempire Netfeed: the has uses the same connection across requests.
08:24 tempire as for why I did that...no particular reason.
08:25 fhelmber_ joined #mojo
08:25 tempire I think when I first made it, "has" had just been introduced into Mojo::Base and I wanted to use it.
08:25 tempire oooh look shiny!
08:26 Netfeed ah, ok, was just curious to why you used it that way
08:29 walter joined #mojo
08:41 arthas joined #mojo
09:02 h0rst joined #mojo
09:18 dbr joined #mojo
10:01 teejay joined #mojo
10:01 arthas_ joined #mojo
10:02 teejay I was looking at http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Cookbook#Backend_web_services
10:02 teejay has anybody got an examples of using this successfully ?
10:03 teejay it looks just the ticket for a case where we need to add dynamic headers, footers etc to a page, from various up-stream pages
10:04 laouji joined #mojo
10:04 laouji joined #mojo
10:06 crab teejay: what are you looking for? an "it worked for me" story, or something more?
10:07 teejay any ideas on throughput, gotchas, etc
10:07 crab because it worked for me, but i was just playing around, so i don't have anything to show. but the cookbook example is pretty comprehensive.
10:08 crab gotchas: you need to properly consider what to do in case of timeouts.
10:08 teejay this would be for a high profile new architecture for a global blue chip
10:08 crab and throughput is obviously dependent on the backend service. but within mojo, it's not grossly inefficient or anything.
10:08 crab perfectly ordinary.
10:08 teejay having said that, doing it node (although "cooler") looks considerably higher risk, and less documented
10:09 crab well, i don't think you're going to get much argument about that here.
10:09 teejay definately worth a try - I've already suggested checking/trying it out to an architect - could be a better solution than varnish and ESI
10:10 teejay was looking at doing it as a perlbal plugin
10:11 Lucas1 joined #mojo
10:11 teejay I think it would def be worthwhile experimenting and benchmarking/stress testing a few options - this looks nicest in terms of coding tho :)
10:13 crab sigh. now i can't get the image of a giant blue microprocessor sitting on top of the planet.
10:14 crab er, get rid of.
11:06 zivester joined #mojo
11:22 spiros joined #mojo
11:24 batman_ joined #mojo
11:33 marcus joined #mojo
11:35 marcus \o
11:37 marcus crab: Don't think of pink elephants!
11:42 crab marcus: ok
11:44 sri o/
11:47 marcus crab: also, congrats on getting a new monitor.
11:47 marcus crab: how many inches do you have now?
11:49 crab 24"
11:50 crab (24" and 1920x1200, up from 17" and 1280x1024)
11:54 mire_ joined #mojo
11:57 marcus crab: My 15" has more pixels than that… ;-)
11:57 marcus scnr
12:30 Andrei666 joined #mojo
12:30 d4rkie joined #mojo
12:35 Andrei666 hey guys, I have a question, my app is a small imdb-like app, using mojo and class::dbi, I recently started to read about Moose,
12:35 Andrei666 and the question is, what advantages do I have if I use Moose in my mojo apps?
12:35 Andrei666 would you advise that?
12:36 Andrei666 I say tempire's example app, the one with DBIx::Class and mojo, and he was using Moose also...
12:36 bc547 mojo and moose returned http://www.mojomoosegear.com/ in google :-)
12:36 daxim → #moose
12:37 Andrei666 :D
12:37 Andrei666 bc547 cool :p
12:37 Andrei666 k daxim, thx :)
12:58 dbr joined #mojo
13:04 gryphon joined #mojo
13:06 vervain Andrei666: I don't think MojoExample uses Moose ( excepting for DBIx::Class's usage of it )
13:16 inokenty joined #mojo
13:16 sri if you don't know if you need moose, you prolly don't
13:23 asarch joined #mojo
13:25 bluescreen joined #mojo
13:35 jnap joined #mojo
14:03 labrown joined #mojo
14:19 good_news_everyone joined #mojo
14:19 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/wpZXvQ
14:19 good_news_everyone [mojo/master] mention reverse proxy headers - Sebastian Riedel
14:19 good_news_everyone left #mojo
14:35 sri TM2 keeps getting better and better
14:36 sri purl: Neil Armstrong is also Gnorts, Mr Alien
14:36 purl OK, sri.
14:36 knshaum joined #mojo
14:44 sri purl: Neil Armstrong is also http://cdn.memegenerator.net​/instances/400x/25649339.jpg
14:44 purl okay, sri.
15:20 Britzel joined #mojo
15:27 xaka joined #mojo
15:49 alester joined #mojo
15:51 pau4o left #mojo
16:09 alester joined #mojo
16:20 h0rst left #mojo
16:21 xaka joined #mojo
16:21 Leandr joined #mojo
16:35 mire_ joined #mojo
17:01 davido joined #mojo
17:14 ki0 joined #mojo
17:36 fibo joined #mojo
17:54 titan joined #mojo
18:29 sri https://github.com/kraih/mojo/pull/377 # thoughts?
18:32 batman_ joined #mojo
18:35 mattp joined #mojo
18:39 batman_ joined #mojo
18:41 sri does anyone actually use Mojolicious::Controller::render_content directly? it could be deprecated for Mojolicious::Plugin::DefaultHelpers::content, which is currently just an alias...
18:49 fhelmber_ joined #mojo
18:51 tolid_air joined #mojo
19:09 tempire I didn't know it was there
19:09 tempire always use render(partial => 1
19:10 tempire render_content is better though
19:10 tempire but as a default helper it's the same if not better
19:13 davido joined #mojo
19:27 good_news_everyone joined #mojo
19:27 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/KrIwdg
19:27 good_news_everyone [mojo/master] improved Mojolicious::Plugin::Config to accept mode specific config files without a normal config file (closes #377) - Sebastian Riedel
19:27 good_news_everyone left #mojo
19:28 sri tempire: you don't use content_for?
19:28 tempire I hadn't noticed it before
19:29 sri :o
19:29 sri it's like.... awesome
19:29 tempire well then
19:29 tempire I MUST USE IT
19:29 sri USE ALL THE THINGS!
19:30 sri tempire: but you're using <%= content %> no?
19:30 tempire same
19:30 * sri falls off chair
19:31 sri you must be using layouts?
19:31 * tempire blames marcus
19:31 tempire yes, using layouts
19:31 sri you can't have layouts without render_content ;p
19:32 tempire you can't be suggesting that layouts go away...
19:32 sri i think i left render_content in Mojolicious::Controller because i considered it a fundamental building block, which helpers usually shouldn't be
19:32 sri lol, no
19:33 sri $self->content is currently an alias for $self->render_content
19:33 sri my proposal is simply to merge them into $self->content
19:34 sri the problem however, is that content being a helper can be redefined by plugins
19:34 sri which might not be a good idea for a fundamental building block many many features depend on
19:34 tempire ah, I see now.  I've been using render(inline => .., partial => ..), which seems to be about the same thing.
19:34 sweet_kid joined #mojo
19:35 sri i will not break any features (but it might change side effects, controller emthod vs helper and so on)
19:36 sri thing about render_content is that it's a bit odd, since it doesn't really render stuff, just cache content
19:37 * diegok <3 content_for
19:38 * sri <3 content_for too
19:38 tempire <3 pluck
19:38 * sri <3 pluck too
19:38 diegok \o/ tempire
19:42 andrefs joined #mojo
19:49 sri tempire: the name render_content does not seem odd to you?
19:49 sri considering you've just learned about it you're a good guinea pig :)
19:58 tempire it does seem weird to me, since it doesn't render anything
19:59 tempire based on the name, I assumed it was the same as $self->render(partial => 1, inline => '<%= $something %>');
19:59 sri nope
20:00 tempire I see that after trying it
20:00 sri i guess that's a good enough reason for deprecation
20:00 * tempire stomps on diegok's dreams
20:01 tempire oh, he said content_for, not render_content.  it makes more sense with that name.
20:01 sri content_for will never ever go away
20:01 tempire I support the consolidation to helpers
20:01 tempire +1!
20:02 * tempire participates
20:02 tempire like a boss
20:04 sri tempire++
20:06 tempire karma tempire
20:06 purl tempire has karma of 85
20:06 tempire karma marcus
20:06 purl marcus has karma of 431
20:06 tempire damnit!
20:12 marcus Purl: karma draven
20:12 purl draven has karma of 210
20:13 marcus That was me too.
20:13 * marcus is on the train station
20:13 marcus One last brew before the night train to stavanger.
20:13 Apathy joined #mojo
20:13 marcus Sri: do you like the current proposal?
20:15 sri marcus: which proposal?
20:15 purl i heard which proposal was Fmh's?
20:17 good_news_everyone joined #mojo
20:17 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/9lAM8w
20:17 good_news_everyone [mojo/master] deprecated Mojolicious::Controller->render_content in favor of content helper - Sebastian Riedel
20:17 good_news_everyone left #mojo
20:21 good_news_everyone joined #mojo
20:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/lccerw
20:21 good_news_everyone [mojo/master] default helpers depend on Mojo::ByteStream now - Sebastian Riedel
20:21 good_news_everyone left #mojo
20:24 marcus Sri: p5-mop
20:24 sri ah, yes i do
20:24 sri what i don't like is the timeframe...
20:25 sri stevan recently estimated 3 years before it can hit core
20:26 sri the fact that the mop cpan module requires 5.14, and that it will be 3 years before it reaches core, kinda kills it for the next 5 years
20:26 marcus Ouch
20:26 marcus Good thing we are eternal.
20:26 sri otherwise i love the proposal
20:27 sri and in 5 years we'll hopefully be using rakudo
20:27 sri so p5-mop might not be something for us to worry about
20:32 marcus sri: it's good to have options :)
20:32 marcus sri: I plan to look into a simple conversion of mojo to p5-mop as a branch.
20:32 sri atm i'd call it dreams, not options :)
20:33 sri that could be fun!
20:33 sri namespaces are a bit odd in p5-mop though
20:33 sri you need a package around your classes
20:34 marcus yeah, imo it's a bit clunky.
20:34 marcus it has nice things tho.
20:34 sri package Foo; class Bar {}; class Baz {};  Foo::Bar->new()
20:34 marcus and you still need to end it with 1;
20:34 sri i kinda like it, but it makes the conversion tricky
20:34 marcus it feels a bit too wrapped up into the old package loader.
20:34 marcus other oops languages don't have this junk.
20:35 * sri nods
20:35 marcus -s
20:35 sri oops
20:35 marcus that's the best languages.
20:42 sri oh my, twitter kills tweetbot for mac alpha :o
20:44 marcus oh shit
20:44 marcus I need to get off twitter.
20:44 * marcus wonders if tent.io has any promise.
20:44 marcus Kinda hate the app.net idea.
20:47 marcus Just the alpha tho, they still plan to sell it.
20:47 marcus but pretty horrible.
20:51 sri yea
20:59 davido Is there anything wrong with merging into $self->config?  I'd like to read a configuration file, and then read a provider's 'environment.json' file, and just merge the results so they're both available under config during runtime.
21:00 Netfeed i've yet to understand what app.net is actually about
21:00 sri davido: shouldn't be a problem
21:00 davido Thanks.
21:01 sri Netfeed: making you the customer, instead of the product
21:02 sri the fact that people pay a monthly fee for a twitter-like service is supposed to result in higher quality tweets
21:03 Netfeed i bet they'll make me both a customer and a product at the same time, way too much fun data to just sit around with it
21:05 sri true, like joyent is now getting rid of their lifetime hosting customers :)
21:05 marcus sri: they apparently changed their mind.
21:06 marcus they haven't informed the customers about it yet tho, afaik.
21:06 Netfeed bad publicity?
21:06 purl bad publicity is probably better than none
21:06 marcus https://twitter.com/jasonh/​statuses/239787681800912896
21:06 sri Oo
21:09 Netfeed oh, do i have to switch to my perfered version each time with perlbrew? i thought that would be done automagically when i entered certient dirs
21:15 marcus Netfeed: I think you could hack it to switch.
21:15 Netfeed it was a "bug"
21:17 Netfeed the ~/perl5/perlbrew/etc/bashrc file used . instead of source and that didn't work in my bash as i have an alias for . to print the PWD
21:18 Netfeed easily solved
21:25 batman_ marcus: i think you need to get some sleep! :)
21:25 batman_ marcus: see you tomorrow?
21:27 batman_ anyway... i need some sleep :/
21:27 batman_ ttyl
21:38 lukep joined #mojo
21:46 rem_lex|pivo joined #mojo
22:40 good_news_everyone joined #mojo
22:40 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/prUrHg
22:40 good_news_everyone [mojo/master] fixed deprecation message - Sebastian Riedel
22:40 good_news_everyone left #mojo
22:46 mire_ joined #mojo
22:48 good_news_everyone joined #mojo
22:48 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/k6zDFQ
22:48 good_news_everyone [mojo/master] small optimizations - Sebastian Riedel
22:48 good_news_everyone left #mojo
22:57 jzawodn joined #mojo
23:07 bpm joined #mojo

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