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

IRC log for #mojo, 2014-05-17

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

All times shown according to UTC.

Time Nick Message
00:08 d4rkie joined #mojo
00:12 fhelmber_ joined #mojo
00:59 asarch joined #mojo
01:11 maxhq1 joined #mojo
01:12 klapperl joined #mojo
01:54 Su-Shee_ joined #mojo
01:58 hrupp_ joined #mojo
02:22 hesperaux joined #mojo
02:39 jhg joined #mojo
02:42 irq joined #mojo
03:43 d4rkie_ joined #mojo
03:56 d4rkie joined #mojo
03:57 basic6 joined #mojo
04:13 fhelmber_ joined #mojo
04:16 russum joined #mojo
05:13 oetiker joined #mojo
05:15 oetiker joined #mojo
05:31 maxhq joined #mojo
05:32 disputin joined #mojo
05:55 igorsutton joined #mojo
06:20 dod joined #mojo
07:07 dexteruk joined #mojo
07:17 marty_ joined #mojo
07:23 Vandal joined #mojo
08:14 fhelmber_ joined #mojo
08:26 arthas joined #mojo
08:51 sh4 joined #mojo
09:00 berov joined #mojo
09:08 spuelrich joined #mojo
09:12 d4rkie joined #mojo
09:24 skullbocks joined #mojo
09:38 basiliscos joined #mojo
09:54 denis_boyun joined #mojo
09:59 abra joined #mojo
10:27 arthas joined #mojo
10:47 hummeleBop joined #mojo
12:02 bowtie joined #mojo
12:12 cpan_mojo Farabi 0.46 by Ahmad M. Zawawi - http://metacpan.org/release/AZAWAWI/Farabi-0.46 (depends on Mojolicious)
12:14 fhelmber_ joined #mojo
12:37 denis_boyun_ joined #mojo
12:41 denis_boyun joined #mojo
12:41 sri \o\
12:41 sri /o/
12:41 abra_ joined #mojo
12:43 denis_boyun__ joined #mojo
12:46 denis_boyun_ joined #mojo
12:50 denis_boyun joined #mojo
12:56 denis_boyun_ joined #mojo
13:12 jberger Wow look at that change log for farabi
13:14 jberger zawawi++
13:42 zivester joined #mojo
13:59 asarch joined #mojo
14:19 sri lookiing forward to the stuff we can do with signatures https://gist.github.com/kraih/bbe2ffc9ed7f6fea3bb3
14:23 sri (have to use a param_ prefix, since there is no signature introspection yet)
14:25 denis_boyun joined #mojo
14:42 jberger hrupp_: I had completely forgotten about https://github.com/jberger/App-MojoSlides/pull/1
14:42 jberger ooops
14:42 jberger anyway, when I went to look at it, your plugin needs an update for newer Mojo versions
14:44 jberger for the time being I'm going to just fix MojoSlides (to_xml is gone now)
14:46 irq joined #mojo
14:51 marcus sri: why not signatures in the around_action?
14:51 * marcus ate tooooo much bbq
14:52 good_news_everyon joined #mojo
14:52 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/WxCbmg
14:52 good_news_everyon mojo/master 1c86c3e Sebastian Riedel: fixed path generation bug in Mojolicious::Routes::Match
14:52 good_news_everyon left #mojo
14:52 sri marcus: that is a good question!
14:52 marcus sri: \o/
14:52 cpan_mojo Mojolicious-Plugin-JSUrlFor 0.11 by Viktor Tuskyi - http://metacpan.org/release/KOORCHIK/Mojolicious-Plugin-JSUrlFor-0.11
14:54 sri marcus: FIXED!
14:55 marcus sri: I wonder, would it work to drop $last, since you're not using it in the method? Or would the signature complain?
14:56 sri it will complain
14:56 marcus k
14:56 sri you have to append a bare @ to ignore it
14:56 sri sub ($next, $c, $action, @) {...}
14:56 marcus wow, magical
14:57 sri that actually makes signatures faster
14:57 sri since all arity checks get disabled
14:58 sri no wait
14:58 sri actually too few arguments is still checked
14:58 sri perl -Mfeature=signatures -E 'sub foo ($bar, @) {} foo()'
14:59 sri Too few arguments for subroutine at -e line 1.
14:59 marcus sri: so it won't work to skip a parameter and add @?
15:00 sri a bare $ works in that case
15:00 sri sub ($next, $, $action, @) {...}
15:01 sri and i think a bare % means the same as @, but requires an even number of ignored arguments :)
15:01 marcus get '/:foo' => sub($foo) { } ?
15:02 sri get '/:foo' => sub($c, $foo) { }
15:02 marcus ah yes
15:02 sri once we can introspect the signature that can totally work
15:02 marcus would loved to have implicit self
15:03 * marcus is spoilt by ruby
15:03 sri i care more about signatures than implicit self
15:03 marcus agree
15:04 asarch joined #mojo
15:06 jberger I am just using 5.20.0-RC1, I tried to install Coro and it broke, and the first thing I thought was ... oh no
15:09 sri haha, i can also fit another 5.20 feature into the gist https://gist.github.com/kraih/bbe2ffc9ed7f6fea3bb3
15:10 marcus wat, so ugly.
15:11 cpan_mojo App-MojoSlides 0.09 by Joel Berger - http://metacpan.org/release/JBERGER/App-MojoSlides-0.09
15:11 sri %{peek_sub $action} vs peek_sub($action)->%*
15:11 marcus I guess they are both ugly
15:11 marcus Can't make up my mind about which is the ugliest
15:12 jberger technically, doesn't keys $hashref work too?
15:12 sri well, if i was in charge of language design it would be peek_sub($action)->kv or so :)
15:13 marcus sri: that would be less ugly
15:13 sri jberger: lets pretend that never happened
15:13 jberger agreed
15:13 jberger that's why I said "technically" :-)
15:13 marcus ah yes, that is less ugly ;)
15:14 tempire You're all crazy.
15:14 tempire They're all ugly.
15:14 * tempire will probably start using postfix syntax after a while
15:15 marcus postfix operators as a service
15:15 tempire It's really just that star that kills it for me.
15:15 rem_lex|pivo joined #mojo
15:16 * sri agrees
15:16 marcus Everything with stars feels evil after globs
15:17 * tempire globs
15:17 jberger tempire: the star is the necessary evil that allows coolness like $hashref->%{qw/some keys/}
15:17 marcus Hang them where the world can see. </bane>
15:17 tempire that's cool by itself.
15:17 jberger so * is just "all keys"
15:18 * tempire globs his own keys
15:18 marcus globsturbation
15:18 * jberger lost his keys
15:19 * marcus stores his keys in ansible-vault
15:19 jberger has anyone else played with the new metacpan/stratopan dependency web thingy?
15:19 jberger https://widgets.stratopan.com/wheel?q=Galileo-0.033&amp;fs=1
15:19 tempire that's neato
15:19 marcus wow, looks like you have more dependencies than catalyst. #win
15:20 sri https://widgets.stratopan.com/wheel?q=Mojolicious-4.99&amp;fs=1 # :D
15:20 tempire ha
15:20 marcus https://widgets.stratopan.com/wheel?q=Mojo-Redis-0.9927&amp;fs=1 isn't very impressive either
15:21 tempire I don't lol.
15:21 tempire But that's worthy of a hearty lol.
15:21 jberger :-P
15:21 tempire Mojolicious renders the stratopan OBSOLETE
15:21 jberger marcus: that looks like the flux capacitor!
15:21 marcus Mango is neat too https://widgets.stratopan.com/wheel?q=Mango-0.39&amp;fs=1
15:22 jberger almost all of that mess for Galileo is DBIC
15:22 * tempire used to love dbic
15:22 ladnaV joined #mojo
15:22 jberger then again, that's probably true of Catalyst too
15:23 marcus Catalyst doesn't depend on DBIC
15:23 tempire THere's a tweetable joke somewhere here.
15:23 marcus https://widgets.stratopan.com/wheel?q=Catalyst-Runtime-5.90064&amp;fs=1
15:23 jberger by which I meant, most catalyst apps
15:23 marcus it has a bigger graph than Galileo.
15:23 marcus I probably win this still tho.
15:24 marcus https://widgets.stratopan.com/wheel?q=MojoMojo-1.10&amp;fs=1
15:24 marcus I broke it
15:24 * jberger 's eyes pop out
15:25 tempire Quad core and 8G of ram is not enough to turn the mojo-mojo wheel smoothly
15:25 marcus It's art
15:25 jberger works on my i7 + 32GB
15:25 marcus It's not smooth on my mbp retina either.
15:26 dexteruk joined #mojo
15:26 tempire 32G!
15:26 * tempire damned scientists and their modeling
15:27 d4rkie joined #mojo
15:27 jberger you think science has a budget like that, I work for a bank now
15:27 * jberger weeps privately
15:27 marcus jberger: bank of america?
15:27 purl i guess bank of america is such a horrible bank.
15:27 jberger marcus: yeppers
15:28 marcus jberger: does jrockway still work there?
15:28 jberger I work with preaction, no jrockway left before I got there
15:28 marcus ok :)
15:29 jberger and this guy: https://metacpan.org/pod/ZMQ::FFI
15:29 jberger ^^ blows my mind
15:29 marcus ZMQ is pretty shiny
15:29 marcus I know meatchat uses it
15:30 asarch joined #mojo
15:31 jberger not just ZMQ, it's FFI bindings not XS
15:31 jberger https://metacpan.org/source/CALID/ZMQ-FFI-0.12/lib/ZMQ/FFI/Util.pm#L72
15:33 * jberger considers buying this: http://zareason.com/shop/UltraLap-440.html
15:33 * jberger is sad it wouldn't arrive before leaving for MojoConf
15:33 irq_ joined #mojo
15:34 marcus jberger: needs more resolution
15:36 jberger I am in a constant battle between usability and portability
15:36 jberger right now portability seems preferable as I think about the flight etc
15:37 cpan_mojo Mojolicious-Plugin-JSUrlFor 0.12 by Viktor Tuskyi - http://metacpan.org/release/KOORCHIK/Mojolicious-Plugin-JSUrlFor-0.12
15:41 d4rkie joined #mojo
15:41 * tempire isn't sure what to do about battery power for the flight
15:46 tempire sri: at one time, this would have reported an "cannot call method res on undefined"
15:46 tempire https://gist.github.com/tempire/38d97a000976948f2cf7
15:46 tempire What happened to make this recognizable as the correct object, even when nothing is in it?
15:46 tempire or am I crazy
15:46 marcus tempire: read a book?
15:47 cpan_mojo Mojolicious-Plugin-JSUrlFor 0.13 by Viktor Tuskyi - http://metacpan.org/release/KOORCHIK/Mojolicious-Plugin-JSUrlFor-0.13
15:48 tempire The kindle app won't work without power
15:51 jberger looks like my flights have power
15:51 jberger sorry tempire
15:52 asarch joined #mojo
15:53 D4RK-PH0ENiX joined #mojo
15:55 basiliscos joined #mojo
15:58 jberger wait ... was this not a joke? https://www.youtube.com/watch?v=G6BGA8WJAIw
15:59 dod joined #mojo
16:11 asarch joined #mojo
16:15 fhelmber_ joined #mojo
16:19 sri tempire: ohoh, hope that doesn't mean it leaks :o
16:19 sri $ua should be going out of scope
16:20 sri res on undefined value was another case i believe
16:29 Perl550 joined #mojo
16:29 Perl550 Tempire here?
16:30 tempire yes
16:31 Perl550 Sent you an email last night, did you get it?
16:31 Perl550 Don't know how to pm here?
16:45 hrupp joined #mojo
16:49 * tempire loves Carton
17:07 denis_boyun_ joined #mojo
17:15 hrupp joined #mojo
17:30 abra joined #mojo
17:39 hrupp joined #mojo
17:41 Caldrin joined #mojo
18:46 basiliscos joined #mojo
18:57 bodgix joined #mojo
19:04 russum joined #mojo
19:12 bluescreen_ joined #mojo
19:18 bluescreen__ joined #mojo
20:15 Akron joined #mojo
20:15 fhelmber_ joined #mojo
20:19 punter joined #mojo
20:19 igorsutton joined #mojo
20:19 punter Happy independence day, Norway
20:20 igorsutton joined #mojo
20:30 tolid joined #mojo
21:01 disputin joined #mojo
21:24 root joined #mojo
21:24 btyler joined #mojo
21:26 basiliscos joined #mojo
21:30 denis_boyun joined #mojo
21:54 russum joined #mojo
22:01 russum joined #mojo
22:11 neyasov___ joined #mojo
22:13 meshl joined #mojo
22:19 sri marcus: the param hack from earlier reminded me... didn't you plan to make some changes in 5.0 to get rid of the list context problem?
22:47 tolid joined #mojo
22:50 jnbek^dt joined #mojo
22:57 jnbek^dt joined #mojo
23:22 punter joined #mojo
23:38 neyasov___ joined #mojo
23:55 punter Has something changed recently in the way that plugins get loaded? I'm trying to load plugin 'PCore::Plugin::Auth', and I'm getting this error: Couldn't load application from file "/home/pm/web/perl/app.pl": Can't locate Mojolicious/Plugin/PCore/Plugin/Auth.pm:   Permission denied at (eval 352) line 1.
23:57 punter It's as if it's trying to load the module "Mojolicious::Plugin::PCore::Plugin::Auth" instead of "PCore::Plugin::Auth"

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