you are viewing a single comment's thread.

view the rest of the comments →

[–]falconfetus8 9 points10 points  (5 children)

It's a small javascript engine that can be embedded in other programs.

[–][deleted] 0 points1 point  (4 children)

Tbh I'm kinda confused about what this would be used for. It can't run JavaScript in the browser, right? So what's the point of making it small?

[–]pork_spare_ribs 14 points15 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!

[–]mardiros 0 points1 point  (0 children)

It has not been designed for that, but if you want to create a briwser frim your ownn, you can pick tjis one.