Camelia, the Perl 6 bug

IRC log for #mojo, 2012-01-10

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

All times shown according to UTC.

Time Nick Message
00:03 jnap joined #mojo
00:09 amoore joined #mojo
00:09 jnap joined #mojo
00:22 chansen joined #mojo
00:27 xaka marcus: what's wrong? )
00:29 xaka tempire: what is your opinion?
00:29 tempire xaka: about what?
00:30 tempire about the param return?
00:30 xaka when i do $data = {key => $self->param("key"}), it shows warnings just because there is no "key" parameter and it returns empty array because it ("param" sub) thinks "wantarray" happens
00:32 tempire I think you mean an empty list
00:32 tempire in general, lists are better than references.  they allow for more flexibility.
00:32 tempire what are you using $data for?
00:33 xaka pass it to backend
00:33 tempire if you want it to be a reference, just wrap it in []
00:35 xaka if i do "$value = $self->param("name"); $data = {key => $value}" - then no warnings, but i don't want to be tied to that code style just because of "wantarray". i just want to write "$data = {key => $self->param("name")}"
00:36 tempire then use scalar
00:36 tempire to force scalar context
00:37 tempire or $self->param('name').''
00:37 tempire either way, same result
00:37 xaka that leads to weird looking code
00:38 tempire => scalar $self->param('name') isn't weird
00:38 tempire it's just perl
00:39 tempire but if you want to have an arrayref regardless, then do => [$self->param('name')]
01:14 hshong joined #mojo
01:29 jnap joined #mojo
02:05 jnap joined #mojo
02:40 noganex joined #mojo
03:28 jnap joined #mojo
03:32 ccushing is there anyway to do a catalyst like ->detach ?
03:35 ccushing e.g go to another method and not return from it
03:35 xaka joined #mojo
03:35 ccushing well.. not return into the original method
03:38 Psyche^ joined #mojo
03:57 jnap joined #mojo
04:44 Foxcool joined #mojo
05:34 batman joined #mojo
06:27 sri moin
06:31 koban joined #mojo
06:41 batman joined #mojo
06:48 hshong joined #mojo
06:57 batman joined #mojo
07:09 batman joined #mojo
07:16 marcus moin
07:27 Vandal joined #mojo
07:29 GitHub86 joined #mojo
07:29 GitHub86 [mojo] kraih pushed 1 new commit to master: http://git.io/Ys4LEg
07:29 GitHub86 [mojo/master] added JSON example for WebSockets - Sebastian Riedel
07:29 GitHub86 left #mojo
07:41 metaperl joined #mojo
07:48 hide joined #mojo
07:49 tempire ccushing: no.  catalyst's detach isn't restful
07:49 tempire you want ->redirect_to
08:03 sugar joined #mojo
08:15 sri tempire: just the forwarding part of it isn't RESTful, the exception throw is just ugly
08:35 tempire you're referring to the exception throw of detach, right?
08:37 user_8164 joined #mojo
08:38 sri tempire: right
08:41 sri using exceptions for flow control
08:46 berov joined #mojo
08:56 cosmincx joined #mojo
09:27 spleenjack joined #mojo
09:52 sri we have a problem
09:52 sri http://learn.perl.org/faq/perlfaq9.ht​ml#Which-web-framework-should-I-use-
09:52 sri this will be in perl 5.16
09:54 * Quai wonders what a question like "How do I put a password on my web pages?" does in a perlfaq..
09:55 sugar people don't like unstableness
09:55 Debolaz sri: I would agree that might be a problem.
09:55 sri that level of favoritism is unacceptable
09:56 sugar it simple: more stable -> more mojo in prod
09:56 Debolaz If only say Catalyst was included, I could understand it (Catalyst has a very, very, very established culture) but when Dancer is included, it seems just completely arbitrary to leave out Mojo.
09:56 sri sugar: stfu
09:56 sri sugar: you have no idea what you're talking about
09:57 sugar sri: please be correct, don't be a fucking freak
09:58 berov " that level of favoritism is unacceptable" - agree
09:59 sugar i like many things in mojo, but dislike some problems on updates
09:59 sri sugar: then show me the ticket?
09:59 Debolaz sugar: Number of installations in prod obviously has nothing to do with that list when Web::Simple and Dancer (Both good frameworks, but closer to Catalyst than Mojo) are included in it.
09:59 Debolaz *but no closer
10:04 berov "If there is no interactivity then you may still want to look at using something like Template Toolkit" This is also not exactly right
10:04 berov but
10:05 sri sugar: unless you can point me to an open backcompat issue i'm going to ignore you from now on i'm afraid
10:05 berov what can we do about getting Mojo listed there
10:05 berov ?
10:06 stephan48 sri: who maintains the list?
10:07 sri figuring it out atm
10:07 sri it's a little confusing
10:07 abra_ joined #mojo
10:08 marcus https://github.com/perl-doc-cats/perlfaq
10:08 marcus seems to be ranguard?
10:08 sugar sri: i don't check tickets, because i'm working now and don't have a time for it, but in my past work we had numbers of projects those worked only on it's on version of mojo
10:08 sri it's a group apparently
10:09 sri sugar: if a problem is not reported properly it does not exist
10:09 sugar sri: ok
10:09 marcus sugar: we have a stringent deprecation policy for mojolicous. If we violate it, it's a bug and should be reported.
10:09 sri to my knowledge there have been no backcompat issues in over a year
10:11 sugar marcus: yes it's good, but otherwise we had that situation as i described atop
10:11 berov https://github.com/perl-doc-cats/perlfaq/com​mit/32925b720699b3b64a393a2ab909e9dbd521b672
10:12 * sri is preparing a pull request
10:12 sugar but i think mojo has some strengths for webdev
10:16 marcus sugar: that's very generous of you =)
10:20 sri https://github.com/perl-doc-cats/perlfaq/pull/22
10:20 sri comment to support it :)
10:24 marcus I think we won't need to
10:24 marcus but I'd be sad to be proven wrong.
10:24 stephan48 he was fast
10:25 marcus yupp
10:25 marcus good stuff :)
10:25 marcus \o/
10:25 sri \o/
10:30 berov :)
10:30 berov sri: a question...
10:30 purl a question is more "unaffected by environment"
10:32 berov is there any plans to make Mojo Mo* compatible?
10:32 berov I mean for creating attributes
10:32 sri be more specific
10:32 berov ok wait...
10:33 berov http://search.cpan.org/~ingy/Mo-0.30/lib/Mo.pod - like this
10:33 sri no
10:33 berov ok
10:43 * sri should better get some breakfast now (missing it always makes me grumpy)
10:44 osprey joined #mojo
10:45 marcus Mo Money
10:49 sri that's better
10:49 sri sorry for cursing btw., once the channel sherriff pops up i'm sure he'll kick me for it
10:50 * sri pokes tempire
10:50 * sri kick sri no cursing!
10:50 sri ops
10:50 sri was kicked by sri: no cursing!
10:50 sri joined #mojo
10:51 sri that's why he's the sherriff ;p
10:51 sri was kicked by marcus: no cursing or talking to yourself.
10:51 sri joined #mojo
10:51 sri careful or i might get a concussion
10:53 sri "Yet thanks to my trusty safety sphere, I sublibed with only tribial brain dablage."
10:57 marcus sri: do you watch venture brothers?
10:58 sri nope
10:58 marcus you should!
10:58 marcus http://www.youtube.com/watch?v=Mr2jz3q_P-A
11:00 sri bald guy seems sympathetic
11:01 marcus that's dr venture
11:16 bzero Hello. What is instead of "tick" in modern Mojolicious?
11:18 sri be more specific
11:27 bzero sri: poll->poll('0.025'); and usleep 25000 unless keys %{$self->{handles}}; at IOWatcher.pm.  Is it not configurable?
11:27 sri no
11:37 bzero Thanks.
11:48 berov sri:,marcus: :) How about adopting Time::Piece in Mojolicious ;)?
11:49 marcus berov: uh?
11:49 berov ok will explain
11:49 sri what marcus said
11:50 berov https://github.com/kraih/mojo​/blob/master/lib/Mojo/Date.pm to use Time::Piece - it is in the CORE since 5.10
11:51 berov http://perldoc.perl.org/5.10.1/Time/Piece.html
11:51 sri quite sure that would be more code, not less
11:51 berov really?!?!!
11:52 berov http://perldoc.perl.org/5.​10.1/Time/Piece.html#USAGE
11:52 sri if you can make it require less code all glory to you
11:52 sri but i doubt it
11:52 berov ah hm oook will see
11:52 marcus berov: fork and pull request when it's less code? :)
11:52 berov haha ok
11:52 berov for now just scanning opinions
11:53 crab Time::Peace
11:53 berov but as a mojo-user I will be glad to know that Mojo::Date
11:53 berov is Time::Piece
11:53 jnap joined #mojo
11:54 crab as a mojo user, why would you care as long as whatever it was worked?
11:54 marcus Time::Piece::OfMind
11:55 sri nom nom nom
11:55 purl I eat your head!
11:55 berov because I will not have to use TP separately to do more advanced date parsin and producing
11:56 berov also TP is potentially faster
11:56 berov or no?
11:56 purl or a built-in
11:56 sri try it and tell us
11:56 berov good point :) ok I will
11:58 sri it has rather good unit tests too
12:07 sri if i remember right Time::Piece will go bonkers on parser errors
12:07 sri print warnings that can't be disabled and stuff like that
12:09 sri and you have to be careful not to depend on platform specific behavior
12:10 sri https://github.com/kraih/mojo/​blob/master/t/mojo/date.t#L26
12:10 sri those tests should give you a headache
12:12 * marcus wraps sri in an eval.
12:12 * sri throws exceptions at marcus
12:12 * sri segfaults!
12:12 purl No whammies!
12:14 sri purl seems sharper thn usual today
12:14 purl sri: what?
12:14 sri and that was that
12:16 marcus purl: jerk it?
12:16 purl marcus: SOMETIMES, WHEN I GO ON BUSINESS TRIPS OR VACATIONS, I DON'T GET A CHANCE TO MASTURBATE. WHEN YOU STOMP AROUND A STRANGE CITY ALL DAY AND COME BACK TO AN IMPERSONAL HOTEL ROOM, IT'S HARD TO GET IT ON. HERE'S A TIP: PACK SOMETHING SOFT TO SPURT INTO. LEAVE IT IN THE ROOM AFTER YOU CHECK OUT.
12:50 sri could it be that the best indicator for code in perldoc is a ";" at the end of a line?
12:50 * sri tries to make highlighting slightly smarter
13:01 jnap joined #mojo
13:04 berov sri: thanks about hints on TP
13:09 jnap joined #mojo
13:24 sugar_ joined #mojo
13:34 osprey left #mojo
14:05 amoore joined #mojo
14:22 cosmincx joined #mojo
14:38 koban left #mojo
15:05 al is there a way to route things to controller#function_$method, i.e. GET /smthng to controller#smthng_get, POST to ...#smthng_post etc?
15:20 noganex_ joined #mojo
15:27 metaperl joined #mojo
15:39 d4rkie joined #mojo
15:42 marty al: yes.  To route base on HTTP method...   http://mojolicio.us/perldoc/Mojoli​cious/Guides/Routing#HTTP_methods
15:43 marty You can also use the special stash variables if that helps.   http://mojolicio.us/perldoc/Mojolic​ious/Guides/Routing#Special_stash_v​alues_28_controller_and_action_29
15:43 marty And of course you can route to a namespace if needed. http://mojolicio.us/perldoc/Mojolicious/Gui​des/Routing#Route_to_class_28_namespace_29
15:48 al marty, thanks
15:48 al i guess shortcuts are what i want
15:50 inokenty joined #mojo
15:56 kaare__ joined #mojo
16:12 alnewkirk joined #mojo
16:13 mercutioviz joined #mojo
16:15 D4RK-PH0ENiX joined #mojo
16:22 al hmm, or not
16:23 al i thought i could do something like https://gist.github.com/1589843
16:25 al (line #11)
16:25 GitHub55 joined #mojo
16:25 GitHub55 [mojo] kraih pushed 1 new commit to master: http://git.io/R7bZ4Q
16:25 GitHub55 [mojo/master] improved Mojo::Base tests - Sebastian Riedel
16:25 GitHub55 left #mojo
16:48 batman joined #mojo
16:52 batman joined #mojo
16:57 xaka joined #mojo
17:06 fmerges joined #mojo
17:18 jnap joined #mojo
17:18 sri wonder if i should open a github issue for performance optimization
17:18 sri it's a little unspecific
17:21 sri on the other hand it's something pretty much everybody can do
17:39 jnap joined #mojo
17:48 kaare__ joined #mojo
17:58 grim_fandango joined #mojo
17:59 kaare__ joined #mojo
18:08 tempire sri: that's gotta be the first time I've ever seen you apologize for cursing or getting short with a person
18:08 * tempire doesn't kick anyone because the situation resolved itself piecefully
18:09 tempire instability implies unexpected and untenable change
18:10 tempire it's more that people have an expectation without reading the rules, because of the standard set by frameworks that have backward compatibility as a priority above innovation
18:10 tempire which is fine, but the expectation doesn't apply to mojolicious, any more than an expectation of intensive mathematical processing applies to erlang running on a 486SX
18:11 sri tempire: actually, it's just people not letting go of the pre 1.0 mindset
18:11 tempire that too
18:12 sri "oh you have deprecation policies now?"
18:12 sri "only for a year now"
18:14 * tempire apologizes to sugar for the language on behalf of the channel
18:14 * tempire sprinkles glitter on…sugar?
18:44 inokenty1 joined #mojo
18:44 marcus this site makes me sick! http://comicsansproject.tumblr.com/
18:49 kaare__ joined #mojo
18:50 * sri vomits glitter
18:51 inokenty1 Funny letter 'e' in Internet Explorer 9 picture
18:52 inokenty1 Seems like it's laughing on someone
19:09 mercutioviz joined #mojo
19:13 * marcus tries 'Person of interest'
19:14 sri marcus: it's awesome
19:15 sri dark knight vibe
19:16 sri actually, it's so good i'm surprised it hasn't been canceled
19:17 marcus :)
19:23 netfeed sounds cool
19:23 netfeed started franklin and bash today, lawyers are always good fun :)
19:26 metaperl|2 joined #mojo
19:39 marcus I kinda liked suits, but haven't seen more than 4-5 episodes yet.
19:39 marcus (apropos lawyers)
19:40 marcus so far I agree with sri on Person of interest. guess I'll download the rest of it.
19:40 sri like you have a choice
19:41 sri it actually gets better with each episode
19:41 sri creator of the show sure is a Nolan
19:46 netfeed suits sounds like white collar but with lawyers instead of fbi
19:47 sri it's much more boring
19:48 netfeed :/
19:48 sri i kinda liked suits, but the story is very weak
19:49 sri no comparison to white collar
19:49 netfeed matt bomer has a nice presence in white collar
22:07 kaare joined #mojo
22:20 kaare_ joined #mojo
23:03 ashleydev do many people use less with mojolicious?
23:03 ashleydev the css preprocessor?
23:04 ashleydev is there a plugin for it?
23:15 Akron joined #mojo
23:18 Akron ashleydev: I think there's a SASS plugin, but no less plugin yet.
23:19 ashleydev hmm
23:19 ashleydev ok
23:20 ashleydev sass is :P imho
23:22 Akron I know it's a noobie question, but how can I establish a route matching /(*path) where path can also be empty?
23:23 ashleydev what is the format of the daemon --listen arg?  it says it default is 'http://*:3000", yet it barfs if I tell it 'http://10.1.2.3:3000'
23:30 * ashleydev pokes sri
23:32 ashleydev n/m
23:32 ashleydev i was running: perl mojocode.pl help daemon --listen 'http://10.1.2.3:3000'
23:33 * ashleydev embarresed...
23:35 Akron ashleydev: http://irclog.perlgeek.de/out.p​l?channel=mojo;date=2011-12-01
23:36 Akron And there look for '*:3000'
23:37 ashleydev yeah -- my issue was s/help//
23:37 metaperl|2 joined #mojo
23:38 ashleydev i'm off to build my first webpage in who knows how long -- I think the last one was in node.js
23:38 ashleydev so i'm trying out mojo + bootstrap.js
23:38 ashleydev looks fun
23:39 Akron It definitely is!
23:40 * ashleydev looks at the code in: https://github.com/ivanvpe​nchev/mojolicious-db-tool
23:45 fmerges joined #mojo
23:54 GabrielVieira joined #mojo
23:54 GabrielVieira Hi there, what modules you guys suggest to handle MySQL cruds with Mojolicious::Lite?

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