3 ms·
> so as a digression, which language do you think has a runtime that controls memory access better than OS? I mentioned two: Python and Java. In general, I me
by derleth 13y ago
> so as a digression, which language do you think has a runtime that controls memory access better than OS?
I mentioned two: Python and Java.
In general, I mean any language where the runtime only hands programs valid pointers and the language doesn't allow pointer arithmetic. This means it's possible to guarantee that pointers will only point into objects that can be validly accessed by the code which holds those pointers.
This is generally done to make garbage collection easier, but it can be done to implement security policy: Basically, if your security policy trusts a given runtime, you can use that runtime to enforce access policies on objects of all kinds, including memory.
- eugenejen 13y agoI misread you sentences. I thought you meant Python and Java fails memory management than OS. That caused me to ask the question. Thank you for getting back to me.