Project length: 350 hours (large)
Important: Read every message in the official rules channel before contacting mentors, beginning an MVP or preparing a proposal. Follow all applicable rules. If you are not a server member, join the official Discord server first.
Description
DOC is a typed, general-purpose dependency-oriented programming language, computational model and native compiler. A single dependency graph governs implicit parallelism, reactive incremental computation, demand-driven evaluation and persistent result reuse with equality cutoff. Independent work can be scheduled autonomously without explicit threads or synchronization; GPU-enabled builds can automatically distribute eligible work across CPU and GPU resources. The model provides schedule-independent stable results under its stated assumptions, runtime-sized computational families, versioned recurrence, validated graph replacement, automatic value lifetime management and atomic publication.
The existing native implementation compiles standalone executables, generates WGSL kernels for supported operations and has self-hosting, 2D/3D application and bounded physical-GPU evidence. Programs currently declare their dependencies explicitly. The goal is a more natural programming interface over the same computational core, a simpler DOC-authored runtime, improved scaling efficiency and stronger correctness guarantees. General dependency inference, unrestricted dynamic graph generation and production distributed execution remain research and engineering directions.
Expected outcomes and deliverables
- Pure DOC runtime: Convert portable value/region lifetime, reactive epoch, recurrence, cancellation, placement and GPU retirement algorithms in
runtime-doc/into DOC. Keep C/WGSL as generated targets and retain only justified native ABI/OS/driver primitives; preserve the frozen Rust oracle. - Frontend and graph representation: Explore natural DOC syntax with sound automatic dependency inference from expressions, functions, conditions and collections. Consolidate existing typed graph and expression representations into a canonical, hardware-independent graph intermediate representation (IR) before native lowering. Represent runtime-sized families, recurrence, stable identities, validated graph-version transitions and effect boundaries without unnecessarily materializing graphs. Demonstrate equivalent explicit and inferred programs; prefer extending DOC itself over a separate language, interpreter or runtime. See issue #35.
- Scheduling and performance: Improve automatic CPU/GPU placement and useful parallelism while reducing scheduling, synchronization, allocation, transfer and dispatch overhead. Measure end-to-end latency, throughput, scaling efficiency and memory against comparable baselines. Retain only changes with measured benefits that justify their complexity. See issue #34.
- Language and model extensions: Close remaining general-purpose and native-system gaps. Define admitted cyclic/fixed-point semantics, strengthen semantic-key/equality-cutoff evidence and mechanize finite stabilization and extension proofs.
- Resource and effect guarantees: Specify/enforce retention and resource bounds, cancellation and recovery from external-effect crash ambiguity. Preserve dependency-informed reclamation without tracing GC or reference counting.
- Broader execution evidence: Extend tests to many-core CPUs and additional accelerators; qualify distributed authority, consensus and partition recovery only within sound admitted profiles. Do not imply existing bounded TCP evidence proves general distributed execution.
- Release qualification: Re-run existing self-reproduction, differential, failure, real application and physical-GPU suites against the converted exact revision; add new-capability tests, reproducible benchmarks and release documentation. Do not recreate completed compiler, games or reference runtime.
- Demonstration and user tutorials: Publish technical demonstrations and tutorials showing how another developer builds or obtains the qualified DOC toolchain, runs example programs using the delivered language/runtime features, and reproduces relevant correctness and performance checks. Clearly explain supported execution profiles. Link the videos in the project documentation and explain actual supported behavior, setup and limitations without exposing credentials or private data.
Willing to learn the following tech stack
DOC, Rust (reference implementation), C and WGSL (compilation targets), WebGPU.
Scope and constraints
Work in the canonical runtime-doc/ implementation. Reuse the existing compiler, typed IR and runtime infrastructure; preserve the frozen reference and qualified behavior. Select feasible, mentor-agreed deliverables within the 350-hour project, with research extensions scoped to demonstrable results. Do not introduce a parallel runtime, redundant IR or speculative optimization framework, or claim unrestricted GPU or distributed support.
Mentors
Rituraj (@imxade). Contact mentors only in the designated official Discord channels.
Pre-evaluation
Academic or research qualification: Applicants hold a master's degree in a relevant field, be pursuing master's-level or doctoral study in a relevant field, or have conducted or be actively participating in relevant research in at least one area: theory of computation, parallel computation, GPU computing/GPGPU, GPU kernel programming or shader-based GPU computation (e.g. WebGL). Practical understanding and this qualification are assessed separately.
Join the official Discord server and open the project's forum. Read the pinned project evaluation post for the complete assessment and submission instructions. Use the project's discussion post for questions and submissions; follow the submission instructions.
MVP submission destination: DOC MVP directory. Submit one consolidated MVP covering the project scope; start its PR title with [MVP].