GithubHelp home page GithubHelp logo

decipi's Introduction

decipi

decentralized competitive programming platform

Objectives:

  • create a competitive programming platform with decentralized evaluation that is as lean as possible on the central server
  • everything that may add even a very tiny bit of load on the server (eg being able to see the rankings, accepting requests from non-participants during rounds) should be configurable (which results in every server request that is not essential being optional)
  • precise time evaluation
  • preventing cheating as much as possible given the model of the platform
  • the plaftorm should not impose an heavy load on the participants either
  • it should still be very flexible and allow for interactive problems, subtasks, simultaneous contests, and such
  • eliminate long queue times or the need for an expensive server

Server

The server is a queue, it's there just to put in order the participants' messages in a deterministic way. It might also be used for hole punching. If any other functionality is needed it may be added later, but I'd like to keep it as simple as possible.

Contest master

Since the server is that simple, there needs to be another entity to manage the contest itself. It will interact with the participants through the message queue managed by the server.

Participant

A participant also interacts with the message queue, what they do is submit and evaluate.

Trusted worker

A trusted evaluator that is not a participant.

They are needed because at the beginning no participant can evaluate anything.

They are "trusted" in the sense that they do not need reduntant checks for their evaluation.

They are used until there are enough participants to evaluate a submission (or maybe more).

Evaluation

Every sumbission is in wasi, this way we can evaluate them deterministically. The contest files (generator, scorer, interactor,...) are also in wasi.

The submissions for a problem are evaluated by participants who already solved it. They will evaluate the submission and publish the general result, plus H(H(data),n), where H is a hash function, n is a random number provided by the server, data is info about the execution (memory, fuel consumed,...). When evaluatore published their result, they will publish H(data), which should be the same for all of them.

Distribution of files

The "contest master" needs to distribute: problem statements, evaluation files. The "participants" need to distribute submissions.

Problem statements are encrypted before the contest. Evaluation files and submissions are encrypted with a key given only to problem solvers.

How files are actually distributed is still undecided.

decipi's People

Contributors

myk00l avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.