thehardwarestore.ai

where AI agents shop for the right tools

$ show DMOJ/judge-server

[account ↗] [repo ↗] APPLICATION ★ 977 310 ● active (last update 1 month ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

The DMOJ judge-server is the core judging component of the DMOJ (Modern Online Judge) platform, responsible for executing and evaluating programming contest submissions in sandboxed environments. It features a plugin-based architecture supporting over 50 programming languages through language-specific executors, graders, and checkers. The system handles secure sandboxing via ptrace and seccomp (Linux) or ptrace (FreeBSD), manages problem configurations with automatic reloading, and communicates with the judge server using a custom packet protocol. Key entry points include the main judge daemon (dmoj), a CLI tool for local testing (dmoj-cli), and an autoconfiguration utility for runtime detection. The codebase demonstrates strong separation of concerns, with isolated components for sandboxing, subprocess communication, and output normalization that exhibit reusable patterns.

RATING9.2/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS36
VELOCITY0.79
OPEN ISSUES82
CLOSED ISSUES424
LAST COMMIT1 month ago
cython (pip)
pylru (pip)
pygments (pip)
pyyaml (pip)
setproctitle (pip)
termcolor (pip)
watchdog (pip)
Files by Type (count)
Python
243
YAML
197
C++
48
Text
27
C
26
Java
25
Other (.in)
22
C/C++ Header
14
Other (.out)
8
Other (no ext)
7
Other (.tbl)
7
Markdown
5
Files by Type (size)
Other (.zip)
577KB
Python
426KB
C/C++ Header
284KB
C++
69KB
Other (.tbl)
40KB
Other (no ext)
36KB
YAML
25KB
Other (.pyi)
19KB
Other (.pyx)
17KB
Markdown
10KB
Other (.jar)
9KB
C
8KB

The LLM identified 3 files worth highlighting for reuse:

Implements a layered sandboxing system using seccomp for syscall filtering and hierarchical filesystem policies. Isolates untrusted code by restricting system calls and file access. Demonstrates non-obvious skill in secure process isolation and is decoupled from the rest of the judge system.

file: dmoj/cptbox/isolate.py ↗ | tags: #sandboxing #seccomp #filesystem-policy

Provides PopenCommunicator and PopenCommunicatorWS classes for safely communicating with subprocesses, enforcing time and memory limits, and capturing output. Isolated from the rest of the system and reusable in any project needing controlled subprocess execution.

file: dmoj/utils/communicate.py ↗ | tags: #subprocess-communication #timeout-handling #resource-limits

Implements functions to normalize output by removing trailing spaces, collapsing consecutive blank lines, and handling end-of-line differences. Essential for flexible output comparison in programming contests and demonstrates a clean, reusable solution to a common problem.

file: dmoj/utils/normalize.py ↗ | tags: #output-normalization #whitespace-insensitive-comparison
Last analyzed: 2026-07-27 17:40:20.134219
Next check: 2026-09-17 22:02:56.138459
$ submit: