Native · WebAssembly · Node
Fast programs, everywhere¶
A typed language that compiles to native binaries and WebAssembly.
Why Dream¶
Native and WebAssembly¶
One codebase builds a native executable, a browser module, or a Node module.
ARC that compiles away¶
Last-use moves, inferred borrows, and retain elision remove most reference counting at build time.
Seamless interop¶
Call C and C++ with @c and @cpp, and JavaScript with extern and the js type.
Typed web APIs¶
Compile-time routing, validation, authentication, OpenAPI, and WebSockets in the standard library.
Zero-cost generics¶
Generic code is specialized for each type you use, with no runtime dispatch.
Async and parallel¶
async/await for waiting work, Task for parallel CPU work, both owned by structured scopes.
GPU programming¶
Write compute, vertex, and fragment shaders in Dream for native and browser programs. Explore GPU programming.
Explore the docs¶
Write shaders in Dream and run compute, graphics, and small neural networks on the GPU.
4 pagesCreate, build, test, and manage projects with dreamer, plus editor and formatter setup.