On Monday, 2 September 2013 at 23:28:58 UTC, Walter Bright wrote:
On 9/2/2013 1:11 AM, Jacob Carlborg wrote:
That was in reply to if DMD was built as a library and
included in the IDE. Then
there wouldn't be a process to end.
Ah, I see.
But that does bring up the possibility of running dmd front end
as a separate process, and then using interprocess
communication with it?
Isn't Google's Chrome browser built that way?
Yes, they sandbox a WebKit renderer and v8 javascript compiler
for each browser tab in a different process, for both security
and stability reasons, ie a crashed tab doesn't bring down the
whole browser. The main browser process handles all networking
and feeds the downloaded HTML/CSS/javascript to each of the
renderer processes, which return a bitmap for the tab. It's not
a strict rule, because if you have several tabs loaded with the
same domain, they will sometimes share a renderer process. You
can read more about it here:
http://www.chromium.org/developers/design-documents/multi-process-architecture