I'm curious if anyone would like to use the code-execution as a service.
It's basically a websocket based API where you send a blob of code and get execution result as response.
In case of REPL, you send STDIN to websocket and get STDOUT as response.
All code execution happens in separate Docker containers.
At replit every repl is indeed a docker container, but that is absolutely not the primarily isolation mechanism. Here’s a comment from CEO @amasad to that effect in 2019 (so, even more secure now I am certain) https://news.ycombinator.com/item?id=19215175
This would be interesting to me. There are a few options now, like Judge0, but the language versions are pretty out of date. Self-hosting is not a good time investment at the moment.
Email me at hn at vikas.sh if you have a service. I'd need an SLA for sure, and multi-file support would be nice to have.
We serve production code execution use cases (mainly Python) with Jamsocket: https://jamsocket.com/
We've been running it for over a year and would be willing to talk about an SLA. Each instance gets its own gvisor-sandboxed runtime and we do some network isolation on top of that. (We also have some crypto miner mitigation, because if you provide free compute to strangers they will manage to find you.)
In case of REPL, you send STDIN to websocket and get STDOUT as response. All code execution happens in separate Docker containers.