[GitHub] [couchdb] nickva commented on issue #4448: Investigate using QuickJS as a Javascript Engine

2023-09-11 Thread via GitHub
nickva commented on issue #4448: URL: https://github.com/apache/couchdb/issues/4448#issuecomment-1714673445 The callback API for each scanner module might look like: ```erlang {ok, Ctx} = start_scan(#{session_id => Uuid, start_timestamp => UnixTs}) {ok, Ctx1} = start_db(Ctx,

[GitHub] [couchdb] nickva commented on issue #4448: Investigate using QuickJS as a Javascript Engine

2023-09-05 Thread via GitHub
nickva commented on issue #4448: URL: https://github.com/apache/couchdb/issues/4448#issuecomment-1707183434 To avoid managing a new data state directory (config option, checking for disk space, handling read-only or other errors), it would be a lot simpler to manage the checkpoints as

[GitHub] [couchdb] nickva commented on issue #4448: Investigate using QuickJS as a Javascript Engine

2023-08-09 Thread via GitHub
nickva commented on issue #4448: URL: https://github.com/apache/couchdb/issues/4448#issuecomment-1672184062 Updated PR https://github.com/apache/couchdb/pull/4627 with a wip skeleton of a `couch_scanner` app. `couch_scanner` is an applications which knows how to scan

[GitHub] [couchdb] nickva commented on issue #4448: Investigate using QuickJS as a Javascript Engine

2023-02-27 Thread via GitHub
nickva commented on issue #4448: URL: https://github.com/apache/couchdb/issues/4448#issuecomment-1447196423 https://gist.github.com/nickva/08f6100af20d23cde6dbdd65911c02e0 A very quick and dirty benchmark of basic startup and init differences between QuickJS and SM 91. It just times

[GitHub] [couchdb] nickva commented on issue #4448: Investigate using QuickJS as a Javascript Engine

2023-02-27 Thread via GitHub
nickva commented on issue #4448: URL: https://github.com/apache/couchdb/issues/4448#issuecomment-1447111213 @pgj a stable and simple geared for embedding API would be an advantage as opposed chasing a fast moving API made for Web browsers. -- This is an automated message from the Apache