3 ms·
If it will run user-supplied binaries, then each user would need their own virtual machine. At which point you may as well just fire up a small VM slap Apache
by bruce511 4y ago
If it will run user-supplied binaries, then each user would need their own virtual machine.
At which point you may as well just fire up a small VM slap Apache on it (or whatever you prefer) and run your binary as a CGI program behind a page.
Or put another way, hosting a service like this would cost more than hosting a VM, which means an already tiny market just got smaller.
So, while I'm not aware of such a service, I predict it it exists it'll be more expensive than you are prepared to accept.
I get that using a Woordle solver is redundant, so this is an example,not an actual use case, but I'll say it anyway - if you want to share code like this then use JavaScript or set up a server and use PHP or whatever with your C code running on your server.
- billforsternz 4y agoIt wouldn't be a user-supplied binary. The user would provide C++ (say) source code. The service would compile the source code once to wasm say. A subset of the standard library would be available. The service would spin up resources to run the wasm binary on demand from end-users. I am not proposing to try and make such a thing myself, but I'm hoping someone has done it. It would be widely useful. Programming languages are a dime a dozen but sharing simple programs written with them is problematic when there is such a disconnect between the I/O model of most programming languages plus their standard libraries and the realities of web architecture and plumbing. But adapting one to another is something people do. Web REPLs are a thing, I just want a web REPL taken to the next level. Surely it should be possible to do "Hello World" on the web.