Camelia, the Perl 6 bug

IRC log for #mojo, 2013-05-25

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

All times shown according to UTC.

Time Nick Message
00:59 tempire why doesn't moose have a logo?
01:34 jb360 joined #mojo
01:56 Meiermann joined #mojo
02:33 inokenty joined #mojo
02:38 rem_lex joined #mojo
03:35 fildon_ joined #mojo
03:54 preflex_ joined #mojo
04:18 inokenty joined #mojo
04:34 ispy_ joined #mojo
05:08 jnbek joined #mojo
05:25 d4rkie joined #mojo
05:26 d4rkie joined #mojo
05:53 davido joined #mojo
06:58 hrupp_ joined #mojo
07:09 rem_lex joined #mojo
07:17 Vandal joined #mojo
07:28 Britzel joined #mojo
07:42 dhg joined #mojo
07:46 mrphilov joined #mojo
07:47 jzawodn joined #mojo
08:20 Vandal is there a way to store controllers files in sub dir of lib/MyApp?
08:29 Vandal I got it
08:46 basic6 joined #mojo
08:59 denisboyun_ joined #mojo
09:04 basiliscos joined #mojo
09:46 mrphilov joined #mojo
10:15 dpetrov_ joined #mojo
10:18 dod joined #mojo
10:19 dod joined #mojo
10:41 dod joined #mojo
10:57 denisboyun_ joined #mojo
11:23 dhg joined #mojo
11:25 moltar joined #mojo
11:50 moltar joined #mojo
12:17 denisboyun_ joined #mojo
12:32 sherr joined #mojo
12:34 denisboyun joined #mojo
12:36 maxhq joined #mojo
12:42 denisboyun___ joined #mojo
14:06 fildon joined #mojo
14:34 SmokeMachine joined #mojo
14:39 * sri is still unsure what to do about the command line encoding problem
14:39 sri so far i hate all the options :S
14:41 d4rkie joined #mojo
14:41 sri while i'm ok with only supporting UTF-8, encoding all input/output manually is a bit messy... and if we change STDIN/STDOUT/STDERR to :utf8, i have no clue where exactly we should do that
14:47 sri meh, there really should be a canonical boilerplate... way too many choices
14:56 basiliscos joined #mojo
15:05 moritz
15:23 Akron joined #mojo
15:25 asarch joined #mojo
15:29 mrphilov joined #mojo
15:43 sri moritz: has perl6 solved the problem of portable terminal i/o somehow?
15:45 moritz sri: no
15:45 sri :/
16:07 DaTa what's wrong with Encode::Locale?
16:09 sri DaTa: what's right with it?
16:11 DaTa well, you can decode the bytes from @ARGV according to the users locale
16:11 DaTa and also encode your strings with the users encoding and print them out
16:12 sri there are many ways to make it work, i'm looking for the "correct" one
16:15 sri *if* it is the "correct" solution, why is the cpan still full of hacks by pretty smart people and Encode::Locale not in core?
16:15 sri https://metacpan.org/requires/d​istribution/Encode-Locale?sort=[[2,1]]
16:16 sri reverse dependencies are not particularly impressive
16:18 DaTa well, that is the module that perllocale suggests :)
16:18 DaTa and PerlIO::locale
16:18 DaTa which also not in core
16:19 sri tbh i don't really care much about the actual encoding, UTF-8 only seems to work pretty well for most
16:19 sri i'm more interested in *how* to decode/encode our i/o
16:21 sri specifically if we should just mess with the handles on startup or decode manually (like we do now) https://github.com/kraih/mojo/blob/mast​er/lib/Mojolicious/Command/get.pm#L114
16:22 sri s/decode/encode/
16:23 jberger sri: can't we mess with the handles and let there be a script switch for picking the encoding?
16:23 sri jberger: not sure i understand
16:23 DaTa ah, sorry, i should have read more backlog
16:24 sri DaTa: well, your argument supports the manual encoding option :)
16:24 jberger in a script we control the handles, so we should use it
16:24 sri jberger: it's not that simple
16:25 sri we have commands, tests and logging
16:25 sri all deal with terminal i/o
16:25 DaTa sri: not really, PerlIO::locale is not manual :)
16:26 jberger commands is what I was thinking of, tests ... hmm, and yeah logging is a problem in that case
16:26 DaTa encoding is hard, let's go shopping, shitty closing-time law
16:26 sri logging is the biggest problem
16:26 sri unicode in test output is actually undefined :S
16:27 sri so we don't even know if it's ok to include anything else than ascii in TAP output
16:27 jberger but we already do, right?
16:28 sri we do
16:28 sri it seems to work... but it's undefined behavior
16:28 jberger IMO, our testing should default to utf8, if that ever breaks we blame p5p
16:29 sri we can't blame them if it's undefined
16:29 jberger I think we should do our best to support other encodings, but utf8 is our base
16:29 jberger plenty of people blaming them for hash keys and they were right about it :-)
16:31 * jberger seems to recall we did this a month ago or so
16:31 * jberger looks for irc log
16:34 jberger http://irclog.perlgeek.de/​mojo/2013-04-22#i_6731557
16:35 aghbas joined #mojo
16:35 sri yes, i'm bringing it up again because of the recent logging bug
16:36 sri https://github.com/kraih/mojo/compare/771​8f7b39368c14cf9ab93fcd6282ac380418849...d​808628b09ee6aade9d3af72d2fae4fd0beaffa1
16:39 good_news_everyone joined #mojo
16:39 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Wbc15Q
16:39 good_news_everyone mojo/master 565c0e4 Sebastian Riedel: another small optimization
16:39 good_news_everyone left #mojo
16:51 bpmedley joined #mojo
17:22 basic6 joined #mojo
17:32 basic6 joined #mojo
17:46 dhg joined #mojo
17:51 d4rkie joined #mojo
18:06 good_news_everyone joined #mojo
18:06 good_news_everyone [mojo] kraih tagged v4.07 at 0ae3eb1: http://git.io/bQGnww
18:06 good_news_everyone left #mojo
18:08 dhg joined #mojo
18:52 augensalat joined #mojo
19:15 sri http://www.marthastewart.com/975869/ar​rested-development-premier-party-menu # \o/
19:33 sh4 joined #mojo
19:33 rindolf joined #mojo
19:33 rindolf Hi all. https://bitbucket.org/shlomif/perl-tes​t-www-mechanize-mojo/src/1523b0b319d90​b57e7206eee7bb40b9570d12abb/Test-WWW-M​echanize-Mojo/t/auth-test.t?at=default - why does this test script yield the wrong results without an error or a warning?
19:50 rindolf joined #mojo
19:50 rindolf Hi all.
19:54 rindolf Hi all. https://bitbucket.org/shlomif/perl-tes​t-www-mechanize-mojo/src/1523b0b319d90​b57e7206eee7bb40b9570d12abb/Test-WWW-M​echanize-Mojo/t/auth-test.t?at=default - why does this test script yield the wrong results without an error or a warning?
19:56 jberger_ rindolf, what results are you getting?
19:57 jberger_ wait
19:57 jberger_ why are you explicitly requesting localhost?
19:57 jberger_ why not just request the relative path?
19:59 rindolf jberger_: http://paste.scsys.co.uk/250584
19:59 jberger_ actually, we cannot possibly diagnose this, we don't have the script in question and we are not the authors of the testing class
19:59 jberger_ 500 is server error
19:59 rindolf jberger_: what? It's all in the repository.
20:00 jberger_ oh, sorry, I thought this was a paste
20:00 rindolf jberger_: OK.
20:01 jberger_ what does the 500 message say when you view it?
20:02 rindolf jberger_: let me see.
20:02 jberger_ rindolf, I still see "render_text" in your app
20:03 jberger_ I told you yesterday that those have been removed
20:04 rindolf jberger_: OK.
20:05 jberger_ I also notice that you are using render_text to send html (in /form for example) this will have the wrong headers IIRC
20:06 rindolf jberger_: «Removed render_data, render_json, render_partial and render_text methods from Mojolicious::Controller.» -- https://metacpan.org/source/​SRI/Mojolicious-4.07/Changes ==> what were they replaced with?
20:08 jberger_ they were always shortcuts, just use the stash form: https://metacpan.org/module/M​ojolicious::Controller#render
20:11 fhelmber_ joined #mojo
20:13 jberger_ sri: hmmmmm
20:14 sh4 joined #mojo
20:14 jberger_ mojo get -v seems broken
20:14 jberger_ wait, before I say that
20:14 jberger_ I should upgrade
20:15 jberger_ ok, works on 4.07
20:15 sri -.-
20:16 jberger_ rindolf, it would appear I was wrong about render( text => '...' ), the headers look right when I test here
20:17 sri text is about encoding, not headers
20:18 rindolf jberger_: thanks.
20:18 jberger_ sri: ok, still I kinda thought it would get text/plain
20:18 rindolf So $self->render_text($html) ==> $self->render(text => $html)?
20:18 jberger_ but I can accept it, without any worries
20:19 jberger_ rindolf, yes
20:19 rindolf jberger_: thanks.
20:20 sri http://daker.me/2013/05/5-html5​-features-you-need-to-know.html # cool html5 features
20:20 * sri did not know about prefetching
20:21 fhelmber_ joined #mojo
20:22 * jberger_ didn't either
20:23 * jberger_ also likes the "download" option, though its not that important
20:31 yko joined #mojo
20:36 moltar joined #mojo
20:44 fhelmbe__ joined #mojo
20:46 sri the new o'reilly system is really nice, you can read book while they are being written :) http://chimera.labs.oreilly.com​/books/1230000000545/index.html
20:47 sri and leave comments inline
20:50 sri *+s
22:40 rem_lex joined #mojo
22:51 russum joined #mojo
23:00 russum1 joined #mojo
23:35 russum1 left #mojo
23:40 hesperaux joined #mojo
23:43 basic6 joined #mojo

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