Camelia, the Perl 6 bug

IRC log for #mojo, 2013-07-09

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

All times shown according to UTC.

Time Nick Message
00:08 punter left #mojo
00:26 memowe_ joined #mojo
00:27 rem_lex|pivo joined #mojo
00:28 Adurah_ joined #mojo
00:30 SmokeMachine joined #mojo
00:31 Caelum joined #mojo
00:31 perlite_ joined #mojo
00:31 thaljef1 joined #mojo
00:31 yko joined #mojo
00:31 bobkare joined #mojo
00:31 mfontani joined #mojo
00:31 drift joined #mojo
00:31 ruz joined #mojo
00:32 tempire joined #mojo
00:33 toadflax joined #mojo
00:33 bpmedley joined #mojo
00:33 cosimo joined #mojo
00:33 diegok joined #mojo
00:33 BeDa joined #mojo
00:33 jast joined #mojo
00:33 doby joined #mojo
00:33 Dandre joined #mojo
00:33 jzawodn joined #mojo
00:33 sweet_kid joined #mojo
00:33 stan_theman joined #mojo
00:33 Foxcool joined #mojo
00:33 mtths joined #mojo
00:33 human39_ joined #mojo
00:33 bzero joined #mojo
00:33 caeles joined #mojo
00:33 PerlJam joined #mojo
00:33 crab joined #mojo
00:33 Kovensky joined #mojo
00:33 depesz joined #mojo
00:33 kmx joined #mojo
00:33 nicomen joined #mojo
00:33 garu joined #mojo
00:33 mst joined #mojo
00:33 andrefs joined #mojo
00:33 dwierenga joined #mojo
00:33 gautier joined #mojo
00:33 omega joined #mojo
00:33 edenc joined #mojo
00:33 ask joined #mojo
00:33 mattp joined #mojo
00:33 jnbek_ joined #mojo
00:33 plu joined #mojo
00:33 ralesk_ joined #mojo
00:33 augensalat joined #mojo
00:33 basiliscos joined #mojo
00:33 tba joined #mojo
00:33 sawtooth joined #mojo
00:33 sivoais joined #mojo
00:33 tianon joined #mojo
00:33 salparadise joined #mojo
00:33 stokachu joined #mojo
00:33 bd joined #mojo
00:33 ColonelPanic001 joined #mojo
00:33 al joined #mojo
00:33 HtbaaPi joined #mojo
00:33 charsbar___ joined #mojo
00:33 _mkrull joined #mojo
00:33 tardisx` joined #mojo
00:33 d^_^b joined #mojo
00:33 bayashi joined #mojo
00:33 cottoo joined #mojo
00:33 BinGOs joined #mojo
00:33 mike_ joined #mojo
00:34 Grrrr joined #mojo
00:35 bc547 joined #mojo
00:38 marcus joined #mojo
00:39 marcus_ joined #mojo
00:42 shmuel joined #mojo
00:49 preflex joined #mojo
01:04 asarch joined #mojo
01:07 btyler joined #mojo
01:09 btyler_ joined #mojo
01:11 bluescreen_ joined #mojo
01:36 Averna joined #mojo
01:46 btyler joined #mojo
01:48 d4rkie joined #mojo
01:51 btyler_ joined #mojo
01:56 Meiermann joined #mojo
01:58 abra joined #mojo
02:02 heytrav joined #mojo
02:05 jnbek joined #mojo
02:08 bowtie joined #mojo
02:23 chansen joined #mojo
02:30 Lurchentsafter joined #mojo
02:48 jberger https://github.com/jberger/Genera​tor-Object/blob/master/t/basic.t
02:49 preaction that's pretty
02:51 jberger and there's more coming
02:51 jberger it should be able to nicely handle exhausting the generator
02:51 jberger and restarting (at exhaustion or at will)
02:52 jberger possibly arguments to ->next (is that a terrible idea?)
02:53 preaction what would they do?
02:53 jberger change @_ inside the generator
02:54 preaction i could think that $self->next(2) would get the next 2 items from the generator
02:55 jberger next could do that and there could be an arguments method
02:55 jberger having an object for the generator is really handy
02:55 btyler_ left #mojo
02:55 preaction but push @array, map { $g->next } 1..2; could also do what i said
02:55 preaction at least, more indirectly maybe
02:56 jberger well I want to DWIM
02:56 jberger and you aren't the first to think that next(2) would return two values
02:56 jberger that said, my generator can return multiple values, so perhaps that would mean that would be confusing
02:58 preaction yeah. it'd change the dynamic a bit (you'd go from lists to arrayrefs)
03:14 jberger schmorp says in his docs that he'd be interested to hear of a use for ->schedule_to, which I use twice
03:14 jberger I think I might be too chicken to tell him
03:15 jberger https://metacpan.org/modul​e/Coro#CORO-OBJECT-METHODS
03:17 thaljef1 Is there a way I can (ab)use the the renderer to generate things that don't go to the browser?  For example: sendmail( $self->render('email_message.ep.txt") )
03:18 crab jberger: what could possibly go wrong?
03:19 jberger thaljef1, partial render
03:19 jberger or just use Mojo::Template directly
03:20 jberger crab, :-P
03:24 thaljef1 Thanks jberger.  partial looks like it will do the trick.
03:26 jberger np
03:28 thaljef1 Curious though: How do the Mojo and Mojolicious namespaces fit together?  I assume there is some architectural boundary there, but I haven't figured it out yet.
03:28 jberger Mojo is the non-framework parts
03:29 jberger think HTTP::*
03:29 jberger or LWP::*
03:29 jberger or HTML::*
03:30 jberger in principal Mojo::* can be used to implement other frameworks
03:30 jberger though I'm not sure that there are too many projects that do so
03:32 jberger Clustericious doesn't use much of Mojolicioius
03:32 jberger IIRC
03:33 jberger then again, I use Mojo::UserAgent outside of Mojolicious all the time, and I'm starting to promote using Mojo::IOLoop(::Delay) for non-web async stuff
03:35 thaljef1 That helps, a little.  I understand they are different layers (so to speak).  I'm just not savvy enough to appreciate the dividing line between them.
03:37 thaljef1 Been learning quite a lot about Mojo* the last few weeks.  Really enjoying it.  Is a beautiful piece of work.  Thanks for your help.
03:37 crab maybe it's better to not look for dividing lines
03:46 crab Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
03:46 crab that's needed for standalone/cgi scripts and such, right?
03:46 jberger or anyplace that the IOLoop is not already running
03:47 jberger the IOLoop has plenty of meaning outside of the web framework
03:55 preflex_ joined #mojo
04:12 MeierM joined #mojo
04:19 shmuel joined #mojo
04:25 jberger hmmmm, how about the wantarray context from the next method inside the generator (now I'm having too much fun)
05:03 Adura joined #mojo
05:17 BeDa1 joined #mojo
05:22 Britzel_ joined #mojo
05:29 ver joined #mojo
05:51 Britzel joined #mojo
05:58 zekame joined #mojo
06:03 zekame joined #mojo
06:04 zekame I'm new inmojo
06:06 zekame I'm new in mojo and js. How can i use json data( render(json=>{...}) ) in javascript?
06:07 zekame joined #mojo
06:10 zekame joined #mojo
06:18 Vandal joined #mojo
06:23 fhelmber_ joined #mojo
06:29 l3l1p joined #mojo
06:49 espent joined #mojo
07:04 mire_ joined #mojo
07:11 dod joined #mojo
07:17 shmuel_ joined #mojo
07:24 dotan joined #mojo
07:27 dod joined #mojo
07:38 hrupp_ joined #mojo
07:43 trone joined #mojo
07:45 yakudza joined #mojo
07:47 punter joined #mojo
07:52 crab sri: what browser are you using that actually supports GCM?
08:07 dod joined #mojo
08:10 shmuel_ how I am supposed to access files in the public folder? app.pl/css/file.css ?
08:10 shmuel_ (assuming that the file exists in public/css/file.css
08:10 shmuel_ )
08:13 crab /css/file.css
08:18 sri crab: they are part of TLS 1.2
08:19 sri dunno which browsers support it yet, i don't make cipher decisions myself anymore and just let experts decide :)
08:22 sri thaljef1: i'd say Mojo covers building blocks that often have specs like RFCs and W3C recommendations, while Mojolicious is only stuff i made up :)
08:24 sri originally Mojo started as a toolkit for framework builders, and Mojolicious was added later as an example (this was 2008 or so, long before the first stable release... things evolved and changed a lot in the meantime)
08:25 sri there used to be MojoX and MojoliciousX namespaces too
08:26 sri the Mojo namespace is still full of individually usable building blocks though
08:32 jzawodn joined #mojo
08:34 shmuel_ crab: I need something to route the request to app.pl
08:36 cosmincx joined #mojo
08:37 shmuel_ um. my mistake.
08:37 shmuel_ sorry.
08:41 sri no pull request for a non-blocking gridfs api though
08:41 sri I IS DISAPPOINT!
08:42 espent joined #mojo
08:45 * bjoernfan replaced Flickr::API in a script with a little bit of Mojo::UserAgent yesterday
08:45 bjoernfan <3
08:53 punter Has anyone succeeded in using the AccessLog plugin in a Mojolicious (not Lite) application?
09:21 maxhq joined #mojo
09:25 crab sri: afaik very little does
09:26 crab so in practice everything just uses rc4 anyway from that list of ciphers
09:28 sri if qualys says that list id good i'm going to trust them
09:29 sri cloudflare seems to trust it too btw. http://blog.cloudflare.com/new-ssl-v​ulnerabilities-cloudflare-users-prot
09:32 dod joined #mojo
09:33 crab that is not the same list
09:34 sri which list are you talking about?
09:35 crab ah, the first one you committed. i didn't see the second commit.
09:37 crab either way, in practice you end up using RC4. so as i said before i'm not complaining about the list so much as complaining that no really good alternatives exist.
09:37 crab the list isn't untrustworthy, but it's a bit of wishful thinking (at least the GCM stuff)
09:50 espent_ joined #mojo
09:55 espent joined #mojo
10:13 bpmedley joined #mojo
10:20 bowtie joined #mojo
10:21 zekame joined #mojo
10:22 zekame left #mojo
10:30 sri hmmm
10:30 sri if you write() like 3 or more chunks worth of data non-blocking, would you want those inserts to happen concurrently?
10:31 sri as in using 3 connections concurrently from your connection pool
10:31 sri kinda funny how this is easier to implement than sequential inserts
10:33 sri i imagine that could be quite nice once mongodb gets document level locking or with tokumx
10:56 punter joined #mojo
11:01 punter Found the cause of the bug in the AccessLog plugin. It just couldn't work with /dev/null as the output. I filed a bug report.
11:02 bowtie joined #mojo
11:03 punter I found it by looking in the source code and finding something wrong there.
11:31 bowtie joined #mojo
11:33 libsysguy joined #mojo
11:35 libsysguy left #mojo
12:08 abra joined #mojo
12:16 dpetrov_ joined #mojo
12:24 maxhq joined #mojo
12:26 bowtie joined #mojo
12:28 yakudza joined #mojo
12:38 levabalkin joined #mojo
12:39 levabalkin left #mojo
13:00 d4rkie joined #mojo
13:13 whitebook joined #mojo
13:18 bowtie_ joined #mojo
13:22 ryozi joined #mojo
13:25 bowtie joined #mojo
13:40 sh4 joined #mojo
13:53 sri oh wow
13:54 sri apparently basho people are searching twitter for mentions of gridfs and try to sell them riakcs :O
13:58 btyler joined #mojo
14:09 bluescreen joined #mojo
14:10 bowtie joined #mojo
14:17 bowtie_ joined #mojo
14:21 whitebook joined #mojo
14:46 rem_lex| joined #mojo
14:47 whitebook joined #mojo
14:57 Dandre Hello
14:57 Dandre How can I specify the certificate used by morbo server?
15:01 basiliscos joined #mojo
15:05 bowtie joined #mojo
15:09 bowtie_ joined #mojo
15:13 Britzel joined #mojo
15:13 * tempire might take another crack at mongo
15:14 russum joined #mojo
15:17 tempire hmm
15:17 tempire firefox phones released
15:18 cfedde release the firehounds!
15:27 sri i need more feedback to decide when to stabilize the mango api, mango needs to be more stable to get users... it's a vicious circle!
15:28 sri eeeeeeeep, spider on my desk
15:29 tempire attack of the web
15:31 sri IT F*CKING GOT AWAY!
15:31 sri now i'll spend the rest of the day looking over my shoulder...
15:34 Vandal is he poisonous?
15:35 whitebook joined #mojo
15:35 sri no poisonous animals in germany
15:38 Vandal even snakes?
15:40 sri just the european viper... which is mostly harmless
15:42 Jonis sri: I saw one of those this year in Norway. Been years since I last saw one/
15:42 Jonis it's like a bee sting, unless you're allergic.
15:44 Jonis got me reading on wikipedia now
15:44 sri yea, nothing worse than a bee sting around here
15:46 Jonis nor here, unless you manage to hit an elk while driving.
15:46 basiliscos joined #mojo
15:46 bowtie joined #mojo
15:46 sri haha
15:47 bjoernfan Oh you guys are lucky, the polar bears on the streets of Stockholm are a bitch.
15:50 bowtie_ joined #mojo
15:55 mire_ joined #mojo
16:00 Jonis bjoernfan: ;)
16:00 Jonis We do have polar bears roaming the streets in Norway, but only on Svalbard
16:06 mire__ joined #mojo
16:10 dod joined #mojo
16:12 Jonis any of you chaps use vim and have some must-have recommendations?
16:12 sri mojo.vim
16:12 * sri rarely uses vim though
16:13 cfedde my favorite vim macro? map! ^O {^M} ^[O
16:14 cfedde ^P is also quite useful.
16:16 sri nnoremap <Leader>t mz:%!perltidy -q<CR>'z:delmarks z<CR>
16:18 Jonis I use perltidy a fair bit, but it annoys me how the auto identation for do-while's are a bit off.
16:19 Jonis then again me and vim don't agree on everything either.
16:20 sri https://github.com/kraih/mojo/blob/master​/lib/Mojolicious/Plugin/TagHelpers.pm#L51
16:20 sri looks fine to me
16:23 dod joined #mojo
16:24 Jonis doesn't do that for me, I'll have to check my .perltidyrc later on.
16:25 dod joined #mojo
16:26 sri try the one bundled with mojolicious
16:27 sri https://github.com/kraih/mo​jo/blob/master/.perltidyrc
16:36 Jonis exactly the same as mine except for pt which is 1 for me. Must be something else I'm doing. I'll figure it out sooner or later, but thanks for your help.
16:44 sri lots of hate for http2 on twitter and hackernews
16:44 sri but it's well deserved
16:45 SmokeMachine joined #mojo
16:53 whitebook joined #mojo
16:57 bd is http2 quic or spdy or somethign different?
16:58 sri hacked up spdy
16:58 sri https://news.ycombinator.com/item?id=6012525
17:02 tianon sri's the real hipster here - he's been publicly dogging on http2 much longer than any of those wannabes :)
17:05 sri \o/
17:05 * sri puts on hipster glasses
17:06 sri when you think about it, the whole "lets rubber stamp it as http/2.0" is a huge red flag
17:07 sri if spdy was so good and necessary, it would also get adopted under the name spdy
17:07 bd hm binary protocol
17:08 sri simple truth is that it wouldn't get widely adopted without the http/2.0 rubber stamp because normal people don't care
17:08 denisboyun_ joined #mojo
17:08 sri it reduces googles operating costs by 10%, for us it doesn't matter
17:09 sri not just binary, also stateful
17:10 sri compression is stateful for the whole session, so you need to capture everything to be able to reconstruct what went over the wire
17:11 bd hm, that may make bug reproduction harder
17:11 sri it's not websocket-ish binary protocol, you can't reconstruct anything without new dev tools
17:11 bd ic
17:12 dvinciguerra joined #mojo
17:22 bowtie joined #mojo
17:23 bowtie_ joined #mojo
17:32 met joined #mojo
17:35 dod joined #mojo
17:39 bowtie joined #mojo
17:48 bowtie_ joined #mojo
18:04 asarch joined #mojo
18:13 bjoernfan A little bit of mojo in my life // a little bit of 'licious by my side // a little bit of morbo's all I need // a little bit of hypnotoad is what I see // a little bit of mango in the sun // a little bit of websockets all night long // a little bit of sri here I am // a little bit of you makes me a man!
18:13 bjoernfan Mambo!
18:17 non joined #mojo
18:18 non ahoi. are there attempts to implement http://tools.ietf.org/html/d​raft-ietf-httpbis-http2-04?
18:18 non maybe outside of mojo
18:28 bpmedley joined #mojo
18:32 BeDa joined #mojo
18:32 SmokeMachine joined #mojo
18:38 sri \o\
18:38 sri /o/
18:39 sri non: https://github.com/kraih/mojo/issues/423
18:40 bpmedley joined #mojo
18:40 non thx
18:42 sri implementing the protocol is rather easy, doubt i would need more than a few weeks, most of the work is the refactoring of mojolicious internals
18:44 sri i still hope a volunteer will do that part :)
18:47 sri hmmmm
18:48 sri tempire's "basically is a useless word" post is right before my "HTTP/2.0 is basically..." post in my facebook timeline...
18:48 * sri pretends he did that intentionally
18:52 bjoernfan sri: Trying to get into mango/mongo by using it for a personal photo blog thing, I could use GridFS to store the photos, right? The files are usually around 512K-1M though.
18:52 denisboyun joined #mojo
18:52 non http://www.geekpage.jp/en/b​log/2013/akamai-http20.php
18:52 sri bjoernfan: once the gridfs api is finished, sure
18:52 non "So, a lot of the attention is at the transport layer. There are bunch of new proposals out there right now. "How do we improve TCP?", and people are even talking about TCP replacement."
18:53 bjoernfan sri: Ok, cool. I'll just store some metadata and reference flickr for now then.
18:56 punter joined #mojo
18:58 punter I've made a module with a method that I call from within route handlers (sends Emails). From within that method, I'd like to access $c (the controller object). Is there a way to achieve this, without passing $c to the method as a parameter?
18:58 punter Is there a way to access $c?
19:01 bjoernfan http://www.flickr.com/explore/panda apparently flickr also has some cool graphics for API testing. :)
19:04 punter I'll just store $c in some our variable somewhere at every request, and access it from my own module
19:06 sri haha
19:12 Adurah joined #mojo
19:36 trone joined #mojo
19:37 denisboyun_ joined #mojo
19:38 bowtie joined #mojo
19:47 bowtie_ joined #mojo
19:57 Adura joined #mojo
20:02 sri wow, blocking delete() and list() were ridiculously simple to add https://github.com/kraih/mango/commit/7​55b80fdcffa361cd30fd220621ec18d6398563d
20:10 dod joined #mojo
20:27 russum joined #mojo
20:27 russum left #mojo
20:35 sri hmm, i guess for open() i could do open($oid) and open('foo.txt', 2)
20:35 sri 2 = version
20:37 perlite joined #mojo
20:54 bowtie joined #mojo
20:54 bowtie_ joined #mojo
21:03 Meiermann joined #mojo
21:25 russum joined #mojo
21:37 lukep joined #mojo
21:38 russum joined #mojo
21:38 russum left #mojo
21:39 bowtie_ joined #mojo
21:39 bowtie joined #mojo
21:43 bluescreen joined #mojo
21:45 alnewkirk joined #mojo
22:03 KindOne joined #mojo
22:03 alnewkirk joined #mojo
23:01 whitebook joined #mojo
23:24 whitebook joined #mojo
23:35 alnewkirk joined #mojo

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