Camelia, the Perl 6 bug

IRC log for #mojo, 2012-04-14

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

All times shown according to UTC.

Time Nick Message
00:02 buu chromatic book?!
00:19 spacebat a mojo book would be grand
00:22 chromatic I'm interested.
00:23 SmokeMachine joined #mojo
01:21 JerJer joined #mojo
01:24 JerJer1 joined #mojo
01:40 Kovensky joined #mojo
01:47 xaka joined #mojo
02:57 JerJer joined #mojo
03:22 xiaoyafeng joined #mojo
03:45 Foxcool joined #mojo
04:01 metys joined #mojo
04:14 Foxcool joined #mojo
05:04 * tempire puffs
06:01 JerJer toke toke pass
06:10 mattastrophe joined #mojo
06:16 * sri yawns
06:18 Foxcool_ joined #mojo
06:24 Htbaa joined #mojo
06:27 Foxcool__ joined #mojo
07:20 chromatic joined #mojo
07:23 Vandal joined #mojo
07:27 inokenty joined #mojo
07:36 Leandr joined #mojo
07:55 GitHub37 joined #mojo
07:55 GitHub37 [mojo] kraih pushed 1 new commit to master: http://git.io/bSglXw
07:55 GitHub37 [mojo/master] improved router log messages - Sebastian Riedel
07:55 GitHub37 left #mojo
08:12 Leandr joined #mojo
08:33 sri hmm
08:33 sri marcus, tempire, crab: would you expect $r->route('/foo', format => 0) to propagate to child routes as well?
09:03 jp joined #mojo
09:03 Leandr joined #mojo
09:04 jp i have long running sub in one of my GET url handlers
09:04 jp how can i wait for this method to finish before trying to do other actions?
09:05 jp this long running method has some IO calls
09:47 GitHub28 joined #mojo
09:47 GitHub28 [mojo] kraih pushed 1 new commit to master: http://git.io/UWzkvw
09:47 GitHub28 [mojo/master] fixed format detection bug in Mojolicious::Routes::Pattern - Sebastian Riedel
09:47 GitHub28 left #mojo
09:51 Htbaa what would be the preferred to load your Mojolicious config in another script?
09:52 Htbaa simply construct it with my $app = Mojolicious->new; and then $app->config?
09:52 sri i'm sure there was a recipe for that
09:53 Htbaa ah the wiki, I'll look it up\
09:58 GitHub72 joined #mojo
09:58 GitHub72 [mojo] kraih pushed 1 new commit to master: http://git.io/MCbHOQ
09:58 GitHub72 [mojo/master] improved embedding recipe - Sebastian Riedel
09:58 GitHub72 left #mojo
09:59 Htbaa ah, specifying it in MyApp.pm with $self->plugin('Config', { file => 'myapp.conf'}); did the trick
09:59 Htbaa then you can just do a MyApp->new->config to get it
09:59 sri Htbaa: http://mojolicio.us/perldoc/Mojolicious​/Guides/Cookbook#Application_embedding
10:00 Htbaa oh that's probably a cleaner solution
10:00 Htbaa thanks
10:00 sri it's the same loader morbo and hypnotoad use, so you know it's very portable
10:08 Htbaa sri: thanks, this works well
10:08 sri :)
10:15 Htbaa ugh, I wished that Git Gui on Windows would be stable for once :(
10:15 ladnaV joined #mojo
10:20 memowe What's a Gui?
10:21 Htbaa :)
10:22 Htbaa I know I can use the cli as well, but it's just not as fast as it is on Linux
10:22 Htbaa msysgit is rather slow
10:22 memowe Hm.
10:25 Htbaa oh well, I plan on getting a Mac this year, so hopefully that will give me a stable *nix environment to work in
10:26 memowe :)
10:30 jp joined #mojo
10:35 sri i really really want to remove EV support :S
10:38 sri maybe replace it with something more neutral
10:38 sri native IO::Async backend or so, which can then use EV for us
10:40 Htbaa when I use Morbo on Strawberry Perl 5.12.1 it crashes when I update a watched file
10:41 sri not unusual, lots of windows perls have signal bugs
10:41 sri especially strawberry
10:42 Htbaa or rather, perl crashes
10:42 sri it's a miracle morbo works on most windows perl versions :)
10:43 Htbaa so when developing on Windows it's probably best to manually restart the server on every change?
10:43 sri or get a perl that's not broken
10:44 Htbaa hmm I could also use plackup
10:45 sri strawberry website says 5.14.2.1, so yours is outdated anyway
10:45 Htbaa also doesn't work out  with plackup :P
10:45 Htbaa ah yes I know
10:46 Htbaa I just don't enjoy having to reinstall all dependencies of my projects, takes forever even without testing.
10:46 sri the plackup restarter is even more fragile than morbo i think
10:46 Htbaa which is mostly why I enjoy Mojolicious :)
10:46 Htbaa yeah the plackup restarter didn't work either
10:46 Htbaa though the one used in Catalyst works fine for me
10:47 sri catalyst forks for one request and dies i think, that wouldn't work for most of our features
10:48 sri someone somewhere has prolly witten a psgi server that does the same
10:57 inokenty Htbaa: Why do you use Windows for web development?
10:58 sri or rather, why plain windows and not cygwin?
11:07 Htbaa inokenty: because Linux always breaks down on me after a couple months of usage. Every single time (driver issues and whatnot)
11:07 Htbaa sri: last time I looked at cygwin was maybe 4-5 years ago and was quite a beast to get installed. Not sure how it is now, never tried it after that
11:08 Htbaa but I'll try out a Mac somewhere this year. Just waiting for the model updates
11:08 Htbaa first time for some food
11:09 batman Htbaa: tried one of the latest ubuntu releases?
11:10 batman is there a way to get the error message passed on to render_exception() ? I would like to display a more informative 500 page
11:12 marcus Sri: +1 for replacing ev.
11:13 sri marcus: if only there were real options
11:14 batman what is it replaced by?
11:16 marcus An abstraction on ev? :)
11:16 marcus Didn't someone link to perl bindings for node's loop earlier?
11:16 batman ok
11:17 marcus Btw, a friend is getting insane performance with nginx's loop, redis and lua.
11:17 marcus For his async ios game backend.
11:18 marcus Sri: i know you said supporting the nginx loop would be hard?
11:21 sri yea, it's very different
11:21 sri you don't just hook into the event loop but the actual tcp/http engine
11:22 sri similar for libuv
11:22 sri you can't just give it a file descriptor and have it watch for i/o events
11:22 marcus Ice
11:22 sri instead you have to tell it to open a socket for you, completely separate from perl i/o
11:23 sri closer to the Mojo::IOLoop::Client api
11:24 marcus Probably fast.
11:27 GabrielVieira joined #mojo
11:32 Htbaa batman: I did run Ubuntu, but it crashed to an unrecoverable state. Tried Fedora, which was extremely buggy on my system. Both my laptop and desktop don't seem to be suited for Linux. My netbook (an ASUS) runs Ubuntu fine, but is not my main machine
11:33 batman weird
11:53 * sri loves his macbook
12:02 sri marcus: thoughts on the format => 0 thing?
12:09 Htbaa sri: I'd but a macbook in an instant when they add page-up/down and home/end buttons on the side of the keyboard. Dunno about the delete button
12:10 sri you get page-up/down home/end with the fn key
12:11 sri i have a macbook with us keyboard and it's pretty great
12:11 Htbaa just fn + arrows?
12:11 * sri nods
12:11 Htbaa hmm that's doable I suppose
12:12 sri us keyboard with lion is pretty great if you're from a country with umlauts
12:13 sri you just keep a key pressed and get a popup with umlaut versions of the char
12:14 Htbaa ah that's pretty neat. We've got quite a few words in Dutch that require umlauts as well
12:14 Htbaa though I've never used the Dutch keyboard layout. It's horrible :P
12:14 * sri could never program with a german keyboard again
12:47 DaTa sri: and how do you type ooooooooooooooooooooooooooooooooooooooo ? :)
12:47 sri fuuuuuuuuuuuuuuuuu!!!!1
12:48 sri my fingers hurt now :(
13:02 jnap joined #mojo
13:33 DaniBunny joined #mojo
13:33 DaniBunny left #mojo
13:37 Leandr joined #mojo
14:09 vel joined #mojo
14:17 sri oh
14:18 sri i completely forgot that ->route('/foo/(action)') is a valid placeholder :o
14:19 sri equal to /foo/:action
14:36 GitHub132 joined #mojo
14:36 GitHub132 [mojo] kraih pushed 1 new commit to master: http://git.io/p5jpMw
14:36 GitHub132 [mojo/master] fixed a few more format detection bugs - Sebastian Riedel
14:36 GitHub132 left #mojo
14:36 sri phew
14:36 sri it was basically completely broken :S
14:41 sri we could now propagate format => 0 down the routes tree though
14:41 sri my $no_format_detection = $r->route('/', format => 0);
14:43 MichaelRpdx joined #mojo
14:57 Htbaa curious, should this helper cause a Deep Recursion and make perl run out of memory? https://metacpan.org/source/MADCAT/Mojol​icious-Plugin-Authentication-1.22/lib/Mo​jolicious/Plugin/Authentication.pm#L113
14:58 Htbaa ooh wait
14:58 Htbaa damn
14:58 Htbaa it's not wise to name the sub in the controller logout as well :P
15:31 GitHub21 joined #mojo
15:31 GitHub21 [mojo] kraih pushed 1 new commit to master: http://git.io/QSTpaA
15:31 GitHub21 [mojo/master] small optimizations - Sebastian Riedel
15:31 GitHub21 left #mojo
15:34 inokenty sri: Does perl work faster without arrows between parentheses?
15:34 sri no
15:48 Psyche^ joined #mojo
16:05 sri turns out people like it better when i say optimization instead of code cleanup :D
16:29 xaka joined #mojo
16:30 dbr joined #mojo
17:05 inokenty joined #mojo
17:44 inokenty joined #mojo
17:54 baton8 joined #mojo
18:04 baton8 joined #mojo
18:07 marcus sri: not sure about format=>0, it's an improvement I guess.
18:08 * marcus is impressed by Marc's deep insights.
18:08 GitHub105 joined #mojo
18:08 GitHub105 [mojo] kraih pushed 1 new commit to master: http://git.io/a3DRog
18:08 GitHub105 [mojo/master] improved error handling in Mojolicious::Plugin::JSONConfig (closes #318) - Sebastian Riedel
18:08 GitHub105 left #mojo
18:08 marcus of course, nobody should be offended by a few mere facts...
18:09 sri on the bright side, he makes me look like i have social skills
18:11 sri marcus: ok, "it's an improvement i guess" doesn't cut it, we'll wait until it becomes an actual problem ;p
18:12 sri ETOOMUCHPIZZA
18:13 tempire http://mojolicio.us/ inaccessible
18:14 sri works for me
18:14 tempire terrorist unicorns
18:33 Htbaa1 joined #mojo
18:35 marcus wfm as well.
18:35 marcus sri: I was thinking that as well (re marc :)
18:50 GitHub56 joined #mojo
18:50 GitHub56 [mojo] kraih pushed 1 new commit to master: http://git.io/hY_aVA
18:50 GitHub56 [mojo/master] tweaked embedding recipe - Sebastian Riedel
18:50 GitHub56 left #mojo
19:13 d4rkie joined #mojo
19:14 whee joined #mojo
19:39 GabrielVieira joined #mojo
19:45 jwang joined #mojo
23:04 jnap joined #mojo
23:27 mire joined #mojo

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