Re: [v8-users] Is it possible to create multiple isolates in one thread?

2019-12-19 Thread Jakob Kummerow
Sure, a single thread can use as many Isolates as it wants. Most V8 API functions take an Isolate or a Context (which implies an Isolate) parameter to facilitate this. Things to keep in mind: - creating an Isolate is somewhat expensive, so creating millions of short-lived Isolates is not great for

Re: [v8-users] Is it possible to create multiple isolates in one thread?

2019-12-19 Thread Cooper Kuo
Thank you Jakob, now I know it is fine to use multiple isolate in one thread. :-) 在 2019年12月19日星期四 UTC+8下午5:53:24,Jakob Kummerow写道: > > Sure, a single thread can use as many Isolates as it wants. Most V8 API > functions take an Isolate or a Context (which implies an Isolate) parameter > to faci

Re: [v8-users] Is it possible to create multiple isolates in one thread?

2019-12-19 Thread Cooper Kuo
Thank you Jakob, now I know it is fine to use multiple isolate in one thread. :-) Sure, a single thread can use as many Isolates as it wants. Most V8 API > functions take an Isolate or a Context (which implies an Isolate) parameter > to facilitate this. > > Things to keep in mind: > - creating

Re: [v8-users] Re: Building v8 shared library on windows

2019-12-19 Thread ClearScript Developers
Unfortunately this issue transcends export naming. V8 seems to be embracing STL data types all over its API. By sheer luck std::unique_ptr is likely to work across STL implementations (at least when used without a stateful deleter), but other data types aren't so lucky. V8 already has a bunch o

Re: [v8-users] Re: Building v8 shared library on windows

2019-12-19 Thread 'Bill Ticehurst' via v8-users
Just the header file for the public V8 API ( https://chromium.googlesource.com/v8/v8.git/+/refs/heads/master/include/v8.h#18) includes , , , , and from the C++ standard library. I'm unclear what they are all needed for, but I think it's safe to say mixing C++ standard libraries when building a