3 ms·
Does Lua have the ability to launch very low cost sandboxed instances? With Deno I know I can quickly spawn lots of isolated instances at very low overhead. I
by rektide 3y ago
Does Lua have the ability to launch very low cost sandboxed instances?
With Deno I know I can quickly spawn lots of isolated instances at very low overhead.
If I really want to push it far, there's tools for loading frozen snapshots that have lots of code loaded.
I've never seen similar from Lua & I'm not sure it exists. Seems like a huge advantage.
- slmjkdbtl 3y agoCreating a new lua context is pretty cheap, but I don't know how it compares to Deno / v8. It should be much lighter weight, but not sure if Deno / v8 does some special thing to speed up the use case you talked about.
- rektide 3y agoThe submission itself talks about creating & loading snapshots, which is sort of a Checkpoint Restore In Userspace (CRIU), allowing one to create a new context with a lot of existing libraries already loaded very very quickly.
- lenkite 3y ago>With Deno I know I can quickly spawn lots of isolated instances at very low overhead. Err..new to Deno - how does one do this ?