aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
Commit message (Collapse)AuthorAge
...
* Work around broken -Os wasm builds by adding the -g3 flag. Unrelated ↵stephan2022-09-28
| | | | | documentation tweaks. FossilOrigin-Name: f5d6bf8616341037fa3e229edf820d19acef3e0a6207a652b2b143de0a493214
* Comment the -O2 wasm builds as being broken (mysteriously missing JS bits).stephan2022-09-27
| | | FossilOrigin-Name: f61475ef8244fd1f6553eca9cc2317e5de2cc04443e24afb7b91ebd3fc1bd402
* WASM API renaming. Reworked JS API bootstrap's async post-init into a ↵stephan2022-09-27
| | | | | generic mechanism, no longer OPFS-specific. FossilOrigin-Name: c42a8cb090cad1108dfd6be574202d744c59e053b505bc4c17252dc6b65d26bf
* wasm/js: rename /persistent to /opfs to account for potential future ↵stephan2022-09-27
| | | | | persistent storage options. Minor flag-handling cleanups in the speedtest1 pages. Minor API tweaks in oo1. FossilOrigin-Name: 4dc972a3656b2a9ec915bfb3f653136560c753ce4024c3f0d0d0c28f66db7a0a
* Fiddle: replace db export routine with a C-side one which works for both ↵stephan2022-09-26
| | | | | Emscripten FS-hosted and OPFS-hosted db files. Minor code-adjacent cleanups. FossilOrigin-Name: 3579a8d6f1f6cd3cd8aad9949536870c5fe7bae8c1778f700dd85d763e266b94
* Get fiddle db export working for OPFS VFS. Add root dir handle to the main ↵stephan2022-09-26
| | | | | OPFS VFS worker to enable creation of certain utility functions without delegating to the async worker. Add sqlite3.capi.sqlite3_wasm_rc_str() to map integer result codes back to their SQLITE_xxx counterparts. Minor doc touchups. FossilOrigin-Name: 9b2244e1c8a40efe6547094a1b57acc8f2173145a8731abb0e36268ce0a8ef41
* wasm: change StructBinder signature for sqlite3_file::pMethods from 'P' to ↵stephan2022-09-26
| | | | | 'p' to eliminate an unnecessary and inconsistent level of magic. FossilOrigin-Name: 85f2e877e53899860af4dc6630044b471a9c7c82faba1f4e1e60ae991460b943
* Resolve "already configured" warnings from shell's main() when starting it ↵stephan2022-09-24
| | | | | up in fiddle mode. FossilOrigin-Name: 114ef3552af977b272a0baddeb9a2326484b60acfc75284e43c55530f86b413f
* Reworked out the OPFS async proxy metrics are fetched so that they play more ↵stephan2022-09-24
| | | | | nicely with the tight event-polling loop. FossilOrigin-Name: ef503ced5c2ca842be9aea9ef13719a378ed3020e884032db09afee1b8eba0a1
* Refactoring towards getting fiddle to support OPFS as a first-class citizen. ↵stephan2022-09-24
| | | | | Certain operations, e.g. import, export, and unlink, are not OPFS-aware. FossilOrigin-Name: 1b923ed6438d7fef4508936e0c4bc026a368721698b1539961e3fb3140a185cb
* Reformulate some JS to work around a buggy/broken code transformation in one ↵stephan2022-09-21
| | | | | of the Emscripten-driven code optimizers. FossilOrigin-Name: e1249369d5ec1c582c280b1f578b35d53637fdf1cbd97c16d5ed95b136b83e56
* Put pieces in place for fiddle to support opfs, but more cleanup is required ↵stephan2022-09-21
| | | | | in the sqlite3.js/fiddle connection. bigIntEnabled now defaults to whether the Emscripten's module has bigint enabled. Add wasm-sensible defaults for several SQLITE_ENABLE/OMIT flags in sqlite3-wasm.c. FossilOrigin-Name: 7c7fb7535e86b3960eea7f29ab7e6d5197c166b4ee64ad4a9bc0749f2869badc
* Correct mistyped --shrink-memory flag in speedtest1-worker. Minor OPFS proxy ↵stephan2022-09-21
| | | | | cleanups. FossilOrigin-Name: 86e2b55ec9483fa5add51a479c6509d73461f1ac6fca5d49e057b1c66f4314d2
* Doc cleanups and additions. Add a way for the OPFS async runner to propagate ↵stephan2022-09-21
| | | | | exception text to the calling thread. FossilOrigin-Name: 5c5e80652825cf883e6c17809cb98f2bf17d5feac2d263f6f492479154730dab
* Move fiddle build rules into the wasm-centric build files. Add rule to push ↵stephan2022-09-21
| | | | | wasm bits to the wasm test server. FossilOrigin-Name: 113f8204dc4ac849d5632d3de1680b6e0da871e107ef484c8d7273799bee3d88
* Correct a too-strict is-opfs-available check.stephan2022-09-20
| | | FossilOrigin-Name: 1b5f1b4a6c1457f98c258459e23e321fc59793de298fecb84031b87f02156cd5
* Merge kv-vfs-magic-names branch into fiddle-opfs branch and make some ↵stephan2022-09-20
|\ | | | | | | | | kvvfs-relevant tweaks. FossilOrigin-Name: e3d36dcdd37e59f17a07d3611d08744eb86f439fab82a648490dd608bcaa3185
* | Export the sqlite3_uri_...() family of functions to wasm.stephan2022-09-20
| | | | | | FossilOrigin-Name: 72bebc848fce5c3b4766017d016ccb2360de2bd0cb3e47e710c80dbcb6b8b707
* | Speed up de/serialization of func args and return values in the OPFS VFS proxy.stephan2022-09-20
| | | | | | FossilOrigin-Name: 5bf235bbe035e4ace7a54851e190742528af6b4266328a1b8bbb9fb3dd7f2118
* | OPFS proxy: remove one sanity-checking-only level of proxy function to shave ↵stephan2022-09-20
| | | | | | | | | | off a few microseconds. FossilOrigin-Name: b534831f3efb8910a17e29956e3e87cc80055ea66e15dbef992b6a556ff042f8
* | Remove extraneous result-code SAB slots. Doc additions.stephan2022-09-20
| | | | | | FossilOrigin-Name: 88de20712bbe3e11ea74af95edc34e9ab9f346f9aa0a30931e5a9e1f96ce57b0
* | An alternative messaging strategy for the OPFS VFS proxy which uses only ↵stephan2022-09-20
| | | | | | | | | | SharedArrayBuffer and Atomics, instead of worker messages, for communication (only the initial one-time handshake during initialization uses worker messages). It runs speedtest1 approx. 15-20% faster but still 20-ish% slower than WASMFS. FossilOrigin-Name: a83ee3082d89439ea3ad5737e63e25bebb0f91895aca006ce5fecf5b93a2651a
* | OPFS VFS: further internal refactoring towards experimenting with a new ↵stephan2022-09-20
| | | | | | | | | | comms model. FossilOrigin-Name: 5ca412ced24b4e3af5f467e710a597ed440badf7b8335346aade11d3cad3d1a1
* | OPFS VFS: moved i/o buffer from per-file to the VFS, and related ↵stephan2022-09-20
| | | | | | | | | | refactoring, in prep for experimentation with a new inter-worker comms model. FossilOrigin-Name: d4d63e4580ad8d497310608175308c03c517e051d7865cb66aa0b10356612d7d
* | Further metrics and buffer-copy optimizations in the OPFS proxy, but with ↵stephan2022-09-19
| | | | | | | | | | little effect. FossilOrigin-Name: d1f1fe6f1c60640f7770dfb9245c459a09b8d24ec2ddf664dff77c810bd51f96
* | Cut the speedtest1 runtime of the OPFS VFS proxy by approximately 3/4ths via ↵stephan2022-09-19
| | | | | | | | | | xRead/xWrite buffer-copying optimizations. Still slower than the WASMFS impl by approx. 1/5th. FossilOrigin-Name: fb7f287310d74a3e236125ae9c49b859f9263c29ae85161c1bcf9dd0778d8a51
* | Add sqlite3_web_vfs_list() to JS API. Corrected OPFS VFS's registering ↵stephan2022-09-19
| | | | | | | | | | itself as the default VFS. speedtest1-worker now uses the xDelete() of both the default VFS and OPFS, to avoid that it starts up with a persistent OPFS test db (the native app calls unlink(), but that unlink call operates on a different virtual filesystem than the OPFS VFS). FossilOrigin-Name: 2ec7e09139a510b9fd29e4c97283b20740a00f369193c6fecbb734f187e81b48
* | Merge kv-vfs branch into fiddle-opfs. Adjust various JS APIs and apps to ↵stephan2022-09-19
| | | | | | | | | | deal with the new method of handling kvvfs. Adjust speedtest1 JS build to include sqlite3-api.js so that it can use kvvfs and opfs VFSes. Permit passing of the vfs as a URL parameter to certain demo/test apps. Milestone: speedtest-worker.html?vfs=opfs runs with the standalone OPFS impl. FossilOrigin-Name: ec09f32f7ae2249aaf27388ad2062982afa8bbbb5f88d236d6d9068bf33ad93d
* | Generic cleanups in the OPFS VFS proxies.stephan2022-09-19
| | | | | | FossilOrigin-Name: 7d5f6adc3b964413fc96ad8d2735312c3e58348024cabdd2099682cbf696eaf7
* | Correct OPFS VFS xRead() to copy the result buffer if the result code is ↵stephan2022-09-19
| | | | | | | | | | SQLITE_IOERR_SHORT_READ. FossilOrigin-Name: 56668f9902c6e896b6c63621a444444c6f58ee20f88a5feae97f1699be35892d
* | Replace OPFS VFS xSleep() impl with a more efficient one (no Worker ↵stephan2022-09-19
| | | | | | | | | | round-trip needed). FossilOrigin-Name: b9773f164878b0a1b7c88cc7a6d1374ea95f64920065e8b2b178a1afffd82fe5
* | Rename demo-oo1.* to demo-123.* and add demo-123-worker.html, which runs the ↵stephan2022-09-19
| | | | | | | | | | same demo via a Worker. Doc typo fixes. FossilOrigin-Name: 2e4a005bd35424caeaa99ace23162cf79e2ebdb159475ffad92b85dc864ad764
* | Numerous cleanups in the JS bits. Removed some now-defunct wasm test files. ↵stephan2022-09-18
| | | | | | | | | | Expose sqlite3.opfs object containing various OPFS-specific utilities. FossilOrigin-Name: 26e625d05d9820033b23536f18ad3ddc59ed712ad507d4b0c7fe88abd15d2be8
* | Move the OPFS VFS bits back into api/sqlite3-api-opfs.js. Refactor the OPFS ↵stephan2022-09-18
| | | | | | | | | | VFS init process to use a Promise-returning function which the client must call, as that eliminates any uncertainty about when the VFS (necessarily activated asynchronously) actually becomes available to the client. FossilOrigin-Name: 1c660970d0f62bcfd6e698a72b050d99972a1e39f45a5ac24194a190f8f78ab3
* | Add initial bits of an experimental async-impl-via-synchronous-interface ↵stephan2022-09-17
| | | | | | | | | | proxy intended to marshal OPFS via sqlite3_vfs API. FossilOrigin-Name: 38da059b472415da52f57de7332fbeb8a91e3add1f4be3ff9c1924b52672f77c
* | When calculating kvvfs sessionStorage/localStorage size, multiply it by 2 to ↵stephan2022-09-16
| | | | | | | | | | account for JS using 16-bit characters. FossilOrigin-Name: 52d1b185b9f6cee1eb3dec436f47e0f52e4621a127abfad8c27f92fd78147889
* | More work on the synchronous OPFS experimentation. Numerous wasm/js build ↵stephan2022-09-15
| | | | | | | | | | tweaks. Add speeedtest-wasmfs.html, the wasmfs/opfs counterpart of speedtest1.html. FossilOrigin-Name: 00ee49a3a2c148480f614e49a0ee5b35a255758c0a53693f0b464b31e7a4045b
* | Clean up some JS documentation.stephan2022-09-15
| | | | | | FossilOrigin-Name: 925fdbfc6c1f9f06951346bc0d4fb81ffb5797d5f1123728931973f6cb1a0efa
* | Add/apply various kvvfs-specific utility APIs to the JS layer to assist in ↵stephan2022-09-13
| | | | | | | | | | testing and analysis. Correct a backwards default arg check for sqlite3ApiBootstrap(). Add exports for sqlite3_db_handle(), sqlite3_file_control(), and the SQLITE_FCNTL_xxx enum. FossilOrigin-Name: 0d78961870ee9f22f1ba16d423377d28dcc36e04b1e31ffd57f3e2fd51f8f0f2
* | Add sqlite3.oo1.DB.clearKvvfsStorage(). Add controls to kvvfs1.js demo to ↵stephan2022-09-12
| | | | | | | | | | reset and query the db without requiring the dev console. FossilOrigin-Name: d845c6c22bd5d3fffc66e0566df346d690dd8bd1fc1688e312161b1a1edcfd79
* | Merge kv-vfs branch into fiddle-opfs branch to add kvvfs-based wasm build ↵stephan2022-09-12
|\| | | | | | | | | and demo. FossilOrigin-Name: a7d8b26acd3c1ae344369e4d70804c0cab45272c0983cfd32d616a0a7b28acb9
* | Minor cleanups and documentation in the wasm pieces.stephan2022-09-11
| | | | | | FossilOrigin-Name: 4e6ce329872eb733ba2f7f7879747c52761ae97790fd8ed169a25a79854cc3d9
* | Correct the result code from kvstorageRead() for the OOM case to be a ↵stephan2022-09-11
| | | | | | | | | | negative value. FossilOrigin-Name: cdbf09fa1b0c93aeb3222a157de33a4688ae629c2b829ffff0f1f62364c5ae1c
* | Minor cleanups and docs for the EM_JS() impls of the kvvfs read/write/delete ↵stephan2022-09-11
| | | | | | | | | | ops. FossilOrigin-Name: 53b7572e441be4b4b29b4228d0f95b24457d7faaf6c0b568ed5c970a55e21ffb
* | Add EM_JS() impl for kvstorageRead().stephan2022-09-11
| | | | | | FossilOrigin-Name: 06610314fcf644f323c2f7ae11d7f4349b195e66d0ebbee590438dd99d97eb96
* | Initial prototype impls of write/delete-key ops for the pending kvvfs which ↵stephan2022-09-11
| | | | | | | | | | use sessionStorage or localStorage for db page storage. read-key op is pending. FossilOrigin-Name: a4bd96f5348e607d0fcb627b751f9d86a188173a4b3bfb2c95f92913a78bd31e
* | Get speedtest1.js working with WASMFS/OPFS.stephan2022-09-06
| | | | | | FossilOrigin-Name: 40e60f570d4f489d58d12e27c1c067b41d6c5a5e374c5fce0baa8881ef183216
* | Minor internal doc clarifications.stephan2022-09-06
| | | | | | FossilOrigin-Name: 09796cc2bfce7bc4ce11db9673d20737259e9928f0484660cba3a9751f7d01c5
* | Minor cleanups in OO API #1. Add Sudoku SQL to batch-runner.js's list.stephan2022-09-05
| | | | | | FossilOrigin-Name: 4488cb5798f34cbba14eb8e2aa5da8420c14a85d37d278d357406aedd5c3a9e5
* | Lots of tweaking in batch-runner.js. Minor internal API update in OO #1 API.stephan2022-08-29
| | | | | | FossilOrigin-Name: 24b82b9504db3d8e1335c2300b133f897dc1a541026dc24be5b0ffd8be66d977