Hacker News new | ask | show | jobs
by yufw 1992 days ago
Happy New Year!

This is my first web dev side project and it's in early stage. As an interviewer in the tech industry, I often find myself cannot spot that subtle bug in candidates' code during phone screening, so I build this website which lets me do collaborative editing and also run the code. You may find it useful too.

Please help try it out and provide some feedback. No registration is required (because I have yet to implement the user system).

3 comments

An engineer on my team years ago felt the same as you and built his own solution for us to use during interview, eventually spinning it into a very successful business. Check out coderpad.io if you wanna get some inspiration. They took a similar technical approach as you described, at least for the first versions.
Thanks, this is really inspiring!
Cool! What is the difference to e.g. repl.it?

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

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.
Interesting project!

Any plans to make it open source?

I just posted a Show HN for docker-run[1]. It can be used to implement the code running part for a project like this.

[1] https://news.ycombinator.com/item?id=25602894

No, I don't have plans to open source it currently. I am not sure where open source will take this project to and the source code is a bit messy. I may write about how I built it in the future.