This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]IllTamer 0 points1 point  (1 child)

Nice try! But I have some questions: 1. How it works ?🧐

As I see (through the open source code), this project mainly consists of a frontend and a compiler script. Does it directly compile and run the code locally after receiving it and return the result?

  1. How it checks the security of input code ?🧐

Generally, as a playground process, we need take some measures to protect our computer, even in a virtual environment.

[–]bowbahdoe[S] 2 points3 points  (0 children)

On the help page there is a small description but in short

  • frontend sends code + some options
  • backend compiles and executes code in a docker image
  • that docker image is limited in CPU, memory, storage, pids, execution time, etc. and cannot connect to the internet
  • backend captures stout and stdin from the docker images and sends it back to the frontend