Camelia, the Perl 6 bug

IRC log for #mojo, 2013-03-21

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

All times shown according to UTC.

Time Nick Message
00:04 Fatalnix_ joined #mojo
00:23 MeierM joined #mojo
00:48 shmuel joined #mojo
00:50 mattastrophe joined #mojo
00:58 lammel2 joined #mojo
01:07 d4rkie joined #mojo
01:12 Averna joined #mojo
01:13 hlin joined #mojo
01:15 hesperaux_ joined #mojo
01:22 amirite_ joined #mojo
01:24 ka2u joined #mojo
01:26 moltar joined #mojo
01:29 l3l1p_ joined #mojo
01:38 xaka joined #mojo
01:55 shmuel_ joined #mojo
02:03 shmuel joined #mojo
02:29 l3l1p joined #mojo
03:11 l3l1p joined #mojo
03:26 egopro joined #mojo
03:29 rem_lex|pivo joined #mojo
03:32 l3l1p joined #mojo
03:45 Averna left #mojo
03:47 sh4 joined #mojo
03:51 beyondcreed joined #mojo
04:01 sh4 joined #mojo
04:31 GabrielVieira joined #mojo
04:34 hesperaux__ joined #mojo
04:38 preflex_ joined #mojo
04:51 ka2u joined #mojo
05:13 _xaka_ joined #mojo
05:17 Admin joined #mojo
05:25 egopro joined #mojo
05:31 Admin_ joined #mojo
06:04 basiliscos joined #mojo
06:08 jnbek joined #mojo
06:12 KindTwo joined #mojo
06:15 Admin_ joined #mojo
06:35 yakudza joined #mojo
06:36 Admin joined #mojo
06:40 coff joined #mojo
07:05 ObseLeTe joined #mojo
07:12 duncanthrax2 joined #mojo
07:17 duncanthrax joined #mojo
07:35 Vandal joined #mojo
07:36 Gedge_ joined #mojo
07:36 relberger joined #mojo
07:36 D4RK-PH0ENiX joined #mojo
07:36 bpmedley_ joined #mojo
07:36 Gruber joined #mojo
07:36 mattp_ joined #mojo
07:37 preflex_ joined #mojo
07:38 ispy_ joined #mojo
07:38 tholen42 joined #mojo
07:38 wk joined #mojo
07:39 Mad_Dud joined #mojo
07:39 hide joined #mojo
07:39 cstamas joined #mojo
07:40 baton8 joined #mojo
07:40 drift joined #mojo
07:40 geck joined #mojo
07:40 coff joined #mojo
07:40 wu-lee joined #mojo
07:40 espen joined #mojo
07:40 jberger joined #mojo
07:40 HtbaaPi joined #mojo
07:40 rafl joined #mojo
07:40 Caelum joined #mojo
07:40 stephan48 joined #mojo
07:40 Foxcool joined #mojo
07:40 BinGOs joined #mojo
07:40 bjoernfan joined #mojo
07:40 connor_goodwolf joined #mojo
07:40 trone joined #mojo
07:40 mike_ joined #mojo
07:41 rhaen joined #mojo
07:41 omega joined #mojo
07:41 amirite joined #mojo
07:41 tomi-ru joined #mojo
07:41 Andreas2 joined #mojo
07:41 mtths joined #mojo
07:41 Britzel joined #mojo
07:41 alzeih joined #mojo
07:41 Averna joined #mojo
07:41 kmx joined #mojo
07:42 human39 joined #mojo
07:45 amirite_ joined #mojo
07:45 mst joined #mojo
07:45 garu joined #mojo
07:46 rihegher joined #mojo
07:49 dod joined #mojo
07:51 rihegher left #mojo
07:55 dpetrov_ joined #mojo
07:55 dod joined #mojo
07:55 beyondcreed joined #mojo
08:26 rihegher joined #mojo
08:27 suy joined #mojo
08:38 amirite__ joined #mojo
08:48 ObseLeTe joined #mojo
08:49 ObseLeTe Hi
09:00 amirite joined #mojo
09:06 rihegher Hi
09:07 Britzel Hi
09:08 marcus morning
09:10 * marcus is a bit puzzled to why he needs to utf8 decode the bytes sent from websocket after doing JSON.stringify to be able to decode them with Mojo::JSON.
09:11 amirite__ joined #mojo
09:11 hrupp joined #mojo
09:14 fhelmber_ joined #mojo
09:27 nelio joined #mojo
09:33 maxhq joined #mojo
09:34 chansen joined #mojo
09:44 wk joined #mojo
09:51 marcus uhm, actually I need to encode them, and I guess that's not so strange after all.
09:52 marcus I guess on message gets decoded unicode in.
10:04 crab joined #mojo
10:07 amirite joined #mojo
10:19 bowtie joined #mojo
10:38 Britzel_ joined #mojo
10:46 Averna joined #mojo
10:46 dhg joined #mojo
10:56 amirite joined #mojo
11:10 amirite joined #mojo
11:21 marcus_ joined #mojo
11:21 amirite joined #mojo
11:22 marcus_ yay
11:22 marcus_ joined #mojo
11:23 marcus_ joined #mojo
11:23 marcus_ joined #mojo
11:23 marcus_ left #mojo
11:45 MichaelRpdx joined #mojo
12:02 mire joined #mojo
12:10 maxhq joined #mojo
12:37 jberger marcus, what event are you receiving the json message on?
12:37 marcus jberger: message
12:38 jberger try on( text => sub{} )
12:39 jberger message events try to do the unicode encode/decode for you, as though you are sending a string naively
12:39 jberger but since Mojo::JSON does the encoding, use the text event, because it doesn't do that
12:39 marcus jberger: perfect, thanks!
12:39 jberger :-)
12:39 marcus TIL
12:40 jberger you probably want to also send by
12:40 jberger $ws->send({ text => j( $data ) } )
12:40 marcus actually, I've just rewritten to send html.
12:40 jberger ok
12:41 jberger yes in that case you probably want just send
12:41 moltar joined #mojo
12:41 marcus jberger: https://gist.github.com/marcusramberg/5212733 might be too complicated
12:42 jberger yeah, just use $ws->send( $html ) because that will do the unicode encode for you
12:42 marcus sweet
12:44 marcus jberger: uhm - Event "read" failed: Not an ARRAY reference at /Users/marcus/perl5/perlbrew/perls/perl-5.14.1/li​b/site_perl/5.14.1/Mojo/Transaction/WebSocket.pm line 209.
12:44 jberger ?
12:44 marcus jberger: with   $app->helper(send_partial => sub { $self = shift; $self->send( $self->render_partial(@_) ); });
12:45 * jberger looks
12:46 marcus Trying to upgrade Mojo first
12:47 jberger no, you know what it is! its a Mojo::ByteStream object!
12:47 jberger force stringification
12:47 marcus oh
12:47 jberger . ""
12:48 marcus yeah, works
12:48 marcus nice as pie
12:48 jberger or ->to_string or whatever the method is
12:48 marcus Would maybe be nice to let ->send handle bytestreams as well.
12:49 jberger yeah, seems appropriate
12:50 jberger actually, it probably should just do exactly that, try to force stringification on whatever
12:50 marcus I wasn't even aware that render_partial returned them =)
12:50 jberger of course
12:50 jberger that way they don't get xml escaped again later
12:50 marcus I guess that's render specific.
12:51 marcus but yeah, attempting stringify unless it's a hash seems like it would be more DWIM
12:51 jberger hash or array ref
12:51 jberger arrayref is the lowest level: send a raw websocket frame
12:51 marcus yeah
12:51 marcus if blessed, then
12:51 * jberger prepares a patch
12:53 jberger hmmmm, would it still try to utf8 encode then?
12:55 jberger hmmmm, this needs a little thought
12:56 jberger yeah, I think it should utf8 encode
12:56 jberger after looking at ByteStream.pm
12:59 jberger sri: thoughts?
13:04 mattastrophe joined #mojo
13:07 amirite__ joined #mojo
13:14 gryphon joined #mojo
13:16 bluescreen joined #mojo
13:18 good_news_everyone joined #mojo
13:18 good_news_everyone [mojo] jberger created ws_send_stringify (+1 new commit): http://git.io/ULo5qA
13:18 good_news_everyone mojo/ws_send_stringify 80b23d8 Joel Berger: Mojo::Transaction::WebSocket::send forces stringification on object
13:18 good_news_everyone left #mojo
13:19 jberger https://github.com/kraih/mojo/pull/470
13:20 travis-ci joined #mojo
13:20 travis-ci [travis-ci] kraih/mojo#382 (ws_send_stringify - 80b23d8 : Joel Berger): The build passed.
13:20 travis-ci [travis-ci] Change view : https://github.com/kraih/mojo/commit/80b23d83b0cf
13:20 travis-ci [travis-ci] Build details : http://travis-ci.org/kraih/mojo/builds/5686771
13:20 travis-ci left #mojo
13:20 jberger I'm especially open to changes in the test, for example the test could easily piggyback on some other test
13:25 amirite joined #mojo
13:26 gtodd joined #mojo
13:31 jberger marcus, look good to you?
13:32 gryphon joined #mojo
13:32 jberger sri is busy filling out his NCAA bracket (which I should be doing)
13:37 amirite joined #mojo
14:00 Meiermann joined #mojo
14:03 mire joined #mojo
14:06 phillipadsmith jberger: Basketball?
14:07 jberger yeah
14:07 jberger today in the US starts this big college basketball tournament, its widely known that the least amount of work gets accomplished each year on this day
14:08 jberger there is a small group of people who want to make it a holiday, since so few people actually do anything, they may as well remove the charade
14:08 sh4 joined #mojo
14:17 jpn joined #mojo
14:22 Slatibart Q: Hi, how can add here :  %= form_for 'view/rules/textfield' => begin : the content of a textfield defined in the html ? Route should match  '/view/:rules/#tld'
14:23 marcus jberger++
14:23 crab Slartibart: i completely fail to understand your question
14:24 Slatibart I have a route  '/view/:rules/#tld'
14:25 Slatibart in the template I define  %= form_for 'view/rules' => begin, textfield, submit %=end and so on
14:25 Slatibart Can I use the value of the textfield to appear and the url so that the route can match this ?
14:26 SmokeMac_ joined #mojo
14:27 Slatibart or do I have to get the value with param and then do a redirect to the desired url with the added content of the textfield
14:28 SmokeMa__ joined #mojo
14:28 mattastrophe joined #mojo
14:30 btyler joined #mojo
14:31 tholen42 joined #mojo
14:36 SmokeMachine joined #mojo
14:37 gtodd jberger: perl and mojo can help with that
14:38 amirite joined #mojo
14:39 gtodd jberger:  e.g. calculating BBall bracket odds ... requires bignum though :)
14:41 newbie joined #mojo
14:42 jberger_ joined #mojo
14:42 good_news_everyone joined #mojo
14:42 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/O_4zUw
14:42 good_news_everyone mojo/master 12fb487 Sebastian Riedel: Merge pull request #470 from kraih/ws_send_stringify...
14:42 good_news_everyone left #mojo
14:43 good_news_everyone joined #mojo
14:43 good_news_everyone [mojo] kraih deleted ws_send_stringify at 80b23d8: http://git.io/mrEhNQ
14:43 good_news_everyone left #mojo
14:43 jberger_ gtodd, luckily bignum is a core module
14:43 jberger_ :-)
14:43 sri neat, there is now a second button after you merge that asks you if you want to delete the branch too
14:44 jberger_ sri: that's been there a little while, a few months maybe? yeah its nice
14:44 phillipadsmith What!? Commits on NCAA Day? WTF?
14:44 phillipadsmith ;)
14:44 jberger_ (it doesn't start yet)
14:45 jberger_ now is for making your bets!
14:45 jberger_ a sign of how big this is, cbs sports website is having a hard time handling the usage!
14:46 jberger_ sri: if you want to tweak anything in that code/tests/doc, feel free
14:47 sri jberger_: on it
14:47 sri you forgot perltidy :S
14:47 berov joined #mojo
14:48 jberger_ :-/
14:48 jberger_ damn you're right
14:48 * jberger_ issue's self a stern warning
14:49 jberger_ its not in my editor like you guys and your fancy schmancy editors
14:50 sri which editor are you using?
14:52 jberger_ gedit actually :o
14:52 amirite joined #mojo
14:52 jberger_ I should be using something better, but I have been too lazy to pick a new one after I gave up eclipse
14:53 sri https://github.com/jkva/gedit-perltidy-plugin
14:53 jberger_ curious, what did I get wrong? most was copy-paste or same-line
14:53 jberger_ nice!
14:54 berov Hello, can I use Mojo::UserAgent to upload files to an FTP server using PUT.
14:54 berov I am asking because LWP::UserAgent can do that. I saw this and was curious: http://stackoverflow.com/questions/10086592/​mojouseragent-get-with-userdefined-callback
14:55 sri no, ftp is not supported
14:56 berov ok thanks. the example works just because the ftp.vim.org is exposed via http . tahnks again
14:58 gtodd jberger_: but ... but... I don't understand .... there's vim
14:58 amirite joined #mojo
14:59 * jberger_ is either an old fogey or hipster depending on how you think of it
15:00 gtodd it used to be on philosophy exams ... "vim exists so why do other editors exist ... discuss"
15:00 gtodd oh no sorry it was something about a tree
15:00 jberger_ I haven't found an editor that I like for both LaTeX and Perl
15:00 jberger_ so I essentially chose the least common denominator
15:01 jberger_ gtodd, :-)
15:04 tempire gtodd: commands for all methods of deployment are encouraged
15:05 tempire the heroku deploy was as much of an example to inspire people as anything else.
15:05 tempire but systems programming scares web people, I think.
15:05 doby i know i can get at the headers $self->req->body and the body $self->req->body but what if i just want to see the entire request as it came over the wire?
15:06 dhg joined #mojo
15:07 tempire doby: it's parsed and discarded.  you can rebuild it with the parsed data, but it won't necessarily be exactly the same thing.
15:07 doby cool thanks
15:12 marcus jberger: I think if I used Linux, I'd be using Sublime.
15:14 gtodd tempire: excellent
15:14 amirite__ joined #mojo
15:14 gtodd tempire: I will try to re-autovivify the perl section of my brain :)
15:15 SmokeMac_ joined #mojo
15:16 gtodd tempire: how is Heroku BTW do you get enough traffic to use the "pay" version?
15:17 gtodd tempire: skip that I'm going to try it myself
15:17 gtodd cheers
15:17 gtodd :)
15:18 gtodd jberger happy basketball ... in Canada it is big time curling season so the bets are on all over ...
15:19 gtodd left #mojo
15:23 good_news_everyone joined #mojo
15:23 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/rTFyJQ
15:23 good_news_everyone mojo/master 15bc6de Sebastian Riedel: test and documentation tweaks
15:23 good_news_everyone left #mojo
15:25 jberger_ it would seem that perltidy plugin is broken
15:25 sri jberger_: you also forgot to update Mojolicious::Controller documentation
15:26 jberger_ oh right, because is wraps send into a controller method
15:26 jberger_ I always call it on the tx
15:27 jberger_ well that's why I asked for comments, thanks sri
15:28 sri well, cleaning up things is my job :)
15:28 * sri is the mojolicious janitor
15:28 amirite joined #mojo
15:28 doby sri: I asked a question about certificates yesterday and you pointed me in the right direction but in finding that direction i found an issue
15:29 doby I summarized it but its way too long for IRC
15:29 doby can i email it to you?
15:30 btyler joined #mojo
15:30 jberger_ doby: https://groups.google.com/forum​/?fromgroups#!forum/mojolicious
15:30 doby ahh... good call
15:31 jberger_ keeps a nice paper trail
15:35 jberger_ maybe I should start actually using farabi
15:36 sri if i was on linux, i'd be using sublime text 2 i suppose
15:36 * jberger_ looks
15:37 jberger_ $70 ... not until I exhaust my other options
15:37 sri you don't have to buy it right away, it's very friendly and only shows you a little UNREGISTERED in the corner while you try it
15:37 sri no time limit
15:37 denisboyun joined #mojo
15:38 jberger_ any idea what percentage of people actually pay?
15:38 jberger_ I actually like the model that qtiplot uses
15:38 jberger_ source is free, compiled binaries cost money
15:39 sri should be pretty high, one of the perks of paying is that you get regular snapshots of sublime text 3 while it is being developed
15:40 denisboyun Hi guys. How to set connection timeout in Mojolicious?
15:40 marcus jberger: The text editor is the lifeblood of programmers. 70$ is seriously not so much.
15:41 doby link to my wordy explanation -> https://groups.google.com/forum/?fromg​roups=#!topic/mojolicious/F4crxDjqZCk
15:41 doby thanks jberger  and sri
15:42 jberger_ thank sri, I just pointed you to the mailing list
15:42 jberger_ marcus, once I make $ perhaps I will pay for a better editor
15:42 jberger_ actually if I wasn't so lazy I would keep using TeXlipse (Eclipse) for LaTeX, its brilliant
15:43 jberger_ but setting up eclipse is such a pain
15:43 marcus jberger_: I heard science pays mad money.
15:43 jberger_ not until you get your degree, until then you are slave labor
15:44 jberger_ my wife is a public school music teacher and make 3x what I do
15:44 jberger_ for a gauge
15:45 marcus jberger_: I was being ironic tho =)
15:45 marcus But I guess some research positions pay pretty well.
15:46 jberger_ I'm thinking about going into an industry research position, which could actually pay rather well
15:47 jberger_ I'm in instrumentation physics, so the instrumentation companies (or anyone who prototypes hardware) might be interested in me
15:47 jberger_ especially since I can also program
15:47 jberger_ or at least thats the hope :-O
15:47 jberger_ kinda a terrifying time in my life right now
15:47 marcus jberger_: \o/
15:47 marcus jberger_: how old are you?
15:48 jberger_ 29
15:48 marcus jberger_: don't worry, if science don't work out you can always come to oslo and hack mojolicious for me ;-)
15:49 jberger_ I've taken just slightly longer than the average Ph.D.
15:49 jberger_ aw thanks
15:49 jberger_ olso is a bit of a commute :-P
15:49 d4rkie joined #mojo
15:50 marcus jberger_: we kick ass at social benefits tho.
15:50 marcus jberger_: like a year of parental leave.
15:50 mire joined #mojo
15:51 marcus and 5 weeks vacation + official holidays.
15:51 jberger_ sounds great
15:51 mattastrophe joined #mojo
15:51 jberger_ I bet you have better scenery than Chicago too
15:51 marcus less flat
15:52 jberger_ Chicago is absolutely as flat as it gets :-/
15:52 jberger_ though the lake is nice
15:52 marcus jberger_: Yeah, I was there for YAPC a couple of years back, and got up in that tower of yours :)
15:52 jberger_ (I suppose people still find places to sail in norway)
15:52 marcus Yes. I live next to the Oslo fjord.
15:52 jberger_ my dad actually worked in the 63 floor for many years
15:52 marcus Lots of sailing there.
15:53 jberger_ oh man that sounds gorgeous
15:57 crab i've seen the oslofjord. it's full of water.
16:00 mst joined #mojo
16:01 xaka joined #mojo
16:12 * sri can confirm that the oslo fjord is full of water
16:12 * jberger_ goes to google maps, as he doesn't trust marcus, crab or sri
16:13 sri norway is ridiculously expensive from what i hear though
16:14 jberger_ hmmmmm, farabi needs a way to clear the warnings lines
16:14 jberger_ I understand that I have redefined new!
16:15 jberger_ and since Perl::Critic doesn't understand Mojo::Base (or almost anything else)
16:15 * jberger_ tries sublime
16:16 * sri wonders if the PyCon drama will ever stop
16:17 jberger_ sri: for the uninformed, what's going on?
16:17 d4rkie joined #mojo
16:17 sri https://news.ycombinator.com/item?id=5410515
16:19 sri (they've both been fired now)
16:20 btyler pretty unhappy situation all around
16:20 sri it's a total mess
16:21 jberger_ ick
16:21 sri python folks aren't messing around, there have been death threats apparently
16:21 avenj does adria still have a job?
16:21 btyler didn't help that the various "$gender rights" groups on reddit took up the cause
16:22 sri avenj: nope
16:22 avenj -> cue grumpy cat
16:22 avenj I note I still cannot retrieve sendgrid's website, heh
16:22 sri the other company is PlayHaven btw
16:23 jberger_ guess it goes to confirm, best not to make sexual innuendo in a group setting, thought that was kinda obvious but I guess not
16:24 jberger_ there is no good outcome for so little benefit (a giggle?)
16:24 Akron joined #mojo
16:24 sri not just that, a joke has even been misunderstood
16:25 sri one of the things said was "cool speaker, i would fork that guys repos"
16:26 Akron joined #mojo
16:27 * sri could have totally said that and been misunderstood too
16:27 relberger thx for the link ... incredible
16:27 jberger_ oh yeah, I have now found his post
16:28 jberger_ eh, double ick
16:33 dhg joined #mojo
16:34 njlg joined #mojo
16:34 avenj apparently the woman is rather a bit of a racialist -> https://twitter.com/adriar​ichards/status/6039856858
16:34 avenj and apparently thinks she is Joan of Arc -> http://cdn0.dailydot.com/uploaded/i​mages/original/2013/3/20/pycon6.jpg
16:34 avenj I bet she spends an awful lot of time being Offended
16:35 avenj anyway, o/
16:38 jberger_ as I said, my wife is a teacher, she lives in constant fear that she will be either misunderstood or accused of something, or worse do something that she doesn't think is wrong but that someone else does
16:39 jberger_ happens a lot in the teaching world and the teacher is almost always thrown under the bus, because its easier than fighting with parents
16:40 marcus jberger: The whole political correctness thing is one of my big dislikes about the US.
16:41 mattastrophe joined #mojo
16:45 jberger_ there's a lot to dislike about the US, but on the whole I still think its got the right idea, but the process is messy
16:57 labrown joined #mojo
17:06 SmokeMachine joined #mojo
17:06 crab i read about some kid being suspended because he bit a pop-tart into a gun shape and waved it around (apparently he was trying to bite it into the shape of a mountain, but it turned out more like a gun)
17:06 crab (7 year old)
17:07 sri haha
17:10 Vandal O_o
17:11 Vandal and here is our school http://www.liveleak.com/view?i=a19_1361905919
17:14 crab vandal: do you have pop tarts in russia?
17:14 crab (i don't know exactly what a pop tart is)
17:14 Vandal crab, no
17:14 Vandal me neither
17:15 sri http://www.nyan.cat # that is a pop tart
17:15 njlg =)
17:16 Vandal crab, but we have AKs!!!
17:16 crab would you get suspended if you bit your AK into a pop-tart shape?
17:16 Vandal :)
17:18 jpn_ joined #mojo
17:22 basiliscos joined #mojo
17:24 denisboyun joined #mojo
17:35 rihegher left #mojo
17:38 denisboyun joined #mojo
17:43 mire joined #mojo
17:44 denisboyun joined #mojo
17:44 dod joined #mojo
17:48 dod joined #mojo
17:52 lammel2 joined #mojo
17:54 sh4 joined #mojo
18:03 sh4 joined #mojo
18:08 eugen joined #mojo
18:14 btyler joined #mojo
18:14 sh4 joined #mojo
18:29 sri oh my, it keeps going on https://news.ycombinator.com/item?id=5416908
18:34 buu What a giant mess.
18:41 SmokeMachine joined #mojo
18:51 riche joined #mojo
18:53 riche joined #mojo
18:57 jberger_ well I screwed this up! http://www.phdcomics.com/com​ics/archive.php?comicid=1569 <--> https://metacpan.org/module/Physics::UEMColumn
19:00 lammel2 joined #mojo
19:01 riche don't think this one is fake http://venturebeat.com/2013/03/21/bre​aking-adria-richards-fired-by-sendgri​d-for-outting-developers-on-twitter/
19:01 riche if she isn't fired yet, I am sure she will wish she has..
19:12 SmokeMac_ joined #mojo
19:21 sri jberger_: i know some of those words!
19:23 jberger_ you don't want to see what the first few implementations of that simulation looked like
19:23 jberger_ and I had to implement several layers of software to make this work
19:24 jberger_ in a related story, Mathematica is a terrible language! no OO of any kind and no key-value pair system
19:35 mire joined #mojo
19:59 nelio joined #mojo
20:06 sri https://rt.perl.org/rt3/Publi​c/Bug/Display.html?id=117259 # this can only end badly
20:12 jberger_ haven't we had enough things that can only end badly today?
20:18 * sri is still trying to figure out what the hell horse.js is https://twitter.com/horse_js
20:28 jberger_ I have many comments on the rt ticket, but I'll just verbalize this one: thank goodness for Mojo::JSON
20:29 sri those discussions always make me uncomfortable, because of our EV use
20:33 suy joined #mojo
20:33 sri really wish UV was maintained more actively and had adapters for all the common event loops
20:37 berov joined #mojo
20:37 cfedde joined #mojo
20:37 lukep joined #mojo
20:42 suy you mean libuv? or some adaptation of libuv?
20:44 njlg maybe: https://metacpan.org/module/UV
20:44 sri https://metacpan.org/module/UV
20:44 sri yea :)
20:45 good_news_everyone joined #mojo
20:45 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/UcAkOg
20:45 good_news_everyone mojo/master b06ac6b Sebastian Riedel: removed deprecated namespace method from Mojolicious::Routes
20:45 good_news_everyone left #mojo
20:48 suy ok :)
20:49 suy but... isn't the point of UV to just interface libuv? wouldn't it complicate things to support more event loops?
20:49 sri i mean adapters on top of UV for AnyEvent, IO::Async and POE
20:49 lammel2 sounds great, as Mojo is not dependant on AnyEvent yet, swapping out EV would solve the uncomftorable  issue ;-)
20:50 sri there is pretty much no chance Mojolicious will ever depend on AnyEvent
20:50 lammel2 but libuv ist very young
20:50 lammel2 Would not make sense either
20:50 lammel2 we just need an event loop
21:14 marcus I can't believe I read all that crap.
21:14 marcus Poor p5p.
21:14 sri you got further than me
21:15 * sri couldn't get path the posts that have like 50+ quoted blocks
21:15 sri *past
21:17 maxhq joined #mojo
21:19 marcus sri: re #471, tabs seem to be allowed whitespace in json spec?
21:20 sri marcus: they are
21:23 marcus sri: oh, inside a string. Why isn't \t allowed inside a string?
21:24 sri marcus: i don't have the whole spec in my head
21:27 sri omg, only 9 days until game of thrones!
21:27 mikegrb_ right
21:30 marcus sri: horse_js seems inspired by horse_ebooks
21:33 marcus sri: wouldn't it make sense for ojo::j to throw errors ? or how are you supposed to check what the parse error is?
21:34 jberger_ what does JSON.stringify(text) do if text contains a "\t"?
21:35 jberger_ sorry, text should be some object containing text with a "\t"
21:36 marcus_ joined #mojo
21:36 sri marcus: a) that would be a breaking change b) there is always the oo api
21:37 marcus sri: yeah, I agree it would be a breaking change, but 4.0 is coming up soon, isn't it? ;-)
21:38 sri well, i'm ok with how it works now
21:38 marcus sri: the whole point of the ojo command is oneliners tho?
21:38 sri can't say i particularly care though
21:39 marcus sri: I'm quite fine with how it works for the oo api.
21:39 sri wait, you're proposing to change ojo::j but not Mojo::JSON::j?
21:39 marcus sri: I never even knew about Mojo::JSON::j before now, but yeah.
21:39 sri don't think i would be ok with that
21:40 sri whole point of Mojo::JSON::j was to make it consistent with Mojo::ByteStream::b and Mojo::Collection::c
21:40 marcus I'd be fine with changing it for Mojo::JSON::j
21:41 ispy_ joined #mojo
21:41 sri i'm neutral i guess
21:45 btyler joined #mojo
21:48 jnbek joined #mojo
21:53 ObseLeTe joined #mojo
21:57 sivoais joined #mojo
21:58 riche joined #mojo
22:00 jberger_ this seems to behave correctly when I use a tab character in the text box
22:00 jberger_ http://pastie.org/6994430
22:01 sri jberger_: i doubt anyone (including the poster) has actually checked the example ;p
22:01 jberger_ I don't understand how its any different than perl -Mojo -E 'print r(j(qq!{"text" : "hi\t"}!))'
22:02 jberger_ oh damn its the encoding again isn't it!
22:02 * sri was about to say encoding
22:02 jberger_ just saw it right now
22:02 * jberger_ is learning (slowly)
22:07 denisboyun joined #mojo
22:07 laidback_01 joined #mojo
22:17 sri jberger_: perl -Mojo -E 'my $j = Mojo::JSON->new; $j->decode(qq!{"text" : "hi\t"}!); say $j->error'
22:17 sri (in case you've not tried it yourself yet)
22:18 jberger_ yeah, I got tehre
22:18 jberger_ there
22:18 ka2u joined #mojo
22:18 jberger_ I had assumed it was a unicode encoding error, but from that I found (I think) that its a JSON encoding error?
22:19 jberger_ \\t
22:19 * jberger_ thinks encoding his hard, wishes he could go shopping, but can't, has to keep typing
22:20 jberger_ s/his/is/
22:58 BeDa joined #mojo
23:04 mattastrophe joined #mojo
23:08 preflex_ joined #mojo
23:09 sri marcus: if you want the Mojo::JSON change in 4.0 you should open a pull request soon and have a vote
23:10 sri 4.0 shouldn't be that far away
23:24 jpn joined #mojo
23:37 mattastrophe joined #mojo
23:50 mattastrophe joined #mojo
23:56 denisboyun joined #mojo
23:57 baton8 joined #mojo
23:57 Averna joined #mojo
23:59 ka2u joined #mojo

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