00:00:00  * ircretaryquit (Remote host closed the connection)
00:00:08  * ircretaryjoined
00:01:03  * groundwaterjoined
00:01:34  <kellabyte>tjfontaine: whats the req->bufsml[] array for? is it always 4?
00:04:32  <tjfontaine>it is always 4, and it's squarely in the "what are you touching this" category as it's defined in UV_WRITE_PRIVATE_FIELDS :)
00:05:02  <kellabyte>oh crap
00:06:01  * dominictarrjoined
00:06:22  <tjfontaine>and it appears as if its a static queue of to be written bufs, and if it's more than 4 waiting to be written we allocate more space, but it's very much an implementation detail
00:06:54  <kellabyte>ok so hands off :P
00:06:56  <tjfontaine>kellabyte: why not do what you wanted to do of req->data = buf; or even req->data = buf.base
00:07:27  <tjfontaine>that one is at least in the public header so a bit safer to rely on I guess
00:07:47  <kellabyte>yeah, I need to do a little more than that, I have a bunch of request data that needs to be free'd too but lemme see if I can stick a pointer to this buffer on there
00:07:52  <kellabyte>see how that affects memory
00:13:18  * bradleymeckjoined
00:17:05  <kellabyte>ok did it outside of the internals :P still 64MB of use, I guess I'll crack open instruments see where those bytes are
00:17:22  <kellabyte>it doesn't seem to be a "leak" really, almost like a high water mark like you said
00:17:34  <kellabyte>I can do lots of runs and it barely increases sometimes never does
00:17:50  <tjfontaine>right
00:21:49  * stagasjoined
00:22:04  <kellabyte>seems stable though, I'll look into it. thanks for the help tjfontaine!
00:22:33  <tjfontaine>kellabyte: glad to be of service! :)
00:29:44  * defunctzombie_zzchanged nick to defunctzombie
00:39:17  * defunctzombiechanged nick to defunctzombie_zz
00:47:08  * bradleymeckquit (Quit: bradleymeck)
01:11:52  * groundwaterquit (Quit: groundwater)
01:34:36  * wavdedjoined
01:35:59  <wavded>what about Node (or libuv) makes synchronous functions "strictly" faster than their asynchronous counter parts (thinking about the fs module)?
01:38:00  * bradleymeckjoined
02:12:09  * groundwaterjoined
02:14:42  * bradleymeckquit (Quit: bradleymeck)
02:17:11  * c4miloquit (Remote host closed the connection)
02:28:21  * bradleymeckjoined
02:54:13  * bradleymeckquit (Quit: bradleymeck)
03:25:46  * wavdedquit (Quit: Nighty night)
03:59:40  * defunctzombie_zzchanged nick to defunctzombie
04:04:40  * AvianFluquit (Remote host closed the connection)
04:11:50  * bajtosjoined
04:24:14  * st_lukejoined
04:29:37  <isaacs>ircretary: tell wavded Event loops aren't free. If you defer something until later, even if it happens very quickly, it's slightly more work than just doing it right now, while your'e already on-cpu, since you're guaranteed to wait only exactly as long as necessary for that I/O to happen. the trade-off is that if you do it async, you don't block other things from happening while you wait.
04:29:38  <ircretary>isaacs: I'll be sure to tell wavded
04:33:52  * dominictarrquit (Quit: dominictarr)
04:34:57  * c4milojoined
05:09:39  * bajtosquit (Quit: bajtos)
05:10:46  * c4miloquit (Remote host closed the connection)
05:22:40  <tjfontaine>isaacs: still around?
05:25:25  * bradleymeckjoined
05:26:18  * defunctzombiechanged nick to defunctzombie_zz
05:56:14  * inolenquit (Read error: Connection reset by peer)
05:56:28  * inolenjoined
06:00:05  * paddybyersjoined
06:12:29  * paddybyersquit (Ping timeout: 256 seconds)
06:20:34  * st_lukequit (Remote host closed the connection)
06:29:19  * bradleymeckquit (Quit: bradleymeck)
06:34:34  * mikealjoined
06:35:57  * bradleymeckjoined
06:36:02  * bradleymeckquit (Client Quit)
06:50:13  * hzjoined
06:55:29  * defunctzombie_zzchanged nick to defunctzombie
06:55:44  * groundwaterquit (Quit: groundwater)
07:05:27  * defunctzombiechanged nick to defunctzombie_zz
07:07:48  * mikealquit (Quit: Leaving.)
07:18:42  * rendarjoined
07:38:04  * mikealjoined
07:47:33  * mikealquit (Ping timeout: 264 seconds)
08:26:47  * loladiroquit (Read error: Connection reset by peer)
08:27:50  * loladirojoined
08:29:55  * leonvvjoined
08:32:44  * mikealjoined
08:37:34  * mikealquit (Ping timeout: 276 seconds)
08:39:47  * stagas_joined
08:41:28  * stagasquit (Ping timeout: 276 seconds)
08:42:02  * stagas_changed nick to stagas
09:03:17  * mikealjoined
09:03:39  * hzquit (Ping timeout: 260 seconds)
09:07:51  * mikealquit (Ping timeout: 260 seconds)
09:09:20  * loladiroquit (Quit: loladiro)
09:13:07  * leonvvquit (Remote host closed the connection)
09:57:29  * mikealjoined
10:01:53  * mikealquit (Ping timeout: 245 seconds)
10:33:58  * mikealjoined
10:39:07  * mikealquit (Ping timeout: 276 seconds)
11:14:45  * paddybyersjoined
11:21:19  * paddybyersquit (Ping timeout: 256 seconds)
11:26:09  * hzjoined
11:28:08  * mikealjoined
11:32:31  * mikealquit (Ping timeout: 260 seconds)
11:43:18  * paddybyersjoined
11:45:08  * wavdedjoined
11:58:49  * mikealjoined
12:03:37  * mikealquit (Ping timeout: 276 seconds)
12:15:40  * julianduquejoined
12:16:04  * julianduquequit (Remote host closed the connection)
12:19:11  * julianduquejoined
12:29:32  * mikealjoined
12:31:05  * st_lukejoined
12:33:35  * mikealquit (Ping timeout: 240 seconds)
12:40:38  * AvianFlujoined
12:44:53  * leonvvjoined
12:56:57  * wavdedquit (Quit: Nighty night)
12:59:50  * mikealjoined
13:04:04  * mikealquit (Ping timeout: 246 seconds)
13:30:14  * mikealjoined
13:32:38  * stagasquit (Ping timeout: 240 seconds)
13:33:32  * hzquit (Disconnected by services)
13:33:42  * hzjoined
13:34:23  * mikealquit (Ping timeout: 245 seconds)
13:46:28  * hzquit (Ping timeout: 245 seconds)
13:46:59  * stagasjoined
13:47:43  * leonvvquit (Remote host closed the connection)
14:00:59  * mikealjoined
14:05:13  * mikealquit (Ping timeout: 245 seconds)
14:05:31  * Damn3djoined
14:31:38  * mikealjoined
14:32:44  * st_lukequit (Remote host closed the connection)
14:36:09  * mikealquit (Ping timeout: 264 seconds)
14:54:23  * paddybyersquit (Ping timeout: 256 seconds)
15:02:24  * mikealjoined
15:06:51  * mikealquit (Ping timeout: 256 seconds)
15:22:51  * paddybyersjoined
15:32:45  * mikealjoined
15:35:37  * groundwaterjoined
15:37:28  * mikealquit (Ping timeout: 276 seconds)
15:37:59  * paddybyersquit (Ping timeout: 260 seconds)
15:38:09  * hzjoined
15:49:21  * julianduquequit (Ping timeout: 240 seconds)
15:50:07  * hzquit (Disconnected by services)
15:50:10  * hzjoined
15:54:53  * mikealjoined
16:15:39  * mikealquit (Quit: Leaving.)
16:17:35  * kenperkinsquit (Quit: Computer has gone to sleep.)
16:23:05  * hueniverse1joined
16:24:33  * loladirojoined
16:25:18  * hij1nxquit (Ping timeout: 264 seconds)
16:25:50  * hueniversequit (Ping timeout: 240 seconds)
16:31:34  * bajtosjoined
16:36:30  * defunctzombie_zzchanged nick to defunctzombie
16:36:59  * hueniverse1quit (Quit: Leaving.)
16:37:11  * st_lukejoined
16:37:16  * hueniversejoined
16:43:32  * leonvvjoined
16:44:07  * loladiro_joined
16:46:11  * loladiroquit (Read error: Connection reset by peer)
16:50:16  * loladiro_quit (Ping timeout: 276 seconds)
16:52:15  * loladirojoined
16:59:41  * mikealjoined
17:00:06  * groundwaterquit (Quit: groundwater)
17:04:17  * mikealquit (Ping timeout: 256 seconds)
17:07:03  * kenperkinsjoined
17:11:53  * defunctzombiechanged nick to defunctzombie_zz
17:31:54  * leonvvquit (Remote host closed the connection)
17:32:33  * bajtosquit (Quit: bajtos)
17:35:10  * kenperkinsquit (Quit: Computer has gone to sleep.)
17:38:31  * mikealjoined
17:43:21  * mikealquit (Ping timeout: 264 seconds)
17:50:55  * groundwaterjoined
18:06:39  <isaacs>tjfontaine: i was not, but i am now for a little bit, 13 hours later :)
18:07:07  <tjfontaine>heh
18:07:25  <tjfontaine>I was playing last night with manta
18:07:26  <tjfontaine>https://gist.github.com/tjfontaine/a7fd96fa27c8a8f24452
18:08:53  * mikealjoined
18:10:12  * paddybyersjoined
18:13:21  * mikealquit (Ping timeout: 264 seconds)
18:18:43  * paddybyersquit (Ping timeout: 246 seconds)
18:21:23  * hij1nxjoined
18:21:48  * defunctzombie_zzchanged nick to defunctzombie
18:23:39  <isaacs>wow 10.12!
18:24:02  <isaacs>i guess a LOT of people install node with homebrew?
18:24:11  <tjfontaine>ya
18:24:14  <isaacs>or at least, that's the only pkg manager that fetches from our dist
18:24:28  <isaacs>yum/apt get from their own source lists
18:25:01  <tjfontaine>yup
18:25:05  <isaacs>that's some interesting stuff!
18:25:21  <tjfontaine>any problems with me doing a small blog about it?
18:26:08  <tjfontaine>mfind --type o /NodeCore/stor/nginx/access_log | sort | tail -30 | mjob create -o -s /tjfontaine/public/apache.js -m "node /assets/tjfontaine/public/apache.js userAgent | grep Homebrew" -r "wc -l"
18:26:12  <tjfontaine>added 30 inputs to 395af165-1658-4ecd-a75a-1764efbc0554
18:26:15  <tjfontaine>34706
18:26:59  <isaacs>tjfontaine: no, please do!
18:27:40  <tjfontaine>okey dokey
18:27:48  <isaacs>tjfontaine: do your best not to play up manta. just say "we've been using Manta for this" with a link, and the commands. then talk about the actual data. that'll be less corporate stoogey, and also actually sell manta better :)
18:28:06  <tjfontaine>:)
18:28:19  <isaacs>i really don't want that blog to be too marketing-sounding
18:28:30  <isaacs>(except marketing Node itself, obv)
18:28:31  <tjfontaine>indeed, I will let you proof it of course
18:28:34  <isaacs>kewl
18:28:41  <isaacs>yes, more blogs!
18:28:48  <isaacs>data in blogs! blogs about not-release-notes!
18:28:53  <tjfontaine>hehe
18:30:46  * bajtosjoined
18:31:31  * defunctzombiechanged nick to defunctzombie_zz
18:36:47  * dsantiagoquit (Quit: Computer has gone to sleep.)
18:46:31  * mikealjoined
18:46:45  * bradleymeckjoined
18:50:45  * mikealquit (Ping timeout: 248 seconds)
18:55:48  * bajtosquit (Quit: bajtos)
19:35:54  * st_lukequit (Remote host closed the connection)
19:38:24  * paddybyersjoined
19:46:46  * hzquit (Disconnected by services)
19:46:50  * hzjoined
19:49:10  * bajtosjoined
19:54:57  * bajtosquit (Quit: bajtos)
20:00:43  * paddybyersquit (Ping timeout: 276 seconds)
20:00:59  * bradleymeck_joined
20:01:21  * bradleymeckquit (Ping timeout: 264 seconds)
20:01:22  * bradleymeck_changed nick to bradleymeck
20:12:42  * dsantiagojoined
20:16:20  * paddybyersjoined
20:18:57  * txdvquit (Read error: Connection reset by peer)
20:19:07  * txdvjoined
20:26:49  * paddybyersquit (Ping timeout: 246 seconds)
20:37:04  * kenperkinsjoined
20:43:52  * paddybyersjoined
20:58:13  * paddybyersquit (Ping timeout: 248 seconds)
21:06:35  * stagas_joined
21:07:50  * stagasquit (Ping timeout: 256 seconds)
21:08:22  * stagas_changed nick to stagas
21:17:57  * stagasquit (Ping timeout: 248 seconds)
21:19:29  * stagasjoined
21:19:38  * stagasquit (Client Quit)
21:22:01  * bradleymeckquit (Quit: bradleymeck)
21:27:14  * kenperkinsquit (Quit: Computer has gone to sleep.)
21:39:27  * kenperkinsjoined
21:44:30  * dsantiagoquit (Quit: Computer has gone to sleep.)
21:44:51  * mikealjoined
21:46:59  * Somebodyjoined
21:52:57  * rendarquit
21:53:03  * dsantiagojoined
21:53:23  * mikealquit (Quit: Leaving.)
22:03:43  * wavdedjoined
22:06:48  * paddybyersjoined
22:14:45  * dominictarrjoined
22:17:57  * wavdedquit (Quit: Hasta la pasta)
22:25:58  * defunctzombie_zzchanged nick to defunctzombie
22:29:26  * dominictarrquit (Quit: dominictarr)
22:36:27  * st_lukejoined
22:43:13  * paddybyersquit (Ping timeout: 276 seconds)
22:49:39  * mikealjoined
22:53:49  * defunctzombiechanged nick to defunctzombie_zz
23:05:12  * twilightfeeljoined
23:11:03  * mikealquit (Quit: Leaving.)
23:13:00  * mikealjoined
23:14:06  * hzquit
23:17:26  * Somebodyquit (Remote host closed the connection)
23:24:29  * hueniversequit (Quit: Leaving.)
23:25:58  * st_lukequit (Remote host closed the connection)
23:28:13  * hueniversejoined
23:30:00  * mikealquit (Quit: Leaving.)
23:40:12  <twilightfeel>Hello. Can anybody help me to understand how to get HandleWrap for the handle from the uv_default_loop()->handles_queue in my own Node.js native addon?
23:40:35  <twilightfeel>i've a simple native addon with one function in the exports https://gist.github.com/kaero/5996374
23:40:51  <twilightfeel>and want to get HandleWrap for each handle to extract JS callback, if any
23:41:04  <twilightfeel>but i don't see the way to do it :(
23:41:15  <tjfontaine>what exactly are you trying to solve?
23:41:57  <tjfontaine>have you seen process._getActiveHandles and process._getActiveRequests from js?
23:42:45  <twilightfeel>yes, i've looked at GetActiveHandles implementation and _getActiveHandles method of the process, but there is no handle type
23:43:03  <tjfontaine>what exactly are you trying to solve that makes you want this?
23:45:03  <twilightfeel>i want to get state (all event loop handles) of the default event loop in some points of my app to get proof of load balancing issues and effectiveness of workarounds
23:45:39  <twilightfeel>so i needs in callbacks names and handles types
23:46:57  <twilightfeel>i can extract callbacks names from _getActiveHandles, but handles types can be detected by specific set of properties of handles wraps as far as i can see
23:47:30  <twilightfeel>i'm sorry for my pure english (
23:53:36  <tjfontaine>> process._getActiveHandles()[0]._handle.constructor
23:53:36  <tjfontaine>[Function: TTY]
23:53:37  <tjfontaine>> process._getActiveHandles()[1]._handle.constructor
23:53:37  <tjfontaine>[Function: TCP]
23:54:01  <twilightfeel>Oh!
23:54:12  <twilightfeel>tjfontaine: thanks a lot
23:54:45  <twilightfeel>tjfontaine: c/c++ is hard after years of js )
23:55:33  <tjfontaine>heh, well doing that in C/C++ is also possible but not something I would suggest, this is also sorta "internal" api, but at least gets you closer to what you're asking for
23:56:53  <twilightfeel>tjfontaine: yes, this solution covers my current needs
23:59:01  <twilightfeel>tjfontaine: discovering internals of the node & libuv was pretty interesting adventure for me )
23:59:15  <tjfontaine>hehe, indeed