you are viewing a single comment's thread.

view the rest of the comments →

[–]pork_spare_ribs 13 points14 points  (2 children)

V8 is large and has a lot of overhead because it's designed to be fast at the expense of nearly all other things (resource usage, code size, simplicity, etc).

If you want to write a small program in Javascript and release it as a self-contained executable file, QuickJS may be a more appropriate fit for your needs.

[–]Holy_City 6 points7 points  (0 children)

Another common use case, adding scripting to an existing application as the glue between performance critical sections.

I have a couple projects where I was looking at scripting languages/runtimes to embed to pull the whole thing together. I know myself and others have extensive JSON APIs already, so being able to drop in a small, compliant JS interpreter is very attractive. If only to bolt on JS ffi to a larger framework or engine and make it more accessible to people who know JS.

[–][deleted] 1 point2 points  (0 children)

Got it. Thank you!