Camelia, the Perl 6 bug

IRC log for #mojo, 2013-07-15

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

All times shown according to UTC.

Time Nick Message
00:21 abra joined #mojo
00:21 asarch joined #mojo
00:24 sivoais joined #mojo
01:17 sivoais joined #mojo
01:23 asarch joined #mojo
01:54 sivoais joined #mojo
03:10 dotandimet joined #mojo
03:24 egopro joined #mojo
03:29 jnbek joined #mojo
03:36 egopro joined #mojo
03:48 keedi joined #mojo
03:53 preflex_ joined #mojo
03:54 d4rkie joined #mojo
04:02 egopro joined #mojo
04:07 egopro joined #mojo
04:25 mrphilov joined #mojo
04:35 sivoais joined #mojo
04:39 cooper joined #mojo
04:51 dod joined #mojo
05:16 dod joined #mojo
05:17 egopro joined #mojo
05:26 rem_lex joined #mojo
05:40 egopro joined #mojo
05:42 sivoais joined #mojo
05:50 Britzel joined #mojo
06:06 egopro joined #mojo
06:16 nicolaas joined #mojo
06:30 sivoais joined #mojo
06:30 Mike-PerlRecruiter_ joined #mojo
06:37 russum joined #mojo
06:40 tm joined #mojo
06:41 russum left #mojo
06:55 dod joined #mojo
07:03 kamu joined #mojo
07:06 dod1 joined #mojo
07:17 egopro joined #mojo
07:21 maxhq joined #mojo
07:25 trone joined #mojo
07:38 Vandal joined #mojo
07:41 ladnaV joined #mojo
07:46 dpetrov_ joined #mojo
08:28 yakudza joined #mojo
08:38 jzawodn joined #mojo
08:49 mrphilov joined #mojo
09:02 rem_lex joined #mojo
09:04 Vandal joined #mojo
09:23 jegade left #mojo
09:38 fhelmber_ joined #mojo
09:52 yakudza joined #mojo
10:17 kealan joined #mojo
10:20 iSlug joined #mojo
10:28 perlite joined #mojo
10:31 mrphilov joined #mojo
10:39 punter joined #mojo
10:50 russum joined #mojo
10:50 russum left #mojo
11:27 russum joined #mojo
11:52 russum joined #mojo
11:52 russum left #mojo
12:23 ryozi joined #mojo
12:42 whitebook joined #mojo
12:45 doby joined #mojo
12:50 asarch joined #mojo
12:53 russum joined #mojo
12:53 russum left #mojo
12:58 bowtie joined #mojo
13:02 KindOne joined #mojo
13:08 cosmincx joined #mojo
13:15 bowtie joined #mojo
13:16 kealan joined #mojo
13:18 bluescreen joined #mojo
13:27 shmuel joined #mojo
13:30 dod joined #mojo
13:37 punter joined #mojo
13:57 rem_lex|pivo joined #mojo
13:59 sh4 joined #mojo
14:01 sh4 joined #mojo
14:07 mrphilov joined #mojo
14:11 hrupp_ joined #mojo
14:21 kamu joined #mojo
14:36 cosmincx joined #mojo
14:43 russum joined #mojo
14:46 russum left #mojo
14:56 d4rkie joined #mojo
15:16 c-- joined #mojo
15:18 c-- What's wrong with my system (after an update), using 'use Mojo::JSON 'j'': Can't locate j.pm in @INC at /usr/share/perl5/Mojo/Base.pm line 32
15:25 rihegher joined #mojo
15:27 mst c--: please don't cross spam channels and then not tell anybody when you're already being helped elsewhere
15:27 sri mst++
15:31 c-- mst: sorry, i'm good now, my version is too old
15:31 mst c--: I know, I'm the one who told you that :D
15:32 Britzel joined #mojo
15:33 * marty wonders if having the ability to pass a time value to Mango::BSON::ObjectID->new; would be helpful.
15:38 marty example:    ->find({_id => {'$gte' => bson_oid(time => time - 31536000)}});
15:43 whitebook joined #mojo
15:45 sri Mango::GridFS::Writer is now fully non-blocking \o/
15:45 sri which was the hard part, everything else is trivial :)
15:46 sri <3 delays https://github.com/kraih/mango/commit/81fb​ee8e539e2c8fad631b7da8b9b13b309f6165#L1R32
15:47 sri half way there now https://github.com/kraih/mang​o/blob/master/t/gridfs.t#L36
15:50 whitebook joined #mojo
15:50 sri marty: you can make your own _id's with whatever information you like
15:52 marty sri++   I've downloaded the new mango and so far it appears to be working great.
15:52 sri once gridfs is done i think we are mostly feature complete for 1.0
15:53 sri resolving dbrefs might be nice, but i have no clue yet how it will fit in... so leaving that for later when someone comes up with a sensible idea
15:54 whitebook1 joined #mojo
15:57 bowtie joined #mojo
15:59 kmx joined #mojo
15:59 crab sri: cool
16:04 bluescreen_ joined #mojo
16:12 sh4|2 joined #mojo
16:15 mst batman: you about, dude?
16:15 denisboyun joined #mojo
16:22 marty I've never really given dbrefs much consideration.  I've just been handling them manually.
16:22 dod joined #mojo
16:22 marty .... and trying to embed as much as practical.   :)
16:24 gryphon joined #mojo
16:25 sri yea, i imagine resolving them automatically could get quite annoying too when you want to update stuff
16:25 sri perhaps something like $collection->resolve($doc) or so, which walks the structure and resolves whatever it finds
16:26 sri or rather $db->resolve($doc), since dbrefs are db level
16:27 sri no wait, these days they are root level :o
16:27 sri $mango->resolve() ;p
16:28 sri {'$id' => 'object_id', '$db' => 'some_database', '$ref' => 'some_collection'}
16:28 sri that's how they look now
16:28 marty Yep, and order is important.
16:29 sri ah, some drivers also do my $doc = $mango->dereference($dbref)
16:29 sri that seems quite convenient
16:30 sri ah, $db is optional
16:30 sri so it's my $doc = $db->dereference($dbref)
16:31 marty now that looks pretty nice.
16:32 marty I'd have to think about for a while to come up with a good use case versus manual referencing.
16:34 sri fun to use the connection pool to do things concurrently https://github.com/kraih/mango/blob/m​aster/lib/Mango/GridFS/Writer.pm#L34
16:36 sri now doing that for insert and ensure_index with gridfs
16:36 delias joined #mojo
16:36 marty omg that's insane!  :p   I'll definitely be using the non-blocking features asap.
16:42 bowtie joined #mojo
16:42 sri it looks really clean when you compare it to the node.js version :) https://github.com/mongodb/node-mongodb-nativ​e/blob/master/lib/mongodb/gridfs/gridstore.js
16:43 met joined #mojo
16:47 denisboyun joined #mojo
17:08 punter joined #mojo
17:11 met joined #mojo
17:13 whitebook joined #mojo
17:21 dvinciguerra joined #mojo
17:25 yakudza joined #mojo
17:27 bowtie_ joined #mojo
17:30 moltar joined #mojo
17:56 trone joined #mojo
18:23 bowtie joined #mojo
18:30 Mike-PerlRecruiter_ joined #mojo
18:31 bowtie_ joined #mojo
19:03 bowtie joined #mojo
19:04 bowtie_ joined #mojo
19:07 met joined #mojo
19:09 kealan joined #mojo
19:14 prk joined #mojo
19:15 sri Mango::GridFS::Reader is now also non-blocking \o/
19:20 HtbaaPi for some reason Morbo is leaking memory like crazy every time a file changes. Running it on Windows 7 and 8 with Strawberry Perl 5.16.2
19:21 sri hahahahahaha
19:22 HtbaaPi not funny ;P. Worrysome
19:22 sri take a minute to think about how morbo and windows fork work
19:24 HtbaaPi I'm not too familiar with that kind of stuff. But I bet it's messed up enough that it doesn't release memory :)
19:26 sri it's basically a miracle morbo works as well as it does on windows
19:28 HtbaaPi haha
19:28 HtbaaPi it also responds really slow on ctrl+c to terminate it. Really annoying. But I get by :)
19:28 sri well, if you know a better self-restarting dev server for windows use that ;p
19:30 HtbaaPi at the moment no. I think plackup has support for that. But I'm too lazy to look into that. Restarting morbo isn't required often
19:31 sri i said better ;p
19:31 marty non-blocking mango stuff is a game-changer.   Soooo may possibilities.
19:31 cooper joined #mojo
19:31 marty s/may/many/
19:32 sri such a versatile database too
19:32 marty yes.  the more I play with it the more I like it.
19:32 sri i wonder if mango would benefit much from tokumx
19:33 sri concurrent writes could be amazing with it
19:33 sri mvcc, fractal trees and all
19:34 marty I suppose for supper high performance tasks it would have a place.  so far, I've not taxed mongo that much.   As long as my indexes are created correctly, it just goes.
19:35 sri it also fixes other annoyances, like ever growing memory usage
19:35 marty ahhh, that could be the main reason there.
19:35 marty large mongo instances are, well.... large
19:35 sri also compression
19:36 marty that would also be a good thing since mongo does not do key compression.
19:36 sri yea
19:36 sri http://www.tokutek.com/2013/07/tokumx​-fractal-treer-indexes-what-are-they/ # fractal trees are not even very complicated
19:37 * marty does the schemeless dance...
19:37 * sri is a sucker for interesting articles about database internals
19:40 marty that is very interesting.   having consistent write performance is a very compelling feature for sure.
19:43 sri i really hate exception handling for non-blocking compound operations :/
19:43 sri they are so hard to test
19:47 marty lets go shopping!
19:47 sri \o/
19:52 sri non-blocking delete() also added
19:52 sri just list() left from the original api, and then the convenience additions
19:53 whitebook joined #mojo
20:00 sri and done with the basic gridfs api
20:00 sri \o\
20:00 sri /o/
20:01 sri gonna have to figure out how to handle filenames
20:10 amirite joined #mojo
20:14 dotandimet joined #mojo
20:17 russum joined #mojo
20:17 russum left #mojo
20:39 gryphon joined #mojo
20:44 rihegher left #mojo
20:46 sri seek() and tell() also added
20:56 gtodd joined #mojo
21:08 delias joined #mojo
21:08 bowtie joined #mojo
21:11 rem_lex| joined #mojo
21:12 bowtie_ joined #mojo
21:22 cfedde joined #mojo
21:27 cfedde I have an entity encoded string: "&lt;?xml version=&quot;1.0&quot;..." I'd like to convert it into a DOM object.  What is the easy way to do that?
21:27 bowtie joined #mojo
21:35 bowtie_ joined #mojo
21:40 lukep joined #mojo
21:48 bowtie joined #mojo
21:50 cfedde Mojo::Util::html_unescape()
21:55 moltar joined #mojo
21:55 bowtie_ joined #mojo
22:29 moltar joined #mojo
22:29 sri now things are getting interesting https://github.com/kraih/mango/commit/e​7b00fb61bbb5592ec09667895650543c40feb0e
22:30 sri also fun my $oid = $gridfs->writer->filename('tes​t.txt')->write('One')->close;
22:37 sri think i'll do my $data = $gridfs->reader->open_version('test.txt', 2)->slurp; as well
22:39 bowtie joined #mojo
22:50 dji joined #mojo
22:54 bowtie_ joined #mojo
22:55 bowtie joined #mojo
22:58 whitebook joined #mojo
23:11 tianon sri++!  \o/
23:14 sri and slurp method added too :D https://github.com/kraih/mango/commit/0​b42d165d51b776f20f9d87d011e77bdd596eb5b
23:18 sri not sure about open_version yet
23:18 sri but my $data = $gridfs->reader->open($oid)->slurp; works
23:19 sri and find_version is now a Mango::GridFS method
23:19 sri soooo
23:20 sri my $data = $gridfs->reader->open($gridf​s->find_version('test.txt', 2))->slurp;
23:20 sri works too
23:44 bowtie joined #mojo
23:44 bowtie_ joined #mojo
23:45 dvinciguerra joined #mojo
23:52 jberger sri++ slaying features!

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