The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2016-02-27

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

All times shown according to UTC.

Time Nick Message
00:00 good_news_everyon joined #mojo
00:00 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v2ggH
00:00 good_news_everyon mojo/master a33189a Sebastian Riedel: bring back throw method
00:00 good_news_everyon left #mojo
00:00 sri jberger: you realize that's literally the same version i removed? -.-
00:00 jberger yep :-P
00:00 Grinnz_ CandyAngel: wireless mouse?
00:01 CandyAngel Grinnz_: Nope, wired.
00:01 Grinnz_ ok, then gremlins
00:01 sri i hear gremlins wake up around 7pm
00:01 jberger but we did work through the contentious issues to get there
00:01 CandyAngel :P
00:01 jberger instantiation and inspect
00:02 CandyAngel It's probably something weird, like the ambient temprature of the room and a touch-and-go microswitch
00:02 bpmedley CandyAngel : Any cron jobs that run?
00:02 CandyAngel temperature*
00:03 CandyAngel What? /usr/bin/toggle_drop_most_b1_events.sh?
00:03 jberger CandyAngel: https://xkcd.com/1172/
00:03 Grinnz_ https://xkcd.com/1084/
00:03 Grinnz_ more relevant!
00:04 sri while everyone is here, vote on this https://github.com/kraih/mojo/pull/921
00:04 sri jberger: so, now should i aim for a quick release with ->throw, or wait to let more people take a look?
00:05 sri now with tests the current impementation will be much harder to change
00:05 jberger any consideration of the ->new(@_) method?
00:06 jberger s/method/form/
00:06 sri seems pointless
00:06 jberger not if we added data
00:06 sri then we can change that too
00:06 mattp is anyone here familiar with jsonb with postgres? have some quick newb questions
00:08 jberger sri: so I guess in that case I don't see why not release, we only lock ourselves in to what we do with the first two arguments
00:08 jberger I'd lean towards a fast release so as not to arbitrarily break people for no reason if it isn't likely to change
00:08 jberger mattp: not personally but there are people who use postgres here
00:08 jberger I don't know how many are using jsonb yet
00:09 jberger but certainly it has been discussed excitedly
00:09 mattp just trying to understand how the indexing works; ie can you have a 'json_table' that indexes documents of all kinds
00:09 mattp then filter on a subset that match what you query?
00:10 good_news_everyon joined #mojo
00:10 good_news_everyon [mojo] kraih tagged v6.50 at 6e1c61c: https://git.io/v2gaC
00:10 good_news_everyon left #mojo
00:11 good_news_everyon joined #mojo
00:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v2gVG
00:11 good_news_everyon mojo/master 792dccc Sebastian Riedel: bump version
00:11 good_news_everyon left #mojo
00:12 sri no, you can only index specific values
00:14 sri not that i needed it yet, i only use jsonb for unstructured data
00:14 mattp sri: sorry, can you expand? unstructured = not indexed
00:14 mattp so you can do the same json_ops queries, but its a table scan?
00:14 sri i rarely query on jsonb
00:15 sri look at minion
00:15 sri it uses jsonb columns for arguments passed to jobs and the job result
00:15 sri everything else is normal columns
00:16 jberger did 9.5 add jsonb modifications in-place?
00:16 jberger I seem to recall that was a missing feature
00:16 jberger maybe I'm remembering wrong
00:17 sri you can
00:17 sri lots of functions http://www.postgresql.org/docs/9.5/static/functions-json.html
00:18 sri not sure what in-place means though, postgres is mvcc, nothing is really in-place i believe
00:19 jberger jsonb_set
00:20 jberger that's what I was looking for and it seems to not be in 9.4, so maybe I did remember it right
00:22 acamari joined #mojo
00:22 sri 9.5 got lots of new functions for jsonb
00:23 jberger \o/
00:24 jberger I don't see how anyone could defend mongo anymore
00:27 sri mattp: anyway, you can do many different kinds of indexes on your jsonb columns
00:28 mattp sri: my usecase is i have a bunch of different 'types' of documents, but within the types the structure is similar. can i throw that in one big table with a GIN index?
00:28 jberger I think I'm gonna go see Force Awakens again tonight
00:29 mattp or do i need a table & index per type
00:29 jberger rather than sit around at home
00:29 mattp jberger: good flick for a friday night :)
00:29 sri mattp: that's really a question for #postgresql
00:29 mattp sri: fair enough. thanks
00:33 sri i've never actually used postgres as a pure document database btw.
00:34 sri https://github.com/kraih/minion/blob/master/lib/Minion/Backend/Pg.pm#L666
00:34 sri that's what my tables look like
00:34 sri everything that can be a normal column is a normal column
00:35 sri i really like this hybrid approach actually
00:36 sri <3 mixing enum, date, int, jsonb, array...
01:08 Jonis being able to toss a jsonb column in to a table where you need to store arbitrary data that fits the format is pretty awesome
01:36 disputin joined #mojo
01:46 Jonis oh, happy 20th postgresql
01:47 Jonis jberger: if you haven't actually seen it, it's so worth it
03:56 noganex_ joined #mojo
04:13 jberger Jonis: I have seen it
04:13 jberger I wanted to see it on the big screen again before it was out of theaters
04:14 sri am i the only one who doesn't get those explanations? https://github.com/kraih/mojo/pull/921
04:15 sri he may very well have a point
04:15 jberger and I did really like it again, a few of the things that annoyed me the first time seemed softer
04:15 jberger except for the "charging of the weapon" bit, which still drives me bonkers
04:16 jberger sri: each time this has come up, the user usually has a point, template inheritance is hard
04:16 jberger but I'm not seeing it this time either and I don't think I have the mental stamina to dive into it this time
04:16 jberger I NEED to get this ACME client out
04:17 jberger if only for my sanity :-D
04:17 sri yea, i'm giving up too
04:17 sri i'll leave it open for a few days, maybe someone else gets it
04:18 jberger this time at least he wrote a test
04:18 jberger I just don't understand it
04:21 sri apparently he wants to assign something to the content buffer from inside the template that would normally get assigned to the content buffer
04:23 sri it does seem completely pointless
04:23 sri just for the sake of docs lawyering
04:24 sri oh well, -1 from me, since he didn't answer
04:24 sri maybe there's big picture stuff i'm missing, but he didn't even try to explain it
05:40 kaare joined #mojo
06:44 trone joined #mojo
07:35 dod joined #mojo
07:41 dod joined #mojo
07:58 dhg joined #mojo
08:26 Vandal joined #mojo
11:13 Adurah joined #mojo
11:14 ashimema joined #mojo
12:34 sri jberger, marcusr, batman, tempire, crab: vote https://github.com/kraih/mojo/pull/921
12:34 sh4 joined #mojo
12:35 upasana_ D
12:35 upasana_ please ignore
12:36 sri D
13:04 schobes joined #mojo
13:57 jzawodn joined #mojo
13:58 asarch joined #mojo
14:16 sri \o\
14:16 sri /o/
14:51 batman sri: sorry. i don't get it :(
14:52 batman weird that i've never gotten around doing anything remotely more complex than sinple %= content and %= include...
14:54 zivester joined #mojo
14:54 sri nobody seems to get it
14:57 sri https://github.com/kraih/mojo/pull/921#issuecomment-189658225
14:57 sri ¯\_(ツ)_/¯
15:00 sri really too bad his english skills are not better, he's doing interesting stuff with the renderer and i'd love some discussions about it
15:00 jberger One thing I will say
15:01 jberger The other time I stuck my neck out to tryone of his prs I wrote a test and in doing so it would have broken other behavior
15:02 jberger This one comes with a test and doesn't seem to break existing behavior
15:02 genio So, on the bright side, he's improving. :)
15:02 jberger I just don't know if anyone would actually use this
15:02 jberger It seems to be about consistency
15:03 sri well, his last pull request was spot on https://github.com/kraih/mojo/pull/915
15:04 jberger This comment seems more interesting
15:04 jberger https://github.com/kraih/mojo/pull/921#issuecomment-189539473
15:05 sri how so?
15:05 sri why is it incorrect to use the content of the main template?
15:06 sri also, i don't see how this pull request would change anything for that example
15:06 sri he's mixxing different issues
15:07 jberger Hmmm yeah
15:07 sri just to reiterate
15:07 sri rendering right now works like this
15:08 sri $c->render('foo')
15:08 sri that will render the template foo.html.ep
15:08 sri and put the result into the buffer named "content"
15:08 sri if the template defines a layout/extends, then that will be rendered afterwards
15:08 taichi joined #mojo
15:08 sri in a loop, so you can have multiple extends
15:09 sri the content buffer can then be inserted into the layout/extends
15:09 sri and that becomes the final result
15:11 sri sometimes i wonder if we should remove template inheritance
15:11 sri there's only a tiny minority that knows how to use it
15:12 jberger It always does what I need when I need it, it just seems that kes takes it farther than I ever have
15:18 sri for the record, i was confused by this, and as it turns out, his comment is wrong https://github.com/kraih/mojo/pull/921#issuecomment-189539473
15:18 sri the result there actually is "Hello"
15:19 jberger Ugh really?
15:19 jberger Then what is his gripe?
15:23 * sri shrugs
16:20 disputin joined #mojo
16:23 disputin joined #mojo
16:26 PryMar56 joined #mojo
16:29 disputin joined #mojo
17:11 denis joined #mojo
17:16 sri oh, perltidy now supports signatures
17:26 jkramer left #mojo
17:41 odc joined #mojo
17:43 good_news_everyon joined #mojo
17:43 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v22wa
17:43 good_news_everyon mojo/master ea8e3db Sebastian Riedel: fix typos in test
17:43 good_news_everyon left #mojo
18:28 Floyd-ATC left #mojo
18:52 asarch joined #mojo
19:26 denis For parsing XML in Mojolicious I use Mojo::DOM, right?
19:28 denis there isn't anything lin $req->body-> like for json (req->body->json), instead I read req->body into Mojo::DOM and parse it
19:28 denis Sorry I mean $self->req->json
19:29 sri http://mojolicious.org/perldoc/Mojo/Message#dom
19:31 punter joined #mojo
19:43 denis sri: I forgot to tell that I use Mojolicious::Lite. Can I load Mojo::Message or am I supposed to use Mojo::DOM.
19:44 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Tutorial#HTTP
19:51 CandyAngel I really need to get better at abstraction
20:53 neilhwatson joined #mojo
20:54 ZoffixMobile joined #mojo
21:39 cpan_mojo App-txtnix-0.02 by MDOM https://metacpan.org/release/MDOM/App-txtnix-0.02
21:51 good_news_everyon joined #mojo
21:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v22FR
21:51 good_news_everyon mojo/master 01a5bff Sebastian Riedel: better description for content helper
21:51 good_news_everyon left #mojo
22:19 * sri closes #921 https://github.com/kraih/mojo/pull/921#issuecomment-189738711
22:29 sri jberger, marcusr, batman, tempire, crab: and i think we need to vote, should template inheritance be deprecated?
22:30 Vitrifur joined #mojo
22:32 sri which i guess incldes the extends helper, extends stash value, and using the content helper with arguments
22:32 sri content_for/content_with serve a different purpose and should stay
22:33 batman i'm not using any of those, so i vote +0 :)
22:35 sri batman: don't just think about yourself with these votes
22:36 batman that's why i used zero
22:36 nnms joined #mojo
22:58 mattp is mojo::MySQL reliable?
22:58 mattp Rather, the async underpinnings in dbd::MySQL itself
23:00 batman mattp: Mojo::mysql works for me @work
23:55 captbipto1 joined #mojo

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