3 ms·
I haven't seen an OS like this. It's going to be difficult to make this work in general, because libraries often take pointers to structures that have pointers
by toast0 5y ago
I haven't seen an OS like this. It's going to be difficult to make this work in general, because libraries often take pointers to structures that have pointers etc. You're going to need to somehow map datastructures that are exchanged between libraries into the various address spaces, but if lib2 corrupts a pointer that lib1 uses, lib1 crashes through no fault of its own.
If you did strict serialize/deserialize between libraries, you could make it work, but at that point you need to refactor everything as message passing (think Erlang), and that may be a hard job. A lot of libraries are built around shared access to large data structures, which is not a good fit for message passing.