callmepandey's blog

By callmepandey, history, 20 months ago, In English

Hey Everyone, 

I am working on a college project that involves an online judge.

One of the features includes an IDE where we can run and test code on sample inputs and outputs. Codeforces is one such judge, and I was wondering how Codeforces compiles and runs our codes and tests them at such a high scale. Any insights would be helpful.

Thank you.

  • Vote: I like it
  • +41
  • Vote: I do not like it

| Write comment?
»
20 months ago, # |
Rev. 2   Vote: I like it +2 Vote: I do not like it

callmepandey

ye toh saar aapko MikeMirzayanov se pucchna hoga

»
20 months ago, # |
  Vote: I like it +22 Vote: I do not like it

You could check out some open source OJ projects on GitHub, like syzoj. That may help you to build one quickly.

»
20 months ago, # |
  Vote: I like it +23 Vote: I do not like it

Check DMOJ. Here are the docs: DMOJ Documentation

»
20 months ago, # |
  Vote: I like it +13 Vote: I do not like it

Well, I had implemented simple online judge. I don't share code, but can give some tips. But it is run on only one server, there are no something like "load balancing". Just always running program, which takes next submission and checks it. And mysql database right on this server.

If we forget about web part, which in my case was on PHP, for implementing testing system you have to quite well know unix shell, and what can happen bad with running program and what to do in this case.

»
20 months ago, # |
  Vote: I like it +13 Vote: I do not like it

++

»
20 months ago, # |
  Vote: I like it +18 Vote: I do not like it

Here is an open source online code execution system (judge zero). You can use it to build a wide range of applications that need online code execution features. Check it out, it may help you.

  • »
    »
    20 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Hi tawhidmonowar, thank you so much for replying. I tried installing Judge0 on my machine (Runs on M1 pro Chip) and when i try to run any code it returns.

    [Response 17/03/2023, 23:14:18] 200 OK
    {
        "stdout": null,
        "time": null,
        "memory": null,
        "stderr": null,
        "token": "572762fb-4666-49aa-a5c5-17fcf4f457ab",
        "compile_output": null,
        "message": null,
        "status": {
            "id": 6,
            "description": "Compilation Error"
        }
    }
    
    

    Everytime. The code and Language ID are fine.

»
8 months ago, # |
  Vote: I like it +3 Vote: I do not like it

I am interesting to hear your story with project if you done it, what did you learnt from it and what problems have you faced, I am about to create same thing for my graduate project.

»
8 months ago, # |
  Vote: I like it +3 Vote: I do not like it

would you mind sharing your journey after you are done, I would also like to know it and build it using Flask or Django and try to showcase something like this in upcoming science exhibitions of my college.

»
6 months ago, # |
  Vote: I like it 0 Vote: I do not like it

If you're still curious, I did it recently: https://github.com/nubskr/codespace

  • »
    »
    6 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Hey can you please explain how you did it.the functionalities are impressive but implementing it looks too complex.

  • »
    »
    5 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Bro can you to tell me how much time it it take to make this from scratch , i dont have projects for my resume so i want to build one