Camelia, the Perl 6 bug

IRC log for #mojo, 2013-02-06

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

All times shown according to UTC.

Time Nick Message
00:02 * xaka wonders what it's gonna be called
00:02 xaka Mongolicious?
00:04 sri a cutesy name completely unrelated to mongodb and mojolicious ;)
00:05 xaka is it based on mojo and it's reactor?
00:05 sri of course
00:05 sri internals are very similar to Mojo::UserAgent
00:06 marty ahhh, so does that mean 'Mongoloid' is not an option?
00:06 xaka yey, in that case i believe (w/o major changes to mojo itself sure) it could make the mojo to become a good platform "against" node.js when people will be writting async modules for everyting
00:06 marty :)
00:07 TitanOfOld joined #mojo
00:07 sri i think the sync api will be more popular
00:07 sri and async an optimization, just like for Mojo::UserAgent
00:07 sri (just look at my paste from earlier)
00:08 sri http://pastie.org/6074294
00:09 sri compare that to the blocking test
00:10 sri http://pastie.org/6075798
00:11 xaka yeah, it's very nice and clean. i'm waiting for the code to see how you've done sync vs async code separation. is it the same approach you used for UA?
00:11 sri exactly the same
00:11 marty The non-blocking is definitly more verbose, but both are very readable.  I might even play with non-blocking for some tasks
00:14 xaka well, if you're not going to use async and have tons of resources like css, images, ..., and your database is slow - it's over and i'm not sure having XXX workers is a good idea to solve the problem. sure you can outsource static to nginx
00:15 Molaf_ joined #mojo
00:27 steveo_mich joined #mojo
00:28 dhg joined #mojo
00:29 egopro joined #mojo
00:39 egopro joined #mojo
00:46 egopro_ joined #mojo
00:51 jzawodn joined #mojo
01:04 sri and $cursor->rewind is also working now \o/
01:04 sri the only unsafe operation i support, since there is no safe alternative
01:05 sri so theoretically, the foundations for other unsafe operations are in place
01:05 sri testing against mongohq is awesome
01:07 hlin joined #mojo
01:09 memowe_ joined #mojo
01:28 ka2u joined #mojo
01:29 biz joined #mojo
01:34 egopro joined #mojo
01:57 crab joined #mojo
01:59 phillipadsmith Just catching up here… what's the test for MongoDB all about? (Clearly, I'm out of the loop!)
01:59 phillipadsmith sri: ^^
01:59 jberger sri is writing his own MongoDB module for Perl
02:00 phillipadsmith Oh, neat. I like the sound of that.
02:00 phillipadsmith No relation to Mojolicious?
02:01 jberger it uses mojolicious
02:01 jberger the IOLoop etc
02:02 d4rkie joined #mojo
02:02 phillipadsmith Sounds like a vote for Mongo over Couch, Rethink, etc., yah? I haven't tried Mongo yet, but I've skimmed the docs…
02:03 sri there are a lot of things about mongodb that annoy me, but it has constantly been the number 1 nosql database
02:03 mst well, it's a vote for the current Mongo module being crap, because it's maintained by the MongoDB people, who're idiots
02:03 phillipadsmith *giggle*
02:03 mst MongoDB is very easy to get started with and very crap when you do anything real with it
02:04 mst it's like MySQL 3.23, except it loses your data more often
02:04 phillipadsmith Oh the humour...
02:05 sri handwaving, yay
02:05 mattastrophe joined #mojo
02:06 phillipadsmith Having only worked with ElasticSearch for "NoSQL" (aka storing JSON documents), I have no opinion on the matter. Just curious, as it's helpful to know what other (smart) people think is worth looking at. Mongo has it's only data format, correct?, some kind of a binary JSON?
02:06 sri what's good enough for the LHC is good enough for me
02:06 marty MongoDB is web scale, I rest my case
02:07 phillipadsmith s/it's/its/
02:07 sri i have yet to see someone present any actually good arguments for why mongodb is fundamentally flawed
02:07 * sri can deal with bad defaults, my mongodb driver does not support unsafe operations, simple
02:07 mst sri: it's ... shoddy.
02:08 mst it's not so much that the concept is awful as all the detail decisions were taken by people who don't understand what they're doing
02:08 mst hilarious things like resizing a capped collection silently dropping all the indices
02:08 mst this is not the level of maturity that I expect out of something I'll trust with data
02:09 mst (the store file pre-allocation system is crazy as well, for another example)
02:09 phillipadsmith I guess the only actual question I have, and it applies equally to Couch and Elastic Search as to Mongo, is: Does running one of these make sense if you're only running *one* and not a cluster of some kind? I've never really managed to get my head around that…
02:10 mst it can, but you tend to want to be really careful because they often need heavy config tweaking to be robust on a single node
02:10 sri those are quirks, not fatal flaws
02:11 mst sri: no, they're evidence of a lack of thought in the design
02:11 mst sri: and I can only come across -so- many examples of the developers making stupid decisions until it becomes very hard to trust -any- of their decisions
02:13 phillipadsmith I like the look of this MongoHQ, however; looks like they handle the single-instance set-up for the inexpensive accounts. Helpful to know. Might give that a try.
02:13 sri developers make stupid decisions, news at 11!
02:15 sri mongodb is really fucking fun to work with, that's good enough for me atm
02:15 mst sri: below a certain level of competence I'd rather keep my production data elsewhere.
02:16 mst mongodb is fine for data that fits in memory that you don't mind losing
02:16 * sri calls bullshit
02:16 sri you have yet to show me a flaw that makes it actually loose data
02:17 mst replication capped collection overflow will do it nicely
02:18 egopro joined #mojo
02:18 memowe_ joined #mojo
02:18 TitanOfOld joined #mojo
02:18 dotan joined #mojo
02:18 rem_lex|pivo joined #mojo
02:18 lukep joined #mojo
02:18 priodev joined #mojo
02:18 yakudza joined #mojo
02:18 laidback_01 joined #mojo
02:18 Miked joined #mojo
02:18 mike_ joined #mojo
02:18 GabrielVieira joined #mojo
02:18 zdk joined #mojo
02:18 tholen joined #mojo
02:18 keedi joined #mojo
02:18 jberger joined #mojo
02:18 Adura joined #mojo
02:18 avenj joined #mojo
02:18 JiYu joined #mojo
02:18 bpmedley joined #mojo
02:18 stephan48 joined #mojo
02:18 DaTa joined #mojo
02:18 marty joined #mojo
02:18 janliesendahl_de joined #mojo
02:18 xxtjaxx joined #mojo
02:18 heytrav joined #mojo
02:18 Annihitek joined #mojo
02:18 Grrrr joined #mojo
02:18 nic joined #mojo
02:18 bizam joined #mojo
02:18 warlock joined #mojo
02:18 Kovensky joined #mojo
02:18 tardisx joined #mojo
02:18 janus joined #mojo
02:18 charsbar__ joined #mojo
02:18 mattp joined #mojo
02:18 tokuhirom joined #mojo
02:18 mtths joined #mojo
02:18 tomi-ru joined #mojo
02:18 gabiruh joined #mojo
02:18 mst or any of the other various problems people have described
02:18 mattastrophe joined #mojo
02:20 mst sri: I've also seen assert() failures take out running production nodes
02:21 mst it ... just ... dies
02:21 mst and then it won't actually read the data file anymore
02:22 sri i've heard the same stories before, i don't care anymore
02:22 mst that's fine, but don't try and call bullshit on something that's happened to a -lot- of users
02:23 mst badly designed code has weird, non-deterministic failure modes
02:23 mst mongodb is a demonstration of that
02:23 sri and yet, you have no linked to anything of substance
02:23 mst you can use google by yourself
02:24 Britzel_ joined #mojo
02:24 sri of course!
02:24 mst and I've already described -actual- production problems
02:24 mst a running server should not -exit- because a query violates an assert()
02:25 mst I don't think SELECT statements generally crash mysql or postgres daemons
02:27 yko joined #mojo
02:34 crab sri: you've heard the stories but don't believe they happened? or you don't think the failures are important?
02:35 crab (i'm blissfully ignorant of mongodb, so i'm just curious)
02:35 sri crab: i don't care about stories, just actual evidence, and so far i've only seen that for older versions
02:36 sri perhaps i've seen so many stupid blog posts about the topic filled with false information that my tolerance for these stories is very high now
02:36 crab as for failing assert()s, postgres backends will also crash when that happens (but usually not the postmaster, so it restarts). it's a different matter that it hardly ever happens.
02:36 marty evidence, sri?  that's asking for a lot
02:37 marty next thing you know you'll be asking to test cases before applying a path.  meh
02:37 marty patch
02:37 sri :)
02:38 sri especially postgresql folks seem to be getting very emotional when it comes to mongodb
02:39 * crab sheds bitter tears over mongodb
02:39 marty I'm amazed at how the nosql/sql discussion has become a religious war with mongodb playing the part of satin himself.
02:39 sri the perfect database to me actually looks more like redis
02:43 * sri is not going to sell mongodb to anyone, but for me atm it's good enough, i know i'll have a lot of fun prototyping all kinds of real-time web apps
02:43 * marty nods
02:44 marty who knows, maybe rethinkdb will be half as good as it hope to be and we can have more choices
02:44 sri yea
02:45 * sri is not a mongodb fan, but a fan of document database with support for ad-hoc queries
02:46 xaka joined #mojo
02:49 * crab glues postgres to redis and produces a cool new db server named regres
02:50 marty I agree.  I'm excited to see mojolicous get a native full stack.  If it's mongo great, if something else makes sense, great.  its-all-great.
02:50 * jberger rewrites postgres in erlang, names it egress and leaves
02:50 marty it's great to here with you all
02:51 marty jberger: lol
02:51 marty this chat room used to have a very active alligator pit.  you've been warned.  :)
02:52 sri our alligator yko seems to be on vacation though :/
02:52 marty :S
03:06 mst sri: hyperdex looked rather interesting to me
03:06 mst sri: also orientdb
03:07 sri all i know about hyperdex is that they make blog posts bashing mongodb rather frequently :)
03:08 sri out of all the "next-gen nosql databases" i think i like rethinkdb the most
03:09 sri the riak architecture is still awesome, but the api kills it
03:14 buu Yay mongodb
03:17 mst sri: I went and read the docs. they appear to have a saner architecture in general.
03:29 * jberger likes the improved look of Galileo: http://galileo-cms.herokuapp.com/
03:32 marty jberger: sweet.  That is looking very nice indeed.
03:33 jberger I'm trying to figure out css fonts, then will be trying to decide on one
03:33 jberger that, plus file uploads and it will be getting closer to useful
03:33 jberger :-)
03:35 sri can't go wrong with helvetica neue
03:36 sri if you want something free Open Sans seems pretty popular
03:37 sri it's what wordpress.com uses
03:39 * jberger looks
03:42 jberger hmmmm
03:42 jberger I think I see a long scroll on google webfonts in my future
03:42 sri better look for blog posts about quality open fonts
03:43 sri smashing magazine has a few good ones
03:43 sri like 99% on google webfonts is rather bad
03:44 jberger http://www.google.com/webfonts/specimen/Rufina
03:45 jberger thanks I'll look for that
03:45 jberger yeah most a rather annoying
03:46 sri http://www.smashingmagazine.com/2012​/01/09/high-quality-free-fonts-2012/ # blog posts like this one
03:50 jberger ETOOMANYFONTS
03:50 jberger I happened to hit on http://www.smashingmagazine.com​/2012/07/20/free-font-round-up/
03:51 * sri used to have a huge font collection... but now tries to reduce it to the absolute minimum
03:52 sri i have maybe 30 typefaces now
03:52 * Caelum hasn't seen the prod 500 page yet
03:52 * Caelum looks
03:53 * sri waits for Caelum to fall off his chair
03:55 _xaka_ joined #mojo
04:01 Caelum :)
04:01 Caelum now the 404 page makes sense!
04:04 jberger perhaps I should use Symbola and be done with it: http://users.teilar.gr/~g1951d/
04:04 jberger according to tchrist it spans unicode
04:06 jberger probably means its rather large
04:06 jberger but it would be rather cool!
04:15 Caelum I install deja vu on all my machines, favorite terminal font
04:15 Caelum (sans mono)
04:18 * sri loves Consolas for hacking
04:49 steveo_mich joined #mojo
05:14 rem_lex| joined #mojo
05:17 ka2u joined #mojo
05:23 arpadszasz joined #mojo
06:04 xaka joined #mojo
06:09 duncanthrax joined #mojo
06:19 Vandal joined #mojo
06:36 spleenjack joined #mojo
06:57 crab i like source code pro
07:09 Mike-PerlRecruiter_ joined #mojo
07:18 mire_ joined #mojo
07:26 yakudza joined #mojo
07:57 dod joined #mojo
08:16 dod joined #mojo
08:23 dod joined #mojo
08:44 alnewkirk joined #mojo
08:50 pierrick joined #mojo
08:51 daxim joined #mojo
08:52 sr joined #mojo
08:56 dhg joined #mojo
08:58 bzero joined #mojo
08:58 bzero Hello :)
09:00 nicomen joined #mojo
09:00 xxtjaxx sri: So plugins only "execute" once? I got somehting like this here http://paste.debian.net/232146/ for my project (also author of M:P:ConfigDir derived from M:P:Config) Which results in one either giamongus config or only one evaluated... *shit*
09:00 xxtjaxx bzero: Hi!
09:01 xxtjaxx crab: maybe its the fontrendering on my box but something about it hurts my eyes
09:03 fhelmber_ joined #mojo
09:11 crab "giamongus"?
09:15 rihegher joined #mojo
09:16 wircus <3 Hume
09:16 wircus best coding font ever ;-)
09:16 xxtjaxx crab: my already huge config and the 5 other huge configs from the dirs are merged into one biggger one
09:16 xxtjaxx (terminus)
09:18 xxtjaxx wircus: Link?
09:18 wircus xxtjaxx: it's private for now :-D
09:18 xxtjaxx wircus: pweeez...
09:18 wircus Made by one of my employees.
09:18 xxtjaxx wircus: employees? Are you runninga  mojolicious business?
09:19 wircus xxtjaxx: you could say that.
09:19 wircus we do other things too, but a lot of mojolicious, yes.
09:19 xxtjaxx wircus: Whats the name of the company?
09:19 wircus https://www.evernote.com/shard/s22/sh/568bfd9d-e88​7-4a53-b9af-db0dc4d5bbe4/77ca5594b9a9d340ab4e6c9bc​2432743/deep/0/Screenshot%2006.02.13%2010:18.jpg # Hume
09:19 wircus xxtjaxx: Nordaaker.
09:19 mst xxtjaxx: marcus' crew
09:19 mst xxtjaxx: I'm surprised you haven't heard of 'em
09:20 wircus xxtjaxx: http://nordaaker.com/
09:20 xxtjaxx mst: Huh?
09:20 xxtjaxx mst: Hi anyway
09:21 mst xxtjaxx: marcus. ramberg. MRAMBERG. is part of nordaaker.
09:21 mst wircus: apparently I thought you were more famous than you are
09:21 mst wircus: hopefully you can enjoy that as a compliment ;)
09:21 wircus mst: don't worry, I've no idea who xxtjaxx is either ;-)
09:23 xxtjaxx mst: Nope not heard of him... Probably because I'm too hunkered down on my projects at the moment. I don't take much of a breather for admiring people much.
09:24 mst xxtjaxx: it's not about admiring people, it's about knowing something about the people maintaining/releasing your web framework
09:24 mst or maybe you don't care about that, but if you don't care about Mojolicious I'm not sure why you're here
09:24 xxtjaxx mst: hm shamefully I have to admit that I havent paid much attention to that :(
09:25 mst xxtjaxx: it happens
09:25 mst xxtjaxx: but 'admiring people' wasn't very fair ... and neither was my accusing you of not caring.
09:26 xxtjaxx mst: I'm mostly idling here unless I did something stupid with my Mojolicious Apps again.
09:26 mst xxtjaxx: so we're 1 for 1 on dick moves. let's call it a score draw and not worry about it :)
09:26 wircus I'm into open source for all the admiring.
09:26 wircus And the hot girls and the free booze
09:26 xxtjaxx wircus: :)
09:26 xxtjaxx mst: want a hug? :]
09:27 mst xxtjaxx: that depends on from whom :D
09:28 xxtjaxx wircus: I don't know if its laughable in size or anything but https://github.com/andreas-marschke/nagplot would that count for an application? :)
09:28 steveo_mich joined #mojo
09:29 ver joined #mojo
09:30 xxtjaxx wircus: Currently working on the dashboard designer of it so most is still in flux I guess I'll definitely stay with the way the backend is designed right now.
09:37 xxtjaxx Creating an intuitive design for an Application like this feels complicated at first but after a little brainstorming isn't that terrible.
09:43 Miked joined #mojo
09:48 mire_ joined #mojo
09:49 mugenken joined #mojo
09:55 xxtjaxx also missing a bunch of sources. I definitely want to write some for NRPE (having implemented NRPE in perl) and a couple of REST apis from the net(Twitter,G+,FB for marketing purposes and sum such) most importantly though I want to deploy it at my current employer so Support-Folk don't feel too dumbfounded when they're confronted with slow servers.
10:16 lukep joined #mojo
10:19 rhaen_http joined #mojo
10:20 rhaen_http good morning everyone.
10:22 xxtjaxx rhaen_http: Hi!
10:29 ComLock joined #mojo
10:37 venomo joined #mojo
10:48 spleenjack joined #mojo
10:55 ryozi joined #mojo
10:56 SmokeMachine joined #mojo
11:03 vervain joined #mojo
11:28 marty moin yall
11:37 GabrielVieira joined #mojo
11:51 vervain \o marty
12:04 ACE joined #mojo
12:06 ACE nice too meet you guys ! I am Japanese Perl Programmer !   I have a question to Mojolicious::Lite.   I hope disabled template cache. idea for me plz
12:17 marty Hi ACE:  Are you using morbo?
12:18 ACE hi!
12:18 ACE i am using starman
12:19 ACE this problem is nothing to do with mojolicious::Lite ?
12:19 crab what is the problem?
12:19 marty this might help.   http://mojolicio.us/perldoc​/Mojolicious/Lite#Reloading
12:19 biz joined #mojo
12:20 marty I'm not sure if that is what you are looking for, but it's a guess.  :)
12:21 ACE thank you!  but i dont use morbo
12:23 ACE I thank you for reading it through!
12:27 vervain ACE: Why do you want to disable template caching?
12:27 vervain And I may ask why a few times until we really understand the problem.
12:36 whee joined #mojo
12:36 whee joined #mojo
12:48 mire_ joined #mojo
12:53 wircus xxtjaxx: It looks pretty sweet.
13:01 SmokeMachine joined #mojo
13:13 moltar joined #mojo
13:20 d4rkie joined #mojo
13:26 sri \o
13:29 trispace joined #mojo
13:32 inokenty joined #mojo
13:35 gryphon joined #mojo
13:39 Miked joined #mojo
13:45 sri and released! https://github.com/kraih/mango
13:45 * sri pokes marty
13:47 marty \o/
13:47 marty sri+++
13:47 jberger sri+=2
13:47 diegok sri++
13:47 sri just remember, it's early alpha :)
13:48 sri things will explode
13:48 GabrielVieira finally!
13:48 GabrielVieira haha
13:48 GabrielVieira sri++
13:48 marty Ahhh, mango.  cute
13:50 Britzel joined #mojo
13:50 jberger not the best but here goes: http://www.youtube.com/watch?v=RxQwKW7Y0tc
13:51 jberger NO TOUCHA THA MANGO
13:52 GabrielVieira no more mango for you
13:52 GabrielVieira argh
13:55 wircus sri++
13:55 wircus mango mango mango
13:56 wircus sri: also, damn you for releasing interesting stuff while I'm on a tight deadline ;)
13:56 sri \o/
13:57 trispace say one would like to use an AF_UNIX socket in Mojolicious (for controlling the Mojolicious app, for example). How would I add the socket to the Mojo::IOLoop?
14:00 GabrielVieira humm.. pod is much more complete then readme
14:01 GabrielVieira {anonymous donor}++
14:02 * sri hopes the disclaimer is enough https://github.com/kraih/mango​/blob/master/lib/Mango.pm#L341
14:05 GabrielVieira sri: in the insert method you use the same example from the delete one
14:06 sri oops
14:06 GabrielVieira the same to update
14:07 nic joined #mojo
14:13 cosimo joined #mojo
14:16 marty 5112658cacd47a584d010000  - for posterity, that is my first objectId using mango!  Wooo hoooo
14:17 sri \o/
14:19 GabrielVieira hahaha
14:19 GabrielVieira marty++
14:20 Akron joined #mojo
14:22 arthas joined #mojo
14:27 marty I wonder what's the best option, a plugin or helper to get at $self->mango
14:32 marty a helper works just fine.  Then I can do - % my $oid = mango->db
14:35 sri marty: i'm not sure about that yet, i think it's not uncommon to want multiple mango instances per process
14:35 sri so i think it's best to wait and see, before making a plugin
14:35 * marty nods
14:36 Akron sri++ for Mango (but won't this conflict with Mango on cpan?)
14:36 sri mango on cpan?
14:36 * sri owns the Mango namespace
14:36 Akron http://search.cpan.org/~claco/​Mango-0.01000_13/lib/Mango.pm ?
14:36 sri how odd
14:37 sri i got the index as first-come
14:37 sri s/index/namespace/
14:37 sri he might have never uplaoded a stable release
14:37 Akron Oh - right. Only _X releases.
14:38 labrown joined #mojo
14:38 sri i searched the pause database, had no idea that Mango existed
14:39 jberger http://blogs.perl.org/users/ovid/2​013/02/perl-7.html#comment-355160
14:39 jberger first web mention?
14:40 sri jberger: reminds me of http://blog.kraih.com/lets-​just-drop-the-5-from-perl-5
14:40 sri :)
14:40 jberger yeah, thats been mentioned too
14:41 sri it's unimportant though
14:41 jberger I also once had a backpan dist on a namespace I was releasing too, I'm trying to remember which
14:41 jberger it never hurt me though
14:42 sri now marketing is not our biggest problem anymore, but the shrinking pool of people that can work on the perl5 core
14:42 jberger https://metacpan.org/release/Math-Mathematica
14:42 jberger see the version selector on the side
14:42 jberger sri: I understand that, but how do we bring in those people if those people will go to Ruby since Perl is dead
14:43 sri a vicious cycle
14:43 jberger here is an example in this chatroom, how many people could write a reimplementation of a DB driver, just because he didn't like the first one. I couldn't
14:43 bluescreen joined #mojo
14:43 jberger I'm glad you are in the Perl community, you might have easily moved to Python
14:44 jberger there are more of you out there that did choose node/next big thing
14:44 mire_ joined #mojo
14:44 jberger Perl wont get that until it shakes the spectre of Perl 6
14:44 * sri likes real lambdas and curly brackets
14:45 * jberger does too
14:45 * nicomen agrees
14:46 nicomen we need to take the few things people still criticize perl for and 1) fix it or 2) market it as something good
14:46 jberger yes I think there are some opportunity for breaking going to Perl 7
14:46 jberger drop the ' namespace separator
14:46 ACE I hope diable renderer cache(Mojolicious::Lite) .   do you know a method ? plz teach me
14:47 nicomen it's very hard for me to work in any other language actually, because everything else is just harder (not necessarily more difficult, just more work)
14:47 jberger drop indirect object syntax (special case (s)print(f))
14:47 sri haha, ' is about as harmless as it gets, indirect object syntax on the other hand...
14:47 nicomen there was some perl effort to do that at some point
14:48 nicomen also, it would be nice to change perl enough to get back the moe guys ;)
14:48 sri jberger: you might like the Moe project
14:48 jberger I might, except if it succeeds it kills PDL
14:49 jberger there is literally no one who could port PDL to Java/whatever
14:49 dhg joined #mojo
14:49 jberger hacking on the PDL core is insane (we've been gearing up for it for years!)
14:54 nicomen http://www.perlmonks.org/?node_id=730203
14:56 dotan jberger: I think PDL has a Fortran compiler as a perquisite, doesn't it?
14:56 jberger no
14:57 jberger only if you want to use certain fortran libraries or plot using PGPLOT (the old standard)
14:57 dotan Ah.
14:57 jberger PDL has lots of optional deps
14:58 dotan It's like BioPerl in that regard, I think.
15:00 dotan sri: this is probably a FAQ, but do you have any tool for generating your POD boilerplate?
15:05 sri dotan: no
15:06 jberger mojo boilerplate [filename]
15:07 dotan :)
15:10 Molaf__ joined #mojo
15:10 rihegher left #mojo
15:16 dhg joined #mojo
15:19 mattastrophe joined #mojo
15:22 ACE Does someone use Mojolcious::Plugin::TtRenderer ?
15:31 rihegher joined #mojo
15:46 laouji joined #mojo
15:47 * sri wonders if travis tests with a 32bit perl :/
15:49 nelio joined #mojo
15:50 sri https://travis-ci.org/kraih/mango/jobs/4617257
15:50 sri those results are just weird
15:50 sri https://travis-ci.org/kraih/mango/jobs/4617254
15:57 dhg joined #mojo
15:58 rihegher left #mojo
16:16 sri jberger: btw. there's a discussion about Perl 7 on p5p now
16:17 sri summary: most seem to agree on Perl5 v20.0, haha
16:18 nelio joined #mojo
16:27 marty sri;  any batch insert in this release?
16:28 sri marty: ->insert([{...}, {...}])
16:28 sri :)
16:29 marty sri++  \o/
16:29 marty so far things are working well.
16:29 sri but that reminds me, i have no size limits yet :o
16:29 * marty inserts the world
16:30 sri good thing i made sort work yesterday, because my BSON serializer had a huge bug that prevented nested documents :)
16:30 marty I'm just about ready to start playing with sort
16:32 jberger sri: Perl5 v 20 still doesn't say "Perl 6 isn't going to replace me"
16:32 Miked joined #mojo
16:33 jberger Perl 7.0 says that
16:33 sri jberger: D is not replacing C :p
16:34 bzero joined #mojo
16:34 jberger tell that to the people on /r/perl
16:34 jberger and not the people who's names we know
16:36 jberger tell you what, we take Perl 7, and the Perl 6ers can be Derl
16:36 jberger or SuperPerl or something
16:36 sri after P comes E, so it's Eerl
16:36 sri umm
16:37 sri Qerl
16:37 jberger sure that too :-P
16:38 jberger as in any kingdom, having your successor hanging around diminishes your cache'
16:38 jberger it doesn't matter if Perl6 is not the successor, it looks like it is from the outside
16:38 jberger it also looks like its never coming
16:39 jberger our successor is here and it doesn't work, their (py, rb, etc) is here already, lets look at them
16:39 jberger nm, I'm rambling nwo
16:40 sri :)
16:40 sri preaching to the choir
16:41 * jberger is aware and is sorry
16:41 * sri agrees with http://blogs.perl.org/users/ovid/2​013/02/perl-7.html#comment-355159
16:42 sri changing the versioning will get you press, but without something to show it won't be good press
16:44 * sri thinks he'll write a how to prevent callback spaghetti blog post about mango and ioloop delays
16:49 marty sri:  is there a better way to get record counts than @{$cursor->all}
16:49 sri not yet
16:49 marty ok
16:49 marty thx
16:49 sri ->explain and ->count are on top of my todo list, together with delete and update flags
16:49 * marty is having fun
16:55 rem_lex|pivo joined #mojo
16:56 mattastrophe joined #mojo
17:06 xaka joined #mojo
17:07 dhg joined #mojo
17:11 marty no wiki on mango?  :(
17:12 marty I have a little cheatsheet I was going to put on the wiki as a quick starter.
17:20 baton8 joined #mojo
17:29 nelio joined #mojo
17:30 sri marty: i see the wiki
17:31 sri is it private by default or something?
17:31 marty ok.  got it now.
17:39 andrefs joined #mojo
17:39 mugenken joined #mojo
17:41 andrefs joined #mojo
17:42 * sri has still not figured out why mongodb has 3 names for error messages
17:42 sri $err, err and errmsg
17:43 andrefs joined #mojo
17:45 marty A little gist for anyone trying to get going with mango and mojo.  https://gist.github.com/MadMartigan/4724311
17:45 xaka are you sure it's not $err, code and errmsg? $err is a boolean just to check if the error has happened, code is error code and errmsg is string representation of error code
17:45 mugenken joined #mojo
17:45 sri xaka: 100% sure
17:45 sri i've implemented the whole protocol, i've seen them all
17:46 yakudza joined #mojo
17:46 sri $err holds an error message when authentication fails for example
17:46 marty sri:  maybe some sort of historical leftover?
17:46 sri or rather, when you send a query that's not authorized
17:47 sri marty: possibly
17:48 sri see also this mess https://github.com/mongodb/mongo-perl-driver​/blob/master/lib/MongoDB/Collection.pm#L617
17:49 * marty is not {ok} with that
17:49 sri marty: btw. you like how sorted hashes work?
17:50 marty have not yet tried it, sri.  Am going there now.
17:50 marty what should I be looking for?
17:50 andrefs joined #mojo
17:51 sri yea, i guess examples are still a bit weak :)
17:51 sri https://github.com/kraih/mango/bl​ob/master/lib/Mango/BSON.pm#L417
17:51 sri that's basically it, just a tied hash with a function as constructor
17:52 sri use Mango::BSON ':bson'; my $doc = bson_doc foo => 'bar', baz => 'yada'; say for keys %$doc;
17:52 marty oh, that looks very nifty.  I think I'll use that.  :)
17:54 sri gotta love gems like this in the official driver https://github.com/mongodb/mongo-perl-driv​er/blob/master/lib/MongoDB/Cursor.pm#L206
18:36 basic6 joined #mojo
18:47 xaka joined #mojo
19:08 Mike-PerlRecruiter_ joined #mojo
19:21 marty sri:  here is some feedback on mango.  The conversion from the old driver to mango was pretty easy.  Just a few syntax changes.  with the exception of ->count and ->ensure_index I have not had any issues.
19:22 marty I have no test yet, but so far it feel pretty snappy.
19:22 marty sri++
19:22 priodev joined #mojo
19:22 sri \o/
19:22 sri i'm mostly worried about exception handling atm
19:22 jnbek^dt joined #mojo
19:23 sri count and ensure_index are actually just commands, you could theoretically already run manually ;)
19:23 dhg joined #mojo
19:23 marty ahh, I'll try
19:33 alester joined #mojo
19:38 * sri is trying to make the internals more readable
19:39 dhg joined #mojo
19:39 sivoais joined #mojo
19:40 mugenken joined #mojo
19:41 sri https://github.com/kraih/mango/commit/e​3240030f31859fe33192247c5ccf018ecc92d3f
19:41 sri that should be a big step forward
19:43 marty sri++  big commit
19:45 sri not sure if the protocol (build) api should be hash based too
19:45 sri https://github.com/kraih/mango/blo​b/master/lib/Mango/Protocol.pm#L80
19:45 sri those are a lot of arguments... but they are all required
19:47 marty ya, it's on the border of which way to do it.
19:47 sri they also won't ever change, since the packet format is static
19:47 sri just things like flags will be added
19:48 marty It's not unreadable as-is
19:49 sri it's more about other apis depending on it
19:49 sri https://github.com/kraih/mango​/blob/master/lib/Mango.pm#L516
19:49 sri (not like any enduser will ever touch those)
19:49 sri but still
19:51 * sri is also looking for ways to make MANGO_DEBUG=1 more fun
19:55 BeDa joined #mojo
19:56 xaka joined #mojo
20:12 sivoais joined #mojo
20:13 dhg joined #mojo
20:14 sri btw. anyone know what's the best way to require a 64bit Perl in the Makefile.PL?
20:15 sri because i'm pretty sure this isn't it :) https://github.com/kraih/mang​o/blob/master/Makefile.PL#L9
20:21 steveo_mich joined #mojo
20:35 lukep joined #mojo
20:43 sr joined #mojo
20:51 KindTwo joined #mojo
21:00 xaka joined #mojo
21:19 sri hmm, the official way to check for quad support seems to be ($Config{use64bitint} eq 'define' || $Config{longsize} >= 8)
21:24 good_news_everyone joined #mojo
21:24 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/LgPH2g
21:24 good_news_everyone mojo/master d9fdae4 Sebastian Riedel: better test for quads
21:24 good_news_everyone left #mojo
21:47 good_news_everyone joined #mojo
21:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/7ivueQ
21:47 good_news_everyone mojo/master 60c4bcb Sebastian Riedel: better test for quads
21:47 good_news_everyone left #mojo
22:02 sri so, use64bitint means that perl will emulate quad support apparently
22:02 * sri wonders if that works on 32bit windows perl
22:02 sri s/t/g/
22:04 * marty really like ->remove()
22:06 sri REMOVE ALL THE THINGS!
22:08 laidback_01 joined #mojo
22:08 sri looks like travis doesn't compile perl with support for quads :(
22:09 sri https://travis-ci.org/kraih/mango/jobs/4627487
22:19 sri ah, travis is "planning" a migration to 64bit vm's
22:54 Averna joined #mojo
22:55 good_news_everyone joined #mojo
22:55 good_news_everyone [mojo] kraih pushed 2 new commits to master: http://git.io/14ksEw
22:55 good_news_everyone mojo/master 3605813 chromatic: Clarified param() documentation...
22:55 good_news_everyone mojo/master 1a70da3 Sebastian Riedel: Merge pull request #450 from chromatic/master...
22:55 good_news_everyone left #mojo
22:59 good_news_everyone joined #mojo
22:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ZwLb9A
22:59 good_news_everyone mojo/master c659eb9 Sebastian Riedel: comment tweaks
22:59 good_news_everyone left #mojo
23:14 good_news_everyone joined #mojo
23:14 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/subZng
23:14 good_news_everyone mojo/master eff7e8d Sebastian Riedel: fixed custom temporary directory bug in Mojo::Asset::File
23:14 good_news_everyone left #mojo

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