nickva commented on PR #4627:
URL: https://github.com/apache/couchdb/pull/4627#issuecomment-1972150681
Some progress update:
* Updated QuickJS with the latest from upstream. We carried a few patches
(a CVE patch, FreeBSD compat, and some others). All those have been merged
upstream now. We only have our simple Spidermonkey 1.8.5 compat patch.
* For compatibility, added `javascript_quickjs` and
`javascript_spidermonkey` language variants. This is to allow testing
individual views using QuickJS even if the default is kept as Spidermonkey. Or
after switching the default to QuickJS, to keep some views using Spidermonkey
as a temporary measure.
* As discussed during one of the CouchDB meetings, implemented a scanner
application to help users scan their cluster automatically for QuickJS
compatibility. There is a scanner API and a plugins. So far only implemented
the QuickJS compat plugin, but other plugins are possible: ddoc feature
detection, finding tags or fields in ddocs, etc. The QuickJS plugin, when
enabled, will trawl through all the dbs, shards and ddocs and try to compile
them with both QuickJS and Spidermonkey. If results differ it will report it in
the logs as a warning.
TODO:
* The idea so to add some doc sampling and actually some docs to the view
functions.
* Write some tests for scanner app
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]