← Back to context

Comment by rektide

3 years 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.

Creating 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.

  • The 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.

>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 ?