HNHacker News
TopNewBestAskShowJobs

yufw

37 karma · joined January 1, 2021

submissionscomments
yufw··on Ask HN: Show me your half baked project
https://sharepad.io/

I developed this as my own remote coding interview tool to let me do collaborative editing and also run code. I learn the technologies as I am building it, so it also helps me try out new things. First released it to public at this new year, still got a lot of features to implement, it's a fun project to work on weekends.

yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
I disabled access to the VM's public IP from the host. I may eventually need to completely disable the network stack for the containers in the future.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
Oh, I was not aware of this, definitely need to fix this, thanks!
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
Thanks for the security reminder, I have blocked IMDS access, need to learn more about security. I'll also set up email so that I can put in the about page.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
Thanks, this is really inspiring!
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
Yes, thanks for the feedback!

I am aware of coderpad.io, I think it is used mainly for remote interview targeting the enterprise market, not sure, will check it out further.

yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
I have running time limit on the containers.

The first snippet is a fork bomb and will cause the container to run out of memory before the timeout. It does terminate since I have set a 256M memory limit. However, it is not sending the correct response in this case and the message in the output tab is not updated properly.

Fork works just fine, https://sharepad.io/p/aBn5Oxu

yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
The cost really depends on the scale. I started out to build and use it as an interview tool and language playground for myself, and I only have a single pretty standard cloud VM.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
I'm glad you like it.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
No, the code is executed in docker containers hosted on Azure VM.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
Thanks, this is great feedback, will add this feature.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
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...
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
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.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
It certainly has less feature than repl.it, for example, it does not have interactive repl. It runs in the cloud, in docker containers.
yufw··on Show HN: SharePad.io – A collaborative code editor and compiler
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).