6 ms·
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 sub
by yufw 6y 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).
- petters 6y agoCool! What is the difference to e.g. repl.it? Does it run Python locally in the browser or in the cloud?
- yufw 6y agoIt certainly has less feature than repl.it, for example, it does not have interactive repl. It runs in the cloud, in docker containers.
- FrozenVoid 6y agorepl.it requires registration.
- aol1306 6y agoDo 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.
- yufw 6y agoYes, 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_constraints/ https://docs.docker.com/config/containers/resource_constrain...
- swimminginlove 6y agoInteresting project! Any plans to make it open source?
- yufw 6y agoNo, 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.
- petterrasmussen 6y agoI 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 https://news.ycombinator.com/item?id=25602894
- thenanyu 6y agoAn 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.
- yufw 6y agoThanks, this is really inspiring!