Hacker News new | past | comments | ask | show | jobs | submit | etherdream's comments login

Thanks! This idea is really impractical for playing videos, but it's feasible for displaying some animations, or even mini-games.


Is it terrible that my first thought wasn't either of those, but ads?


I have tried this idea before, combining Service Worker to implement a decentralized website.


This is not a problem, `await A` is called immediately after each read, so there will be no conflict.


You are right. I am planning to add PHP, similar to wasmer-php[0], but based on Service Worker.

[0]: https://github.com/wasmerio/wasmer-php


sry, not wasmer-php, but php-in-browser

https://oraoto.github.io/pib/


Not the same. Disk files can be browsed via HTTP (HTTPS), so you can preview a local static site directly, without tools such as http-server, SimpleHTTPServer, etc.


Service worker file loader != HTTP server. You are intercepting requests which are usually fulfilled by HTTP, but you are not implementing or interacting with HTTP.

Even so, cool project.


If the files are served via HTTP I am missing it. A page which is fetched via HTTP and then accesses local files is not an HTTP server.

https://en.m.wikipedia.org/wiki/Hypertext_Transfer_Protocol


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: