9/24/2023 0 Comments Fs sqlpro 8773278914 caSplitting responsibility for a platform and its extensions can lead to support issues, like finger pointing when problems occur.Īny thoughts, especially from maintainers?. This could be a substantial effort all by itself (and one I would rather leave to someone else). An asynchronous application API is needed to use asynchronous storage. The current sql.js application API is synchronous.The future might bring native coroutines/continuations to WebAssembly, which we could just wait for. This may not be acceptable for many applications, and so may not be worth the effort to provide it. wasm file is nearly twice the size and the execution cost is said to be ~5x (plus any cost for slower storage). SQLite is sort of a worst case for Asyncify.It is likely that both Asyncify and non-Asyncify builds would be needed, so at least one more build than provided now. IndexedDB), which require using Asyncify and its signficant space and time costs. Some browser storage options have only asynchronous APIs (e.g.There are some drawbacks to this idea, among them: just the meta-VFS, to allow developers to create the extensions themselves outside the scope of the project. So my idea is to provide only the capability for storage extensions, i.e. I know that the maintainers have limited time and adding multiple storage options to the code base isn't going to help with that. But I wanted to start a discussion on whether adding something like this makes sense, and if it does how to incorporate it. None of this is production-ready code (mainly because of lack of testing), and the branch is not currently suitable for a pull request. Neither is a huge amount of code, less than 350 lines for IndexedDB and no function over a page, so I think not difficult to understand. The branch doesn't define any VFS itself, but in a separate repo I have examples of creating an in-memory VFS and an IndexedDB VFS (using it as a block device) with only Javascript. The idea is to enable more storage options in the browser, beyond the current in-memory filesystem, as has been suggested a number of times, e.g. It's a platform for creating a VFS, so I've been calling it a meta-VFS. I have an experimental sql.js branch with changes that enable defining a SQLite VFS in Javascript. UPDATE: Code links in this comment are stale.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |