logo Dorpn v0.4.1 GitHub
v0.4.1 pre-release · actively evolving

Readable syntax.
Compiled to native C.

Dorpn is a statically-typed language with Python-like syntax that compiles straight to C — giving you clear, expressive code with the raw performance of a native executable.

hello.dpn
Const APP_NAME = "Dorpn"

func greet(name :String) -> String:
    return "Welcome to " + APP_NAME + ", " + name

func _Start():
    tag user = ask("What's your name? ")
    print(greet(user))
    print("*".repeat(30))
6
Total Types
C
Compilation Target
0
Runtime GC Overhead
v0.4.1
Current Pre-release
Why Dorpn

Built for clarity and speed

Dorpn combines the readability of scripting languages with the performance guarantees of a compiled systems language.

Compiles to native C

Every Dorpn program is lexed, parsed, semantically checked, then transpiled to C and handed to GCC — producing a real, native executable.

Static, strict typing

Six built-in types — Int, Float, String, Bool, plus Int32 and Float32 — with compile-time type checking and predictable promotion rules.

Python-inspired syntax

Indentation-scoped blocks, tag for variables, and clean control flow keywords like loop, keep, and if / elif / else.

Immutable constants

Const gives you compile-time guaranteed immutability for configuration values, invariants, and application metadata.

No garbage collector

Memory is managed deterministically through the generated C code — no GC pauses, no hidden runtime overhead.

Simple CLI workflow

One binary, one command. Compile, run, inspect generated C, or get verbose compiler diagnostics — all via a single dorpn CLI.

JavaScript target v0.4.0+

The same .dpn source can also compile straight to JavaScript with -js — one language, two runtimes: native for systems work, JS for scripting and the web.

Under the hood

The compilation pipeline

From source text to a native executable, in six deterministic stages.

Dorpn Source
(.dpn)
Lexing
& Tokens
Parsing
& AST
Semantic
Analyzer
Code
Generation
GCC
Native
Executable
Documentation

Everything you need to write Dorpn

Structured guides and a complete API reference for the v0.4.x release series.

Ready to write your first Dorpn program?

Download the latest release binary — no build step required — and compile your first .dpn file in minutes.