00:43:02  * s3shsquit (Quit: Computer has gone to sleep.)
00:53:19  * bnoordhuisjoined
00:56:19  * brsonjoined
00:58:12  * bnoordhuisquit (Ping timeout: 255 seconds)
01:05:54  * evanluca_quit (Read error: Connection reset by peer)
01:06:15  * evanlucasjoined
01:08:22  * wuqiongjoined
01:08:48  * wuqiongquit (Remote host closed the connection)
01:16:04  * Ruyijoined
01:19:47  * Fishrock123quit (Quit: Leaving...)
01:20:26  * wuqiongjoined
01:21:25  * s3shsjoined
01:22:38  * s3shsquit (Remote host closed the connection)
01:23:19  * s3shsjoined
01:24:58  * txdv_joined
01:30:43  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
01:31:34  <txdv_>saghul: https://github.com/libuv/libuv/pull/620 this one looks very promising
01:31:40  <txdv_>please have a look on it
01:32:17  * happy-dudequit (Read error: Connection reset by peer)
01:32:46  * happy-dudejoined
01:33:58  * jgiquit (Quit: jgi)
01:34:25  * Guest84911quit (Quit: Page closed)
01:34:59  * avalanche123quit (Remote host closed the connection)
01:36:21  * s3shs_joined
01:38:35  * s3shsquit (Ping timeout: 264 seconds)
01:46:41  * ruyi_du_joined
01:49:46  * Ruyiquit (Ping timeout: 240 seconds)
01:50:47  * s3shs_quit (Quit: Computer has gone to sleep.)
01:52:18  * s3shsjoined
02:03:12  * s3shsquit (Remote host closed the connection)
02:03:49  * s3shsjoined
02:08:59  * wuqiong_joined
02:10:08  * s3shs_joined
02:11:26  * wuqiongquit (Ping timeout: 240 seconds)
02:13:14  * s3shsquit (Ping timeout: 256 seconds)
02:18:05  * tunniclmquit (Ping timeout: 276 seconds)
03:05:37  * s3shs_quit (Quit: Computer has gone to sleep.)
03:06:40  * s3shsjoined
03:23:29  * dap_quit (Quit: Leaving.)
03:23:44  * brsonquit (Ping timeout: 276 seconds)
03:33:26  * s3shsquit (Quit: Computer has gone to sleep.)
04:21:08  * evanlucasquit (Quit: Textual IRC Client: www.textualapp.com)
04:39:44  * happy-dudequit (Quit: Connection closed for inactivity)
05:03:42  * rmgquit (Remote host closed the connection)
05:09:49  * evanlucasjoined
05:12:04  * evanlucasquit (Remote host closed the connection)
05:31:12  * happy-dudejoined
06:15:12  * s3shsjoined
06:30:26  * s3shsquit (Quit: Computer has gone to sleep.)
06:34:06  * ruyi_du_quit (Ping timeout: 240 seconds)
06:37:59  * Ruyijoined
06:44:31  * evanlucasjoined
06:52:19  * evanlucasquit (Remote host closed the connection)
06:56:04  * evanluca_joined
07:05:49  * jgijoined
07:06:06  * rmgjoined
07:10:48  * rmgquit (Ping timeout: 255 seconds)
07:14:17  * seishunjoined
07:17:06  * evanluca_changed nick to evanlucas
07:30:13  * jgiquit (Quit: jgi)
07:59:38  * amurzeauquit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
07:59:52  * amurzeaujoined
08:18:45  * seishunquit (Ping timeout: 255 seconds)
08:21:24  * benjamingr_joined
09:01:35  * amurzeauquit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
09:01:48  * amurzeaujoined
09:05:39  * tunniclmjoined
09:41:46  * wuqiong_quit (Remote host closed the connection)
09:59:17  * Ruyiquit (Read error: Connection reset by peer)
09:59:46  * Ruyijoined
10:11:57  * rendarjoined
10:12:40  * Ruyiquit (Read error: Connection reset by peer)
10:14:55  * bnoordhuisjoined
10:25:42  * amurzeauquit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
10:25:55  * amurzeaujoined
10:39:44  * happy-dudequit (Quit: Connection closed for inactivity)
10:41:48  * davijoined
10:41:49  * daviquit (Changing host)
10:41:49  * davijoined
10:42:35  * kevinsimperjoined
11:57:57  * kevinsimperquit (Remote host closed the connection)
11:58:12  * bnoordhuisquit (Ping timeout: 272 seconds)
12:28:00  * rmgjoined
12:32:16  * kevinsimperjoined
12:32:36  * rmgquit (Ping timeout: 250 seconds)
12:33:49  * kevinsimperquit (Remote host closed the connection)
12:36:29  * kevinsimperjoined
13:14:12  * amurzeauquit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
13:14:24  * amurzeaujoined
13:17:08  * s3shsjoined
13:23:15  * s3shsquit (Ping timeout: 240 seconds)
13:57:32  * hij1nxjoined
13:57:38  * hij1nxchanged nick to \0x00a
13:59:59  * happy-dudejoined
14:09:36  * s3shsjoined
14:28:44  * rmgjoined
14:33:06  * rmgquit (Ping timeout: 240 seconds)
14:39:34  * daviquit (Ping timeout: 250 seconds)
14:46:12  * s3shsquit (Quit: Computer has gone to sleep.)
15:04:42  * s3shsjoined
15:08:56  * kevinsimperquit (Remote host closed the connection)
15:12:05  * davijoined
15:12:06  * daviquit (Changing host)
15:12:06  * davijoined
15:14:05  * s3shsquit (Remote host closed the connection)
15:14:43  * s3shsjoined
15:30:29  * mmickoquit (Remote host closed the connection)
15:38:56  * kevinsimperjoined
16:07:06  * kevinsimperquit (Ping timeout: 250 seconds)
16:09:20  * amurzeauquit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:09:35  * amurzeaujoined
16:26:19  * seishunjoined
16:29:27  * rmgjoined
16:34:34  * rmgquit (Ping timeout: 256 seconds)
16:38:20  * bnoordhuisjoined
16:41:33  * fourqchanged nick to fourq|away
16:42:16  * fourq|awaychanged nick to fourq
16:47:02  * brrtjoined
16:56:05  * brrtquit (Quit: brrt)
16:58:40  * rmgjoined
17:01:22  * jgijoined
17:05:04  * evanlucaschanged nick to evanluca_
17:06:03  * jgiquit (Client Quit)
17:07:33  * wuqiongjoined
17:10:57  * alexforsterjoined
17:16:08  * alexforsterquit (Ping timeout: 272 seconds)
17:25:01  * jgijoined
17:25:12  * alexforsterjoined
17:26:41  * brsonjoined
17:30:51  * jgiquit (Quit: jgi)
17:32:03  * jgijoined
17:32:13  * jgiquit (Client Quit)
17:35:33  * alexforsterquit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:38:34  * dap_joined
17:51:53  * s3shsquit (Quit: Computer has gone to sleep.)
18:03:33  * jgijoined
18:04:18  * Fishrock123joined
18:06:20  * s3shsjoined
18:18:46  * wuqiongquit (Remote host closed the connection)
18:22:32  * avalanche123joined
18:25:59  * jgiquit (Quit: jgi)
18:30:07  * jgijoined
18:30:07  * wuqiongjoined
18:37:40  <trevnorris>jgi: ping
18:37:48  <jgi>trevnorris: pong
18:38:16  <trevnorris>jgi: having an unexpected result using domains with user invoked MakeCallback calls.
18:38:53  <jgi>trevnorris: do you have some code somewhere that reproduces the problem?
18:38:57  <trevnorris>jgi: here's a snippet: https://gist.github.com/trevnorris/0e802be6b6ac59051274
18:39:23  <trevnorris>makeCallback() just passes the object w/ the domain to node::MakeCallback for processing.
18:39:35  <trevnorris>it sees the object has a .domain property and enters it.
18:40:02  <trevnorris>though when it encounters an error it empties the stack, like you said, so the d1 error throws.
18:41:20  <jgi>trevnorris: makeCallback is a JS API exposed by a binary add-on?
18:41:32  <trevnorris>binary addon that calls node::MakeCallback in src/node.cc
18:42:31  <jgi>trevnorris: ok, do you have the whole thing that builds in a repo somewhere? Otherwise it’s going to be tedious for me to understand _exactly_ what’s expected and what actually happens.
18:42:48  <trevnorris>jgi: it's a test I wrote for this: https://github.com/nodejs/node/pull/4507
18:43:15  <trevnorris>you'll want to run w/ the patch since MakeCallback is currently not reentrant.
18:43:47  <trevnorris>wait. haven't updated the test. sec.
18:45:08  <trevnorris>jgi: specifically the function checkDomains() in https://github.com/trevnorris/node/blob/throw-mc-fix/test/addons/make-callback-recurse/test.js
18:46:41  <jgi>trevnorris: ok, let me know when you updated the test
18:46:46  <trevnorris>jgi: it's updated
18:50:19  <jgi>trevnorris: ok, looking at it
18:53:10  * seishunquit (Quit: Leaving)
19:05:51  <jgi>trevnorris: my apologies for the time it takes, figuring out what’s right and wrong with domains is to me always a meditative experience
19:06:42  <trevnorris>hah. no worries. i'm working on other stuff as well.
19:07:19  <trevnorris>jgi: mostly i'm interested on your opinion on how this should operate. should it allow the function to continue running, should the outer domain not be removed, etc.
19:07:29  <trevnorris>i'm alright working on the patch, just not sure what's supposed to happen.
19:10:25  * wuqiongquit (Remote host closed the connection)
19:31:31  <simpson>Hi! I am writing to stdout using libuv's TTY support. I notice that my writes are buffering. What's the right way to uncook stdout?
19:31:43  <simpson>I would also accept a way to flush, but I could not find any such thing in the docs.
19:41:15  * s3shs_joined
19:44:12  * s3shsquit (Ping timeout: 250 seconds)
19:55:52  <bnoordhuis>simpson: have you called uv_tty_set_mode()?
19:57:39  * s3shsjoined
20:01:20  <simpson>bnoordhuis: No. I didn't see the words "cook" or "uncook", so I wasn't sure whether that was the right thing.
20:01:29  * s3shs_quit (Ping timeout: 276 seconds)
20:02:03  * alexforsterjoined
20:02:47  <bnoordhuis>simpson: you probably want UV_TTY_MODE_RAW or UV_TTY_MODE_IO
20:06:59  <simpson>bnoordhuis: Makes sense! I'm gonna go try this. Thanks.
20:09:42  * brrtjoined
20:22:39  * s3shsquit (Quit: Computer has gone to sleep.)
20:27:48  * s3shsjoined
20:29:10  <jgi>trevnorris: just to let you know that I haven’t forgotten about your question(s) :)
20:30:49  <jgi>trevnorris: it’s just that the more I look at it, the more domains (including how core uses it) look inconsistent, and so I keep wondering if that’s due to my poor understanding of how it works, or just the way it is
20:31:08  <jgi>trevnorris: I’ll write something up soon-ish, hopefully that’ll help you in some way
20:32:14  <trevnorris>jgi: it's not just you. domains are just plainly inconsistent. the effort to put them in wasn't the best and left a lot of holes.
20:35:29  * benjamingr_quit (Quit: Connection closed for inactivity)
20:39:25  * alexforsterquit (Quit: Textual IRC Client: www.textualapp.com)
20:44:58  <simpson>bnoordhuis: Well, my program's not ready to deal with uncooked terminals, but that flag *does* work. Thank you.
20:45:13  <bnoordhuis>simpson: np :)
20:46:25  <simpson>Now I guess that I have to choose between re-implementing signal handling and other TTY features, or doing useful things.
20:46:31  <trevnorris>jgi: here's an example between makecallback and using just domain run(): https://gist.github.com/trevnorris/0e802be6b6ac59051274
20:47:33  <jgi>trevnorris: yes, and domain-js does not print “d2 just ran” right?
20:47:43  <trevnorris>jgi: nope.
20:47:54  <bnoordhuis>simpson: just so you know, there's a uv_signal_t handle type
20:47:59  <jgi>trevnorris: nope in the sense “it doesn’t print it” or “it prints it”? :)
20:48:15  <trevnorris>hah. it doesn't print it.
20:48:20  <trevnorris>which caught me off guard.
20:48:31  <jgi>sorry, written communication is hard :)
20:48:33  <simpson>bnoordhuis: Sure. I mean that a raw TTY breaks many assumptions that my cruddy code was making, and I don't have the gumption right now to deal with that.
20:48:48  <trevnorris>i thought the point of .run() was to basically try/catch the call and allow code execution to continue.
20:49:07  <jgi>trevnorris: yeah, I think my write up should help you at least help you find a starting point
20:49:15  <jgi>trevnorris: I’ll explain why that happen in that write-up
20:49:19  <jgi>happenS
20:49:52  <trevnorris>thanks.
20:51:21  <jgi>trevnorris: it will probably be done after my lunch though (probably done around 2:30), does that work for you?
20:51:37  <jgi>I mean writeup done around 2:30, not lunch :)
20:54:37  <jgi>trevnorris: then I may take some time to do a full write-up about domains’ implementation, so that we can all be on the same page on what’s expected inconsistency, what’s working and useful, and what’s inconsistent and broken
20:55:02  <jgi>trevnorris: including the relationship with things like post-mortem debugging
20:56:50  * seishunjoined
20:56:56  <trevnorris>jgi: that's totally fine. this isn't a rush. i have other kinks to work out.
21:00:05  * rendarquit (Ping timeout: 246 seconds)
21:06:04  * rendarjoined
21:14:24  * jgiquit (Quit: jgi)
21:40:15  * seishunquit (Ping timeout: 240 seconds)
21:59:59  * jgijoined
22:00:55  * daviquit (Ping timeout: 240 seconds)
22:04:34  * bretquit (Ping timeout: 240 seconds)
22:04:36  * Ralithquit (Ping timeout: 240 seconds)
22:04:36  * tumdedumquit (Ping timeout: 240 seconds)
22:05:19  * Ralithjoined
22:05:55  * tumdedumjoined
22:10:05  * bretjoined
22:23:46  * jgiquit (Quit: jgi)
22:26:51  * brrtquit (Quit: brrt)
22:27:44  * jgijoined
23:01:02  * Fishrock123quit (Read error: Connection reset by peer)
23:10:07  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
23:36:03  * saghulquit (Ping timeout: 250 seconds)
23:42:34  * kevinsimperjoined
23:43:37  * kevinsimperquit (Remote host closed the connection)
23:51:50  * bnoordhuisquit (Ping timeout: 265 seconds)