Re:Show HN: SharePad.io – A collaborative code editor and co...
by thenanyu on Friday January 01, 2021 @01:40PM
(#25605465)
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.
Re:Show HN: SharePad.io – A collaborative code editor and co...
by yufw on Friday January 01, 2021 @01:51PM
(#25605573)
Thanks, this is really inspiring!
Re:Show HN: SharePad.io – A collaborative code editor and co...
by petters on Friday January 01, 2021 @04:52AM
(#25602083)
Cool! What is the difference to e.g. repl.it?
Does it run Python locally in the browser or in the cloud?
Re:Show HN: SharePad.io – A collaborative code editor and co...
by yufw on Friday January 01, 2021 @05:14AM
(#25602196)
It certainly has less feature than repl.it, for example, it does not have interactive repl. It runs in the cloud, in docker containers.
Re:Show HN: SharePad.io – A collaborative code editor and co...
by aol1306 on Friday January 01, 2021 @08:26AM
(#25603092)
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.
Re:Show HN: SharePad.io – A collaborative code editor and co...
by yufw on Friday January 01, 2021 @09:05AM
(#25603325)
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...
Re:Show HN: SharePad.io – A collaborative code editor and co...
by FrozenVoid on Friday January 01, 2021 @07:14AM
(#25602735)
repl.it requires registration.
Re:Show HN: SharePad.io – A collaborative code editor and co...
by swimminginlove on Friday January 01, 2021 @07:23AM
(#25602772)
Interesting project!
Any plans to make it open source?
Re:Show HN: SharePad.io – A collaborative code editor and co...
by petterrasmussen on Friday January 01, 2021 @09:05AM
(#25603314)
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.
Re:Show HN: SharePad.io – A collaborative code editor and co...
by yufw on Friday January 01, 2021 @08:59AM
(#25603270)
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.
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).