00:02:49  * csurapquit (Ping timeout: 255 seconds)
00:12:51  * Bnayaquit (Quit: Bnaya)
00:13:10  * shesekquit (Read error: Connection reset by peer)
00:29:23  * shesekjoined
00:30:32  * sojquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:33:01  * sojjoined
00:36:44  * sojquit (Client Quit)
00:51:35  * Foxandxssquit (Quit: Textual IRC Client: www.textualapp.com)
00:59:39  * raboidquit
01:02:44  * Celrenheitjoined
01:25:12  * stagasquit (Ping timeout: 250 seconds)
01:28:25  * TheAceOfHeartsquit (Quit: Leaving.)
02:02:00  * knowthenquit (Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045])
02:04:57  * eh_eff_quit (Ping timeout: 260 seconds)
02:26:48  * Celrenheitquit (Quit: Textual IRC Client: www.textualapp.com)
02:42:43  * TheAceOfHeartsjoined
03:12:44  * TheAceOfHeartsquit (Quit: Leaving.)
03:28:39  * TheAceOfHeartsjoined
03:43:39  * TheAceOfHeartsquit (Quit: Leaving.)
03:55:10  * TheAceOfHeartsjoined
04:32:43  * eh_eff_joined
04:35:02  * hipsterslapfightquit (Ping timeout: 244 seconds)
04:35:27  * joshonthewebquit (Quit: Textual IRC Client: http://www.textualapp.com/)
04:35:33  * mikaelbquit (Ping timeout: 244 seconds)
04:36:05  * joshonthewebjoined
04:37:54  * mikaelb_joined
04:39:10  * hipsterslapfightjoined
05:43:01  * eh_eff_quit (Ping timeout: 255 seconds)
06:19:06  * eh_eff_joined
06:40:41  * eh_eff_quit (Ping timeout: 264 seconds)
07:30:21  * Bnayajoined
08:55:13  * Bnayaquit (Quit: Bnaya)
09:29:09  * stagasjoined
09:39:02  * TheAceOfHeartsquit (Quit: Leaving.)
09:40:17  * basicdaysquit (Ping timeout: 240 seconds)
11:00:39  * HairAndBeardGuy_joined
11:03:37  * HairAndBeardGuyquit (Ping timeout: 245 seconds)
11:27:11  * stagasquit (Quit: Bye)
11:37:52  * Foxandxssjoined
11:41:57  * HairAndBeardGuyjoined
11:45:24  * HairAndBeardGuy_quit (Ping timeout: 264 seconds)
12:17:05  * Bnayajoined
12:44:03  * Celrenheitjoined
13:02:22  * shesekquit (Ping timeout: 256 seconds)
13:06:17  * bmacjoined
13:14:33  * HairAndBeardGuy_joined
13:17:04  * Bnayaquit (Quit: Bnaya)
13:17:22  * HairAndBeardGuyquit (Ping timeout: 245 seconds)
13:50:22  * mhernandez1joined
13:59:38  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
14:00:51  * bmacjoined
14:20:17  * mhernandez1quit (Remote host closed the connection)
14:21:06  * HairAndBeardGuyjoined
14:24:55  * Tonisius_joined
14:27:26  * mhernandez1joined
14:30:13  * HairAndBeardGuy_quit (*.net *.split)
14:30:13  * Tonisiusquit (*.net *.split)
14:30:14  * ajk27_quit (*.net *.split)
14:41:24  * mhernandez1quit (Read error: Connection reset by peer)
14:42:06  * mhernandez1joined
14:55:03  * ryexleyjoined
15:05:13  * mhernandez1quit (Remote host closed the connection)
15:11:52  * evanjsjoined
15:55:31  * bmacquit (Ping timeout: 272 seconds)
16:00:21  * bmacjoined
16:21:25  * Bnayajoined
16:24:35  * csurapjoined
16:28:48  * eh_eff_joined
16:34:09  * eh_eff_quit (Ping timeout: 272 seconds)
16:47:43  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
17:00:22  * Celrenheitquit (Ping timeout: 265 seconds)
17:05:48  * mhernandez1joined
17:18:50  * TheAceOfHeartsjoined
17:21:15  * basicdaysjoined
17:34:41  * basicdaysquit (Ping timeout: 265 seconds)
17:51:24  * knowthenjoined
17:58:35  * Bnayaquit (Quit: Bnaya)
18:04:19  * eh_eff_joined
18:21:34  * Hestiljoined
18:21:59  <Hestil>Hi.
18:22:14  <TheAceOfHearts>hi
18:24:22  <TheAceOfHearts>good to see the channel bustling with life~
18:28:14  * evanjsquit (Remote host closed the connection)
18:28:18  * Bnayajoined
18:28:38  <Hestil>I didn't understand why all co-{{ module }} are wrapped in thunkify and that it. I have browsed the Koa's source and it seems that's the whole response is wrapped with co.wrap, is that the reason?
18:31:37  <TheAceOfHearts>uhh
18:32:05  <TheAceOfHearts>co modules are thunkified so they can be yielded :D
18:33:44  <Hestil>TheAceOfHearts: But you should wrap it also in a promise
18:33:51  <Hestil>to return a promise
18:33:58  <TheAceOfHearts>why would you use a promise…?
18:34:16  <TheAceOfHearts>promises are just unnecessary overhead in a lot of cases
18:34:30  * csurappart
18:34:47  * csurapjoined
18:34:50  <Hestil>to be async (?)
18:36:03  <TheAceOfHearts>huh?
18:37:04  <TheAceOfHearts>thunks are async too, they're just callbacks
18:37:49  <TheAceOfHearts>maybe I'm misunderstanding
18:37:55  <TheAceOfHearts>what's your concern? or what don't you understand?
18:39:03  <Hestil>I wanna know how it exactly works
18:39:52  <Hestil>the purpose of think is just kind of one more level
18:41:16  <Hestil>thunk*
18:41:28  <TheAceOfHearts>https://github.com/tj/co/blob/master/index.js co
18:41:58  <Hestil>i've seen that
18:41:58  * bmacjoined
18:43:13  <Hestil>https://github.com/koajs/koa/blob/master/lib/application.js#L114
18:44:02  <TheAceOfHearts>yeah
18:44:10  <TheAceOfHearts>what do you want to understand?
18:44:47  <Hestil>I just didn't understand how it ONLY wraps with thunk. it didn't make sense for me.
18:45:37  <TheAceOfHearts>I'm not sure I'm understanding you
18:45:46  <TheAceOfHearts>you're asking why co-* modules use thunkify?
18:45:53  <TheAceOfHearts>compared to returning promises?
18:45:58  <Hestil>why they use only thunkify
18:46:04  <Hestil>not co itself
18:46:11  <Hestil>co.wrap for example
18:47:18  <TheAceOfHearts>co.wrap is so you can convert a co-generator into a promise function
18:47:54  <TheAceOfHearts>co allows you to yield promises or thunks or a couple other things
18:48:17  <TheAceOfHearts>thunks just have the lowest overhead I thin
18:48:17  <TheAceOfHearts>k
18:49:35  <Hestil>but you cannot use only thunk
18:49:41  <Hestil>you should convert it to promise
18:50:08  <Hestil>that's the purpose of co
18:50:29  <TheAceOfHearts>what?
18:50:32  <TheAceOfHearts>I'm seriously confused
18:50:52  <TheAceOfHearts>you can yield thunks inside of co
18:50:54  <TheAceOfHearts>that's their purpose
18:51:08  <TheAceOfHearts>the purpose of co is to catch stuff that you yield and push the values back in
18:55:59  <Hestil>TheAceOfHearts: yes, but you have to use thunk with co, you can't use only thunk
18:57:26  <TheAceOfHearts>so?
18:57:35  <TheAceOfHearts>the purpose of a lot of these co-* things is to wrap existing modules
18:57:39  <TheAceOfHearts>they're just wrappers
18:57:51  <TheAceOfHearts>and you *can* use thunks by themselves
18:57:54  <TheAceOfHearts>they're just callbacks
18:58:07  <Hestil>and I didn't understand why it doesn't use co all of these modules
18:58:51  <TheAceOfHearts>I think you're confused
18:59:10  <TheAceOfHearts>you normally use thunks inside of the generator that you pass into co
18:59:18  <TheAceOfHearts>so you can yield them
18:59:21  <TheAceOfHearts>that's their purpose
18:59:30  <TheAceOfHearts>I'm gonna go get food~ we can keep this up later
18:59:43  <Hestil>no prob. thank you!
19:06:11  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:10:45  * TheAceOfHeartsquit (Quit: Leaving.)
19:21:18  * bmacjoined
19:22:13  * Hestilquit (Remote host closed the connection)
19:32:12  * HairAndBeardGuy_joined
19:35:40  * ryexleyquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:36:24  * HairAndBeardGuyquit (Ping timeout: 264 seconds)
19:37:08  * Hestiljoined
19:40:50  * ryexleyjoined
19:41:13  * ryexleyquit (Client Quit)
19:55:12  * mhernandez1quit (Remote host closed the connection)
19:55:45  * mhernandez1joined
19:56:08  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:58:55  * mhernandez1quit (Remote host closed the connection)
19:59:16  * mhernandez1joined
20:11:00  * mhernandez1quit (Remote host closed the connection)
20:11:34  * mhernandez1joined
20:16:54  * mhernandez1quit (Ping timeout: 245 seconds)
20:17:22  * evanjsjoined
20:21:13  * bmacjoined
20:24:18  * bmac_joined
20:26:16  * bmacquit (Ping timeout: 265 seconds)
20:31:33  * bmac_quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:36:01  * TheAceOfHeartsjoined
20:37:50  <TheAceOfHearts>Hestil: I'm back~ are you still trying to understand whatever it was you weren't understanding?
20:46:30  <Hestil>TheAceOfHearts: Oh, yes.
20:46:44  <Hestil>Without CO in the response, will it still gonna work?
21:02:18  * raboidjoined
21:07:37  * TheAceOfHeartsquit (Quit: Leaving.)
21:16:39  * TheAceOfHeartsjoined
21:16:44  <TheAceOfHearts>I had to step out for a bit
21:16:51  <TheAceOfHearts>so, you're using koa, right?
21:17:10  <TheAceOfHearts>you can just yield co-* stuff in the middleware
21:17:16  <TheAceOfHearts>^ @Hestil
21:17:42  <Hestil>yes
21:17:58  <Hestil>btw, have you tried to use mongoose in koa?
21:18:04  <TheAceOfHearts>no
21:18:31  <TheAceOfHearts>so, like I said, you can just yield a thunk in co/koa
21:18:47  <Hestil>that's because we use co in koa
21:18:56  <TheAceOfHearts>yeah
21:19:00  <TheAceOfHearts>so what's your concern?
21:20:05  <Hestil>just asked to verify that issue
21:20:22  <TheAceOfHearts>what issue?
21:21:38  <Hestil>things around thunks / co / yield
21:21:48  <Hestil>but i think i understand it now
21:21:51  * bmacjoined
21:22:32  <TheAceOfHearts>that doesn't really answer lol, but alright
21:22:44  <TheAceOfHearts>thunks are just wrappers
21:22:50  <TheAceOfHearts>you can consume them like you normally would
21:22:56  * basicdaysjoined
21:26:58  <Hestil>yes, but I had to understand how all of these things are integrated
21:32:47  <TheAceOfHearts>I see
21:34:33  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:49:37  * eh_eff_quit (Ping timeout: 255 seconds)
22:02:35  * HairAndBeardGuyjoined
22:04:24  * HairAndBeardGuy_quit (Ping timeout: 245 seconds)
22:12:34  * Hestilquit (Ping timeout: 255 seconds)
22:15:21  * eh_eff_joined
22:18:12  * HairAndBeardGuy_joined
22:22:05  * HairAndBeardGuyquit (Ping timeout: 264 seconds)
22:35:48  * raboidquit (Remote host closed the connection)
22:44:20  * Celrenheitjoined
22:47:59  * raboidjoined
22:52:03  * eh_effjoined
22:54:40  * eh_eff_quit (Ping timeout: 258 seconds)
23:18:50  * Bnayaquit (Quit: Bnaya)
23:28:45  * raboidquit (Remote host closed the connection)
23:30:38  * raboidjoined
23:36:23  * joshonthewebquit (Quit: Computer has gone to sleep.)
23:44:03  * joshonthewebjoined
23:50:28  * raboidquit (Remote host closed the connection)
23:51:24  * raboidjoined
23:56:04  * raboidquit (Ping timeout: 255 seconds)