stringer icon indicating copy to clipboard operation
stringer copied to clipboard

Compile to WASM

Open yonas opened this issue 1 year ago • 3 comments

Could you publish a WASM binary?

yonas avatar Aug 30 '24 18:08 yonas

@yonas can you explain what you mean? I can't imagine how a WASM binary would make sense for a project like this. It is a full-stack application that requires a server and database behind it.

mockdeep avatar Aug 30 '24 18:08 mockdeep

@mockdeep Thanks. If SQLite became an optional DB, and the web server was embedded via some sort of embedFS for Ruby - leaving load balancing to advanced users or pre-rolled Docker deployments - external dependencies would be removed, leaving you with a nice little portable executable that can run almost anywhere.

The UI is very slick. It would be a great addition for those looking for a small, easy to deploy RSS feed reader.

yonas avatar Aug 30 '24 19:08 yonas

Can you tell me how you would deploy a WASM app? Right now it's already fairly easy to deploy via Docker or a 1-click Heroku deploy. Is there an embedFS that works with Ruby? I wonder what the file size would have to be for something like that, and the resources it would require on the client-side to emulate Ruby and the entire .

Stringer is pretty tightly tied to Postgres, so I don't think we can support SQLite.

I don't really understand how we would go about producing a WASM binary or what the benefits are, but if you want to put together a roadmap for how we get from here to there, I would at least consider it. You'd be on the hook for driving it, too, though. I doubt I'll ever have the time.

mockdeep avatar Aug 30 '24 19:08 mockdeep

Closing this for now, but if you want to follow up at any point we can consider reopening this.

mockdeep avatar Feb 03 '25 20:02 mockdeep