News for hackers. Stuff that matters.
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.