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

IRC log for #mojo, 2014-06-28

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

All times shown according to UTC.

Time Nick Message
00:13 sri think i'll make a little change to hypnotoad so graceful stop does not result in the "Worker $pid has no heartbeat, restarting." message anymore
00:14 sri and elevate that message to an error, since it would only apply if your app really blocks for a long time
00:17 nmittal_ preaction.. If one request did something (say set a flag).. i want all other requests from different users to be able to see that
00:18 preaction nmittal_: i believe that's what a helper can do. i've never used them though.
00:19 nmittal_ preaction.. i'm doubtful as hypnotoad forks.. so there may be race issues between processes.. i think an external cache (like memcache) needs to be used
00:19 preaction FastMMap would work fine
00:19 preaction but then you've got concurrency and need locking
00:19 sri that's what databases are for
00:19 preaction (and you would with memcached as well)
00:20 nmittal_ preaction.. fastmmap handles concurrency.. but then its only local.. if I have multiple servers it wont work.. i think something like redis/memcached is needed
00:21 nmittal_ sri right.. do you have preference.. redis or memcached?
00:21 preaction redis is, from what i understand, more of a database than memcached
00:21 preaction memcached is absolutely not a database
00:21 preaction lockerd is fun
00:22 nmittal_ well they are both nosql... key value storage.. redis just has more stuff like replication etc
00:22 sri i like mongodb and redis
00:22 preaction fastmmap is also nosql by that definition
00:22 sri you may have noticed i work on mango ever now and then ;p
00:22 nmittal_ i see.. will look into mongodb
00:23 * sri can't wait for mongodb 2.8
00:23 preaction what does it have?
00:23 nmittal_ fastmmap is nosql but it works with a mmaps file..  cant share cache across hosts
00:23 sri document level locking and pluggable storage engines
00:24 preaction pluggable storage engines?
00:24 sri mongodb master already has a rocksdb backend
00:24 * preaction gets a mysql vibe
00:24 nmittal_ sri.. really custom storage engines!!! thats cool.. i thought only MySQL and MariaDB did that
00:24 sri if you're interested watch the keynote from yesterday :)
00:26 jberger o/
00:26 sri http://www.mongodb.com/presentations/mongodb-world-2014-keynote-eliot-horowitz
00:26 jberger preaction, the closest thing I know of like weaksub is curry::weak
00:26 sri fusionio storage engine is intriguing
00:27 jberger which, btw, I still wonder if Mojo::Util ought to copy
00:27 preaction i think ghostery might be blocking any actual content on that page :(
00:27 btyler joined #mojo
00:28 nmittal_ sri.. thanks watching the keynot
00:28 nmittal_ keynote*
00:33 sri jberger: played with it, but it didn't make core code that much nicer
00:38 jberger I think I remember that now that you say it
00:38 * jberger works on ForkCall
00:38 jberger my new ultrabook doesn't have a caps lock indicator :-/
00:39 jberger status bar indicator it shall be
00:39 purl Since Tue Aug 13 05:43:03 2013, there have been 20711 modifications and 7490 questions.  I have been awake for 318 days, 18 hours, 56 minutes, 7 seconds this session, and currently reference 961904 factoids. Addressing is in optional mode.
00:39 preaction i'm starting to be of the opinion that capslock should just go away...
00:39 * jberger slaps purl
00:39 purl o/` Hit me baby, one more time o/`
00:39 sri you don't have capslock bound to something else? :o
00:39 jberger preaction: BUT HOW WOULD I YELL AT YOU THEN???!!!
00:40 preaction BY HOLDING DOWN THE SHIFT KEY WITH YOUR PINKY? ITS EASY TO 9-FINGER TYPE LIKE THIS!
00:40 preaction sri: does apple allow me to do that? apple knows better than me what's better for me
00:41 preaction holy crap i _can_ do it
00:41 * jberger thinks of apple and remembers to check for an official linux atom build
00:41 jberger "Prebuilt versions of Atom are currently only available for OS X (10.8 or later). If you would like to build from source on Windows, Linux, or OS X, see the Atom readme for more information."
00:41 jberger \o/
00:42 preaction oh wow. i can remap capslock to ctrl, alt, or command, but not esc
00:43 sri hehe, yea even apple allows it
00:43 jberger sri: I'm curious, what do you remap it to?
00:43 preaction had to download a program to map to esc, but let's give it a try
00:43 sri jberger: i don't currently ;p
00:43 preaction this is gonna take some getting used to
00:46 firnsy jberger: i've got Atom packages built for Fedora/Korora
00:48 jberger firnsy: I'm on Ubuntu, but even if so, I'm kinda curious to try building it anyway
00:48 jberger thanks tho
00:49 * jberger puts geek hat on
00:54 good_news_everyon joined #mojo
00:54 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/2jeHVA
00:54 good_news_everyon mojo/master b81aff9 Sebastian Riedel: improves Mojo::Server::Prefork to keep sending heartbeat messages when stopping gracefully
00:54 good_news_everyon left #mojo
01:00 jberger argh! dependency hell!
01:06 klapperl_ joined #mojo
01:08 jberger sri: should I stop the loop before or after calling restart?
01:08 jberger in the child
01:09 sri restart?
01:09 purl restart is, like, a command in the original ftp rfc, which is 959, by Jon Postel and Joyce Reynolds
01:09 jberger reset
01:10 sri see method description
01:10 sri ;p
01:10 * jberger headdesk
01:10 purl *thunk*
01:10 * sri pats purl
01:10 * purl pats sri back, harder
01:10 jberger purl: botsnack
01:10 purl :)
01:12 jberger sri: so adding that to the child code is easy, is there any nice way to test that it does what it should?
01:17 sri my test case https://github.com/kraih/minion/blob/master/t/file_lite_app.t#L23
01:18 sri running that in a full lite_app is the perfect test case for me
01:18 sri s/full lite_/lite /
01:18 sri ;p
01:21 sri argh
01:21 sri actually i broke my test case recently :O
01:24 punter joined #mojo
01:24 sri ok, better
01:25 sri https://github.com/kraih/minion/blob/master/t/file_lite_app.t#L63
01:25 punter If I launch hypnotoad with twice the processes, will that occupy twice the RAM?
01:25 sri needed to add that line
01:25 sri no
01:25 punter thanks
01:25 sri you can easily test it with the prefork command
01:26 sri perl -Mojo -E 'a({text => "Hello!"})->start' prefork -w 8
01:26 punter ok I'll try... but how do I check how much ram is consumed? top doesn't help
01:26 * jberger prefers htop
01:26 sri i use the os x tools
01:26 punter thanks
01:27 nmittal_ sri.. if i use mongodb as a cache .. can I also use Tie::Hash::MongoDB to interact with it.. or is it a bad idea performance wise
01:27 sri make sure you understand the differences between the memory stats... shared, virtual, real, private...
01:27 jberger nmittal_: seen Mango
01:27 purl I haven't seen 'Mango', jberger.  Close matches are: mangoes [12y, 178d, 15:53:59], mango^ [14y, 159d, 6:17:49]
01:27 * jberger bites purl
01:27 * purl bites jberger back
01:28 nmittal_ sri was that for me?
01:28 sri no
01:28 nmittal_ jberger ok checking
01:28 sri i know nothing about those modules
01:29 nmittal_ ok
01:29 D4RK-PH0ENiX joined #mojo
01:29 jberger Tie::Hash::MongoDB must be blocking and thus is probably the official (read: not as good) driver
01:30 nmittal_ jberger i just like the convenience of hash interface
01:30 jberger nmittal_: I understand
01:31 * jberger is the author of the (fairly insane) Tie::Array::CSV
01:31 nmittal_ oh wow
01:32 jberger that is one of my favorite "I might be crazy because ... " modules
01:32 jberger of course nothing tops Module::UseFrom (which no one should use, ever!)
01:33 nmittal_ hah now i'm curious
01:34 nmittal_ mango looks like what I need.. thanks jberger
01:34 jberger I mean, why wouldn't you want to use Devel::Declare to import modules? :D
01:35 nmittal_ :)
01:40 D4RK-PH0ENiX joined #mojo
01:41 KCL joined #mojo
01:45 d4rkie joined #mojo
01:49 romel joined #mojo
01:49 klapperl joined #mojo
01:49 cstamas joined #mojo
01:49 cosimo joined #mojo
01:49 sjn joined #mojo
01:49 phips joined #mojo
01:50 sri joined #mojo
01:50 Zx3 joined #mojo
01:50 yko joined #mojo
01:50 tianon joined #mojo
01:50 cotto joined #mojo
01:51 alnewkirk joined #mojo
01:51 KindOne joined #mojo
01:51 mattastrophe joined #mojo
01:51 ivan joined #mojo
01:51 test777 joined #mojo
01:52 neyasov_ joined #mojo
01:53 tempire joined #mojo
01:54 voegelas joined #mojo
01:55 jberger did anyone get sri the Bender hat?
01:55 preaction wait a minute. he's got a brain slug attached to his head!
01:56 neyasov joined #mojo
01:57 Zx3 joined #mojo
01:58 D4RK-PH0ENiX joined #mojo
01:59 yko joined #mojo
01:59 ivan joined #mojo
01:59 test777 joined #mojo
02:00 inokenty joined #mojo
02:01 dgikiller joined #mojo
02:02 sri jberger: no bender hat yet :(
02:11 neyasov_ joined #mojo
02:12 jberger wow, there are so many different variations on the bender hat!
02:15 preaction there's only one official bender hat :p
02:17 jberger "Originally released under a different name in 2011, I’m releasing this pattern in 2014 as “Rude Robot” and it is in no way affiliated with any character or trademark, it’s just a really cool robot hat."
02:17 jberger I see at least two takes on it
02:18 jberger machine made vs crochet
02:18 * jberger likes the crocheted ones better
02:20 preaction http://supcakes.tumblr.com/post/751427121/here-i-got-you-an-official-bender-hat <- Here. I got you an official Bender hat!
02:21 jberger # Welcome to Atom!
02:22 * jberger smacks preaction with a comically large fish
02:22 preaction my knowledge of futurama trivia knows no bounds!
02:24 jberger sri: ZOMG I NEED HAZ AWL TEH PLUGINZ
02:26 KCL_ joined #mojo
02:36 jberger why not zoidberg?
02:36 purl (V) (;,,;) (V)
02:37 d4rkie joined #mojo
02:47 komodo joined #mojo
03:04 punter joined #mojo
03:05 disputin joined #mojo
03:37 Eke- joined #mojo
03:50 sri jberger: i don't have that many installed... mojo, perltidy, autocomplete-plus, color-picker, atom-color-highlight
03:52 good_news_everyon joined #mojo
03:52 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/_Z0ePg
03:52 good_news_everyon mojo/master 6b79916 Sebastian Riedel: reset method is now required
03:52 good_news_everyon left #mojo
04:14 punter joined #mojo
04:27 komodo_ joined #mojo
04:37 kbenson joined #mojo
05:03 sujithm joined #mojo
05:56 Vandal joined #mojo
05:56 sujithm joined #mojo
06:14 preaction cpan_mojo: where are you?!
06:29 basiliscos joined #mojo
06:41 mattastrophe joined #mojo
07:03 bluescreen_ joined #mojo
07:04 mattastrophe joined #mojo
07:27 sh4 joined #mojo
07:51 denis_boyun joined #mojo
08:06 denis_boyun joined #mojo
09:04 _eugen joined #mojo
10:05 basiliscos joined #mojo
10:14 mire joined #mojo
10:14 abra joined #mojo
10:49 denis_boyun joined #mojo
11:02 sujithm joined #mojo
11:04 henq joined #mojo
11:29 denis_boyun joined #mojo
11:33 jberger Orly,  is it being naughty again?
11:35 henq joined #mojo
11:44 abra_ joined #mojo
11:50 d4rkie joined #mojo
12:18 mire joined #mojo
12:20 henq joined #mojo
12:34 cpan_mojo joined #mojo
12:34 cpan_mojo joined #mojo
12:35 jberger restarted
12:35 jberger at least this time there was a proper error, not sure why, but at least its something
12:41 henq_ joined #mojo
12:54 neyasov__ joined #mojo
13:22 mire joined #mojo
14:26 KCL joined #mojo
15:44 mire joined #mojo
15:52 good_news_everyon joined #mojo
15:52 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/_b3PvA
15:52 good_news_everyon mojo/master a0c8c19 Sebastian Riedel: failed software upgrades are an error
15:52 good_news_everyon left #mojo
15:59 rem_lex|pivo joined #mojo
16:01 nishttal2 joined #mojo
16:20 good_news_everyon joined #mojo
16:20 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/R69U7A
16:20 good_news_everyon mojo/master b6b88ae Sebastian Riedel: fixed small bug where Hypnotoad would clean up process id and lock files too early
16:20 good_news_everyon left #mojo
16:30 henq joined #mojo
16:37 good_news_everyon joined #mojo
16:37 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/XwVWQA
16:37 good_news_everyon mojo/master 35c4533 Sebastian Riedel: mention that cleanup defaults to a true value
16:37 good_news_everyon left #mojo
17:03 Adurah_ joined #mojo
17:03 sh4|2 joined #mojo
17:03 Bravo13 joined #mojo
17:03 sujithm_ joined #mojo
17:42 Eke- joined #mojo
17:43 kyshtynbai joined #mojo
18:01 gryphon joined #mojo
18:12 sujithm joined #mojo
18:17 sri any thoughts about this mango patch? https://github.com/kraih/mango/pull/21
18:23 KCL_ joined #mojo
18:49 mattastrophe joined #mojo
19:25 mire joined #mojo
19:58 neyasov__ joined #mojo
20:10 marty joined #mojo
20:11 marty_ joined #mojo
20:16 kyshtynbai joined #mojo
20:41 KCL joined #mojo
20:49 marty joined #mojo
20:51 henq joined #mojo
20:54 henq joined #mojo
21:01 marty joined #mojo
21:07 marty joined #mojo
21:48 good_news_everyon joined #mojo
21:48 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/6US2aA
21:48 good_news_everyon mojo/master 2d60ce9 Sebastian Riedel: simplify process id and lock file handling
21:48 good_news_everyon left #mojo
21:52 meshl joined #mojo
22:21 henq joined #mojo
22:29 sujithm joined #mojo
22:49 bpmedley joined #mojo
23:00 KCL_ joined #mojo
23:03 neyasov__ joined #mojo
23:04 neyasov___ joined #mojo
23:24 good_news_everyon joined #mojo
23:24 good_news_everyon [mojo] kraih tagged v5.10 at 9914b87: http://git.io/FI6bWQ
23:24 good_news_everyon left #mojo
23:25 cpan_mojo Mojolicious 5.10 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-5.10
23:25 bodgix joined #mojo
23:25 good_news_everyon joined #mojo
23:25 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Y8rUag
23:25 good_news_everyon mojo/master 83c8c5b Sebastian Riedel: bump version
23:25 good_news_everyon left #mojo
23:28 cpan_mojo Mango 1.01 by Sebastian Riedel - http://metacpan.org/release/SRI/Mango-1.01 (depends on Mojolicious)
23:29 cpan_mojo Minion 0.28 by Sebastian Riedel - http://metacpan.org/release/SRI/Minion-0.28 (depends on Mojolicious)
23:52 sujithm joined #mojo

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