Hacker News new | ask | show | jobs
by petters 1997 days ago
Cool! What is the difference to e.g. repl.it?

Does it run Python locally in the browser or in the cloud?

1 comments

It certainly has less feature than repl.it, for example, it does not have interactive repl. It runs in the cloud, in docker containers.
Do you have any abuse prevention mechanisms implemented? For instance, preventing users from running infinite loops, consuming too much resources and so on?

I built a similar service as a personal project and I am interested how to properly handle situations like that.

Yes, currently the execution time is limited to 10s and 10s compilation time for compiled languages. Memory limit is 256M. It runs user code in docker container, I leverage docker for restricting resources, more info at https://docs.docker.com/config/containers/resource_constrain...
repl.it requires registration.