Native compilation
LLVM 23.1.4 powers both ORC JIT execution and ahead-of-time object output through one shared lowering pipeline.
Explore native compilationPOWERFUL BY DESIGN
Readable source, useful types and native execution form VOID’s foundation. Explore what each feature means for your code and where development is heading.
LLVM 23.1.4 powers both ORC JIT execution and ahead-of-time object output through one shared lowering pipeline.
Explore native compilationA precise, non-moving tracing collector supports managed structs, nullable graphs and deep readonly access paths.
Explore managed memoryExact-width numbers, value structs, structural interfaces and concrete generics bring structure to everyday code.
Explore expressive typesLists, fixed arrays and dictionaries offer recoverable get operations; list pop handles empty collections explicitly.
Explore useful collectionsNamed/default calls, typed if-expressions, string-only interpolation and explicit results keep everyday intent readable.
Explore explicit control flowCooperative async tasks and structured groups are implemented. Native workers currently accept a restricted value-only subset.
Explore bounded concurrencyVOID compiles source through LLVM. Just-in-time execution runs compiled code during development; ahead-of-time compilation emits an object file that can be linked into a native executable.
Both paths use the same language rules and lowering pipeline. Applications can use a zero-argument main or executable top-level statements selected from the program. Application exit status is separate from standard output. Unicode scalar indexing, scalar/byte counts and UTF-8 conversion are implemented too. The compiler is built with C++20 and uses LLVM 23.1.4. VOID is still in development, with no public builds available yet.
See the shape of a VOID programGeneric functions and structs express an operation or data shape in terms of a type parameter. A function such as identity<t>(value: t) -> t can return its input while keeping its concrete type.
Concrete generic instantiations preserve types. Compile-time Type has Target checks direct using-components or structural interface conformance. The numeric prelude supplies limits, abs and clamp without imports. Explore type relationships and numeric operations.
An async func can suspend at await while other cooperative tasks proceed. Structured task groups give related work a lifecycle, and bounded native workers support parallel execution of a restricted value-only subset.
Async tasks cooperate within a scope. Native workers take supported values and return a result to the owning Runtime. Completed, unobservable task records can be retired after quiescence. Retaining results still uses memory. See Task groups and cancellation.
Explore async and awaitUse text and encoding for external data, io and path for files, and net/http for buffered or streaming responses. These APIs expose fallible operations through typed results.