00:04:08  <caitp>littledan_: specifically I'm thinking of things implemented in C++ which care about the various typedarray instance types --- I __think__ it would end up working okay, but I just want to be sure
00:04:30  <littledan_>caitp, could you give me an example of one to look at?
00:04:52  <littledan_>I don't know much about all the web APIs that use TypedArrays if that's what you're referring to
00:06:27  <caitp>I dunno, I might be overthinking it, if it's a problem toon or someone will bring it up
00:08:08  <littledan_>well, I'd like to fix a problem if it's there. If you're overthinking it, maybe you can overthink it a little more and figure out a more concrete problem
00:08:30  * C-Manquit (Quit: Connection reset by beer)
00:11:51  <caitp>I think it's probably safe because of the "this is non-generic" assertions in TypedArray methods
00:11:58  <caitp>so maybe it doesn't amtter
00:12:16  <caitp>you probably just end up with a bogus object whose methods always throw
00:44:51  * watildejoined
00:49:33  * plutoniixjoined
00:50:38  * watildequit (Ping timeout: 265 seconds)
00:56:22  * bobmcwquit (Remote host closed the connection)
00:59:58  * esasquit (Read error: Connection reset by peer)
01:17:59  * esasjoined
01:23:29  * Bob_Gneuquit (Ping timeout: 245 seconds)
01:23:57  * BobGneujoined
01:28:11  <mesch>hello, I'm wondering if persistent v8 types be shared across isolates or if this is guaranteed to be unsafe?
01:30:29  <mesch>I'm really wondering if it is possible to manage an independent memory space of v8 types that I can share between isolates
01:35:56  * jgiquit (Quit: jgi)
01:39:10  * bnoordhuisquit (Ping timeout: 272 seconds)
01:43:10  * seventhquit (Ping timeout: 260 seconds)
01:56:47  * bobmcwjoined
01:56:47  * bobmcwquit (Changing host)
01:56:47  * bobmcwjoined
01:58:00  * xaxxonjoined
01:58:47  <xaxxon>anyone know how to send in feedback for pages on developers.google.com? I found an error in some sample code but I don't see any way to give feedback other than the number of *'s to give it at the top
02:01:28  <caitp>there's probably no baked in way to give feedback (maybe there is, idk)
02:01:39  <caitp>try mailing [email protected]
02:01:43  <caitp>or filing a bug
02:02:08  * bobmcwquit (Ping timeout: 250 seconds)
02:02:24  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
02:02:46  * lerelaquit (Ping timeout: 240 seconds)
02:04:06  * ofrobotsjoined
02:04:11  <xaxxon>caitp, hrmm.. I might not even have found a problem, but I think the "setter" here is wrong.. https://developers.google.com/v8/embed#accessing-static-global-variables should be const PropertyCallbackInfo<~~Value~~void>
02:04:25  <xaxxon>it didn't build for me until I changed it and it worked..
02:04:25  * ofrobotsquit (Client Quit)
02:04:46  <xaxxon>I'll toss something in the v8 github issue tracker I gues
02:04:47  <xaxxon>s
02:05:31  <xaxxon>oh.. maybe that's not even where they go?
02:06:14  <caitp>the github issue tracker isn't really used, no
02:06:23  <caitp>let me see if i have the address memorized
02:06:32  <caitp>bugs.chromium.org/p/v8
02:06:40  <caitp>bingo
02:09:51  * ofrobotsjoined
02:10:11  <xaxxon>thanks: https://bugs.chromium.org/p/v8/issues/detail?id=4641
02:12:46  <caitp>https://chromium.googlesource.com/v8/v8/+/master/include/v8.h is the ToT v8.h btw, not the one under https://v8.googlecode.com/svn/trunk/include/v8.h
02:14:04  <xaxxon>oh, I just googled real quick... but the prototype matches what actually compiled on my brand new checkout
02:14:11  <xaxxon>so it's probably sufficient in this case, but good toknow
02:16:28  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
02:24:02  <caitp>anyways, I think you're right
02:33:58  <xaxxon>should I be able to use fat arrow functions in my code that I send to v8? I'm just changing up the code here: https://developers.google.com/v8/get_started#hello-world
02:35:56  <xaxxon>oh
02:36:19  <xaxxon>I re-used a variable name in my javascript that I had defined in my c++ via a template.
02:55:51  * ofrobotsjoined
02:59:09  * xaxxon_joined
02:59:23  * xaxxonquit (Read error: Connection reset by peer)
03:21:21  <caitp>if you're using a recent version of v8, yes
03:21:29  <caitp>can't remember when they shipped
03:21:45  <caitp>been a few major releases probably
03:30:00  * xaxxon_quit (Ping timeout: 272 seconds)
03:50:36  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:11:29  * ofrobotsjoined
04:14:27  * ofrobotsquit (Client Quit)
04:16:29  * ofrobotsjoined
04:36:46  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:38:29  * ofrobotsjoined
04:43:33  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:45:57  * jgijoined
04:47:42  * watildejoined
04:49:55  * ofrobotsjoined
04:51:59  * watildequit (Ping timeout: 246 seconds)
04:59:55  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
05:12:32  * ofrobotsjoined
05:39:58  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
06:29:14  * esasquit (Ping timeout: 272 seconds)
06:44:17  * watildejoined
06:48:36  * jgiquit (Quit: jgi)
06:49:08  * jgijoined
06:59:13  * xaxxon_joined
07:00:19  * bobmcwjoined
07:00:19  * bobmcwquit (Changing host)
07:00:19  * bobmcwjoined
07:05:06  * bobmcwquit (Ping timeout: 240 seconds)
07:05:59  * jgiquit (Quit: jgi)
07:10:07  * mostynbjoined
08:00:04  * watildequit (Remote host closed the connection)
08:37:06  * xaxxon_quit (Quit: This computer has gone to sleep)
08:59:34  * C-Manjoined
09:02:12  * xaxxon_joined
10:29:28  * bnoordhuisjoined
10:39:31  * rendarjoined
10:50:57  * plutoniixquit (Quit: จรลี จรลา)
11:04:02  * bobmcwjoined
11:08:59  * bobmcwquit (Ping timeout: 260 seconds)
11:18:44  * mostynbquit (Ping timeout: 246 seconds)
11:19:10  * mostynbjoined
11:36:03  * C-Manquit (Ping timeout: 260 seconds)
11:42:39  * ewanasjoined
11:53:12  * JoWiejoined
12:12:10  * C-Manjoined
12:22:40  * bnoordhuisquit (Ping timeout: 245 seconds)
12:23:05  * bnoordhuisjoined
12:51:11  * bnoordhuisquit (Ping timeout: 264 seconds)
13:11:11  * plutoniixjoined
14:08:10  * bobmcwjoined
14:26:41  * C-Manquit (Quit: Connection reset by beer)
14:47:50  * ofrobotsjoined
14:48:19  * bradleymeckjoined
15:05:00  * bnoordhuisjoined
15:52:21  * RT|Chatzillaquit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2009081014])
16:04:21  * ewanasquit (Quit: leaving)
16:08:35  * bnoordhuisquit (Ping timeout: 260 seconds)
16:14:46  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
16:19:44  * bradleymeckquit (Quit: bradleymeck)
16:20:05  * seventhjoined
16:22:30  * bradleymeckjoined
16:52:47  * ofrobotsjoined
16:58:57  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:14:51  * bnoordhuisjoined
17:19:59  * bnoordhuisquit (Ping timeout: 260 seconds)
17:25:00  * jgijoined
17:32:44  * ofrobotsjoined
17:38:54  * lerelajoined
17:43:27  * bnoordhuisjoined
17:45:25  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:56:10  * mostynbquit (Quit: Leaving)
18:09:12  * jgiquit (Quit: jgi)
18:11:36  * ofrobotsjoined
18:23:51  * esasjoined
18:24:40  * bradleymeckquit (Quit: bradleymeck)
18:28:43  * bradleymeckjoined
18:30:36  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:36:44  * jgijoined
18:38:01  * bradleymeckquit (Quit: bradleymeck)
18:46:49  * watildejoined
19:06:22  * jgiquit (Quit: jgi)
19:43:36  * xaxxon_quit (Quit: This computer has gone to sleep)
19:45:41  * xaxxon_joined
19:46:22  * C-Manjoined
20:02:16  * bradleymeckjoined
20:11:33  * ofrobotsjoined
20:29:38  * JoWiequit (Quit: Connection closed for inactivity)
20:32:54  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
20:39:46  * ofrobotsjoined
20:44:17  * watildequit (Remote host closed the connection)
20:47:47  * watildejoined
20:57:38  * C-Manquit (Ping timeout: 276 seconds)
20:59:32  * C-Manjoined
21:00:50  * watildequit (Remote host closed the connection)
21:02:22  * lmkmplmjoined
21:06:47  * C-Manquit (Ping timeout: 264 seconds)
21:06:50  * lmkmplmquit (Ping timeout: 245 seconds)
21:07:38  * C-Manjoined
21:11:55  * C-Manquit (Ping timeout: 240 seconds)
21:11:56  * zvquit (Ping timeout: 240 seconds)
21:15:16  * xaxxon_quit (Ping timeout: 272 seconds)
21:17:15  * C-Manjoined
21:24:00  * C-Manquit (Ping timeout: 255 seconds)
21:26:44  * zvjoined
21:31:17  * xaxxonjoined
21:40:32  * ofrobotsquit (Quit: My Mac has gone to sleep. ZZZzzz…)
21:45:05  * ofrobotsjoined
21:45:55  * C-Manjoined
21:46:37  * ofrobotsquit (Client Quit)
21:54:25  * xiinotulpjoined
21:55:44  * plutoniixquit (Ping timeout: 246 seconds)
22:21:41  * lerelaquit (Remote host closed the connection)
22:32:06  * C-Manquit (Remote host closed the connection)
22:32:07  * RT|Chatzillajoined
22:34:15  * C-Manjoined
22:34:27  * C-Manquit (Client Quit)
22:42:40  * rendarquit (Ping timeout: 245 seconds)
22:42:54  <xaxxon>I'm sure I'm missing something basic, but how do you associate multiple templates with a context? I see how you pass one in as the third parameter to Conext::New but I'm confused how to use multiple... can you set more than one? Or do you somehow merge a lot of functionality into a single template?
22:44:05  <bnoordhuis>xaxxon: you mean the ObjectTemplate for the global object?
22:44:47  <xaxxon>hang on...
22:46:38  <xaxxon>maybe? I got the sample code working for a single global variable and I see that to add more you simply add more calls to ->SetAccessor
22:48:09  <bnoordhuis>does that mean it's working or ?
22:48:16  <xaxxon>https://developers.google.com/v8/embed#accessing-dynamic-variables <== on this page, what does this line do: Local<Object> obj = point_templ->NewInstance();
22:48:44  <bnoordhuis>it creates a new js object
22:48:44  * rendarjoined
22:48:46  <xaxxon>sorry, it was taking me a little while to figure out what exactly was confusing me. I'm brand new to this
22:49:39  <xaxxon>how do you access it in js?
22:49:58  <xaxxon>in the global variable example you give it a string for the name it should have in js
22:50:07  <xaxxon>as in: point_templ.SetAccessor(String::NewFromUtf8(isolate, "x"), GetPointX, SetPointX);
22:50:09  <bnoordhuis>you return it to js or you pass it as an argument to a js function that you call
22:50:26  <xaxxon>hrmm, I don't understand that but let me read a bit more
22:50:53  <xaxxon>I understand how the extractors work and such...
22:54:27  <xaxxon>bnoordhuis, in the code snippits here: https://developers.google.com/v8/embed#accessing-dynamic-variables is there anything that gives javascript code access to the Point* p = ...; object that is declared?
22:56:13  <bnoordhuis>xaxxon: you'd normally create a FunctionTemplate. that's your construction function that you expose to js land. then you populate the function_template->PrototypeTemplate() template with the methods
22:56:24  <xaxxon>ok
22:56:27  <xaxxon>I think that makes sense
22:56:52  <bnoordhuis>construction function... constructor, really
22:57:50  <bnoordhuis>if you need to store a pointer to a c++ class or struct, don't forget to configure function_template->PrototypeTemplate()->SetInternalFieldCount() as well
22:58:07  <xaxxon>so my function make_a_point would return the object from this: Local<Object> obj = point_templ->NewInstance();
22:59:27  <xaxxon>and I use this to make the function? http://bespin.cz/~ondras/html/classv8_1_1FunctionTemplate.html
22:59:39  <xaxxon>to expose it, I mean
22:59:52  <bnoordhuis>xaxxon: correct
23:00:27  <bnoordhuis>it's basically Local<FunctionTemplate> ft = FunctionTemplate::New(isolate, PointNew)
23:01:17  <bnoordhuis>then you expose it with global_object->Set(String::NewFromUtf8(isolate, "Point"), ft->GetFunction())
23:01:45  <bnoordhuis>global_object is context->Global(); you can also configure an ObjectTemplate that you pass to Context::New
23:02:46  <bnoordhuis>in your PointNew function, check that args.IsConstructCall() == true, then args.Holder() is your object
23:03:04  <bnoordhuis>hope that makes sense
23:08:39  * bradleymeckquit (Quit: bradleymeck)
23:27:16  * watildejoined
23:31:08  * aperezdcquit (Quit: Reconnecting)
23:31:15  * aperezdcjoined
23:31:29  * aperezdcquit (Client Quit)
23:31:39  * aperezdcjoined
23:59:11  * chrisdickinson_changed nick to chrisdickinson