Git Product home page Git Product logo

judge-v3's Introduction

judge-v3's People

Contributors

antaresqaq avatar ceerrep avatar menci avatar t123yh avatar vincent-163 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

judge-v3's Issues

Add Scala Support

Looking forward to having Scala on syzoj and loj.ac. Maybe the scripts should be like this:

export const lang =  {
    name: "scala",
    sourceFileName: "Main.scala",
    fileExtension: "scala",
    binarySizeLimit: 5000 * 1024,

    // Note that these two paths are in the sandboxed environment.
    compile: (sourcePath, outputDirectory) => ({
        // To customize the compilation process,
        // write a shell script or some other stuff, 
        // and put it to your sandbox.
        executable: "/usr/bin/compile-script",
        parameters: ["compile-script", sourcePath, outputDirectory, "scalac Main.scala"],
        time: 5000,
        memory: 1024 * 1024 * 1024,
        process: 20,
        // This is just a redirection. You can simply ignore this
        // if you can specify custom location for message output
        // in the parameter of the compiler, or have redirected the compilation 
        // message to somewhere.
        // An example will be available soon.
        stderr: `${outputDirectory}/message.txt`,
        // We will read this file for message in the output directory.
        messageFile: 'message.txt',
        workingDirectory: outputDirectory
    }),

    run: (binaryDirectory: string,
        workingDirectory: string,
        time: number,
        memory: number,
        stdinFile = null,
        stdoutFile = null,
        stderrFile = null
    ) => ({
        executable: `/usr/bin/scala`,
        parameters: ["scala", `${binaryDirectory}/Main.scala`],
        time: time,
        memory: memory,
        process: 15,
        stdin: stdinFile,
        stdout: stdoutFile,
        stderr: stderrFile,
        workingDirectory: workingDirectory
    })
};

是否可以考虑做个docker镜像?

web端一次就搭成功了,judge搭了一天都没成功...说明文档又有点少。能否做个docker镜像?或者提供下配置说明
那个demo我看到了,但是按那个配置npm install总是报错。现在正在尝试按照版本一模一样的组件下源码编译,但是这样的配置也太麻烦了点吧......

这个judge用的是什么沙盒

RT,是不是judge2的sandbox?不过那个judge2的下载链接挂了
求解
还有那个runner-shared-config怎么配置
要是能有详细的部署教程就更好了

升级py3版本

如题,请问一下如何升级py3的版本,想从3.5升到3.9

交互题评测的一个小bug

src/runner/judge.ts 的 285 行的

await fse.writeFile(pathLib.join(spjWorkingDir, 'code'), task);

应该把 task 改成后面的 userCode

除了 code 内容非预期外,writeFile 里传对象在高版本 Node.js 里会报错。

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.