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

IRC log for #mojo, 2016-04-09

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

All times shown according to UTC.

Time Nick Message
00:01 woz joined #mojo
00:02 bpmedley SmokeMachine : Are you still there?
00:03 SmokeMachine bpmedley: Hi! im here!!
00:03 SmokeMachine batman: Im sorry! I had to run to solve a problem... Im sorry...
00:06 bpmedley https://github.com/brianmed/ForkAndGo/blob/master/lib/Mojolicious/Plugin/ForkCart.pm <-- This tries to start the caddy once at server startup.  We might be able to create a plugin that runs perl code once at startup.
00:10 SmokeMachine bpmedley: thanks! reading...
00:19 elrod_ joined #mojo
00:21 elrod_ Hello
00:23 elrod_ We have a Rest API where we want to return a result as fast as possible but some post processing is needed.
00:26 elrod_ The Mojo::IOLoop examples don’t weem like the right approach
00:27 elrod_ also the rendered data appears to be sent after all hooks have been called -  there does not seem to be a “cleanup” hook similar to mod_perl
00:28 elrod_ Any pointers would be appreciated
00:41 bpmedley SmokeMachine : https://github.com/brianmed/AtStartup/blob/master/eg/once.pl <-- How is this?
00:43 SmokeMachine bpmedley: that looks great!!!
00:43 bpmedley SmokeMachine : Would you test it?
00:44 bpmedley Also, for hypnotoad, do you need the code to run in the Manager, Child, or Startup process?
00:45 SmokeMachine bpmedley: my code where I need it is on my work computer, now Im at home... but I am writing a small test here...
00:45 SmokeMachine bpmedley: I don't know when that should run... but that should run only once...
00:46 ivi joined #mojo
00:46 bpmedley Roger that.  Perhaps by 0.10 we'll know.. ;)
00:59 SmokeMachine bpmedley: :( https://www.irccloud.com/pastebin/tllxJqYi/
01:00 bpmedley Ok, so, let me create a method to run code in a worker..
01:03 PryMar56 joined #mojo
01:08 asarch joined #mojo
02:04 woz joined #mojo
02:18 noganex_ joined #mojo
02:23 tchaves joined #mojo
02:41 elrod_ joined #mojo
03:45 elrod_ joined #mojo
04:05 woz joined #mojo
04:32 sri elrod_: http://mojolicious.org/perldoc/Mojolicious/Controller#on
04:57 elrod_ I see - finish is called to close the connection so the content would have been sent
05:00 elrod_ I’m guessing it has access to the stash
05:07 woz joined #mojo
05:47 bpmedley SmokeMachine : https://github.com/brianmed/AtStartup/blob/master/eg/once.pl
06:48 salva0 joined #mojo
07:02 woz joined #mojo
07:30 batman does anyone have freebsd or netbsd? i'm getting a bunch of failures for Mojolicious::Plugin::CGI, which i'm not able to sort out: http://www.cpantesters.org/cpan/report/708e67aa-fd5a-11e5-829f-59a5aef69d38
07:31 batman BinGOs: ^^^ would you have time to help me out?
07:55 cpan_mojo Swagger2-0.76 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Swagger2-0.76
08:03 Vandal joined #mojo
08:09 dod joined #mojo
08:47 BinGOs batman: from that particular NetBSD instance:
08:48 BinGOs $ /usr/bin/perl
08:48 BinGOs -bash: /usr/bin/perl: No such file or directory
08:48 batman oh!
08:48 batman thanks! :)
08:48 BinGOs recently FreeBSD and NetBSD ports/pkgsrc don't install a perl to /usr/bin/perl
08:48 batman i wonder if i should skip or rewrite hashbang to $^X
08:50 BinGOs you could just do /usr/bin/env perl like you have with your other scripts
08:51 batman indeed i could
08:51 batman thank you for your help :)
08:52 BinGOs yay, glad it was that simple.
08:52 batman i hope it works out :)
08:54 kes joined #mojo
08:54 FatalNIX joined #mojo
08:57 cpan_mojo Mojolicious-Plugin-CGI-0.29 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-CGI-0.29
09:03 woz joined #mojo
09:19 woz joined #mojo
10:35 woz joined #mojo
11:01 pink_mist jberger: re your http://blogs.perl.org/users/joel_berger/2016/03/on-the-mojolicious-codebase.html ... in the NB at the end you write "the forks this article refers to do include github forks" ... did you mean "do not"?
11:14 woz joined #mojo
11:17 woz joined #mojo
11:46 jberger pink_mist: argh really??
11:47 jberger Drat
11:47 bpmedley SmokeMachine : https://github.com/brianmed/AtStartup/blob/master/lib/Mojolicious/Plugin/AtStartup.pm <-- Did you try this?
11:49 jberger pink_mist: fixed and many thanks
12:12 tchaves joined #mojo
12:23 woz joined #mojo
13:18 woz joined #mojo
13:31 HtbaaPi_ joined #mojo
13:51 melo1 joined #mojo
14:07 asarch joined #mojo
14:10 dvinciguerra_ joined #mojo
14:21 sri wow, that's a pretty template https://github.com/akveo/blur-admin
14:22 pink_mist just scrolling on the demo page makes firefox's display lag :P
14:22 sri haha
14:22 jberger ETOOMUCHSCOPECREEP
14:22 jberger It's just a first version, but we will continue development of this template to create not just another bootstrap customization, but the whole HTML framework that can be applied in a lot of places.
14:23 pink_mist batman: one of your pals is having a tough time: https://scontent-dfw1-1.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/1918376_3291384646345_1309906975608838115_n.jpg?oh=fb916666694044b99eeba96dae442c05&amp;oe=57730E13
14:24 jberger heh
14:24 * jberger gets it
14:32 genio it is a pretty demo
14:53 woz joined #mojo
15:14 woz joined #mojo
15:33 odc joined #mojo
15:35 disputin joined #mojo
15:46 mdom So, the complete test suite of minions t/pg.t now runs against https://github.com/mdom/Minion-Backend-Storable
15:46 mdom The last thing still missing, i think, is the non blocking waiting for jobs in dequeue
15:47 mdom And i probably have to take another look at the locking code ...
15:47 sri i wrote a storable backend too back in the days
15:48 mdom Oh no! is it somewhere on the internet? Should have searched longer
15:48 sri no, i killed it because the performance was too bad
15:49 mdom Wah! And there are more!
15:49 sri my version https://github.com/kraih/minion/blob/e60201f255ea5a45a9f431c888535b4bd9603db0/lib/Minion/Backend/File.pm
15:50 sri oops, wrong one
15:50 mdom There's also https://github.com/niczero/minion-backend-storable/
15:50 sri that was DBM::Deep already
15:51 mdom Okay, i take it as a learning experience ... nothing better to learn a project than to write some code for it... :/
15:52 sri https://github.com/kraih/minion/blob/v0.38/lib/Minion/Backend/File.pm
15:52 sri that's the real one, i also compressed the file
15:53 sri it was actually faster than the DBM::Deep version
15:54 sri if you want to benchmark, this is the one i use mostly https://gist.github.com/anonymous/af0751879360a96f4439cd84af8b0721
15:56 elrod_ joined #mojo
15:57 mdom Ah, thanks, i'll try
15:58 sri for comparison, these are postgres results on my laptop https://gist.github.com/anonymous/573eec64acab0ba9f56bbb2be27deb99
15:58 mdom sri: And i really liked the test suite ... made it a breeze to write the backend
15:59 sri heh, i'm actually not quite happy with the tests yet
16:00 sri have a feeling they could be ordered better to make adding one feature at a time to backends easier
16:01 mdom The only thing i had problems with was the last test block for concurrently jobs. The test suite switches between passing and failing ... but that concurrent jobs in a nutshell...
16:04 mdom Okay, minion bench is killing me ... :)
16:04 sri no big surprise :)
16:04 sri only file backend we know that can pass it is sqlite
16:05 sri and when i say pass it, i really mean ace it
16:05 sri sqlite is an awesome piece of software
16:06 mdom no argument there
16:07 sri i was really disappointed with DBM::Deep at the time
16:08 mdom I can really speed up minion bench if i wrap up the slow parts in $minion->backend->begin; ... $minion->backend->commit; blocks ... but i definitely have to write special code for my backend then
16:10 * mdom has to prepare food for the kids
16:21 mcsnolte joined #mojo
16:21 good_news_everyon joined #mojo
16:21 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vVyNM
16:21 good_news_everyon mojo/master 24ce94c Sebastian Riedel: slightly better example for finish event
16:21 good_news_everyon left #mojo
16:32 elrod_ joined #mojo
17:02 trone joined #mojo
17:10 bpmedley https://github.com/brianmed/AtStartup/blob/master/lib/Mojolicious/Plugin/AtStartup.pm <-- Is this an accurate approach for running code at startup?  For Prefork and Hypnotoad the code should run in a worker..
17:15 woz joined #mojo
17:16 dod joined #mojo
17:29 bpmedley https://github.com/jlevy/the-art-of-command-line <-- This is sweet
17:34 preaction yeah, that is nice
17:38 tchaves joined #mojo
18:04 woz joined #mojo
18:09 woz joined #mojo
18:10 Kripton joined #mojo
18:18 bpmedley http://www.tiobe.com/tiobe_index <-- Number 8
18:21 preaction https://www.youtube.com/watch?v=cGJNOcMykiU <- Number 8
18:23 Grinnz mdom, Sereal is faster than Storable if you wanted to try something different... I am not sure if either is useful for this though
18:23 Grinnz Sereal also has built-in compression
18:23 bpmedley Grinnz : Does Sereal work as well?
18:24 Grinnz I love Sereal, I use it all the time
18:24 bpmedley Thanks for the recommendation, I will have to remember that
18:24 preaction if you're using perl, and were looking at protobuf or capnproto, try sereal.
18:27 mdom Grinnz: I always wanted a reason to try Sereal, but if i'm able to install Sereal on the target machine i could probably also install sqlite
18:28 mdom Or is it pp?
18:28 asarch joined #mojo
18:30 Grinnz mdom, it's XS, so certainly. they are very different use cases, which is why I said I'm not sure if it's useful for this :P
18:44 Kripton joined #mojo
19:00 woz joined #mojo
19:15 batman pink_mist: different universe. Still funny :)
19:19 pink_mist d'oh .. I can never keep the universes straight :P
19:21 batman pink_mist: better watch out for colliding universes! ;)
19:33 PryMar56 joined #mojo
19:39 woz joined #mojo
19:51 Adura joined #mojo
19:54 woz joined #mojo
20:25 woz joined #mojo
20:38 tchaves joined #mojo
20:51 asarch joined #mojo
20:55 woz joined #mojo
21:10 asarch joined #mojo
21:17 bpmedley_ joined #mojo
21:27 woz joined #mojo
21:30 melo joined #mojo
21:51 cpan_mojo Mojo-IRC-0.31 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojo-IRC-0.31
22:01 woz joined #mojo
22:14 jberger sri: just a thought to toss into the ring
22:14 jberger I'm not actually up to much coding today, but maybe tomorrow
22:15 jberger I have a desire for an enqueue event from minion
22:16 jberger I want to make Minion::Notifier able to notify on the whole cycle
22:16 jberger enqueue -> dequeue -> (finish|fail)
22:19 jberger this would be for $work but I think would also be useful for a monitor application
22:19 dvinciguerra_ joined #mojo
22:44 meshl joined #mojo
23:05 woz joined #mojo
23:18 woz joined #mojo

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