A language for the machinev0.1.0 / Early release ↗

Dart syntax.
Native by nature.
Yours to build.

The familiarity of Dart. The control of a systems language. Ahead-of-time compilation, automatic reference counting, and a direct line to C.

DC / LANGUAGE SYSTEM 001
DCDart
@bare
u64 add(u64 a, u64 b) {
  return a + b;
}
SOURCE.dartLLVMNATIVE.o
NO VM · NO JIT · NO TRACING GCDESIGNED BY DOTCORR
01 / COMPILEAhead of time
02 / MEMORYARC + static elision
03 / INTERFACEPlain C ABI
04 / CHARACTERUnapologetically native
[01] / The language

Familiar on the surface.
Precise underneath.

A working subset of Dart, built for systems code. Explicit where it matters. Readable where it counts.

(01)

Memory, without the mystery.

The compiler inserts reference counting and removes redundant operations. Objects stay put, so C can work with stable pointers.

(02)

Every bit has a purpose.

Fixed-width integers. Explicit conversions. Arithmetic that traps on overflow by default. Control that survives compilation.

(03)

Bring your own world.

Compile to object files and link with C. Freestanding code can live in firmware, kernels, or the native library you are building next.

[02] / Try it here

Real code. Your input.

This function was compiled by DCDart to WebAssembly. Change the number and run it on your own machine, right here.

LOOP.dart / Compiled source
@bare
u64 sumTo(u64 n) {
  var i = u64(0);
  var total = u64(0);
  while (i < n) {
    total = total + i;
    i = i + u64(1);
  }
  return total;
}

Ready when you are. Executed locally with WebAssembly.

Source is compiled ahead of time.
Every result is computed from your input.

[03] / Get started

A small start.
A native binary.

v0.1.0 is available for macOS on Apple Silicon through the DotCorr Homebrew tap.

Build your first program ↗
MACOS / APPLE SILICON
brew tap dotcorr/tap https://github.com/DotCorr/homebrew-tap
brew install dotcorr/tap/dcdart

Compiling source also requires Dart SDK 3.12.2. Use an explicit prelude path, as shown in the setup guide.

Download the release archive ↗

[04] / Out in the open

Early. Working. Evolving.

The compiler is real; the language is still growing. We publish the limits alongside the code.

Distribution Availability Status
Homebrew / DotCorr tap ↗ macOS · Apple Silicon v0.1.0 / LIVE
GitHub Releases ↗ Archive + Homebrew bottle v0.1.0 / LIVE
npm · pub.dev · crates.io · PyPI No dcdart package found NOT LISTED
Homebrew core · AUR No dcdart entry found NOT LISTED