Skip to content

Future plans for QuickJSR? #7

@wch

Description

@wch

Hi, I'm curious: what are your future plans for QuickJSR?

The reason I ask is because I have been experimenting with using JS in R packages, and quickjs has some important advantages over V8 for use with R.

Some background: the sass package wraps the C libsass library, but libsass has been deprecated for several years now, and we are looking for a way forward.

I believe that the only Sass compiler implementation that's being developed these days is Dart Sass, which can be compiled to JavaScript.
I wrote a JS wrapper for Dart Sass (compiled to JS), which can be run from the command line using the qjs runtime:
https://github.com/wch/sass-quickjs

Then I used qjsc to generate a C file for this, and put that in an R package, so that it can be used from R:
https://github.com/wch/sassy

This is OK, but result is fairly large -- the built binary package is a 2.2MB tarball, and the vast majority of that is the QuickJS runtime. If we were to use JS in any other R package and embed it this way, it would be another few megabytes for each packge.

That brings me to QuickJSR. I can see that QuickJSR can be used to evaluate JS code, but if we were to use it, we would want to be sure that it would be developed and supported in the future. Are you planning on continuing development on QuickJSR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions