The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2013-12-16

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

All times shown according to UTC.

Time Nick Message
00:09 klapperl joined #mojo
01:07 laouji joined #mojo
01:18 mire_ joined #mojo
01:36 ka2u joined #mojo
01:50 d4rkie joined #mojo
01:51 good_news_everyone joined #mojo
01:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/W_R10A
01:51 good_news_everyone mojo/master 6028ab1 Sebastian Riedel: improved performance of Mojo::DOM::at significantly
01:51 good_news_everyone left #mojo
01:54 rem_lex joined #mojo
01:57 mire__ joined #mojo
02:07 klapperl_ joined #mojo
02:28 lammel2 joined #mojo
02:29 lammel2 left #mojo
02:30 plenum joined #mojo
02:37 good_news_everyone joined #mojo
02:37 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/coYTKw
02:37 good_news_everyone mojo/master 9757379 Sebastian Riedel: renamed first to select_one
02:37 good_news_everyone left #mojo
02:39 laouji joined #mojo
02:43 duncanthrax2 joined #mojo
04:03 preflex_ joined #mojo
04:49 asarch joined #mojo
04:51 ka2u joined #mojo
05:13 laouji joined #mojo
05:18 cooper joined #mojo
05:45 good_news_everyone joined #mojo
05:45 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/0mDtJQ
05:45 good_news_everyone mojo/master 469822c Sebastian Riedel: small optimizations
05:45 good_news_everyone left #mojo
05:54 ver joined #mojo
06:00 LordV joined #mojo
06:10 laouji joined #mojo
06:16 Vandal joined #mojo
06:27 marty joined #mojo
06:30 plenum joined #mojo
06:43 arpadszasz joined #mojo
07:04 Lee joined #mojo
07:14 dpetrov_ joined #mojo
07:21 basiliscos joined #mojo
07:29 laouji joined #mojo
07:42 dod joined #mojo
07:47 mire__ joined #mojo
07:58 dod joined #mojo
08:04 KindTwo joined #mojo
08:14 laouji joined #mojo
08:17 dod joined #mojo
08:22 russum joined #mojo
08:29 russum joined #mojo
08:31 trone joined #mojo
08:34 highflying joined #mojo
08:41 nicolaas joined #mojo
09:34 themage joined #mojo
09:34 russum joined #mojo
09:41 russum left #mojo
09:48 fhelmber_ joined #mojo
10:14 d4rkie joined #mojo
10:16 D4RK-PH0ENiX joined #mojo
10:17 maxhq joined #mojo
10:17 russum1 joined #mojo
10:20 basiliscos joined #mojo
10:25 russum joined #mojo
10:31 d4rkie joined #mojo
10:31 Lucas1 joined #mojo
10:35 abra_ joined #mojo
10:35 laouji joined #mojo
11:21 S joined #mojo
11:22 S hi
11:22 purl que tal, S.
11:22 S i would like to know where session data is stored in mojo
11:22 S on serverside
11:23 S in documentation i am not able to find
11:24 klapperl joined #mojo
11:24 stephan48 S: in a signed & encryted clientside cookie
11:25 S stephan48, i am not getting could u please
11:26 S eloborate
11:26 S im very new to this
11:29 klapperl_ joined #mojo
11:39 hrupp joined #mojo
11:40 batman S: it's not stored on server side
11:42 klapperl joined #mojo
11:46 S joined #mojo
11:47 S so its stored in client side
11:47 S ?
11:47 dsteinbrunner joined #mojo
11:49 S ?
11:56 batman yes
11:58 * sjn wonders if it really was a good idea to send people here by default :)
11:58 jim joined #mojo
11:59 * sjn confuses channels
12:01 denisboyun joined #mojo
12:03 batman "by default" ? from where?
12:12 ka2u joined #mojo
12:16 sjn batman: it was all a brain fart on my side, never mind from where :)
12:34 hummeleBop joined #mojo
12:44 moritz by deafault form sjn's brain :-)
12:44 ka2u joined #mojo
13:13 laouji joined #mojo
13:23 russum1 joined #mojo
13:24 russum joined #mojo
13:53 asarch joined #mojo
14:06 dvinciguerra joined #mojo
14:15 mire__ joined #mojo
14:17 BillRuppert joined #mojo
14:19 sh4 joined #mojo
14:21 gryphon joined #mojo
14:25 arpadszasz joined #mojo
14:37 bluescreen joined #mojo
14:40 lammel2 joined #mojo
14:42 mire__ joined #mojo
14:47 good_news_everyone joined #mojo
14:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Ol0Csw
14:47 good_news_everyone mojo/master 744996e Sebastian Riedel: removed unnecessary else block
14:47 good_news_everyone left #mojo
14:52 HtbaaPi when using Test::Mojo, is it possible to spoof the IP address? I'm using an IP filter in a bridge which I need to make sure works with unit tests
14:56 arpadszasz_ joined #mojo
15:11 abhishekisnot joined #mojo
15:12 btyler joined #mojo
15:18 marty joined #mojo
15:19 Janos joined #mojo
15:32 inokenty https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Command/get.pm#L112  I think it could be written as  sub _say { length && say encode('UTF-8', $_) for @_ }    =)
15:49 marty joined #mojo
15:49 marty joined #mojo
15:54 good_news_everyone joined #mojo
15:54 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/0hP6kw
15:54 good_news_everyone mojo/master 78ca6d1 Sebastian Riedel: better tests for Mojo::DOM::CSS
15:54 good_news_everyone left #mojo
15:57 good_news_everyone joined #mojo
15:57 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/BmIAKQ
15:57 good_news_everyone mojo/master 99fa13b Sebastian Riedel: $_ is implicit
15:57 good_news_everyone left #mojo
16:05 marty joined #mojo
16:13 beyondcreed joined #mojo
16:29 russum1 joined #mojo
16:31 mire__ joined #mojo
16:37 hrupp left #mojo
16:41 alex joined #mojo
16:42 basiliscos joined #mojo
16:43 marty joined #mojo
16:47 denisboyun joined #mojo
16:51 duncanthrax joined #mojo
16:57 good_news_everyone joined #mojo
16:57 good_news_everyone [mojo] kraih tagged v4.61 at b5a3cc5: http://git.io/Wx4fRg
16:57 good_news_everyone left #mojo
17:00 duncanthrax2 joined #mojo
17:03 marty joined #mojo
17:09 duncanthrax joined #mojo
17:15 marty joined #mojo
17:29 marty joined #mojo
17:42 russum1 left #mojo
17:45 maxhq joined #mojo
17:46 maxhq joined #mojo
17:46 Zx3 joined #mojo
17:53 marty joined #mojo
18:02 beyondcreed joined #mojo
18:08 marty joined #mojo
18:09 marty joined #mojo
18:21 sri gotta love the new Mojo::DOM::at, one of my scripts is 2000% faster \o/
18:45 dod joined #mojo
18:51 jnbek^dt joined #mojo
19:07 Mike-PerlRecruiter_ joined #mojo
19:07 maxhq joined #mojo
19:27 fhelmbe__ joined #mojo
19:28 r0b3rt joined #mojo
19:44 Lucas1 joined #mojo
20:14 maxhq joined #mojo
20:25 rem_lex|pivo joined #mojo
20:39 lukep joined #mojo
20:59 duncanthrax2 joined #mojo
20:59 phillipadsmith sri: seriously? What was the optimization?
21:01 sri https://github.com/kraih/mojo/compare/d644ac675277741d9d46c2995a7f92be37df4be3...975737938c9bd781af83470ae5594572ef3a666d
21:14 marty sri++ on DOM Mojo \o/
21:22 trone joined #mojo
21:25 dotan joined #mojo
21:36 dotan_ joined #mojo
21:44 denis_boyun joined #mojo
21:45 beyondcreed joined #mojo
21:48 cfedde joined #mojo
21:50 maxhq joined #mojo
22:18 asarch joined #mojo
22:23 hellyna joined #mojo
22:24 hellyna hello~ i have a potentially stupid qn to ask.
22:25 hellyna I am currently running mojo as a cgi script. I feel that it has to execute from top to bottom every request. Is that inefficient?
22:25 hellyna If so how can I deal with such performance issues? O.o
22:27 dsteinbrunner joined #mojo
22:31 cfedde cgi is inefficient because it has to fork and compile the script each run.
22:31 cfedde That's not such a big deal with low load sites. but can be an issue if you service lots of requests.
22:34 alnewkirk welcome to 2013
22:35 hellyna cfedde: i see.
22:35 cfedde cgi is obsolete in the same way as shell scripts are obsolete.
22:35 cfedde CGI.pm of course is obsoletet.
22:35 hellyna so what's the alternative? mod_perl?
22:35 cfedde hellyna: that's one.  so is fastcgi and psgi
22:35 hellyna ah
22:36 Adura Shell scripts, they're used all the time.
22:36 hellyna cfedde: i will look into those. thanks :)
22:36 cfedde cgi is a fine approach. If you want to learn the other techniques thats cool. But cgi is a great approach for small infrequent tools that most of us host.
22:38 Adura Ah, indeed.
22:38 alnewkirk yeah, i didn't get the shell-script analogy either
22:39 hellyna cfedde: I am coding for a company, and they use CGI. I proposed and coded a framework for them from ground up using mojo... and it brings up questions like if there were any other alternatives to plain old CGI.
22:39 Adura Reverse proxy to Hypnotoad is what I use.
22:39 hellyna cfedde: turns out the software they use are plain CGI.pm coded, and are pretty ancient. so I was like hey why not use a framework?
22:39 cfedde hellyna: lets not confuse CGI.pm and the CGI interface.
22:40 hellyna but they do run things on CGI
22:40 hellyna no mod_perl or psgi or fastcgi.
22:40 cfedde remenber that a cgi script can be written in any language.  CGI.pm is just a library that made it easier in perl.
22:40 hellyna first thing that comes to my mind is, maybe there's an internal caching mechanism for mojo? hence i asked :)
22:41 hellyna i see. i understand. u can compile a c exe and run it as CGI, i think? :)
22:41 cfedde caching?  like memcached?
22:41 Adura There's memorize, not sure how it works, I changed it to use memcached.
22:42 cfedde memoize creates a "hidden" cache of function returns.
22:42 hellyna because the notion of having to execute the script every refresh worries me a bit. so i wondered if theres any way tomake mojo 'persistent'.. fastcgi and psgi are probably a good start
22:42 cfedde where "cache" is just a hash.
22:42 Adura Do look into Hypnotoad behind a reverse proxy, though.
22:42 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT
22:42 Adura You get all the benefit of Hypnotoad without changing your httpd.
22:42 hellyna Adura: okie
22:43 hellyna thanks sri too :)
22:43 cfedde hellyna: a modern linux system can fork lots of processes in a second.
22:43 cfedde Hypnotoad is a fine approach too.
22:44 hellyna hypnotoad looks good. so i can assume it runs as a daemon, listening to apache via a port, where apache just fwds the requests to it?
22:45 Adura You'd have Hypnotoad listen on something like 8080 and your httpd forward requests to 8080.
22:45 hellyna Adura: ic.
22:45 cfedde depending on what you are doing it might be worth considering taking apache out of the deployment all together.
22:45 Adura Doubt your superiours would want to ditch something they rely on like Apache, though.
22:46 hellyna oh, straight to hypnotoad?
22:46 hellyna Adura: yes that's the problem.
22:46 Adura I use lighttpd, personally.
22:46 hellyna I had some experiences in nginx, but still i am too used to the apache conf/and world.
22:47 cfedde with hypnotoad or another proxy model you have two layers of daemons to worry about.  Not a problem. Just another detail.
22:47 cfedde s/hypnotoad/apache+hypnotoad/
22:48 cfedde hypnotoad provides a static file service that is quite nice to use.
22:49 hellyna :o. well thing is getting people convinced in using things other than apache :p. see how it goes.
22:50 hellyna don't think plain cgi is a hit since yeah computers nowadays are really fast.
22:50 cfedde just write your mojo.  Let the ops team decide how to deploy it.
22:50 cfedde unless you get to wear both hats.
22:51 hellyna cfedde: i am just curious about these things :p. always nice learning new things.
22:51 cfedde indeed.
22:51 hellyna as a coder i get uncomfortable when i see situations like this, forking and exe-ing a script then immediately exit. having to do the same for every req. haha.
22:52 cfedde you are using perl.  The time to fork/exec will be tiny compared to lots of the other stuff perl does.
22:52 hellyna ok :)
22:53 hellyna anyway mojo is a great framework. i enjoy working with it.
23:08 sri https://github.com/kraih/mojo/issues/573 # maybe someone here wants to chime in too
23:21 mire__ joined #mojo
23:23 dvinciguerra joined #mojo
23:28 gryphon joined #mojo
23:38 russum joined #mojo
23:39 russum left #mojo
23:42 rem_lex joined #mojo
23:46 rem_lex|pivo joined #mojo
23:58 russum joined #mojo

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