Re:A web of trust for NPM
by 7373737373 on Saturday October 03, 2020 @03:41PM
(#24674192)
Only very few language also provide the type of security the JVM (partially) protects against: resource exhaustion attacks. Being able to prevent time (e.g. infinite loops) and space (memory allocation) exhaustion by being able to specify absolute or relative limits on these.
Stackless Python is able to limit the number of instruction steps that are run in a tasklet: https://stackless.readthedocs.io/en/latest/library/stackless...
With some ugly hacks, Lua can do it too.
But no language I know of can do all these things, I tried to build one once: https://esolangs.org/wiki/RarVM