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

CI/CD: Host the latest stable and edge versions of FML as public demo #1126

Open
suprjinx opened this issue Apr 15, 2024 · 3 comments
Open

Comments

@suprjinx
Copy link
Contributor

No description provided.

@fabiovincenzi fabiovincenzi self-assigned this May 31, 2024
@jgiannuzzi
Copy link
Member

Here is a crazy idea to avoid all the security issues associated with hosting something that hasn't been developed with public-facing hosting in mind: what about compiling fml to webassembly and then hosting it on github pages? It would then run entirely in the user's browser, as a separate, private, instance. We would of course load it with a pre-populated DB for demo purposes.

For a user that wants to then feed their own data by running some experiments, I believe that our various installation methods (especially the pip one) are super user-friendly and would get them to spin up their own instance for experimentation.

@fabiovincenzi
Copy link
Collaborator

Here is a crazy idea to avoid all the security issues associated with hosting something that hasn't been developed with public-facing hosting in mind: what about compiling fml to webassembly and then hosting it on github pages? It would then run entirely in the user's browser, as a separate, private, instance. We would of course load it with a pre-populated DB for demo purposes.

For a user that wants to then feed their own data by running some experiments, I believe that our various installation methods (especially the pip one) are super user-friendly and would get them to spin up their own instance for experimentation.

@jgiannuzzi I did some investigation about this, and that would have been a great solution, but I think right now it's a bit difficult to compile fml to WebAssembly, due to some dependencies it uses that involve some systemcalls that are not supported by WebAssembly, in particular I see problems for tcplisten used by the fiber library.

@fabiovincenzi fabiovincenzi linked a pull request Aug 7, 2024 that will close this issue
@jgiannuzzi
Copy link
Member

I think this could be done by exposing a function that mimicks fetch and ends up calling httptest into the fiber app. The compiled webassembly module will end up with a different entrypoint that the regular main function anyway.

@fabiovincenzi fabiovincenzi removed a link to a pull request Sep 19, 2024
@fabiovincenzi fabiovincenzi removed their assignment Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants