Camelia, the Perl 6 bug

IRC log for #mojo, 2012-03-14

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

All times shown according to UTC.

Time Nick Message
00:10 GitHub53 joined #mojo
00:10 GitHub53 [mojo] kraih pushed 1 new commit to master: http://git.io/nqTKhQ
00:10 GitHub53 [mojo/master] test custom exception handling - Sebastian Riedel
00:10 GitHub53 left #mojo
00:12 abra joined #mojo
00:38 GitHub198 joined #mojo
00:38 GitHub198 [mojo] kraih pushed 1 new commit to master: http://git.io/we9Wiw
00:38 GitHub198 [mojo/master] documentation tweaks - Sebastian Riedel
00:38 GitHub198 left #mojo
00:51 GitHub155 joined #mojo
00:51 GitHub155 [mojo] kraih pushed 1 new commit to master: http://git.io/W5dAug
00:51 GitHub155 [mojo/master] more small documentation tweaks - Sebastian Riedel
00:51 GitHub155 left #mojo
00:53 sri hope nobody notices that i messed up packaging 2.60 a little :/
01:03 d4rkie joined #mojo
01:16 scott joined #mojo
01:28 mattastrophe joined #mojo
01:32 sri hmm
01:32 sri there is on inconsistency
01:33 sri if a template in a delayed render call fails we currently don't get a rendered exception
01:34 sri it is possible to make it work, but that would bypass the around_dispatch exception handling :/
01:35 sri well, actually... no exception rendering is consistent
01:38 sri perl -Mojo -E'a("/" => sub { my $self = shift; Mojo::IOLoop->timer(1 => sub { $self->render(inline => "% die;") }) })->start' get /
01:38 sri example
01:40 sri it is possible to make it result in an exception screen instead, but that would be inconsistent with the rest of the api :S
01:40 sri oh well... sleep
01:46 mire_ joined #mojo
01:54 xaka joined #mojo
02:00 tempire there are too many javascript frameworks
02:00 tempire guess I should just pick one and go with it
02:08 jnap joined #mojo
02:12 CromeDome joined #mojo
02:21 GitHub55 joined #mojo
02:21 GitHub55 [mojo] kraih pushed 1 new commit to master: http://git.io/HuK7UQ
02:21 GitHub55 [mojo/master] improved logging of low level exceptions in Mojolicious - Sebastian Riedel
02:21 GitHub55 left #mojo
02:22 * sri always has the best ideas when he's trying to sleep
02:25 * tempire volunteers to upload the next release
02:25 sri oh noes... i messed up :(
02:26 sri someone should keep me from committing when i'm sleepy
02:26 tempire it's ok, you committed to a branch
02:26 tempire :o
02:31 GitHub110 joined #mojo
02:31 GitHub110 [mojo] kraih pushed 1 new commit to master: http://git.io/Dl8gFQ
02:31 GitHub110 [mojo/master] removed low level logging again - Sebastian Riedel
02:31 GitHub110 left #mojo
02:33 GitHub17 joined #mojo
02:33 GitHub17 [mojo] kraih pushed 1 new commit to master: http://git.io/cBz6_w
02:33 GitHub17 [mojo/master] i'm too sleepy to commit - Sebastian Riedel
02:33 GitHub17 left #mojo
02:56 ispy_ joined #mojo
03:17 scott joined #mojo
03:18 mire_ joined #mojo
04:01 D4RK-PH0ENiX joined #mojo
04:09 amirite joined #mojo
04:44 hshong joined #mojo
04:54 d4rkie joined #mojo
05:20 mercutioviz joined #mojo
06:05 scott_ joined #mojo
06:05 bird_ joined #mojo
06:22 Foxcool joined #mojo
06:30 kanishka joined #mojo
06:31 kanishka my $rv= $self->usercheck($uid); helper usercheck =>sub{my $uid= $_;);
06:31 kanishka got error over it
06:36 tempire kanishka: it's a method.  my $uid = pop;
06:37 tempire say pop!
06:38 abra joined #mojo
06:40 kanishka tempire: not working
06:40 purl see "doesn't work"
06:41 kanishka say pop!
06:41 quicoju joined #mojo
06:41 amirite joined #mojo
06:42 Foxcool joined #mojo
06:44 Foxcool joined #mojo
06:47 Foxcool joined #mojo
06:48 quicoju joined #mojo
07:00 quicoju joined #mojo
07:07 quicoju_ joined #mojo
07:14 spleenjack joined #mojo
07:24 tempire kanishka: I presume you're not calling it in that order
07:35 mercutioviz joined #mojo
07:37 baton8 joined #mojo
07:39 random joined #mojo
07:51 pfig joined #mojo
07:58 ki0 joined #mojo
08:09 popas joined #mojo
08:12 batman joined #mojo
08:13 Foxcool joined #mojo
08:53 amirite joined #mojo
09:09 metys elo! can anyone tell me, what is the lowest version of perl for mojolicious?
09:10 bird_ 5.10
09:15 marcus there is an unsupported backport to 5.8 as well
09:17 quicoju joined #mojo
09:19 metys no, I don't need backport, I got 5.10.1, just want to make sure that I check everything, before mail to discussion group...
09:23 quicoju joined #mojo
09:29 quicoju joined #mojo
10:31 GitHub93 joined #mojo
10:31 GitHub93 [mojo] kraih pushed 1 new commit to master: http://git.io/-RA65g
10:31 GitHub93 [mojo/master] increase CGI performance slightly - Sebastian Riedel
10:31 GitHub93 left #mojo
10:41 * sri wonders again if it makes sense to rename unsubscribe() to off()
10:47 cosmincx joined #mojo
11:08 daxim joined #mojo
12:14 quicoju joined #mojo
12:22 root joined #mojo
12:35 GitHub153 joined #mojo
12:35 GitHub153 [mojo] kraih pushed 1 new commit to master: http://git.io/6aaxkw
12:35 GitHub153 [mojo/master] better description of lock_file setting - Sebastian Riedel
12:35 GitHub153 left #mojo
12:46 jnap joined #mojo
13:03 ispy_ joined #mojo
13:10 CromeDome joined #mojo
13:30 CromeDome joined #mojo
13:33 memowe O HAI! :)
13:51 quicoju joined #mojo
14:06 bobkare joined #mojo
14:07 vel joined #mojo
14:24 inokenty joined #mojo
14:29 JasonCrome joined #mojo
14:44 * sri waves
14:47 GitHub114 joined #mojo
14:47 GitHub114 [mojo] kraih pushed 1 new commit to master: http://git.io/DUAK7A
14:47 GitHub114 [mojo/master] better tests and temporary file handling - Sebastian Riedel
14:47 GitHub114 left #mojo
15:03 xaka joined #mojo
15:11 baton8_ joined #mojo
15:16 mattastrophe joined #mojo
15:16 ysyrota joined #mojo
15:20 trek1s joined #mojo
15:25 sri http://www.bohemiancoding.com/sketch2/ # *drool*
15:27 sri they are merging sketch and drawit, should be quite interesting
15:45 Psyche^ joined #mojo
16:09 GitHub31 joined #mojo
16:09 GitHub31 [mojo] kraih pushed 1 new commit to master: http://git.io/S4LK9g
16:09 GitHub31 [mojo/master] improved Mojo::IOWatcher exception handling a little - Sebastian Riedel
16:09 GitHub31 left #mojo
16:16 trek1s joined #mojo
16:17 xaka joined #mojo
16:27 batman joined #mojo
16:28 mattastrophe joined #mojo
16:41 batman joined #mojo
16:45 sri no opinions about renaming Mojo::EventEmitter->unsubscribe to Mojo::EventEmitter->off?
16:52 mattastrophe so, on a new project, is there any reason to not deploy the final works with hypnotoad over the other choices (like nginx)?  We don't have any legacy CGI/Plack/etc issue to deal with.
16:56 kanishka joined #mojo
17:01 kanishka how to pass variables to helper in mojo
17:01 kanishka ?
17:01 nicolaas joined #mojo
17:01 nicolaas hi all
17:04 nicolaas i would like to make something like this : http://pastebin.com/ditsUJMh to automatically call the controller & action set in my request
17:04 nicolaas but i'm not familiar with the ->to routing stuff .. any idea ?
17:06 tempire mattastrophe: there is no reason.  reverse proxy+hypnotoad is the recommended deployment
17:06 mattastrophe thnx, tempire
17:10 nicolaas I also tried something like this : "$r->any('/pwx/manager/:controller/:action'​)->to(controller=>$c->stash('controller'), action=>$c->stash('action'));" but no success
17:11 tempire nicolaas: you probably want to read through http://mojolicio.us/perldoc​/Mojolicious/Guides/Routing
17:12 sri tempire: why do you help everyone but me?! :(
17:13 tempire what help are you waiting on?
17:13 sri "sri wonders again if it makes sense to rename unsubscribe() to off()"
17:14 tempire oh
17:14 tempire that was suggested decades ago; I thought you rejected it
17:14 sri i think it was rather that we didn't reach an agreement
17:16 marty kanishka:   %= my_helper 'positional param'
17:17 tempire off makes aesthetic sense
17:18 tempire It seems weird to get rid of the subscribe/unsubscribe moniker completely.  But I don't have any real reason behind that.
17:19 xaka sri: i vote for "on/un"!
17:19 tempire I guess this isn't targeted for noobs, so it won't matter
17:19 sri tempire: on is described as subscribe already
17:20 sri the description for off will be unsubscribe
17:20 tempire I'm ok with off.
17:21 GitHub133 joined #mojo
17:21 GitHub133 [mojo] kraih pushed 1 new commit to master: http://git.io/lPt9BQ
17:21 GitHub133 [mojo/master] deprecated Mojo::EventEmitter->unsubscribe in favor of Mojo::EventEmitter->off - Sebastian Riedel
17:21 GitHub133 left #mojo
17:21 sri so be it :)
17:21 tempire sorry xaka :)
17:22 nicolaas tempire: i did so, and followed this example but it takes my to a 404 error
17:22 xaka tempire: dont be, i always can write my own wrappers :)
17:22 nicolaas $r->route('/welcome')->to(controller => 'foo', action => 'welcome');
17:22 nicolaas this is the example
17:23 nicolaas and this is my route : $r->any('/pwx/manager/:contro​ller/:action')->to(controller => $c->stash('controller'),action     => $c->stash('action'));
17:24 xaka tempire: i like on/un because it's wide used in JS world, dont need to keep in mind tons of different names and type more than 2 chars. "off" is for lighting lamps or power stations :)
17:24 kanishka http://pastebin.com/nihVjNyQ not able to pass variables to helper
17:25 tempire kanishka: it's a method, not a regular subroutine.  the first argument is the object.
17:25 tempire xaka: off is still js-inspired: http://api.jquery.com/off/
17:26 sri xaka: last time you brought up that argument you failed to give a single example
17:26 sri and yes, what tempire said
17:27 * sri actually studies *a lot* of javascript code
17:27 xaka ExtJS is a good example :-P
17:27 xaka i'd same awesome example of well written JS OOP even-driven code
17:27 sri that's not really a popular one
17:28 kanishka tempire: helper usercheck =>sub{my $self = shift;my $uid = shift; } does it work ?
17:28 xaka extjs is not for "community" sites, true. i use it only for management UI
17:28 sri xaka: what else?
17:28 purl } else { say "BAD MONKEY! NO BANANA!" }
17:28 mire_ joined #mojo
17:28 sri xaka: you say it's "wide used", so there have to be popular ones too
17:31 tempire kanishka: probably.
17:38 bobkare joined #mojo
17:39 * tempire gives a gift to sri: http://omfgdogs.com/
17:39 sri \o/
17:51 awhole joined #mojo
17:52 sri https://github.com/hij1nx/EventEmitter2 # another example for ->off
18:05 root joined #mojo
18:12 mire_ joined #mojo
18:15 jnap joined #mojo
18:22 tholen joined #mojo
18:23 tholen joined #mojo
18:24 pfig joined #mojo
18:24 pfig_ joined #mojo
18:32 jnap joined #mojo
18:32 batman is there a way i can inspect $c->session using Test::Mojo ?
18:35 tempire it's in a signed cookie, so it should be somewhere in ->tx->res
18:36 batman so i should simply decode the cookie from $t->ua->cookie_jar +
18:36 d4rkie joined #mojo
18:36 batman ?
18:36 tempire I've never done it, myself
18:37 tempire sounds reasonable, though
18:37 batman ok
18:45 sri hmm, i'm still not sure if ->off really feels right, maybe ->unsubscribe was better
18:45 batman i like off()
18:45 sjn sri: what's the issue you're mulling over?
18:45 batman if you're going with unsubscribe() then on() should be subscribe() imho
18:45 sri ->on(foo => sub {...}) is very DSLish
18:46 sri but ->off('foo') doesn't really sound like you're unsubscribing from an event
18:47 sjn how about attach() and detach() to the event handler?
18:47 sri it will always be subscribing and unsubscribing from events
18:47 sri umm, how does making everything ugly solve the issue? ;p
18:48 batman sri: is it a real issue, or just an itch?
18:48 * sjn is a fan of terse meaningful keywords
18:48 sri currently an itch
18:49 sri but if ->on became ->subscribe i think we would have an issue :)
18:49 batman :D
18:50 batman i wouldn't bother about an itch
18:50 batman stop scratching it :)
18:50 sri http://mojolicio.us/perldoc/​Mojo/Server/Daemon#SYNOPSIS # look at this synopsis, what looks better/makes more sense? ->off or ->unsubscribe?
18:50 mateu joined #mojo
18:51 batman +1 on("unsubscribe")
18:51 sri wat?
18:51 purl Watt?  Watt?  I can't hear you, there's this buzzing noise where my brain should be.
18:51 batman i like unsubscribe() better than off(). not just because of the appearance, but i don't see the issue
18:52 sri ah
18:54 sjn how about ->handle() and ->ignore() ?
18:54 batman it's not bad, but i like on() better than handle()
18:55 batman and again...i don't see that it's worth changing the api for this :)
18:56 sjn $daemon->off("request");  could be interpreted as turning off a feature in the daemon
18:58 sri no api is really self explanatory
18:58 batman sjn: you are somehow turning off a feature
18:58 sri my goal is more to have enough consistency so you remember how it worked *after* reading the documentation
18:58 batman as in turning off a callback...
18:58 mateu left #mojo
19:02 GitHub84 joined #mojo
19:02 GitHub84 [mojo] kraih pushed 1 new commit to master: http://git.io/QEE56Q
19:02 GitHub84 [mojo/master] Mojo::EventEmitter->unsubscribe has won - Sebastian Riedel
19:02 GitHub84 left #mojo
19:03 sri tempire: that's what i meant with no agreement :)
19:03 batman :)
19:04 sjn ->turn_off
19:05 sjn :)
19:05 sri sjn->turn_off
19:05 tempire oh snap
19:05 sri \o/
19:05 sjn sjn->turn_on
19:05 tempire that's a different kind of party
19:06 sjn share the love! :)
19:06 * sjn can imagine some funny code with keywords like that :)
19:26 marcus I like unsubscribe too.
19:27 marcus on/unsubscribe makes sense to me.
19:28 marcus on(`shit`)->flee; unsubscribe('shit') # it really reads well.
19:28 * marcus got a bluetooth keyboard in the mail from china today, so you can't tell I'm on an iPad anymore o/
19:29 marcus now to learn to deal with a proper us keyboard layout, with the crazy enter key...
19:34 jnap joined #mojo
19:42 jnap joined #mojo
19:43 kaare joined #mojo
19:46 jnap joined #mojo
20:01 pfig joined #mojo
20:02 jnap joined #mojo
20:08 stephan48 any example on running Mojo(licious(::Lite)?)? inside a POE app?
20:20 sri stephan48: no, you'd have to fix POE::Loop::EV
20:21 stephan48 in what way its broken?
20:21 sri no idea
20:23 marcus http://edgeguides.rubyonrails.org/api_app.html
20:25 stephan48 sri: great :)
20:33 lukep joined #mojo
20:33 sri marcus: not particularly interesting
20:35 sri instrumentation hooks are intriguing though
20:35 sri (completely unrelated)
20:44 pfig joined #mojo
20:44 pfig_ joined #mojo
20:53 marcus Startsiden is complaining about hypnotoad being slower than fcgi::engine::psgi
20:56 marcus One of the coworkers told me they are doing lua directly on the nginx event loop, and are able to do dynamic pages with almost 20k rpm.
20:57 marcus He'd tried the same thing with node and managed ~700
20:58 * sri wonders if debug output for hooks would be useful http://pastie.org/3596381
20:58 marcus Sri: startsiden also said it looked like hypntoad wasn't able to utilize all their cores.
20:59 sri marcus: they're prolly doing it wrong
20:59 marcus They saw 10-20 % idle, compared to 100% utilization with their current rig.
21:00 marcus sri: same number of children.
21:00 marcus But yeah, probably.
21:00 sri well, you're in the position to investigate, not me
21:00 marcus I'm not there now.
21:01 marcus On a iphone project.
21:02 vervain joined #mojo
21:06 sri marcus: do you have any specifics at all?
21:06 sri like how many workers and cores?
21:07 sri or what the test setup was like?
21:07 cbetti joined #mojo
21:08 sri not to mention optional modules used
21:08 cbetti hi all, is it possible to specify a layout when using $self->render( inline => "<p>foo" ); ?
21:08 carolus joined #mojo
21:08 sri EV increses performance, IO::Socket::IP decreases it and so on...
21:11 marty OMG! I just found out you can chain helpers.  sri++ \o/
21:11 sri :)
21:12 * sri is still intrigued by rails instrumentation hooks
21:12 sri bringing something like that to mojo would be aperformance killer though
21:12 sri basically every log message would run through a new hook
21:13 marty That sounds very costly
21:13 sri yea, you kinda trade the ability to have fine grained performance stats and logging for actual performance :S
21:17 marcus Sri: i'm getting more detailed test data tomorrow.
21:17 sri marcus: you're on an ipad btw
21:18 marcus lies!@
21:18 marcus sri: I turned off the keyboard :(
21:23 GitHub161 joined #mojo
21:23 GitHub161 [mojo] kraih pushed 1 new commit to master: http://git.io/BzsJHg
21:23 GitHub161 [mojo/master] made Mojolicious::Routes logging a little friendlier - Sebastian Riedel
21:23 GitHub161 left #mojo
21:26 pfig joined #mojo
21:27 pfig_ joined #mojo
21:39 phillipadsmith joined #mojo
22:03 sri marcus: https://github.com/rails/rails/commit/6​db930cb5bbff9ad824590b5844e04768de240b1
22:24 chansen joined #mojo
22:38 fibo joined #mojo
23:10 tempire api drama!
23:44 henq joined #mojo
23:45 cbetti \q
23:49 mattastrophe joined #mojo
23:53 henq hello , newbie here. hope this question is okay:
23:54 henq installed perl 5.14 in /usr/local/ on my osx system. keeping 5.10 in original state.  how do i install m
23:55 henq i set PATH correctly, perl --version gives 5.14
23:56 henq but curl get.mojolicio.us | sh    gives :
23:56 henq bash-3.2$ sudo curl get.mojolicio.us | sh
23:56 henq Password:
23:56 henq % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
23:56 henq Dload  Upload   Total   Spent    Left  Speed
23:56 henq 0    57    0    57    0     0    468      0 --:--:-- --:--:-- --:--:--   640
23:56 henq % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
23:56 henq Dload  Upload   Total   Spent    Left  Speed

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