News for hackers. Stuff that matters.
Re:Roll your own JavaScript runtime, pt. 3 by rektide on Thursday May 04, 2023 @08:01PM (#35823747)
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.

Re:Roll your own JavaScript runtime, pt. 3 by slmjkdbtl on Thursday May 04, 2023 @08:09PM (#35823807)
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.
Re:Roll your own JavaScript runtime, pt. 3 by rektide on Thursday May 04, 2023 @09:23PM (#35824248)
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.
Re:Roll your own JavaScript runtime, pt. 3 by lenkite on Friday May 05, 2023 @04:48AM (#35826791)
>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 ?