Camelia, the Perl 6 bug

IRC log for #mojo, 2012-03-02

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

All times shown according to UTC.

Time Nick Message
00:45 GitHub84 joined #mojo
00:45 GitHub84 [mojo] kraih pushed 1 new commit to master: http://git.io/AcL2ww
00:45 GitHub84 [mojo/master] modernize ojo examples - Sebastian Riedel
00:45 GitHub84 left #mojo
00:55 bird joined #mojo
01:05 scott joined #mojo
01:10 dryman joined #mojo
01:27 d4rkie joined #mojo
01:29 GitHub105 joined #mojo
01:29 GitHub105 [mojo] kraih pushed 1 new commit to master: http://git.io/YPVhWw
01:29 GitHub105 [mojo/master] reflow Changes - Sebastian Riedel
01:29 GitHub105 left #mojo
01:30 bird joined #mojo
02:15 bird_ joined #mojo
02:16 scott joined #mojo
02:43 jnap joined #mojo
02:55 hshong joined #mojo
03:01 scott joined #mojo
03:10 bird joined #mojo
03:42 amirite joined #mojo
03:55 bird_ joined #mojo
04:38 tholen42 joined #mojo
04:46 abra_ joined #mojo
05:23 dryman joined #mojo
05:43 tempire sri: did you have a problem building macvim-alloy against perlbrew perl?
05:46 tempire also, better icon: http://dribbble.com/system/users/2086/scre​enshots/337065/vim_icon-300.png?1322700321
06:06 bird joined #mojo
06:27 marcus tempire: ooh, that icon is great
06:28 kitt_vl joined #mojo
06:50 hshong joined #mojo
07:19 spleenjack joined #mojo
07:33 pfig joined #mojo
07:59 omega tempire: I have to run perlbrew off to get brew to build macvim atleast
08:19 fhelmbe__ joined #mojo
09:10 bird joined #mojo
09:17 AmeliePoulain joined #mojo
10:05 black joined #mojo
10:31 cosmincx joined #mojo
10:51 daxim joined #mojo
11:27 judofyr joined #mojo
11:41 cosmincx joined #mojo
12:02 memowe Contenticious octopus! :) http://memowe.github.com/co​ntenticious/deployment.html
12:06 vervain Like ikiwiki
12:07 memowe Like many things. This is mine. :)
12:07 memowe But I don't see a hand-made arrowctopus on ikiwiki.
12:07 vervain Tis cool... on of the first things I with M was write an app that does this - but renders and serves the md files from source.
12:07 vervain :-)  YOu're too right.
12:09 memowe "but renders and serves the md files from source"? Isn't that exactly what Contenticious does? :)
12:09 vervain It would seem so :-)  I hadn't read that part yet... jsut the deploy part.  sorry.
12:10 memowe It's also possible to mount it as a live md renderer in existing apps. mount++
12:10 crab what's this new thing of calling mojo "M"?
12:11 memowe crab: it's just being lazy. :)
12:11 vervain Hmmm... history would confirm... but I'd could swear it was you crab that suggested "M" a while back... or at least said you liked it.
12:12 vervain But I could of course be wrong.. it was someone...
12:12 * vervain goes digging.
12:13 * vervain thinks... or maybe tempire <shrug>
12:14 judofyr memowe: what did you end up for the "dump" command?
12:14 crab vervain: afaik only iaw4 and you call it M
12:14 crab it reminds me of an ancient german film, though
12:14 memowe judofyr: it uses Mojolicious::Plugin::Subdispatch
12:15 memowe https://github.com/memowe/mo​jolicious-plugin-subdispatch
12:17 vervain crab: Thanks for posting to the 'resource permissions' thread... you're model is how I have done it... the reassurance was helpful.
12:17 vervain s/'re/r/ :-/
12:18 memowe judofyr: plus Mojolicious::Plugin::RelativeUrlFor
12:19 memowe to replace url_for urls with relative urls.
12:25 crab vervain: now you owe me royalties.
12:26 vervain M M M M M Kerching! :-)
12:27 abra__ joined #mojo
12:34 vervain Actually I'm going to claim Obviousness... esp since I was able to come up with it too. ;-)
12:35 vervain What I said 'how i've done it' I meant 'how I had already done it'.
12:36 vervain s/What/When/ man my fingers aren't warming up today.
12:43 memowe :D
12:44 marcus <3 Atari Teenage Riot
12:45 Netfeed ooh, that was a long time ago, thanks
12:46 marcus good coding music
12:46 marcus won't fall asleep at the keyboard =)
12:47 Netfeed is there a norwegian word for paltkoma?
12:58 vervain marcus: Thanks for that... I just reached for anything Jorgensen/Barker... my personal way to scratch that itch.
12:59 kokey I code a lot to the solvent, demonstration tape album
12:59 vervain I used to fire up di.fm/goapsy regularly for coding... but not so much any more... I blame age. :-)
13:03 vervain And Ministry - TMIATTTT it is.
13:07 Netfeed pantera - cowboys from hell
13:11 marcus NIN works too
13:11 Netfeed yeah
13:12 vervain Ministry, NIN, Revolting Cocks, 1 stage... 1 helluva night :-)
13:13 vervain HEhehe... now I want to play Quake... it is Friday after all. :-)
13:16 daxim http://games.slashdot.org/story/11/12/21/133620​8/quakeforge-060-released-in-time-for-christmas
13:40 jnap joined #mojo
14:11 d4rkie joined #mojo
14:17 crab memowe: this site is very nice-looking
14:18 memowe :)
14:37 sri memowe: cute octopus :)
14:38 memowe :)
14:38 memowe Bamboo++
14:38 memowe oh, by the way: large version is here: http://www.flickr.com/photos/memowe/6946196891/
14:43 crab what is bamboo?
14:43 purl rumour has it bamboo is a meta-mvc toolkit or an autrijus project on hold for perl6 or http://svn.openfoundry.org/bamboo/trunk/
14:44 memowe oh, I meant my wacom bamboo pen tablet
14:45 oleg joined #mojo
14:48 oleg Hi all. Please tell me, does current version of Mojo::UserAgent supports non-blocking DNS resolving?
14:48 sri nope, it doesn't anymore
14:50 judofyr sri: it's all gone?
14:50 * sri nods
14:51 oleg sri: Any plans to bring it back?
14:51 sri none
14:52 sri it caused way too many problems
14:54 sri if your application benefits from a non-blocking resolver you can just as well make it work as a separate step
14:54 sri no need for it to be in core
14:55 sri in fact, i would also be ok with a clean hook into Mojo::IOLoop for external non-blocking resolvers if someone came up with a pretty api
14:56 oleg Ok, thanks Ю
14:57 marcus http://www.chiark.greenend.org.uk/~ian/adns/ is probably much faster :)
14:58 sri how is performance relevant?
15:00 judofyr sri: too many problems? were there more than the "multiple events resolving the same domain lead to missed callbacks"?
15:00 crab i often want to resolve names asynchronously in the middle of my critical inner loops
15:00 sri non-blocking dns is about coping with latency
15:01 crab MOAR FASTER@!(*!@#
15:01 sri judofyr: non-blocking resolvers don't respect /etc/hosts, usually don't do dnssec or any other kind of advanced features... and and and
15:02 judofyr ah
15:02 judofyr sri: also, have you checked out libuv (Node's event lib)? maybe there should be a Mojo::IOLoop::UV? :)
15:02 sri libuv uses c-ares i think
15:02 judofyr yes
15:02 sri which is not very good either
15:02 crab yes, it does
15:03 judofyr I was thinking about the whole IOLoop (timers, IO events etc), not only DNS
15:03 sri dns in node is pretty limited too, but they don't have the choice to use the system resolver, so people have other expectations
15:03 sri judofyr: we already use EV
15:03 sri libuv uses libev on unix for all that
15:05 sri https://metacpan.org/module/EV::ADNS # btw
15:05 judofyr sri: well, you do get Windows-compat
15:05 sri haha
15:06 judofyr :)
15:07 sri we already have windows compat, you mean a little bit more performance on windows and a compiler requirement
15:07 sri that would cause so much more trouble *shudders*
15:24 judofyr :)
15:41 vervain memowe: Which tablet have you got?  I've wanted one for a while but haven't had the time to research.
15:42 memowe the cheapest. a small bamboo pen without touch. works great. :)
15:43 vervain Happy enough with it?
15:44 vervain ... cause 'cheapest' sounds good :-)
15:45 sri btw. the foundations for a non-blocking resolver api are still there, so you could theoretically already make it work
15:45 sri https://github.com/kraih/mojo/blob/m​aster/lib/Mojo/IOLoop/Client.pm#L29 # just overload this method
15:46 memowe vervain: very happy.
15:46 sri Mojo::IOLoop->singleton->cli​ent_class('MyClientClass');
15:46 memowe vervain: installed Art Rage 2 (key comes with tablet) and started with http://www.flickr.com/photos/memowe/6532969431/
15:51 vervain Cool thanks.
15:52 memowe vervain: I think it's Wacom Bamboo Pen & Touch version 3
15:52 memowe No, without touch.
15:53 memowe I have a mac book with excellent touchpad. :)
15:54 vervain Anything like: http://bit.ly/qzmLwY
15:54 vervain That's the 'cheapest' on newegg.
15:56 memowe Looks like mine.
15:56 purl looks like mine is missing whatever it needs to talk to mysql
15:57 memowe erm, ok
15:58 inokenty joined #mojo
16:00 vel joined #mojo
16:11 kbut joined #mojo
16:14 kaare joined #mojo
16:22 kanishka1 joined #mojo
16:22 kanishka1 how to load external css file into mojo
16:26 marty kanishka1: https://metacpan.org/module/Mojolic​ious::Plugin::TagHelpers#stylesheet
16:27 kanishka1 thanks @ marty
16:37 sri tempire: i never built macvim myself
16:39 phillipadsmith joined #mojo
16:50 random left #mojo
17:11 oleg left #mojo
17:28 sri hmmmmm
17:28 sri http://www.cpantesters.org/cpan/report​/972bacfe-6418-11e1-b759-ec922b0aa2c1
17:28 sri exact same test fail on cygwin
17:32 sri oh well, nobody cares about windows anyway
17:44 sri the actual test exists for about a year, so i'll assume it's a cygwin bug
17:46 d4rkie joined #mojo
18:30 bobkare joined #mojo
18:38 judofyr joined #mojo
18:58 jnap_ joined #mojo
19:03 Foxcool joined #mojo
19:06 judofyr joined #mojo
19:07 binary joined #mojo
19:08 binary Hey. I'm wanting to get started using mojo and my web server of choice is nginx. Performance is a major issue for me, hence why I use nginx. Could someone recommend the best way to use mojo with nginx with performance in mind?
19:17 stephen joined #mojo
19:21 marcus binary: hypnotoad and http proxying
19:21 memowe Connection reset by beer.
19:21 purl connection reset by beer is when the other end of a socket discovers Australian for HARD REBOOT.
19:22 marcus beer, i haz it.
19:22 marcus http://distilleryimage8.instagram.com/​445d45d4649811e19e4a12313813ffc0_7.jpg
19:23 binary Ah, great. Is hypnotoad written in C?
19:23 marcus binary: no, it's written in perl. for performance, I suggest using it with EV
19:23 binary I'm using php with the php fast cgi just now. Can I expect performance on a similar level?
19:24 binary I can't really stick with php though. I don't want to have to learn it. :-)
19:24 marcus binary: I suppose so.
19:24 marcus binary: benchmarking is hard, and the web framework is not likely to be the bottleneck for your app.
19:25 binary Hm, I see
19:25 marcus (usually it's the persistence layer)
19:25 marcus binary: mojolicious on hypnotoad will let you do things you can't do in php tho, like longpoll.
19:25 marcus (web sockets)
19:25 binary Yes
19:27 marcus binary: btw, if you were using php if some mvc framework, this hugely flawed benchmark says that would perform worse than most - https://github.com/seedifferently​/the-great-web-framework-shootout
19:28 binary Just plain old php
19:28 binary It's just a url rotator just now. A few lines of php
19:32 jnap left #mojo
19:34 black joined #mojo
19:41 jnap joined #mojo
19:59 vel joined #mojo
20:01 GitHub83 joined #mojo
20:01 GitHub83 [mojo] kraih pushed 1 new commit to master: http://git.io/TFdssQ
20:01 GitHub83 [mojo/master] micro-optimized Mojo::Template a little - Sebastian Riedel
20:01 GitHub83 left #mojo
20:02 binary left #mojo
20:06 mattastrophe joined #mojo
20:07 jr joined #mojo
20:16 amirite how do I access a controller instance from another controller instance
20:16 amirite equivalent of $c->controller('foo')->stuff in catalyst
20:24 jnap joined #mojo
20:42 marcus amirite: we discourage that kind of design. I suggest refactoring to a helper method instead.
20:47 sri or if you really really want it make a plugin and release it to cpan
20:47 amirite i guess it's a fundamental perl question -- consider me noob
20:47 amirite just a sec
20:48 Foxcool joined #mojo
20:50 amirite http://p3rl.org/8969OEGI
20:50 amirite i guess i'm stupid and don't know how to do that right
20:51 amirite i.e. given a string which is a fully qualified Package::Name how can I use the can method off of it or another tactic to see if the package supports a method -- w/out instantiating it b/c mojo already did, right?
20:52 sri nope, routes work entirely separate from controllers
20:52 sri controller loading and instatiation happens later
20:53 lammel2 joined #mojo
20:55 marcus amirite: not quite sure what you are trying to accomplish that can't already be done by the routes.
20:55 amirite aye, i'm still absorbing the api
20:56 marcus amirite: the routing  guide should be a good starting point. http://mojolicio.us/perldoc​/Mojolicious/Guides/Routing
20:57 mire joined #mojo
20:57 * tempire sprinkles glitter on amirite so that he absorbs the api quickly
21:02 marcus purl: step back?
21:02 * purl steps back.
21:02 * marcus steps on purl's toe.
21:44 perlite_ joined #mojo
21:49 amirite joined #mojo
21:57 GitHub17 joined #mojo
21:57 GitHub17 [mojo] kraih pushed 1 new commit to master: http://git.io/-TQwBw
21:57 GitHub17 [mojo/master] micro-optimized Mojolicious::Routes a little - Sebastian Riedel
21:57 GitHub17 left #mojo
21:59 marcus sri: at least your micro-optimizations make the source look better, not worse.
21:59 sri micro-optimized for readability :)
22:17 phillipadsmith joined #mojo
22:18 GitHub167 joined #mojo
22:18 GitHub167 [mojo] kraih pushed 1 new commit to master: http://git.io/A_zTvg
22:18 GitHub167 [mojo/master] made dispatch semantics explicit - Sebastian Riedel
22:18 GitHub167 left #mojo
22:38 sri funny how everybody hates do/end blocks now
22:40 sri curly brackets or significant whitespace... or your language is half-assed
22:44 jwang ruby? yeah, those are an eyesore
22:52 Elraraniel joined #mojo
22:53 marcus sri: curl brackets for life.
22:53 marcus curly even
22:53 * marcus drinks more beer
22:53 marcus if only lisp had used curly brackets ...
22:55 sri DID YOU SAY LISP?
22:56 sri WHAT WAS THE LAST THING YOU JUST SAID?
22:57 sri purl: rock star tech?
22:57 purl sri: i don't know
22:57 sri purl: rock star tech is http://www.youtube.com/watch?v=bzkRVzciAZg
22:57 purl OK, sri.
23:13 tempire lisp is bad ass
23:13 tempire but not really rock star
23:20 tempire anyone used trigger.io?
23:24 marcus tempire: this chart seems completely objective to me - Replacement Battery for Apple MacBook Pro 15 I
23:24 marcus bad paste :( http://nordaaker.com/docs/skitch/Trigger_-_cro​ss-platform_app_framework-20120303-002435.jpg
23:29 sri i like the direction mozilla is going
23:35 Elraraniel reading about MojoX::Redis is making me very happy
23:36 sri i'd rather use AnyEvent::Redis
23:37 Elraraniel sri: was not aware, will look at as well. Difference?
23:37 sri MojoX::* usually means legacy code that doesn't work so well anymore
23:37 Elraraniel oic
23:38 Elraraniel "This module is an AnyEvent user; you must install and use a supported event loop." Does that fit mojo?
23:38 marcus Elraraniel: yes
23:38 Elraraniel marcus: solid
23:38 sri http://mojolicio.us/perldoc/Mojoli​cious/Guides/Cookbook#Event_loops
23:39 marcus it's crazy what you can find on ebay.
23:39 marcus sri: still didn't get your book? I should complain.
23:39 sri marcus: nothing yet
23:39 marcus damnit
23:39 marcus I'll send them a mail.
23:40 * marcus is window shopping on ebay. so much stuff you can get with free shipping within the toll free limit
23:40 sri quite few more on twitter that didn't get it
23:40 sri second hand viking axes?
23:41 marcus looking at wall stickers atm
23:44 marcus sent a sour mail.
23:44 marcus http://www.ebay.com/itm/One-Eyed-Panda-​Toilet-stickers-Wall-Decor-Decal-Sticke​r-/251007345456?pt=LH_DefaultDomain_0&a​mp;hash=item3a71342330#ht_2978wt_1413 :D
23:46 sri Oo
23:48 sri http://www.ebay.com/itm/VIKING-BATTLE-A​XE-/170790641902?pt=LH_DefaultDomain_0&​amp;hash=item27c3ea60ee#ht_1483wt_1042 :D
23:48 marcus maybe if we buy this one, I won't have to paint any of our walls - http://www.ebay.com/itm/KR-0030-CAT-PAINTING-Wall-​Deco-Decals-Mural-Sticker-/220540540158?pt=LH_Defa​ultDomain_0&amp;hash=item33593d94fe#ht_8879wt_1002
23:49 marcus sri: only ships to us :/
23:49 sri :/
23:49 marcus http://www.ebay.com/itm/T17-07-1-6-Crazyow​ner-Viking-Warrior-Axe-/140424684440?pt=LH​_DefaultDomain_0&amp;hash=item20b1f6a398
23:50 sri looks like it would make other vikings laugh at you
23:51 sri oh my
23:51 * sri just realized it's a minature with a minature blade
23:51 marcus mm :)
23:51 sri double owned
23:52 marcus something like http://www.ebay.com/itm/Medium-Cartoon-New-York-W​all-Decal-Sticker-Black-/251007414030?pt=LH_Defau​ltDomain_0&amp;hash=item3a71352f0e#ht_2129wt_1413 might be nice too
23:54 sri http://www.ebay.com/itm/Philips-LivingCol​ors-Changing-LED-Lamp-Remote-Factory-Seal​ed-FREE-SHIPPING-/250997674450?pt=Lamps_U​S&amp;hash=item3a70a091d2#ht_796wt_808 get one of those and make sure it's always dark?
23:55 marcus you can tell I'm a real viking because I care about kitsch interior design
23:56 sri that's what the disney movies taught me
23:57 sri although i've not seen your pet dragon yet
23:57 marcus @fivesimplesteps says they have shipped all the preorders
23:57 marcus sri: how to drain your dragon?
23:58 sri you tell me
23:59 marcus sri: http://support.fivesimplesteps.com/kb/​faqs/important-shipping-update-2812011
23:59 marcus love how that post links to a non-existant form
23:59 marcus and that they never sent out a mail to people who preordered.

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