5 ms·
This is great! A few more exciting things are happening with file-systems in Chrome that will make this a lot better soon. Firstly OPFS gives you a private sa
by cirwin 5y ago
This is great!
A few more exciting things are happening with file-systems in Chrome that will make this a lot better soon.
Firstly OPFS gives you a private sandboxed filesystem you can access with `await navigator.storage.getDirectory()` to avoid the permission prompt.
Secondly "Augmented OPFS" is coming to web workers, which will give you the ability to read/write partial files with `file.createSyncAccessHandle()`.
There's a demo of this working from the Chrome team here: https://github.com/rstz/emscripten-pthreadfs/tree/main/pthreadfs https://github.com/rstz/emscripten-pthreadfs/tree/main/pthre...
And a more thorough write-up here: https://docs.google.com/document/d/1SmfDdmLRDo6_FoJMl5w1DVumC6Je0PQvHXSLVqtEWHk/ https://docs.google.com/document/d/1SmfDdmLRDo6_FoJMl5w1DVum...
- ildon 5y agoThis is super exiting! I did not know about the improvements, thanks for sharing!