5 ms·
Are there any programming languages that can sandbox library imports?
by candiddevmike 3y ago
Are there any programming languages that can sandbox library imports?
- pcwalton 3y agoNot really, except for a few researchy object capability based systems. (This is kind of the promise of ocap systems: functions you call can only use what they're given and nothing more.) If you don't trust a library, you can run it in a separate sandboxed process (or app domain, or wasm container, or whatever your language provides).
- jjav 3y agoYes/no. The Java security manager can, but it was deprecated ;-( I know it was a pain to use correctly. But still.