v0.1.0 — Now Available
Write it once. Build for any target.
Draft is a simple, fast, general-purpose programming language. One syntax. Native binaries, WebAssembly, web, embedded, and more.
One binary. Every target.
Get started in under a minute.
The Draft compiler is a single executable. No SDKs, no runtimes, no virtual machines. Download it, put it in your PATH, and build for any platform.
Simple by design
Draft is built around readable syntax and a small set of clear rules. Write programs that look close to the way you would explain them.
- Readable, word-oriented syntax
- Minimal punctuation
- Small language surface
Frequently asked questions
What is Draft?
Draft is a general-purpose programming language designed to keep programming simple without limiting what you can build. It is designed for everything from command-line tools and web applications to native software, games, mobile applications, and embedded systems.
What does Draft code look like?
Draft uses simple, readable syntax built around words rather than unnecessary punctuation. Variables use @, member access uses #, and blocks are explicitly closed with fin. For example: if @age is 21, write("21"), else write("oops!"), fin if.
How does the Draft compiler work?
The Draft compiler is built in Rust and is designed to be distributed as a single standalone executable. Draft source passes through a lexer, parser, type checker and compact intermediate representation before being compiled for the selected target.
Do I need Rust installed to use Draft?
No. Rust is used to build the Draft compiler, but Draft users download the compiled Draft executable and use it directly. You can create, check, run and build Draft projects without installing Rust or Cargo.
What can I build with Draft?
Draft is designed as a general-purpose language for native applications, web applications, WebAssembly, servers, command-line tools, games, desktop software, mobile applications and embedded systems.
Can Draft compile to WebAssembly?
Yes. WebAssembly is one of Draft's compilation targets, allowing Draft programs to run in browsers and other WebAssembly environments.
Can I use Draft for web development?
Yes. Draft is designed to support web development alongside its native targets, including browser applications, WebAssembly and server-side applications.
Is there a VS Code extension?
Yes. Draft has official editor tooling planned around syntax highlighting, diagnostics, autocomplete, formatting, navigation and other language features through a Draft language server.
Can I try Draft without installing anything?
Yes. The Draft website includes a browser-based playground where you can experiment with Draft code directly in your browser.
Start writing Draft
Write something. See it run.
Try Draft in your browser, read the documentation, or download the compiler and start building with the language.
