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

IRC log for #mojo, 2015-12-24

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

All times shown according to UTC.

Time Nick Message
00:11 damaya joined #mojo
00:25 damaya joined #mojo
01:05 damaya joined #mojo
01:14 voldemortensen joined #mojo
01:17 damaya joined #mojo
01:48 marty joined #mojo
01:49 marty joined #mojo
02:09 damaya joined #mojo
02:38 damaya joined #mojo
03:19 noganex joined #mojo
03:21 damaya joined #mojo
03:45 damaya joined #mojo
04:16 damaya joined #mojo
04:58 inokenty-w joined #mojo
05:24 voldemortensen joined #mojo
05:27 damaya joined #mojo
05:46 thowe joined #mojo
06:26 jb360 joined #mojo
06:30 damaya joined #mojo
06:30 kaare joined #mojo
06:57 cpan_mojo Mojolicious-Plugin-HandlebarsJSRenderer-0.05 by RMZG https://metacpan.org/release/RMZG/Mojolicious-Plugin-HandlebarsJSRenderer-0.05
07:28 kes joined #mojo
07:32 Vandal joined #mojo
07:55 meshl joined #mojo
08:21 marty joined #mojo
08:23 irqq joined #mojo
08:29 damaya joined #mojo
09:01 melo joined #mojo
09:06 dod joined #mojo
10:24 meshl joined #mojo
10:49 sri oh, a mojolicious talk https://www.youtube.com/watch?v=dywft_QfGLI
11:48 meshl joined #mojo
11:50 trone joined #mojo
12:01 damaya Hey all, if you were to be parsing 10TB of HTML files stored in an S3 bucket, what would be your approach to get it done quickly?
12:02 damaya Just curious. I wrote a parser using jsoup, and now I'm writing something using Mojo::DOM. I was thinking about using Minion, but I'm still wrapping my head around that. I know that I want it to be distributed, since I have 50 AWS r3.xlarge systems that can all simultaneously perform the task.
12:04 nic damaya: You haven't said much of what the parsing needs to do, but Mojo::DOM + Minion sounds like a good bet
12:05 damaya nic: Oh yeah, sorry :). I'm just pulling data out of the DOM (e.g., $dom->at('h1.title')->text;) structuring the data, and throwing it into a postgres database.
12:08 nic I don't have relevant knowledge or experience, but with that volume of processing it's worth looking for something compiled to do the heavy lifting
12:08 damaya Alrighty, cool. Just seeing if others think Minion + Mojo::DOM would be a good task for something this size. I'm working with a group of programmers who don't know Java, so they asked me to write it in Python. Well, they all "kinda get" Perl, so I'll be doing that instead.
12:08 damaya Hrm, I was thinking about Go as well. Maybe I will look into that too. I've never used it, so it'll be a good chance to give it a try.
12:09 damaya s/task/tool/
12:09 nic yeah, should be easy to do a quick benchmark to see whether that's a useful route to go
12:09 damaya I'm just trying to avoid Python :D
12:09 nic but but it's the future
12:10 damaya I've managed to avoid it thus far, so trying to keep it that way.
12:10 damaya Yeah, yeah, I have to hear all the time how bad Perl is, and feel like I should be embarrased for using it.
12:11 damaya That's the worst thing about working with start ups, they all want to use the hip new thing. MongoDB for a long time (rather than old disgusting PostgreSQL), node.js, etc.
12:21 asarch joined #mojo
12:28 melo joined #mojo
13:04 jegade joined #mojo
13:36 marty joined #mojo
13:37 trone joined #mojo
13:48 dvinciguerra joined #mojo
14:04 meshl joined #mojo
14:34 kaare joined #mojo
14:37 jberger Go is more a language for writing servers etc iirc
14:46 jberger That talk is lee/leejo who is sometimes on here
15:20 Adura joined #mojo
15:27 batman Merry Christmas #mojo!
15:38 marty_ joined #mojo
16:08 trone joined #mojo
16:19 jberger Merry Christmas!
16:20 jberger On a very different note, I just watched sawyer's state of dancer talk
16:20 jberger Perhaps I'm being overly critical, but it sounds like a mess
16:20 jberger https://youtu.be/UbU5R-SHbDE
16:24 dvinciguerra joined #mojo
16:26 jberger And wait, is this the release message for p6 or did I miss something somewhere else?
16:26 jberger https://perl6advent.wordpress.com/2015/12/24/an-unexpectedly-long-expected-party/
16:26 jberger If that's really it then we need to hire a new pr firm because wat
16:34 jberger omg what I'm reading on the #perl6 irclog is not encouraging
16:34 jberger seriously, if they bungle this announcement (or don't make some proper announcement at all), then I f***ing quit
16:38 voldemortensen joined #mojo
16:46 cpan_mojo Mojo-Snoo-0.15 by CURTIS https://metacpan.org/release/CURTIS/Mojo-Snoo-0.15
16:47 lluad joined #mojo
16:59 damaya joined #mojo
17:16 voldemortensen joined #mojo
17:43 sue joined #mojo
17:48 damaya joined #mojo
18:00 Grinnz jberger, that's... yeah they need to get out of their echo chamber more often
18:01 jberger I started jumping up and down in #perl6
18:01 jberger along with a few others
18:01 jberger at least a few people heard and sounded like they understood
18:01 jberger ("yeah, why isn't someone thinking about a press release?")
18:34 ZoffixMobile joined #mojo
18:34 damaya joined #mojo
19:02 PryMar56 joined #mojo
19:13 sivoais joined #mojo
19:20 sue joined #mojo
19:57 lluad joined #mojo
20:00 marcus Merry Christmas, mojoers :)
20:00 ZoffixMobile Same to you!
20:10 AndroUser2 joined #mojo
20:15 Grinnz joined #mojo
20:28 sri jberger: lol, yea
20:29 sri they didn't even bother mentioning that timtoady is really larry wall
20:30 sri or provide a download link
20:38 mattp no hackernews post either
20:39 mattp or worse, just not on the frontpage
20:41 bpmedley_ joined #mojo
20:43 mattp oh, 21 minutes ago. i take that back
20:47 Grinnz_ joined #mojo
20:47 sue joined #mojo
20:47 damaya joined #mojo
20:56 mfontani joined #mojo
21:02 go|dfish it had already been posted to hackernews http://news.ycombinator.com/item?id=10786423
21:03 go|dfish the r/programming post probably got more attention because they gave it the title 'Larry wall : Perl 6 release announcement'
21:09 * jberger waits for the resounding "meh"
21:09 jberger How is the rest of the world supposed to get excited when the p6 guys aren't even
21:10 marcus I tried downloading it, but it's not actually out
21:10 preaction the announcement is whelming, to be sure
21:11 mattp i reckon there will be an actual announcement tomorrow on christmas
21:11 marcus it's christmas today here
21:12 disputin joined #mojo
21:22 meshl joined #mojo
21:24 sri meh
21:30 * sri has been thinking about futures in mojolicious again... and some things can get really weird
21:31 mfontani joined #mojo
21:31 sri special cases like Mojolicious::Controller::write, where the operation is non-blocking no matter if you pass a callback or not, and if you pass a callback it's merely a subscriber to some lower level event
21:32 mfontani joined #mojo
21:33 sri in some places it's very easy, like Mojo::UserAgent, just needs a few new methods... my $future = $ua->aget('http://...')
21:33 ZoffixWin joined #mojo
21:33 bpmedley_ sri : What would $future hold?
21:33 sri a future
21:34 Grinnz https://metacpan.org/pod/Future
21:34 preaction _the_ future
21:34 bpmedley_ Wouldn't the future need to know its state?
21:34 sri well, not Future
21:34 sri i mean the concept
21:34 sri https://promisesaplus.com/
21:34 ZoffixWin preaction, mattp, there hasn't been a release yet. It wasn't an announcement, but just a recap of the 15 years of work.
21:34 Grinnz right, but that's an implementation of futures
21:34 sri future = promise
21:35 ZoffixWin marcus: there's no time set for the release. Also, it's the release of the **language**, so don't expect too much from the download.
21:36 damaya joined #mojo
21:41 jberger ZoffixWin: the world doesn't care about those distinctions
21:41 Grinnz sri, interesting, that doesn't included "cancelled" as a state
21:42 ZoffixWin jberger: too bad for the world
21:42 Grinnz cancellation has been important in my brief usage of Future
21:42 sri Grinnz: Promises/A+ is the accepted standard everywhere
21:44 meshl joined #mojo
21:45 * jberger facepalm for all of us who care about the marketing of this stuff
21:46 jberger It's like the p6 project is actively trying to kill the hype
21:47 ZoffixWin How? By making a release with well-defined deliverables?
21:47 sri they're stealing the haskell mantra... "avoid success at all costs"
21:47 ZoffixWin heh
21:47 jberger ZoffixWin: a release? Coulda fooled me
21:48 ZoffixWin jberger: ?
21:48 sri oh, that slogan would actually make for a neat perl6 shirt
21:48 jberger A rambling cutesy blog post? No links and actually no release
21:48 ZoffixWin jberger: because it's not the release date
21:49 jberger That thing should add a huge disclaimer THIS IS NOT A RELEASE
21:49 ZoffixWin Larry scheduled to write an Advent post. He did.
21:49 jberger it says that it is a release right in there!
21:49 ZoffixWin It's not his fault that for some reason you think it's a release of Perl 6, then you then proceed to criticise for not being quite release-like
21:50 jberger When he said it's released, it seems like it should be
21:50 ZoffixWin TBH, I don't see where he says it's released (I grepped for "release")
21:52 trone joined #mojo
21:52 jberger I wasn't the only one who read it that way
21:53 jberger Just so long as tomorrow has something real to point to
21:55 ZoffixWin There will be a release of the roast (tests for Perl 6 compilers) version 6.c as well as a release of Rakudo compiler implementing Perl 6 language version 6.c. Last I heard, there was not going to be a release of R* yet, due to shortage of hands (holidays and what not). Rakudo is usable, but there are a few rough edges still. Those are the expected
21:55 ZoffixWin deliverables in the next 24-48 hours
22:02 sri trainwreck
22:03 ZoffixWin ¯\_(ツ)_/¯
22:03 ZoffixWin BTW, I hit a snag with my P6 version of Mojo::DOM. I don't know how to translate the regexes :P
22:03 ZoffixWin Gonna learn more stuff and try again after new years
22:05 Grinnz yeah those could be non-trivial to translate
22:05 Grinnz with p6's regex syntax
22:06 ZoffixWin Yeah, I was hoping to score an easy ticket with P5 regex modifier, but doesn't seem to support most of the P5 regex flags :P
22:41 bpmedley_ https://bitbucket.org/snippets/bpmedley/58oLx <-- Would a future look something like this?
22:41 Grinnz essentially yeah
22:42 Grinnz it just gives you an object to contain the context of what to do on success or failure
22:43 Grinnz then you have ->then, which lets you create futures that base their success or failure on other futures
22:43 preaction it'd be more like `$future->then( sub { ... } );` if the future was already in the "finished" state, the callback would be called immediately
22:43 Grinnz and so on
22:43 bpmedley_ https://github.com/kraih/mojo/compare/master...brianmed:master <-- Just a few minutes of coding, pls keep that in mind
22:43 preaction it avoids a common problem with adding an event handler too late, after the event already fired
22:47 sri bpmedley_: nope, the point of promises is ->then(...) calls
22:47 bpmedley_ Thanks, I'll try again
22:48 sri https://metacpan.org/pod/Promises
22:48 sri this gets is mostly right
22:48 marcus ok, after reading ZoffixWin 's argument, I apologise for any slight towards the p6 community. Clearly P6 is out, and I'm just too stupid to see it.
22:48 marcus Also I love the suit the emperor is wearing today.
22:48 sri schroedinger's perl6
22:50 preaction bpmedley_: basically it's a tiny state machine. when the state flips, all callbacks are called, and future callbacks get called immediately
22:51 sri bpmedley_: Mojo::UserAgent is a really simple case though, the hard part is figuring out what to do with Mojo::IOLoop and Mojolicious::Controller methods that accept callbacks
22:52 bpmedley_ https://github.com/kraih/mojo/compare/master...brianmed:master <-- Perhaps reload
22:52 sri bpmedley_: now you're just guessing
22:54 bpmedley_ I've only spent 15-20 mins in code, so, yeah.. it's basically a guess.  Although almost educated.. :)
22:55 sri $ua->aget('http://...')->then(sub { $ua->aget('http://') })->then(sub {...})
22:56 sri that would chain two get requests
23:03 ZoffixWin joined #mojo
23:11 damaya joined #mojo
23:20 bjakubski joined #mojo
23:23 chansen joined #mojo
23:30 sue joined #mojo

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