Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-12

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

All times shown according to UTC.

Time Nick Message
00:24 btyler joined #mojo
01:36 inokenty joined #mojo
01:45 KindOne joined #mojo
01:51 amirite joined #mojo
01:57 Meiermann joined #mojo
01:59 marty_ joined #mojo
02:00 d4rkie joined #mojo
02:08 asarch joined #mojo
02:16 d4rkie joined #mojo
03:34 abstract joined #mojo
04:00 preflex_ joined #mojo
04:02 D4RK-PH0ENiX joined #mojo
04:12 d4rkie joined #mojo
04:18 marty joined #mojo
04:23 rem_lex| joined #mojo
04:51 * nic defrags
04:58 good_news_everyone joined #mojo
04:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/AUo2zA
04:58 good_news_everyone mojo/master 3079f8f Sebastian Riedel: mention what optional modules are used for
04:58 good_news_everyone left #mojo
05:03 D4RK-PH0ENiX joined #mojo
05:03 sri http://search.twitter.com # muhahahahahahahaha
05:12 good_news_everyone joined #mojo
05:12 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/rNUJJA
05:12 good_news_everyone mojo/master 92915e2 Sebastian Riedel: mention epoll and kqueue too
05:12 good_news_everyone left #mojo
05:45 basiliscos joined #mojo
05:49 Britzel joined #mojo
05:56 suy joined #mojo
06:06 denisboyun_ joined #mojo
06:13 ghandi|work joined #mojo
06:16 tba joined #mojo
06:21 abstract joined #mojo
06:25 tba joined #mojo
06:30 tba joined #mojo
06:32 Mike-PerlRecruiter_ joined #mojo
06:36 tba joined #mojo
06:45 dod joined #mojo
06:46 bjoernfan joined #mojo
06:51 tba joined #mojo
06:51 dpetrov_ joined #mojo
06:58 SmokeMachine joined #mojo
07:02 tba joined #mojo
07:04 amirite_ joined #mojo
07:21 dod joined #mojo
07:26 tba joined #mojo
07:30 amirite joined #mojo
07:36 fhelmber_ joined #mojo
07:37 trone joined #mojo
08:04 abstract_ joined #mojo
08:04 human39 joined #mojo
08:05 jzawodn joined #mojo
08:08 Vandal joined #mojo
08:14 mire__ joined #mojo
08:20 arthas joined #mojo
08:20 judofyr joined #mojo
08:21 mire_ joined #mojo
08:50 alnewkirk joined #mojo
08:56 suy joined #mojo
08:57 batman i got Mojolicious 4.11 and i see Can't call method "is_websocket" on an undefined value at Mojolicious/Controller.pm line 299. errors. any idea why $tx has gone out of scope?
08:57 batman the only place i'm using $tx in my websocket handler is Mojo::IOLoop->stream($self->t​x->connection)->timeout(600);
09:01 batman i guess it doesn't have any obvious answer...
09:02 KindOne joined #mojo
09:10 moltar joined #mojo
09:24 amirite joined #mojo
09:25 d4rkie joined #mojo
09:27 mire__ joined #mojo
09:36 dotan I'm trying to do a non-blocking HEAD lookup of 294 feed URLs. It takes a minute and change. I saw sri's comment about optional modules and decided to install EV. So now it takes less than half a minute, but every fetch fails with a connection timeout...
09:37 dotan So do I increase the timeout in Mojo::UserAgent, IOLoop or Reactor? And why do I have different connection timeouts depending on whether I use Ev or IO::Poll?
09:40 dotan Mojo::UserAgent->connect_timeout is 10 regardless of MOJO_REACTOR.
09:41 mire__ joined #mojo
10:04 ryozi joined #mojo
10:08 maxhq joined #mojo
10:18 diegok dotan: change it on your ua object.
10:19 diegok dotan: https://metacpan.org/module/SRI/Mojolicious​-4.14/lib/Mojo/UserAgent.pm#connect_timeout
10:20 diegok dotan: https://metacpan.org/module/SRI/Mojolicious-4​.14/lib/Mojo/UserAgent.pm#inactivity_timeout
10:20 diegok and so on... :)
10:21 diegok ^ look at request_timeout also
10:22 dod joined #mojo
10:26 dotan diegok - I saw those, I was just wondering why they are respected(?) when I use EV and behave differently when I don't.
10:27 diegok dotan: they shouldn't behave differently.
10:27 diegok dotan: not tested on this last version, but I'm pretty sure it works on previous versions.
10:27 diegok with and without EV
10:33 judofyr dotan: if you're doing a lot of parallel calls you might be overloading the IOLoop. EV is faster and thus you'll get different timeout errors.
10:40 mire__ joined #mojo
10:42 dotan judofyr: thanks. I see that if I set connect_timeout(30) most of the requests don't time out.
10:42 judofyr dotan: you should probably ensure to only have X in-flight requests
10:43 dotan I remember sri had a clever example of that, but the API has probably changed.
10:53 amirite joined #mojo
11:00 mire__ joined #mojo
11:08 tester5805 joined #mojo
11:18 d4rkie joined #mojo
11:22 denisboyun_ joined #mojo
11:25 mire_ joined #mojo
11:31 mire__ joined #mojo
11:34 libsysguy joined #mojo
11:43 sh4 joined #mojo
11:45 mire_ joined #mojo
11:55 mire__ joined #mojo
11:57 SmokeMachine joined #mojo
11:58 judofyr joined #mojo
12:00 judofyr_ joined #mojo
12:02 mire_ joined #mojo
12:23 judofyr joined #mojo
12:41 denisboyun_ joined #mojo
12:44 Dani joined #mojo
13:02 bluescreen joined #mojo
13:04 SmokeMachine joined #mojo
13:35 btyler joined #mojo
13:55 bjoernfan joined #mojo
13:57 libsysguy sri around?
14:02 denisboyun_ joined #mojo
14:15 mire__ joined #mojo
14:25 mire_ joined #mojo
14:34 dod joined #mojo
14:46 asarch joined #mojo
14:53 whitebook joined #mojo
15:06 mire__ joined #mojo
15:09 libsysguy anybody around that knows how to get mango to dump the query its generating?
15:11 mire_ joined #mojo
15:20 Dani joined #mojo
15:26 btyler joined #mojo
15:32 sh4 joined #mojo
15:43 gryphon joined #mojo
15:46 phillipadsmith http://osrc.dfm.io/kraih
15:46 phillipadsmith ^^ Open source report card (fun stuff)
15:47 whitebook joined #mojo
15:59 whitebook joined #mojo
16:11 moltar joined #mojo
16:21 fhelmber_ joined #mojo
16:39 ryozi joined #mojo
17:18 sri garu: and the dots pragma is toast, like i said yesterday
17:19 trone gh. so true
17:23 Vandal dots pragma sux
17:26 sri who could argue with that
17:26 Vandal I just hate how it looks: $href.{key}, $aref.[0]
17:26 sri and your taste is the only that matters...
17:27 Vandal what else does matters?
17:27 marty libsysguy:  I believe mango uses the mongoDB wire protocol so the query is probably built outside of mango.  http://docs.mongodb.org/meta-driver/​latest/legacy/mongodb-wire-protocol/
17:27 Vandal it's not like some performance feature
17:28 libsysguy ah thanks marty
17:28 sri people like you annoy the hell out of me, disregard a patch because of personal taste, completely ignoring the value it might have for others
17:28 basiliscos joined #mojo
17:28 sri you are what's wrong with perl!
17:29 Vandal don't get me wrong, I'm for deviations, if it stays optional - I'm fine
17:40 mire__ joined #mojo
17:50 mire_ joined #mojo
17:52 marty neat... http://blog.mongodb.org/post/49852​036514/odbc-connector-for-mongodb
18:09 mire_ joined #mojo
18:11 sri maybe i should just stop reading p5p...
18:14 btyler joined #mojo
18:15 * marty pulls sri back from the edge
18:15 sri \o/
18:20 good_news_everyone joined #mojo
18:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/y1h8ow
18:20 good_news_everyone mojo/master 6527cc6 Sebastian Riedel: simplify event loop recipe in cookbook a little
18:20 good_news_everyone left #mojo
18:21 sri with the switch to futures i don't feel comfortable recommending IO::Async anymore
18:33 Mike-PerlRecruiter_ joined #mojo
18:38 abstract joined #mojo
18:44 whitebook joined #mojo
19:00 batman what happens if i use Mojo::IOLoop::Client with invalid tls_cert and tls_key? will it give me any errors?
19:03 trone joined #mojo
19:13 gregg4567 joined #mojo
19:15 mire_ joined #mojo
19:17 gregg4567 hi -- just getting started with a project for a dynamic website.  I need to access a posgresql database with user input to the database.  I am wondering whether mojolicious or dancer would be better.  Does anyone have experience with both that can advise?
19:19 buu gregg4567: This is the mojo channel, opinions are likely to be slightly biased.
19:19 buu In any case, either one will work, just choosing one and getting going is far more useful than comparisons
19:21 gregg4567 I thought it might be biased.
19:22 gregg4567 I thought someone might have an opinion as to which I should try.  I have not used either.
19:22 trone gregg4567: Mojolicious++
19:24 gregg4567 Anyone have an opinion about the documentation for dancer vs mojolicious?  I will need it to get started.
19:26 jberger gregg4567, my biggest reasons for recommending (and contributing to) Mojolicious is that it is built on its own set of tools, the allows for consistency throughout your application
19:27 jberger after that, the next big selling point is the real-time features
19:27 whitebook joined #mojo
19:27 libsysguy it was the real-time features for me
19:27 jberger mojolicious' documentation is excellent, start with Mojolicious::Lite and then read through the guides in the order given in Mojolicious::Guides
19:28 libsysguy as someone who thought they could skip the lite tutorial…my advise is done
19:28 libsysguy otherwise you'll bug the nice people on here with questions that are in the docs
19:28 * libsysguy leaned the hard way :p
19:29 jberger s/done/dont/
19:29 gregg4567 jberger: and libsysguy:  good advice, thanks.
19:29 jberger libsysguy, without the internal consistency, real-time features would be hard to achieve, if one piece of the chain is blocking, the whole thing is
19:30 jberger just so you know :-)
19:30 jberger you can't really have one without the other
19:30 libsysguy I think I realized that later on…but initially I was *really* confused by that decision
19:31 libsysguy I didn't realize how challenging having a non-blocking app could be until I attempted it
19:31 libsysguy and I still haven't gotten it completely
19:31 jberger gregg4567, http://mojolicious-introduction.herokuapp.com/
19:32 jberger ^^ is my talk for chicago.pm which probably shouldn't be called an introduction, its more like an intermediate discussion of the capabilities that Mojolicious offers
19:32 jberger you should probably familiarize yourself with Mojolicious::Lite first
19:33 gregg4567 jberger: Thanks, looks interesting.
19:33 libsysguy is it too much to as what you're writing gregg4567
19:33 libsysguy I'm always curious
19:33 marty gregg4567: The minimal cpan dependancies was a big reason I went with Mojo.
19:35 marty mojolicious + mango = rule.the.world!
19:35 libsysguy the people on here (#mojo) are pretty fantastic as well
19:35 marty that was my plug for the dots pragma.  :P
19:35 marty group hug!
19:36 libsysguy yayy
19:36 * jberger hugs marty
19:36 marty libsysguy++
19:36 * jberger should get around to documenting Mojolicious::Plugin::SimpleSlides
19:38 gregg4567 libsysguy: just an attempt to learn about web frameworks as a front-end to postgresql database for a small business.  Note that I am not a programmer but I have a little experience with Perl.  I have written a few simple tools for myself, but they were not object oriented.
19:39 gregg4567 marty: I think that is what they say about dancer too.  I wanted something smaller than catalyst which I thought was overkill for me.
19:40 libsysguy I would recommend DBIx::Class for postgres and mojo
19:40 * sri wonders how much more Mango::BSON could be optimized https://github.com/kraih/mango/pull/3
19:40 libsysguy it helped me wrap my head around the Mojo (M)odel
19:41 mire__ joined #mojo
19:42 libsysguy headed out o/
19:42 gregg4567 Thanks for the comments
19:44 jberger libsysguy o/
19:44 jberger gregg4567, np
19:45 jberger would anyone else use ::Plugin::SimpleSlides for making quick talks if I gave it proper doc?
19:45 jberger see source of my herokuapp-hosted talk here: https://github.com/jberger/MojoliciousI​ntroduction/blob/master/presentation.pl
19:48 mire_ joined #mojo
20:15 Kulag joined #mojo
20:16 jberger miyagawa++ https://t.co/N4MNNbyf3Q
21:12 senthil1 joined #mojo
21:34 lukep joined #mojo
21:35 Averna joined #mojo
21:44 garu sri: :(
21:52 mire joined #mojo
22:16 bjoernfan joined #mojo
22:21 phillipadsmith Any trick to getting $ua->post(); to send "multipart/form-data" ? Here's what I'm trying: https://gist.github.com/philli​padsmith/ef28cf3702613cc85fa7
22:27 Gedge joined #mojo
22:27 batman phillipadsmith: you don't have https:// in the url
22:28 * batman Zzz
22:33 * phillipadsmith looks
22:34 phillipadsmith sorry, obviously I do … just cut it out by accident when I took out the user:pass
22:35 phillipadsmith BUT… I realize now that I had the wrong username! :-P  @batman, thanks. :)
22:47 * sri thinks he will learn elixir next http://elixir-lang.org
23:18 ryozi joined #mojo
23:27 whitebook joined #mojo

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