Live data from Hacker News

Show HN: I made an in-browser code editor with code replay and REPL

logicboard.com

11–20 of 29 posts

Re: Show HN: I made an in-browser code editor with code replay and REPL

#12

Earlier quoted context omitted.

Docker containers probably aren’t enough isolation. But throw some firecrackervm in the pot and you’ve got a stew going.

Repl.it uses Docker containers too, only recently started work on moving to better isolation mechanisms like VMs

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

Re: Show HN: I made an in-browser code editor with code replay and REPL

#13
post #2

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.

> In case of REPL, you send STDIN to websocket and get STDOUT as response. I wonder if repl.it ever did this, or if they've always used WebAssembly? (They definitely use wasm now.)

Nope, every repl is running in a docker container on a GCP vm, with various other security measures. See: https://news.ycombinator.com/item?id=19215175

I believe the very first version of replit was all in-browser, but no longer

Re: Show HN: I made an in-browser code editor with code replay and REPL

#20
post #2

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.

> I'm curious if anyone would like to use the code-execution as a service.

I am sure there are many whom would. Some may use it ethically, but many will not.

All will place liability on the service.

Post reply on HN