Re: [v8-users] Re: What is the purpose of isolated source group

2018-10-03 Thread Mingwei Zhang
Thank you. That solves my question.

On Wednesday, October 3, 2018 at 8:08:06 PM UTC-7, Jakob Kummerow wrote:
>
> The purpose of d8's --isolate flag is to make it possible to test that 
> scripts in different isolates can indeed run without interference from each 
> other. Such scripts cannot communicate with each other (as the name 
> "isolate" implies).
>
> On Wed, Oct 3, 2018 at 6:44 PM Mingwei Zhang  > wrote:
>
>> I realize that I made a mistake. So d8 API does provide support for 
>> Worker and I suspect developers could use postMessage to talk with each 
>> other?
>>
>> But still, I think my question remains. For a command like:
>>
>> ./d8 a.js --isolate b.js
>>
>>
>> How does a.js talk with b.js. In Worker example, a.js could to b.js 
>> because a.js launches b.js, but in this case, a.js does not even know b.js 
>> exists.
>>
>>
>> Thanks. 
>>
>> On Wednesday, October 3, 2018 at 11:45:30 AM UTC-7, Mingwei Zhang wrote:
>>>
>>> Hi,
>>>
>>> I am wondering what is the purpose of the options "--isolate" for the 
>>> stand-alone binary d8. It is pretty interesting that the option '--isolate' 
>>> could be used to launch multiple JavaScripts and runtime them truly in 
>>> parallel. However, since JavaScript is single-threaded by design. This 
>>> puzzles to me that one JavaScript file may not talk to the other one.
>>>
>>> So my purpose is to run two JS files, say a.js and b.js. Now I use this 
>>> command:
>>>
>>> ./d8 a.js --isolate b.js
>>>
>>>
>>> Now, my question is could I make a.js be able to talk to b.js in some 
>>> way?
>>>
>>> Thanks. 
>>>
>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@googlegroups.com 
>> http://groups.google.com/group/v8-users
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "v8-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to v8-users+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] Re: What is the purpose of isolated source group

2018-10-03 Thread Jakob Kummerow
The purpose of d8's --isolate flag is to make it possible to test that
scripts in different isolates can indeed run without interference from each
other. Such scripts cannot communicate with each other (as the name
"isolate" implies).

On Wed, Oct 3, 2018 at 6:44 PM Mingwei Zhang  wrote:

> I realize that I made a mistake. So d8 API does provide support for Worker
> and I suspect developers could use postMessage to talk with each other?
>
> But still, I think my question remains. For a command like:
>
> ./d8 a.js --isolate b.js
>
>
> How does a.js talk with b.js. In Worker example, a.js could to b.js
> because a.js launches b.js, but in this case, a.js does not even know b.js
> exists.
>
>
> Thanks.
>
> On Wednesday, October 3, 2018 at 11:45:30 AM UTC-7, Mingwei Zhang wrote:
>>
>> Hi,
>>
>> I am wondering what is the purpose of the options "--isolate" for the
>> stand-alone binary d8. It is pretty interesting that the option '--isolate'
>> could be used to launch multiple JavaScripts and runtime them truly in
>> parallel. However, since JavaScript is single-threaded by design. This
>> puzzles to me that one JavaScript file may not talk to the other one.
>>
>> So my purpose is to run two JS files, say a.js and b.js. Now I use this
>> command:
>>
>> ./d8 a.js --isolate b.js
>>
>>
>> Now, my question is could I make a.js be able to talk to b.js in some way?
>>
>> Thanks.
>>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] Re: What is the purpose of isolated source group

2018-10-03 Thread Mingwei Zhang
I realize that I made a mistake. So d8 API does provide support for Worker 
and I suspect developers could use postMessage to talk with each other?

But still, I think my question remains. For a command like:

./d8 a.js --isolate b.js


How does a.js talk with b.js. In Worker example, a.js could to b.js because 
a.js launches b.js, but in this case, a.js does not even know b.js exists.


Thanks. 

On Wednesday, October 3, 2018 at 11:45:30 AM UTC-7, Mingwei Zhang wrote:
>
> Hi,
>
> I am wondering what is the purpose of the options "--isolate" for the 
> stand-alone binary d8. It is pretty interesting that the option '--isolate' 
> could be used to launch multiple JavaScripts and runtime them truly in 
> parallel. However, since JavaScript is single-threaded by design. This 
> puzzles to me that one JavaScript file may not talk to the other one.
>
> So my purpose is to run two JS files, say a.js and b.js. Now I use this 
> command:
>
> ./d8 a.js --isolate b.js
>
>
> Now, my question is could I make a.js be able to talk to b.js in some way?
>
> Thanks. 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.