3 ms·
I think that spinning up a separate process is the only real way to properly contain a large C++ library wrt memory (un)safety. It can still be useful to wrap i
by jononor 4y ago
I think that spinning up a separate process is the only real way to properly contain a large C++ library wrt memory (un)safety. It can still be useful to wrap in Rust though, since it is more pleasant to write IPC code in Rust compared to C++.
- iudqnolq 4y agoAgree. I'm planning to run in wasm a few thousand line rust driver linked to the massive c lib and allow that code to draw to a framebuffer but not otherwise access anything. At the same time, medium companies run this cpp lib in production in important contexts without that kind of protection. And I'm not that motivated to try and write marginally more reliable software than them for my hobby project.