Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-14

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

All times shown according to UTC.

Time Nick Message
00:00 mspo you think hypnotoad is the way to go?
00:01 sri there is no canonical "way to go"
00:01 sri it depends on what you optimize for
00:01 mspo performance
00:02 sri that is very unspecific
00:02 sri i think what you mean to say was "i want mojolicious to look good in this one very limited benchmark"
00:02 mspo yes
00:03 sri then uWSGI might be the best choice
00:03 sri hypnotoad is for massive concurrency and real-time web
00:22 tianon ie, large production websites, and it rocks the big one :)
00:26 mspo left #mojo
00:27 camelo joined #mojo
00:32 mire_ joined #mojo
00:37 Adura joined #mojo
00:45 mire__ joined #mojo
01:06 whitebook joined #mojo
01:09 mire_ joined #mojo
01:39 mire__ joined #mojo
01:55 d4rkie joined #mojo
02:17 whitebook joined #mojo
02:32 marty e-commerce is hard, let's go shopping!
02:45 btyler joined #mojo
02:46 sri \o\
02:46 sri /o/
02:46 * sri is running out of shows to watch :/
02:47 * sri considers watching justified and human target
03:00 marty did defiance turn out to be any good?
03:01 marty I just finished watching lost the other day.  It was kinda fun.
03:01 sri average scifi, nothing special
03:02 sri lost is cool, and i can't say anything else without spoiling it :o
03:02 marty and I think I get firefly now.  It's like a space western sort of thing.   I'm not sure I understand that but ya know....
03:02 marty I finished the all the seasons.  Started watching them after I finished bsg.
03:02 sri also the movie?
03:03 sri wraps it up nicely
03:03 marty lost or bsg?
03:03 sri firefly
03:03 inokenty joined #mojo
03:03 marty ahhh. no, have not finished all the episodes yet
03:03 sri :o
03:04 marty so I've finished bsg and lost so far.  working on firefly and might try fringe next
03:04 sri ah
03:04 sri lost ending sucked
03:05 marty I'm indifferent to it.  The wife loved it cuz the Sawyer and Julliet thing worked out.   go figure.  :)
03:05 sri haha
03:06 d4rkie joined #mojo
03:06 marty now if they would only make sequel to real genius I would be complete
03:07 * marty loves toxic waste
03:07 marty That's a real genius joke that will prolly make no sense to anyone who has not seen it.  :)
03:09 marty http://www.youtube.com/watch?v=SN7sOR35KCg
03:12 * marty is off to go watch some tv.   nn  o/
03:16 * gtodd might draft a new series ....
03:19 gtodd Like "Breaking Bad" but this time  instead of a chemist it's a disgruntled mathematician turned perl hacker during the tech bubble and then utterly destroyed by scheming VCs ... but now it's 15 years later and there's perl-5.20 or perl6 ... and the mathematician is out for revenge
03:20 russum joined #mojo
03:20 * phillipadsmith has no idea how sri has time to watch tv
03:20 gtodd uses perl ... achieves great justice
03:21 sri gtodd: i like where this is going
03:30 crab joined #mojo
03:57 preflex_ joined #mojo
04:26 camelo joined #mojo
04:55 btyler joined #mojo
05:24 sri look at that, microsoft provides ie test images for virtualbox http://www.modern.ie/en-us/vi​rtualization-tools#downloads
05:25 sri only downside, they expire after 90 days and you have to restore them from a snapshot
05:26 amirite joined #mojo
05:27 tba joined #mojo
05:27 camelo that's almoust nice of them
05:28 camelo still they had to anoy people with that 90 days stuff
05:30 amirite how do i control what happens when the app dies?
05:31 amirite i.e. need to replace the routine rather than spit out a dinocorn and a memory leak
05:41 denisboyun joined #mojo
05:42 amirite_ joined #mojo
05:42 amirite_ mojolicious leaks memory upon exceptions
05:42 Kulag joined #mojo
05:43 amirite_ to prove it, just put 'die "foo"' as the first line in any action and "ab -n100 http://127.0.0.1:3000/your/route"
05:43 amirite_ then monitor the virtual/resident memory used by the process
05:43 amirite_ it climbs up and up and up each time
05:43 amirite_ is there a solution other than making the application bug free?
05:48 sri yea, the 90 day limit is so very microsoft, almost nice
05:49 camelo they don't make the browser for other OS's, they don't let people use it with other implementations of the windows API
05:49 camelo (the license forbids)
05:50 camelo and then they almost give a nice solution for that
05:50 Britzel joined #mojo
05:50 basiliscos joined #mojo
06:02 basiliscos joined #mojo
06:09 suy joined #mojo
06:10 KindTwo joined #mojo
06:28 marcus o/
06:28 marcus Good morning party people!
06:29 marcus sri: Did you watch Arrested Development?
06:29 sri marcus: half way through season 4
06:30 sri \o
06:30 marcus sri: I finished season 4 2 weeks ago :)
06:31 * nic hasn't even got to the start line of this race
06:33 Mike-PerlRecruiter_ joined #mojo
06:34 iankent whats the most appropriate way to turn a GET request into a POST request from a bridge, so any routes chained off the bridge treat it as a GET instead?
06:34 sinkovsky joined #mojo
06:35 iankent and on a related note, is it possible to use request params as part of the routing match, i.e. only following a route if a particular input is given (or just use a bridge?)
06:36 KindOne joined #mojo
06:40 Vandal joined #mojo
06:47 dod joined #mojo
06:47 Vandal is there a way to render scalar content like .ep template?
06:56 dod joined #mojo
07:06 whitebook joined #mojo
07:16 amirite_ how do i hook into the dispatch chain just once?
07:23 kwa amirite_: Can you add a hook, then remove the hook from the hook itself when fired?
07:43 Dandre joined #mojo
07:51 HtbaaPi joined #mojo
07:51 nicolaas joined #mojo
07:54 batman do_what_you_want() if !$once++;
07:54 trone joined #mojo
07:57 nicolaas hello
07:57 fhelmber_ joined #mojo
07:58 nicolaas I'm running Mojolicious on Windows, and I noticed that I can't send and receive response for two requests without being "blocked" by the first one
07:58 nicolaas how can I avoid that ?
08:00 nicolaas I guess hypnotoad does, but it doesn't run on Windows
08:06 HtbaaPi joined #mojo
08:06 abstract_ joined #mojo
08:07 jzawodn joined #mojo
08:24 maxhq joined #mojo
08:25 nicomen joined #mojo
08:54 jpn joined #mojo
08:56 sinkovsky joined #mojo
09:02 denisboyun joined #mojo
09:13 nic nicolaas: Is this so one part of the app can communicate with another part?
09:19 Feinorgh joined #mojo
09:30 c-- joined #mojo
09:40 c-- what's the proper way to receive a hash of key value pairs, sent by jquery's ajax? param('times') (times is the hash) appears to be empty (param works well for strings/scalars)
09:42 denisboyun_ joined #mojo
10:19 rem_lex|pivo joined #mojo
10:28 c-- ok nevermind i make it a json string, it works
10:43 ryozi joined #mojo
11:17 KindTwo joined #mojo
11:25 denisboyun joined #mojo
11:34 amirite_ how do i hook into the dispatch chain just once?
11:37 tba joined #mojo
11:38 libsysguy joined #mojo
11:45 batman amirite_: seriously? again?
12:03 allison joined #mojo
12:09 KindTwo joined #mojo
12:14 whitebook joined #mojo
12:16 mrphilov joined #mojo
12:17 KindOne joined #mojo
12:21 KindTwo joined #mojo
12:23 sinkovsky joined #mojo
12:27 mrphilov joined #mojo
12:29 whitebook1 joined #mojo
12:54 whitebook joined #mojo
12:54 doby joined #mojo
12:58 judofyr joined #mojo
12:58 judofyr HEEY MOJO
13:04 mire joined #mojo
13:10 nicolaas nic sorry .. long talk with my boss
13:12 nicolaas nic my problem is that some of the requests can be quite long (ex: upload and processing a big file)
13:13 nicolaas i don't know how to manage multiple connections at a time
13:13 nicolaas without blocking them
13:15 libsysguy nicolaas: can you for the processing process ?
13:15 libsysguy fork*
13:16 nicolaas libsysguy what we were working on, but all Fork modules are based on file handles, and windows is limited to 64 file handles at a time
13:17 nicolaas that means, only 64 big requests processing at a time
13:17 libsysguy oh windows, my bad
13:17 nicolaas how do you make scalable web apps ? (on win or linux) .. even hypnotoad is limited to a given number of workers
13:19 libsysguy more servers running the same app?
13:19 libsysguy they are all dealing with the same data backends
13:19 allison joined #mojo
13:22 libsysguy nicolaas: what kind of processing are you having to do in your upload?
13:23 libsysguy you should just be able to wrap whatever it is in an async request and have it call back
13:23 nicolaas uploading an excel file, transform them into data::tables, make joins & pivots with them, etc
13:24 rem_lex joined #mojo
13:24 nicolaas that's an example
13:24 nicolaas the fact is, I can't make it work for multiple users
13:25 libsysguy can you use http://mojolicio.us/perldoc/Mojo/IOLoop
13:26 libsysguy so every read request should be a non-blocking request
13:27 nicolaas libsysguy but how should i use it ? in my front controller method ?
13:28 libsysguy here is sri's 10k example https://gist.github.com/kraih/5551292
13:28 libsysguy that should provide some level of insight (I think)
13:28 libsysguy I am fairly new so please take what I say with a grain of salt
13:31 nicolaas libsysguy no pb, thanks for your help
13:34 allison joined #mojo
13:40 cosimo joined #mojo
13:43 inokenty joined #mojo
13:46 btyler joined #mojo
13:51 moltar joined #mojo
13:53 d4rkie joined #mojo
13:55 allison joined #mojo
13:59 suy joined #mojo
14:02 Mikey joined #mojo
14:09 btyler_ joined #mojo
14:16 coff joined #mojo
14:16 doby joined #mojo
14:24 rem_lex|pivo joined #mojo
14:26 KindTwo joined #mojo
14:27 gryphon joined #mojo
14:31 alester joined #mojo
14:31 cosimo joined #mojo
14:31 coff Anyone remember (from way back in the day, v.2.23) why running $self->session('foo') might return the string "Warning: something's wrong"?
14:33 arthas joined #mojo
14:35 allison joined #mojo
14:36 nic coff: Does it only happen if 'foo' is not in session?
14:37 KindOne joined #mojo
14:37 coff nic: Might seem so yes.
14:40 coff nic: Did the older mojo return that string when something was not in session, or something of the sort?
14:41 coff It's a little strange really, as it seems like other places session() has been used it returns something falsey like undef if the sessions doesn't hold what you ask for.
14:48 bluescreen joined #mojo
14:49 mattastrophe joined #mojo
14:50 whitebook joined #mojo
14:51 allison joined #mojo
15:02 KindOne joined #mojo
15:10 denisboyun_ joined #mojo
15:20 delias joined #mojo
15:25 dod joined #mojo
15:29 batman coff: i think you're seeing a perl warning and not what session() returned
15:30 batman like warn $self->session('blabla');
15:33 btyler joined #mojo
15:43 sh4 joined #mojo
15:46 bpmedley joined #mojo
16:01 cosimo joined #mojo
16:05 whitebook joined #mojo
16:14 denisboyun joined #mojo
16:31 jberger joined #mojo
16:38 basic6 joined #mojo
16:40 basiliscos joined #mojo
16:58 mire_ joined #mojo
17:02 bluescreen joined #mojo
17:18 jberger sri: can I bring your attention to an SO question?
17:18 jberger http://stackoverflow.com/questions/1711​3399/mojolicious-and-delayed-websocket
17:19 jberger the websocket route is trying to respond as a GET request before it gets upgraded
17:19 jberger my equivalent example works fine
17:27 sri jberger: i don't understand the question
17:28 jberger when the op's code is run, the controller (callback) tries to render echo.html.ep
17:28 sri of course, he never established the websocket connection
17:29 sri your example does it by subscribing to the finish event
17:30 sri his example is horribly flawed anyway, it would keep sending messages even after the connection is closed
17:31 jberger right
17:33 jberger so you must subscribe to an event if you want the websocket to establish?
17:37 jberger what would you do if you just wanted to send a message on connect
17:42 bluescreen joined #mojo
17:48 good_news_everyone joined #mojo
17:48 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/IbQHXQ
17:48 good_news_everyone mojo/master 4707b50 Sebastian Riedel: mention how WebSocket connections are established
17:48 good_news_everyone left #mojo
17:48 sri jberger: that should answer all your questions
17:49 jberger aaaaaaaaaaah
17:55 jberger good to know, and I like the new doc
17:55 jberger sri++
17:55 sri \o/
18:07 btyler joined #mojo
18:09 marty nice doc change.  sri++
18:29 libsysguy joined #mojo
18:30 mire__ joined #mojo
18:33 Mike-PerlRecruiter_ joined #mojo
18:36 coff batman: thanks. I'll be looking into that.
18:53 btyler joined #mojo
19:01 libsysguy joined #mojo
19:26 gryphon joined #mojo
19:35 libsysguy joined #mojo
19:39 asarch joined #mojo
19:53 mire_ joined #mojo
20:10 jamesw joined #mojo
20:10 sh4|2 joined #mojo
20:40 mire__ joined #mojo
20:41 tianon joined #mojo
21:14 asarch joined #mojo
21:56 whitebook joined #mojo
22:00 whitebook joined #mojo
22:20 btyler joined #mojo
22:23 whitebook joined #mojo
22:24 delias joined #mojo
22:50 whitebook joined #mojo
23:07 hide no, I lost it
23:22 kitt_vl joined #mojo
23:27 mire_ joined #mojo
23:43 amirite joined #mojo
23:54 mire__ joined #mojo

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