Hacker News new | ask | show | jobs
by weebao 481 days ago
Basically recreated LeetCode on a $5/month VPS lol. It started as a class project but over 800 people joined so I kept refining it for 2 months. It supports running Python, Java, and C++ code (building a code runner is tough). Give it a try and let me know what you think!

The code is also open-source too at https://github.com/beatcode-official

4 comments

In case it's your own project, I believe the convention is to prefix the title with "Show HN:".
Sorry I'm new here seems like I can only edit the title within 2 hours of posting. Thanks lots for telling me!
Neetcode uses/used judge0 for code execution but it might be overkill

https://github.com/judge0/judge0

Yea I knew about that but I wanted to learn how to build one my own :D
What were the challenges you encountered / tackled with creating a code runner?

Cool project!

Thanks! Creating a template for inserting the code would be one. Java has this type erasure thing where the types only appear after compilation so tweaking it around was hard. Spinning up the containers for each submission is slow but it ensures every submission is isolated.
have a look at this "https://github.com/INGInious/containers" - open-source platform for secure and automated code assessment