Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unimplemented open, read, write, close in mipsy-web #299

Open
ramidzkh opened this issue Jan 15, 2024 · 2 comments
Open

Unimplemented open, read, write, close in mipsy-web #299

ramidzkh opened this issue Jan 15, 2024 · 2 comments
Labels
A-mipsy_web Area: mipsy web enhancement New feature or request help wanted Extra attention is needed

Comments

@ramidzkh
Copy link

Could use https://developer.mozilla.org/en-US/docs/Web/API/File_System_API to a root sandbox directory with virtual handles, possibly with https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle to not require an async rework

@spanishpear
Copy link
Collaborator

spanishpear commented Jan 15, 2024

Thanks for the report!

Last time I looked into implementing this, it wasn't quite feasible to implement it cross-platform, as unfortunately Google decided to diverge from the official spec when it comes to the ability to write to the local filesystem. (https://hacks.mozilla.org/2012/07/why-no-filesystem-api-in-firefox/).

If you've got any implementation ideas (or if this has changed and I'm unaware - I haven't played with it recently), I'd welcome a PR - although there's lots of design debt in mipsy-web that can be quite hostile to work with. I had made some progress towards cleaning this up last year, but am unlikely to find the time or support to continue in the next few months.

@spanishpear spanishpear added enhancement New feature or request help wanted Extra attention is needed A-mipsy_web Area: mipsy web labels Jan 22, 2024
@ramidzkh
Copy link
Author

ramidzkh commented Mar 1, 2024

It should be possible in modern browsers, but it seems that you can't send the handles to workers in yew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mipsy_web Area: mipsy web enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants