8 ms·
> You can't do that in C/C++ Well, first, the sync code might not need to be in C/C++. It could be in a sandboxed, safe language instead. Other browsers do tha
by azakai 14y ago
> You can't do that in C/C++
Well, first, the sync code might not need to be in C/C++. It could be in a sandboxed, safe language instead. Other browsers do that.
Or, at minimum, it could be in C/C++ but at least in a sandboxed side process, Chrome has the capabilities for that.
- yuliyp 14y agoAt some point, the results of what the side process did have to get communicated to the parent process. You can reduce the size of the channel, but you can't close it completely. Bugs happen. Bugs in never-executed code happen and tend to stick around longer.
- azakai 14y ago> You can reduce the size of the channel, but you can't close it completely. Of course, no one would argue otherwise. Every time you decide how much to reduce it, you define a tradeoff in terms of work vs. benefit.