00:00:00  * ircretaryquit (Remote host closed the connection)
00:00:09  * ircretaryjoined
00:00:13  <tjfontaine>right but it's nanoseconds
00:00:21  <tjfontaine>it's going to be above 32 bit pretty quickly
00:00:23  <trevnorris>actually, that's ms.
00:00:31  <trevnorris>at least, we're returned ms, now ns
00:00:37  <trevnorris>s/now/not
00:00:43  <tjfontaine>uv_now truncates to ms?
00:00:46  <trevnorris>yeah
00:00:59  <trevnorris>uv_hrtime returns ns
00:01:03  <trevnorris>uv_now returns ms
00:01:42  <tjfontaine>ok, fine -- anyway, I am not sure that we're saving that much from that, in the grand scheme of an application, but from a hygeine perspective if the handlescopes are extra now, then it's ok for them not to exist
00:02:22  <tjfontaine>isn't there already a v8 function that makes a number that does this check?
00:02:29  * AvianFlujoined
00:02:44  <trevnorris>yeah. it's a micro-optimization. just popped out at me while I was looking at something else. and took all of 3 mins to do make that change.
00:02:58  <trevnorris>sorry, elaborate on your last question.
00:03:22  <tjfontaine>I thought there was an Number::New that implicitly did this check
00:03:47  <trevnorris>well, in v0.10 yeah, but args.GetReturnValue().Set() accepts int32_t, uint32_t and double directly.
00:04:04  <trevnorris>so no need to create Number::New()
00:04:07  <tjfontaine>but is it really an optimization to use those methods or just convenience
00:04:19  <tjfontaine>it seems a lot like just convenience
00:04:31  <trevnorris>sorry, not following. Timer.now() is used a ton.
00:04:31  <tjfontaine>and then doing this smi check is just picking a different vtable to use
00:04:54  <trevnorris>difference is returning an smi means it doesn't have to be boxed by V8 once it reaches JS.
00:05:08  <tjfontaine>I know what the difference between the smi and double results are
00:05:24  <tjfontaine>I'm saying, I'm fairly certain v8 does this already internally a lot of places, for instance this is how External used to work
00:05:47  <tjfontaine>do they already expose a function that does this check, if so -- why can't we use that
00:05:49  <trevnorris>well, benchmarks show it saves about 15% of execution time.
00:06:00  <trevnorris>double digit ns of course, but still ;)
00:06:03  <tjfontaine>ok I have to leave work right now
00:06:06  <tjfontaine>I'll be back later
00:06:14  <trevnorris>alright. can I land that?
00:06:44  <a_le>I guess uv_loop->data is what i need
00:09:58  * bradleymeckjoined
00:13:56  * avalanche123quit (Remote host closed the connection)
00:14:23  * avalanche123joined
00:18:56  * avalanche123quit (Ping timeout: 260 seconds)
00:21:26  * c4miloquit (Remote host closed the connection)
00:26:09  * cjihrigjoined
00:27:53  * zz_karupachanged nick to karupa
00:34:40  * dap_1quit (Quit: Leaving.)
00:42:34  * bradleymeckquit (Quit: bradleymeck)
00:44:06  * bradleymeckjoined
00:48:31  * iarnaquit (Remote host closed the connection)
00:51:43  * avalanche123joined
01:10:52  * cjihrigquit (Quit: Leaving.)
01:15:46  * Ralithquit (Ping timeout: 250 seconds)
01:16:06  * cjihrigjoined
01:16:19  * jgiquit (Quit: jgi)
01:28:17  * c4milojoined
01:34:24  * toothrotjoined
01:42:27  * kazuponjoined
01:52:14  * thlorenzquit
01:53:02  * Ralithjoined
01:55:08  * thlorenzjoined
01:55:11  * abraxasjoined
02:07:06  * abraxasquit (Remote host closed the connection)
02:12:49  * abraxasjoined
02:28:35  * thlorenzquit (Remote host closed the connection)
02:29:00  * thlorenzjoined
02:34:43  * iarnajoined
02:39:40  * thlorenzquit (Remote host closed the connection)
02:43:18  * avalanche123quit (Remote host closed the connection)
02:43:44  * avalanche123joined
02:48:13  * avalanche123quit (Ping timeout: 244 seconds)
02:48:53  * brsonquit (Quit: leaving)
02:49:15  * brsonjoined
02:57:12  * c4miloquit (Remote host closed the connection)
02:58:32  * Left_Turnquit (Remote host closed the connection)
03:07:15  * AvianFluquit (Quit: Leaving)
03:08:31  * andrehjrjoined
03:17:29  * cjihrigquit (Quit: Leaving.)
03:24:10  * iarnaquit (Remote host closed the connection)
03:30:59  * toothrotquit (Ping timeout: 272 seconds)
03:33:47  * iarnajoined
03:34:23  * kazuponquit (Remote host closed the connection)
03:34:50  * kazuponjoined
03:39:03  * kazuponquit (Ping timeout: 246 seconds)
03:47:18  * iarnaquit (Remote host closed the connection)
03:50:36  * andrehjrquit (Ping timeout: 246 seconds)
03:53:32  * iarnajoined
04:01:45  * avalanche123joined
04:08:04  * iarnaquit (Remote host closed the connection)
04:11:27  * iarnajoined
04:18:14  * avalanche123quit (Remote host closed the connection)
04:18:41  * avalanche123joined
04:19:17  * kazuponjoined
04:19:24  * c4milojoined
04:22:02  <MI6>joyent/node: Fedor Indutny v0.12 * 2122a77 : crypto: lower RSS usage for TLSCallbacks - http://git.io/V4y_uw
04:23:33  * avalanche123quit (Ping timeout: 272 seconds)
04:23:57  * c4miloquit (Ping timeout: 245 seconds)
04:27:43  * avalanche123joined
04:32:59  * a_lequit (Remote host closed the connection)
04:36:33  * thlorenzjoined
04:37:22  * thlorenzquit (Remote host closed the connection)
04:37:27  * iarnaquit (Remote host closed the connection)
04:52:48  * WalrusPony1quit (Read error: Connection reset by peer)
04:52:58  * WalrusPonyjoined
04:56:46  * avalanche123quit (Remote host closed the connection)
04:57:13  * avalanche123joined
05:02:11  * avalanche123quit (Ping timeout: 272 seconds)
05:06:07  * Ralithquit (Remote host closed the connection)
05:07:52  * sh1mmerquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
05:10:10  * avalanche123joined
05:17:46  * Ralithjoined
05:19:28  * sh1mmerjoined
05:22:17  * sh1mmerquit (Client Quit)
05:22:46  * sh1mmerjoined
05:34:33  * bradleymeckquit (Quit: bradleymeck)
05:43:44  * inolen1quit (Quit: Leaving.)
05:53:06  * brsonquit (Quit: leaving)
05:56:46  * bajtosjoined
05:56:47  * rmgquit (Remote host closed the connection)
05:57:19  * rmgjoined
06:01:27  * rmgquit (Ping timeout: 244 seconds)
06:07:00  * rendarjoined
06:07:39  * c4milojoined
06:12:23  * c4miloquit (Ping timeout: 240 seconds)
06:28:12  * brett19quit (Ping timeout: 245 seconds)
06:28:31  * brett19joined
06:28:39  * hollandaisquit (Remote host closed the connection)
06:29:23  * Wraithanquit (Ping timeout: 240 seconds)
06:29:53  * mitsuhikoquit (Ping timeout: 245 seconds)
06:29:53  * indutnyquit (Ping timeout: 240 seconds)
06:30:08  * hollandaisjoined
06:30:28  * kazuponquit (Remote host closed the connection)
06:30:56  * kazuponjoined
06:31:17  * kazuponquit (Read error: Connection reset by peer)
06:31:22  * kazupon_joined
06:34:25  * inolenjoined
06:36:06  <MI6>joyent/node: Fedor Indutny v0.10 * d87ae24 : hdr: always define NODE_WANT_INTERNALS - http://git.io/dq9vaA
06:36:25  * indutnyjoined
06:36:30  * mitsuhikojoined
06:40:40  * inolenquit (Ping timeout: 260 seconds)
06:43:54  * Wraithanjoined
07:11:59  * kazuponjoined
07:15:00  * kazupon_quit (Ping timeout: 246 seconds)
07:15:45  * hollandaisquit (Remote host closed the connection)
07:16:27  * kazuponquit (Ping timeout: 245 seconds)
07:17:04  * hollandaisjoined
07:28:49  * rmgjoined
07:33:59  * rmgquit (Ping timeout: 272 seconds)
07:38:20  * kazuponjoined
07:54:54  * avalanche123quit (Remote host closed the connection)
07:55:58  * c4milojoined
07:59:27  * trevnorrisquit (Ping timeout: 245 seconds)
07:59:59  * trevnorrisjoined
08:00:37  * c4miloquit (Ping timeout: 245 seconds)
08:19:02  * sh1mmerquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
08:41:07  <txdv>saghul is moving FDs from one kqueue to another impossibru?
08:41:26  <txdv>or file handles from one eventloop to another?
08:44:00  <saghul>not possible atm
08:47:33  <txdv>atm?
08:47:38  <txdv>is it possible at all is my question
08:47:59  <txdv>because on linux you can move from one loop to another
08:49:55  <saghul>at low level it is possible, you just need to remove it from one kqueue/epoll and add it to another
08:50:16  <saghul>the problem is that you would need to close the handle for a loop to forget about it, and in the process the fd would be closed
08:50:30  <saghul>this is something I want to address for 2.0
08:50:52  * hollandaisquit (Remote host closed the connection)
08:52:24  * hollandaisjoined
09:05:40  * AlexisMochajoined
09:06:36  * Left_Turnjoined
09:08:14  * janjongboomjoined
09:26:48  * bajtosquit (Quit: bajtos)
09:41:27  * LeftWingquit (Remote host closed the connection)
09:41:27  * karupachanged nick to zz_karupa
09:41:34  * LeftWingjoined
09:44:19  * c4milojoined
09:46:45  <rendar>txdv: it would be impossible on Windows
09:47:02  <rendar>txdv: once you inserted an HANDLE to a completion port, you cannot remove it and add it to another completion port
09:48:52  * c4miloquit (Ping timeout: 240 seconds)
09:55:11  * abraxasquit (Remote host closed the connection)
09:55:15  <saghul>it was also impossible to do level triggered i/o with IOCP, but src/win/poll.c proves otherwise :-)
09:56:14  <rendar>saghul: level triggered? what you mean?
09:58:07  <txdv>edge triggered/level triggered
09:59:53  <rendar>txdv: yeah i know that, but i don't see the point of having level triggering on Windows - why?
10:01:49  <rendar>io completion ports are edge triggered, or, they inform you only when some data *has been* (and not must be, like in unix) read, or some data has been written, so why one must want the otherwise of this behavior?
10:02:47  * Left_Turnquit (Ping timeout: 245 seconds)
10:03:33  <saghul>rendar: the point is that thousands of libraries use a level triggered mechanism, and we want to interact with them
10:03:58  <saghul>that's how c-ares is integrated into Node
10:04:16  <rendar>saghul: oh!
10:04:26  <saghul>and it's also how I make Python sockets async by stealing their fd and using a poll handle ;-)
10:04:35  <rendar>:)
10:04:59  <nathan7>damnit, we lost the battle on UV_SAGHUL
10:05:07  <rendar>saghul: but, how c-ares uses that level triggered? i mean, c-ares want to be called (some c-ares callback) when data have to be read from the socket, and not when data has been read?
10:06:47  <saghul>rendar: c-ares gives you a list of fds for you to poll and tell the library when they are ready
10:07:00  <rendar>saghul: oh...that's it
10:07:08  <saghul>it doesn't *use* level triggered i/o, it expects you to do it
10:07:18  <rendar>saghul: so basically c-ares opens its own FDs, and you have only to poll them
10:08:07  <rendar>saghul: then c-ares closes the FDs when you're cleaning up things
10:08:18  <saghul>yeah
10:08:32  <rendar>saghul: i see
10:08:38  <saghul>c-ares tells you it doesn't need to poll for a given fd anymore
10:09:21  <rendar>saghul: and you *can't* use EDGE triggering in this scenario, because you don't know if c-ares reads ALL the buffer (so triggering again the fd) when you pass the poll-event to c-ares, so you MUST use level triggering, which will poll everytime
10:10:57  <txdv>doesn't c-ares use udp sockets?
10:11:10  <txdv>1 level trigger 1 udp packet in?
10:15:02  <saghul>rendar: yep
10:15:07  <saghul>txdv: DNS can switch to TCP
10:17:37  <txdv>cool
10:17:52  <rendar>saghul: i see, what are the other libs beside c-ares that employ this scenario?
10:19:09  <saghul>zeromq, libssh (IIRC)
10:19:20  <saghul>basically anything created with a Unix mentality
10:22:23  <rendar>i see
10:22:36  <rendar>you mean libssl?
10:23:32  <saghul>not sure about that one
10:23:47  <saghul>because you can use libssl without doing i/p
10:23:50  <saghul>*i/o
10:23:59  <saghul>just by using the memory BIO stuff
10:24:06  <rendar>saghul: btw i don't see the point, let's take c-ares for example, the only thing c-ares must do is managing DNS protocol, so why it needs to create file desciptors?!
10:26:15  <saghul>rendar: look, it's not about getting the point, it's about using existing libraries
10:26:30  <saghul>they did it that way for whatever reason, which I don't care, I want to use them
10:26:57  <saghul>DNS is not just putting some data over a socket :-)
10:27:23  * yunong_joined
10:30:16  * yunongquit (Ping timeout: 272 seconds)
10:32:11  <txdv>you want to address that?
10:32:24  <txdv>o i read the past log
10:33:01  * jas-joined
10:47:10  <rendar>saghul: i see
10:47:11  <rendar>:)
11:03:52  * kazuponquit (Remote host closed the connection)
11:04:20  * kazuponjoined
11:08:52  * kazuponquit (Ping timeout: 244 seconds)
11:19:35  * andrehjrjoined
11:25:56  * seishunjoined
11:32:38  * c4milojoined
11:37:29  * c4miloquit (Ping timeout: 260 seconds)
11:46:21  * cjihrigjoined
11:46:56  * seishunquit (Disconnected by services)
11:46:58  * seishunjoined
11:49:23  * seishunquit (Read error: Connection reset by peer)
11:52:16  * Left_Turnjoined
12:08:14  * toothrotjoined
12:21:52  * cjihrigquit (Quit: Leaving.)
12:34:18  * rmgjoined
12:38:45  * rmgquit (Ping timeout: 246 seconds)
12:50:38  * AvianFlujoined
12:51:20  * cjihrigjoined
12:54:16  * a_lejoined
12:58:24  * toothrotquit (Ping timeout: 244 seconds)
13:04:04  * c4milojoined
13:05:54  * kevinswiberjoined
13:13:21  * c4miloquit (Remote host closed the connection)
13:16:52  * AvianFluquit (Ping timeout: 260 seconds)
13:21:18  * c4milojoined
13:24:25  * cjihrigquit (Quit: Leaving.)
13:27:00  * c4miloquit (Remote host closed the connection)
13:29:11  * AvianFlujoined
13:31:18  * kazuponjoined
13:32:59  * c4milojoined
13:36:58  * seishunjoined
13:37:33  * c4miloquit (Ping timeout: 246 seconds)
13:45:21  * seishunquit (Disconnected by services)
13:45:28  * seishunjoined
13:46:25  * seishunquit (Disconnected by services)
13:46:32  * seishunjoined
13:48:14  * AvianFluquit (Remote host closed the connection)
13:53:37  * KennethWilkejoined
13:54:17  * brsonjoined
13:54:45  * cjihrigjoined
14:01:52  * cjihrigquit (Ping timeout: 240 seconds)
14:06:33  * thlorenzjoined
14:13:55  * iarnajoined
14:15:15  * kevinswiberquit (Remote host closed the connection)
14:15:50  * kevinswiberjoined
14:16:02  * c4milojoined
14:20:12  * kevinswiberquit (Ping timeout: 245 seconds)
14:20:49  * c4miloquit (Ping timeout: 260 seconds)
14:28:35  * mikolalysenko_quit
14:28:50  * mikolalysenko_joined
14:29:31  * mikolalysenko_changed nick to mikolalysenko
14:32:14  * avalanche123joined
14:34:01  * bradleymeckjoined
14:36:34  * avalanche123quit (Ping timeout: 244 seconds)
14:36:46  <creationix>what’s that ascii image on the docs 404 page from, it’s pretty cool
14:39:52  * iarnaquit (Remote host closed the connection)
14:43:02  * a_lequit (Remote host closed the connection)
14:43:52  * kevinswiberjoined
14:44:24  * iarnajoined
14:48:38  * kevinswiberquit (Read error: No route to host)
14:48:43  * kevinswi_joined
14:52:27  * kevinswi_quit (Remote host closed the connection)
14:53:03  * kevinswiberjoined
14:53:11  <AlexisMocha>@tjfontaine : any thoughts on https://github.com/joyent/node/pull/8385 ?
14:54:07  * cjihrigjoined
14:56:36  * a_lejoined
14:57:31  * kevinswiberquit (Ping timeout: 272 seconds)
14:58:07  <KennethWilke>creationix, i think that's readthedocs.org's 404 page
14:58:34  <creationix>KennethWilke: sure is
14:58:53  <KennethWilke>would be fun if that was a game right?
14:59:04  <creationix>yep
15:06:36  * kevinswiberjoined
15:08:35  * chris_99joined
15:10:31  * c4milojoined
15:14:57  * kevinswiberquit (Remote host closed the connection)
15:15:33  * kevinswiberjoined
15:20:04  * kevinswiberquit (Ping timeout: 260 seconds)
15:21:28  * Rolinhjoined
15:21:45  <Rolinh>Hi all
15:21:49  <Rolinh>I have a minor question
15:22:05  <Rolinh>I'd like to fix DragonFly BSD support in libuv
15:22:12  <Rolinh>shall I do it in master?
15:22:20  <Rolinh>I guess so but I'd like a confirmation
15:28:33  * KennethWilkequit (Ping timeout: 272 seconds)
15:33:01  <saghul>Rolinh: awesome! do it for the v1.x branch, which the current development target
15:33:09  <saghul>*which is
15:38:20  <Rolinh>saghul: ok, thanks for the answer :)
15:41:26  * AvianFlujoined
15:51:41  * jgijoined
15:52:50  * kevinswiberjoined
15:54:29  * KennethWilkejoined
15:56:16  <Rolinh>saghul: currently, when compiling from dfly, is uses unix/freebsd.c . I think that there should not be lots of differences between the two but shall I create unix/dragonfly.c as well, to be more coherent and avoid #if defined(__DragonFly__) ?
16:00:57  * a_lequit (Remote host closed the connection)
16:01:44  * inolenjoined
16:02:53  * bradleymeckquit (Quit: bradleymeck)
16:03:59  <saghul>Rolinh: depends on how different they are, I'd say
16:04:29  * iarnaquit (Remote host closed the connection)
16:05:03  <KennethWilke>does libuv provide a means to zero copy transfer data from one socket to another?
16:05:39  <saghul>KennethWilke: alas, not
16:05:53  <KennethWilke>:(
16:06:09  <Rolinh>saghul: ok, for now I'll keep it under the same file then
16:07:02  <KennethWilke>would it be acceptable to ask for zero copy mechanisms in a feature request? :)
16:07:21  <indutny>do you mean splice()?
16:07:25  <saghul>if it comes with a patch attached yet ;-)
16:07:38  <saghul>indutny: yeah, I guess splice / sendfile
16:07:45  <indutny>KennethWilke: but it should probably work everywhere
16:07:53  <indutny>seems to be a major feature
16:08:11  <indutny>we can't make it platform-specific
16:08:44  <saghul>I guess it would work zero-copy where possible, would fallback to copying when not possible
16:08:50  * rmgjoined
16:09:53  <KennethWilke>i'm not very savvy on the various OS polling and networking mechanisms, mostly just the ones in linux
16:09:57  * kevinswiberquit (Remote host closed the connection)
16:10:30  * kevinswiberjoined
16:10:47  <saghul>I see a good learning opportunity here :-)
16:11:24  <KennethWilke>hmm, not with the time frame i'm trying to stay within
16:11:44  <KennethWilke>i'll try to finish a prototype without it, if it's faster than the libevent prototype I won't worry about it
16:12:27  <saghul>KennethWilke: you can always use uv_fileno, extract the fds and use splice yourself
16:12:58  * seishunquit (Quit: Leaving)
16:13:42  <KennethWilke>ooo
16:13:53  <KennethWilke>that sounds acceptable
16:14:20  <KennethWilke>I definitely would like to submit a patch to add that once I know enough to do it well
16:14:44  * kevinswiberquit (Ping timeout: 244 seconds)
16:16:10  * a_lejoined
16:17:56  * rmg_joined
16:18:15  * rmgquit (Read error: Connection reset by peer)
16:18:45  * seishunjoined
16:23:25  * janjongboomquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:23:37  * seishunquit (Disconnected by services)
16:23:47  * seishunjoined
16:26:00  * seishunquit (Disconnected by services)
16:26:10  * seishunjoined
16:27:25  * seishunquit (Disconnected by services)
16:27:35  * seishunjoined
16:27:43  * a_lequit (Read error: Connection reset by peer)
16:28:21  * a_lejoined
16:30:26  * chris_99quit (Ping timeout: 272 seconds)
16:32:03  * seishunquit (Client Quit)
16:32:39  * avalanche123joined
16:33:00  * seishunjoined
16:33:29  * chris_99joined
16:34:02  * Ralithquit (Ping timeout: 272 seconds)
16:34:14  * AlexisMochaquit (Ping timeout: 272 seconds)
16:35:30  * iarnajoined
16:36:17  * chris_99quit (Remote host closed the connection)
16:36:44  * chris_99joined
16:37:06  * andrehjrquit (Quit: Computer has gone to sleep.)
16:38:34  * AlexisMochajoined
16:40:18  * avalanche123quit (Remote host closed the connection)
16:40:24  * avalanche123joined
16:42:42  * avalanche123quit (Remote host closed the connection)
16:51:23  * inolen1joined
16:53:54  * inolenquit (Ping timeout: 246 seconds)
16:56:04  * seishunquit (Quit: Leaving)
16:57:35  * avalanche123joined
17:00:06  * seishunjoined
17:01:23  * sblomjoined
17:04:44  * kevinswiberjoined
17:05:51  * iarnaquit (Remote host closed the connection)
17:05:57  * Ralithjoined
17:11:06  * andrehjrjoined
17:11:28  * iarnajoined
17:13:05  * sblomquit (Read error: Connection reset by peer)
17:14:13  * a_le_joined
17:14:49  * a_lequit (Read error: Connection reset by peer)
17:15:06  * iarnaquit (Remote host closed the connection)
17:15:17  * iarnajoined
17:15:47  * saghulchanged nick to saghul|afk
17:21:53  * a_le_quit (Ping timeout: 260 seconds)
17:25:16  * sblomjoined
17:25:36  * iarnaquit (Remote host closed the connection)
17:27:03  * seishunquit (Quit: Leaving)
17:28:32  * seishunjoined
17:31:13  * c4miloquit (Remote host closed the connection)
17:31:52  * c4milojoined
17:31:56  * a_lejoined
17:34:13  * kevinswiberquit (Remote host closed the connection)
17:34:52  * iarnajoined
17:34:53  * kevinswiberjoined
17:36:04  * chris_99quit (Remote host closed the connection)
17:36:22  * c4miloquit (Ping timeout: 244 seconds)
17:36:41  <creationix>hey C people, is there a simple way to map void* values to int values?
17:36:57  <creationix>I’m not in C++ and would rather not include a huge container library
17:37:12  <creationix>I could implement a simple linked list, but isn’t there a faster way using some sort of hash map?
17:37:23  * chris_99joined
17:37:47  <creationix>I want to store a void* -> int mapping, retrieve the int from a void* and then later remove the mapping
17:38:52  * kevinswiberquit (Ping timeout: 240 seconds)
17:39:23  <KennethWilke>int somethingyouhave; void *ptr = &somethingyouhave;
17:39:44  <KennethWilke>that'd set the void pointer to the addr of an int
17:39:58  * kevinswiberjoined
17:40:17  <creationix>KennethWilke: no, I don’t want to change where the pointer is pointing
17:40:41  <creationix>the int is an opaque ref into the lua vm
17:40:50  * andrehjrquit (Ping timeout: 258 seconds)
17:40:54  <KennethWilke>you want to change the value of the int it points to?
17:40:59  <creationix>currently I’m using a lua table since the language has maps and I can use void* as keys
17:41:08  <creationix>no, I want a mapping from a void* to an int
17:41:35  <creationix>to associate data with a pointer without wrapping the struct I’m point to
17:42:19  <creationix>though maybe wrapping is the correct answer
17:42:24  <creationix>hmm
17:42:32  * dap_joined
17:42:38  <KennethWilke>i think wrapping would be more efficient than iterating over a list
17:43:27  * kazuponquit (Remote host closed the connection)
17:43:54  * kazuponjoined
17:43:59  <creationix>oh, there is one catch. Sometimes I’ll be given pointers that I may or may not have wrapped. Is I assume all pointers were wrapped by me (using container_of or type casting) I’ll get a segfault
17:44:08  <creationix>with a map I’ll know when the pointer isn’t in my list/map
17:44:56  <KennethWilke>you could use a union for the questionable struct member, and another field to indicate the type to use when interacting with the union
17:45:05  * andrehjrjoined
17:45:09  <KennethWilke>but then yeah, that also need to be set each time i think
17:46:16  <creationix>I don’t think that would help, the pointers can be uv_loop_t, uv_req_t, uv_handle_t, or lua_State
17:46:33  <KennethWilke>ah yeah, that's getting a bit more complex
17:46:35  * kazuponquit (Read error: Connection reset by peer)
17:46:48  * kazuponjoined
17:46:55  <creationix>the map in lua works, I’m just hoping for something faster
17:47:07  <KennethWilke>yeah
17:47:17  <creationix>I wonder how slow a linked list in C is compared to calling out to the lua VM
17:48:06  <KennethWilke>depends on the type of linked list i think, if it's a small list i'd guess your impl would be faster
17:48:15  * kazupon_joined
17:48:28  <KennethWilke>dunno how performant lua's hashmap algorithms are
17:48:35  <creationix>it’s all active handles, reqs, loops and lua corutines in my server, that can get pretty large
17:49:44  * kazupon__joined
17:50:47  <creationix>yeah, so wrapping the structs is best if I can, I’ll think more about those edge cases where I get unwrapped pointers
17:50:51  * kazuponquit (Read error: Connection reset by peer)
17:51:01  * kazupon__quit (Read error: Connection reset by peer)
17:51:14  * kazuponjoined
17:51:51  * rosskjoined
17:52:40  * kazupon_quit (Ping timeout: 260 seconds)
17:52:43  * kazupon__joined
17:54:11  * kazupon_joined
17:54:27  * FROGGS[mobile]quit (Remote host closed the connection)
17:55:41  * kazupo___joined
17:55:56  * kazuponquit (Ping timeout: 272 seconds)
17:57:12  * kazuponjoined
17:57:20  * kazupon__quit (Ping timeout: 260 seconds)
17:57:33  * thlorenzquit (Remote host closed the connection)
17:57:35  * rendar_joined
17:58:35  * AlexisMochaquit (Ping timeout: 244 seconds)
17:58:54  * abraxasjoined
17:59:06  * kazupon_quit (Ping timeout: 272 seconds)
17:59:18  * iarnaquit (Remote host closed the connection)
17:59:47  * kazupo___quit (Ping timeout: 245 seconds)
18:00:12  * kazupon_joined
18:01:23  * kazuponquit (Ping timeout: 240 seconds)
18:01:34  * kazuponjoined
18:02:04  * rendarquit (Ping timeout: 272 seconds)
18:02:52  * kazuponquit (Read error: Connection reset by peer)
18:03:03  * kazuponjoined
18:03:16  * abraxasquit (Ping timeout: 250 seconds)
18:03:23  * brsonquit (Ping timeout: 240 seconds)
18:04:35  * kazupon__joined
18:04:48  * kazupon_quit (Ping timeout: 272 seconds)
18:05:58  * kazupon__quit (Read error: Connection reset by peer)
18:06:03  * kazupon_joined
18:07:28  * kazupon__joined
18:07:34  * kazupon_quit (Read error: Connection reset by peer)
18:07:36  * kazuponquit (Ping timeout: 260 seconds)
18:09:10  * brsonjoined
18:09:18  * sinclair-work_joined
18:10:15  * cjihrigquit (Quit: Leaving.)
18:10:28  * iarnajoined
18:10:32  * thlorenzjoined
18:10:37  * sinclair-workquit (Ping timeout: 245 seconds)
18:11:57  * kazupon__quit (Ping timeout: 245 seconds)
18:13:35  <creationix>KennethWilke: do you know how unions work to force layout of structs?
18:13:56  <creationix>if I have my common field names at the end, will it pad the first ones to the largest size?
18:14:15  <KennethWilke>yeah i believe the union should pad out to it's largest field type
18:14:32  <KennethWilke>and keep the struct a consistent size
18:15:14  <creationix>can I trust the first field to always be at offset 0?
18:16:01  <KennethWilke>the union only holds a single value, so if it's the first field of your struct it should always be at offset 0
18:16:51  <creationix>and it won’t pad the last field since it’s only offsets that matter
18:17:50  * chris_99quit (Quit: Leaving)
18:23:31  * c4milojoined
18:23:59  * kevinswiberquit (Read error: Connection reset by peer)
18:24:29  * kevinswiberjoined
18:28:23  * kevinswiberquit (Remote host closed the connection)
18:28:48  * sh1mmerjoined
18:28:57  * kevinswiberjoined
18:29:27  * cjihrigjoined
18:33:16  * kevinswiberquit (Ping timeout: 260 seconds)
18:34:34  * sh1mmerquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
18:34:44  * kevinswiberjoined
18:35:26  * AlexisMochajoined
18:35:48  * sh1mmerjoined
18:38:01  * kazuponjoined
18:40:47  * kazuponquit (Read error: Connection reset by peer)
18:41:05  * kazuponjoined
18:46:27  * daviddiasjoined
18:49:41  * kazuponquit (Ping timeout: 260 seconds)
19:00:41  * kevinswiberquit (Remote host closed the connection)
19:01:14  * kevinswiberjoined
19:12:54  * brsonquit (Quit: leaving)
19:15:26  * kazuponjoined
19:20:29  * kazuponquit (Ping timeout: 260 seconds)
19:27:46  * kevinswiberquit (Ping timeout: 250 seconds)
19:30:46  * kevinswiberjoined
19:35:45  * thlorenzquit (Remote host closed the connection)
19:36:38  * thlorenzjoined
19:37:28  * andrehjr_joined
19:37:42  * andrehjrquit (Ping timeout: 245 seconds)
19:38:15  * SquirrelCZECHquit (Remote host closed the connection)
19:38:31  * SquirrelCZECHjoined
19:40:18  * SquirrelCZECHquit (Remote host closed the connection)
19:40:30  * SquirrelCZECHjoined
19:41:35  * jgiquit (Quit: jgi)
19:41:38  <Rolinh>mmh, I'm not familiar with the GYP build system
19:41:53  <Rolinh>is there a way to output what the value of a variable is set to?
19:42:09  <Rolinh>I'd like to make sure of what the value is for "OS" in my case
19:42:32  * kazuponjoined
19:49:21  * kazuponquit (Ping timeout: 260 seconds)
19:51:58  * rmg_quit (Remote host closed the connection)
19:52:33  * rmgjoined
19:53:33  * KennethWilkequit (Ping timeout: 260 seconds)
19:56:53  * rmgquit (Ping timeout: 240 seconds)
19:59:55  * abraxasjoined
20:04:22  * abraxasquit (Ping timeout: 245 seconds)
20:06:06  <Rolinh>neverming, it seems that GYP needs to be patched for DragonFly BSD support
20:06:18  * KennethWilkejoined
20:07:28  * txdvquit (Ping timeout: 272 seconds)
20:08:19  * sh1mmerquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:10:21  * sh1mmerjoined
20:13:51  * txdvjoined
20:15:24  * jgijoined
20:18:50  * andrehjr_quit (Quit: Computer has gone to sleep.)
20:22:15  * KennethWilkequit (Quit: Leaving)
20:27:21  * andrehjrjoined
20:29:46  * avalanche123quit (Remote host closed the connection)
20:30:50  * kevinswiberquit (Remote host closed the connection)
20:31:28  * kevinswiberjoined
20:33:20  * thlorenz_joined
20:35:09  * thlorenzquit (Ping timeout: 260 seconds)
20:35:53  * kevinswiberquit (Ping timeout: 240 seconds)
20:36:24  * kevinswiberjoined
20:43:46  * kevinswiberquit (Remote host closed the connection)
20:44:19  * kevinswiberjoined
20:45:03  * kazuponjoined
20:48:33  * avalanche123joined
20:48:34  * kevinswiberquit (Ping timeout: 244 seconds)
20:50:13  * kazuponquit (Ping timeout: 258 seconds)
21:01:05  * indexzero_joined
21:01:27  * indexzero_quit (Client Quit)
21:07:42  * AlexisMochaquit (Ping timeout: 245 seconds)
21:10:52  * andrehjrquit (Quit: Computer has gone to sleep.)
21:33:13  * andrehjrjoined
21:35:23  * thlorenz_quit (Remote host closed the connection)
21:36:43  * thlorenz_joined
21:37:03  * rendar_quit
21:37:18  * thlorenz_quit (Remote host closed the connection)
21:46:04  * kazuponjoined
21:48:45  * andrehjrquit (Quit: Computer has gone to sleep.)
21:50:42  * kazuponquit (Ping timeout: 245 seconds)
21:51:13  * c4miloquit (Remote host closed the connection)
21:58:10  * c4milojoined
22:00:40  * abraxasjoined
22:05:08  * abraxasquit (Ping timeout: 260 seconds)
22:06:27  * kellabytequit (Quit: Connection closed for inactivity)
22:11:10  * cjihrigquit (Quit: Leaving.)
22:12:57  * kevinswiberjoined
22:16:32  * rmgjoined
22:29:08  * dap_quit (Quit: Leaving.)
22:36:08  * iarnaquit (Remote host closed the connection)
22:37:44  * AvianFluquit (Quit: Leaving)
22:40:49  * sh1mmerquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:41:12  * sh1mmerjoined
22:42:25  * sh1mmerquit (Client Quit)
22:43:54  * seishunquit (Ping timeout: 272 seconds)
22:44:34  * sh1mmerjoined
22:45:57  * sh1mmerquit (Client Quit)
22:46:21  * sh1mmerjoined
22:46:34  * toothrotjoined
22:47:04  * kazuponjoined
22:51:52  * kazuponquit (Ping timeout: 250 seconds)
22:52:12  * cjihrigjoined
22:58:35  * thlorenzjoined
23:01:47  * thlorenzquit (Remote host closed the connection)
23:02:57  <mmalecki>saghul|afk: https://github.com/joyent/libuv/pull/1502
23:05:43  * thlorenz_joined
23:08:29  * janjongboomjoined
23:09:06  * a_lequit (Ping timeout: 246 seconds)
23:09:23  * thlorenz_quit (Remote host closed the connection)
23:16:25  * kevinswiberquit (Remote host closed the connection)
23:18:38  * kevinswiberjoined
23:19:37  * thlorenzjoined
23:24:24  * rmgquit (Remote host closed the connection)
23:28:34  * thlorenzquit (Remote host closed the connection)
23:35:17  * sh1mmerquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:37:53  * thlorenzjoined
23:43:11  * sh1mmerjoined
23:47:50  * kazuponjoined
23:49:54  * iarnajoined
23:50:19  * thlorenzquit (Remote host closed the connection)
23:52:56  * kazuponquit (Ping timeout: 272 seconds)
23:57:13  * cjihrigquit (Quit: Leaving.)