Camelia, the Perl 6 bug

IRC log for #mojo, 2013-04-16

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

All times shown according to UTC.

Time Nick Message
00:23 whitebook joined #mojo
00:28 egopro joined #mojo
00:30 Averna joined #mojo
00:34 d4rkie joined #mojo
00:34 shmuel joined #mojo
00:41 btyler joined #mojo
00:43 jberger joined #mojo
00:59 mattastrophe joined #mojo
01:16 MeierM joined #mojo
01:20 ka2u joined #mojo
01:20 good_news_everyone joined #mojo
01:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/RQuvdA
01:20 good_news_everyone mojo/master 3d171c8 Sebastian Riedel: mention preforking in feature list
01:20 good_news_everyone left #mojo
01:28 cy joined #mojo
01:35 snuffles joined #mojo
01:43 kryptonite joined #mojo
01:44 btyler joined #mojo
01:45 whitebook joined #mojo
02:12 asarch joined #mojo
02:20 moltar joined #mojo
02:43 preflex_ joined #mojo
02:44 moltar joined #mojo
02:51 phillipadsmith sri: thanks for the link (reading…)
02:59 Kripton joined #mojo
03:01 gryphon joined #mojo
03:25 D4RK-PH0ENiX joined #mojo
03:31 egopro_ joined #mojo
03:42 xaka joined #mojo
05:02 ka2u joined #mojo
05:10 arpadszasz joined #mojo
05:16 ka2u joined #mojo
05:19 rem_lex|pivo joined #mojo
05:46 bpmedley_ joined #mojo
05:57 Meiermann joined #mojo
06:12 hrupp joined #mojo
06:14 heytrav joined #mojo
06:21 dpetrov_ joined #mojo
06:25 arpadszasz joined #mojo
06:34 ObseLeTe joined #mojo
06:36 davido joined #mojo
06:53 Vandal joined #mojo
06:56 rihegher joined #mojo
06:58 whitebook joined #mojo
07:10 dod joined #mojo
07:13 suy joined #mojo
07:17 dod joined #mojo
07:24 dod joined #mojo
07:24 heytrav joined #mojo
07:33 shmuel joined #mojo
08:09 mattastrophe joined #mojo
08:15 dod joined #mojo
08:50 ver joined #mojo
09:00 mrphilov joined #mojo
09:00 mattastrophe joined #mojo
09:22 dexteruk|2 Hi Everyone
09:22 dexteruk|2 Bogdan are you around?
09:54 maxhq joined #mojo
10:37 whitebook joined #mojo
10:40 Britzel joined #mojo
10:42 mire joined #mojo
11:39 marty o/
11:40 marty Did anybody watch defiance last night?  if so, was it any good.
11:40 bc547 Is there a way to make Mojo::UserAgent load faster? Just time perl -e "use Mojo::UserAgent; exit;" in a script takes 0.22 sec to execute on a X5550 xeon cpu.
11:46 marty bc547:  I think that test is more about the time it takes to load the perl interpreter rather than Mojo::UserAgent.
11:47 marty You may wan to run a test like perl -e 'echo "hello"; exit;' and compare the results
11:48 marty If you can put your logic into a mojo app that runs under daemon or hypnotoad then you'll see much better performance.
11:52 marty I meant...  perl -e "print 'hello'; exit;";    need c-o-f-f-e-e.
12:03 dod joined #mojo
12:04 bc547 marty: the print hello take 2ms (real    0m0.002s)
12:08 bc547 marty: well.. the small app I would want to use UserAgent for is a userfriendly cmdline interface to a mojo app. I want to avoid users doing 'mojo get "http://127.0.0.1:80/addr/create?addr=10.8.9.1"'
12:11 Kripton joined #mojo
12:11 denisboyun joined #mojo
12:14 dvinciguerra joined #mojo
12:15 marty bc547:  I'm surprised the load times are that different, interesting.   that was my only idea so I can not be of any help.  :)
12:16 bc547 marty: tnx :-)
12:28 rihegher left #mojo
12:28 asarch joined #mojo
12:31 btyler joined #mojo
12:39 arpadszasz joined #mojo
12:51 dod1 joined #mojo
12:59 d4rkie joined #mojo
13:14 bluescreen joined #mojo
13:15 mire joined #mojo
13:19 whitebook joined #mojo
13:22 ka2u joined #mojo
13:29 moltar joined #mojo
13:32 good_news_everyone joined #mojo
13:32 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/O6Er2g
13:32 good_news_everyone mojo/master 793c6c2 Sebastian Riedel: fixed small html_unescape bug in Mojo::Util (closes #479)
13:32 good_news_everyone left #mojo
13:36 gryphon joined #mojo
13:40 marty joined #mojo
13:43 btyler joined #mojo
13:57 sri marty: i'll be watching defiance soon, no spoilers! :)
14:00 bluescreen joined #mojo
14:00 marty Thanks, sri.  I see that it's available on the web so I might be doing the same later this week. Looking forward to your opinion.
14:14 xaka joined #mojo
14:15 Mithaldu oh hey, there's a series to the mmo?
14:15 sh4 joined #mojo
14:29 inokenty joined #mojo
14:37 cfedde Defiance | Watch the Show, Play the Game, Change the World
14:40 nicolaas joined #mojo
14:41 nicolaas hello .. i have routes to methods that render some json data to the client, and I would like to make a new route that would get two params "url" & "params", and re-forge a query to get that json data, perform stuff on it and render a file to the client
14:42 nicolaas what should I use for this ? render partial ?
14:42 nicolaas is it "good" to handle the $ctrl->req->params hash manually to fit the method 'signature' ?
14:59 mire joined #mojo
15:22 rihegher joined #mojo
15:26 bowtie joined #mojo
15:28 cfedde is there a way to teach Test::Mojo to use basic auth for Mojolicious::Lite apps?
15:32 ka2u joined #mojo
15:34 sri http://mojolicio.us/perldoc/Test/Mojo#ua
16:02 sri hehe, fun to watch the fighting around futures/promises in node.js land
16:03 sri some pretty convincing arguments for why promises are shitty primitives
16:03 sri most events get emitted multiple times, can't handle those with promises
16:04 sri Mojo::IOLoop->client() vs Mojo::IOLoop->server()
16:04 sri plain old callbacks are a much better primitive for consistent APIs
16:04 cfedde Can I stuff the Authorization: header rather than decorating the url?
16:06 basiliscos joined #mojo
16:12 ka2u joined #mojo
16:15 mattastrophe joined #mojo
16:18 dod joined #mojo
16:18 arpadszasz joined #mojo
16:19 njlg joined #mojo
16:35 dvinciguerra joined #mojo
16:42 cfedde the main issue is that username:password pairs appear in test logs.
16:44 labrown joined #mojo
17:03 dod joined #mojo
17:09 good_news_everyone joined #mojo
17:09 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/tukjHQ
17:09 good_news_everyone mojo/master 1db8ba8 Sebastian Riedel: small optimizations
17:09 good_news_everyone left #mojo
17:10 mattastrophe joined #mojo
17:14 xaka joined #mojo
17:15 _xaka_ joined #mojo
17:17 rihegher left #mojo
17:19 mrphilov joined #mojo
17:29 * marty wonders what the best way is to determine if a string  is a valid for a mango object id.
17:33 marty example.   bson_oid('1234') in a query gives...  Client Error: bad object in message: invalid bson
17:33 marty Maybe check string length...  lemme see
17:36 sri it's always 12 bytes when packed
17:38 sri i've been wondering if bson_oid(...) should die on invalid values
17:40 marty I'm not sure if it's better to just check the packed size or to die.
17:41 sri another option would be bson_oid(...)->is_valid
17:42 sri think i'll make it die, ruby driver does the same
17:43 marty That's kinda what I was thinking.
17:46 whitebook joined #mojo
17:46 tagg joined #mojo
18:00 sri https://github.com/kraih/mango/commit/2​199f37e488fde19350bdc5608d80317fde372a8
18:09 btyler joined #mojo
18:13 marty sri++  I'll sync and test after lunch.
18:14 whitebook joined #mojo
18:18 whitebook1 joined #mojo
18:31 sh3 joined #mojo
18:31 mire joined #mojo
18:34 heytrav joined #mojo
18:37 jb360 joined #mojo
19:01 mattastrophe joined #mojo
19:03 basiliscos joined #mojo
19:05 sri marty: defiance is no firefly or bsg, but it's good scifi \o/
19:06 sri a lot of potential, we'll see after a few more episodes where it goes
19:19 denisboyun joined #mojo
19:34 wsirc_1787235 joined #mojo
19:35 wsirc_1787235 joined #mojo
19:36 wsirc_1787235 How can I post with Mojo::UserAgent data with same keys and multiple values? If I do $tx = $self->ua->post ($url => form => { key => 'val1', key => 'val2'}); then only key=val2 will be sent.
20:01 sh4 joined #mojo
20:06 dvinciguerra joined #mojo
20:07 marty sri++  mango rocks!   Thanks for the info on defiance.   hopefully I'll get to watch it sometime this week.
20:11 nelio joined #mojo
20:22 buu wsirc_1787235: Have you tried key => [val1,val2] ?
20:27 wsirc_1787235 buu, just tried it and it worked perfectly, thank you!
20:27 buu Hurray
21:00 mattastrophe joined #mojo
21:03 MeierM joined #mojo
21:35 lukep joined #mojo
22:06 whitebook joined #mojo
22:06 denisboyun_ joined #mojo
22:12 wsirc_1787235 joined #mojo
22:13 cy joined #mojo
22:34 ka2u joined #mojo
22:41 whitebook joined #mojo
22:52 jberger has anyone seen a mechanism like this for sending files before? is this common? seems like the most inefficient thing possible
22:52 jberger http://www.trainingpeaks.com/tpwebserv​ices/service.asmx?op=ImportFileForUser
22:52 jberger see the HTTP POST section
22:54 sri what about it is inefficient?
22:56 jberger you add the string "&byteData=" for each byte you are sending
22:57 sri i believe you're misunderstanding, the string should be the whole file
22:57 sri looks more like a typo
22:57 jberger well, I'll check the next time I send something to this service, but I don't think so
22:59 jberger I was able to send a file by doing '->post( $url, form => { ..., byteData => [ unpack 'C*', $file->slurp ]})'
22:59 sri sending files urlencoded is very uncommon though
22:59 jberger seems like that wouldn't work if 'byteData=> $file->slurp' would have worked
22:59 sri normal people use multipart/form-data
23:00 jberger thats what I thought
23:00 sri in fact, mojolicious has no special support for streaming files urlencoded
23:00 jberger this seems like the kind of interface that sports medicine would come up with
23:01 jberger as I said, my unpack thingy worked, so it handled that much
23:01 sri sure, you have to load the whole thing in memory though
23:01 jberger oh, right
23:01 jberger yeah, thats true
23:02 jberger luckily the files aren't that big
23:02 jberger its GPS/heart-rate data from a fancy watch my wife has
23:03 sri oh, yea, that kinda APIs are always awful
23:04 jberger good so its not just me :-)
23:05 sri byteData => [...] is pretty damn ridiculous though ;p
23:06 jberger the SOAP interface lets you send it base64 encoded
23:07 sri for a SOAP API that's quite reasonable
23:07 jberger seems strikingly different
23:08 * jberger knows nothing about SOAP
23:09 sri think JSON web services, but from before JSON was invented and designed by Oracle/Microsoft
23:10 * jberger thinks he would rather stick with urlencoded post ;-)
23:10 sri huge ass XML serialization format with OO garbage mixed in for doing RPC, with all the enterprise buzzwords
23:12 * sri hugs JSON and REST
23:12 jberger I'm what a huge ass XML serialization format without enterprise buzzwords!
23:12 jberger *I mean
23:16 rem_lex| joined #mojo
23:18 asarch joined #mojo
23:19 sri btw. we still need to pick a 4.0 code name
23:20 * sri thinks ALIEN MONSTER is in the lead now
23:28 KindTwo joined #mojo
23:28 anaio joined #mojo
23:28 preaction_ joined #mojo
23:28 rem_lex|pivo joined #mojo
23:29 perlite joined #mojo
23:29 preflex joined #mojo
23:31 diegok joined #mojo
23:32 memowe joined #mojo
23:49 jberger http://irclog.perlgeek.de/​mojo/2013-03-18#i_6599319
23:50 jberger "VOLCANO or FIREWORKS with a dark-horse candidate FACE SCREAMING IN FEAR"
23:53 jberger 😱
23:54 Caelum_ joined #mojo
23:57 jberger ALIEN MONSTER is pretty good too though
23:57 jberger (assuming I can still use if for Alien::Base)

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