dbyte language 13.5.0
dbyte 13.5.0
get the compiler running then read the compile time rules every limit comes from source and tests
first steps
- Install the toolchain and verify the binary version and self-hosted lexer.
- Learn the core language: types, declarations, functions, control flow, imports and standard-library basics.
- Use compile-time execution: bounded loops and pure functions, with exact limits and diagnostics.
- Browse the full manual for the VM, native compiler, ABI and previous documented versions.
try the code
From examples/ctfe_pure_fn_v135.dby. A compile-time function calculates a value used to produce a native runtime entry point:
comptime {
fn factorial(n: int) -> int:
if n <= 1:
return 1
else:
return n * factorial(n - 1)
let answer: int = factorial(4) + 18
emit_source("pub fn answer() -> i32:\n return " + str(answer) + "\n")
}
pub fn main() -> i32:
return answer()
For this verified fixture, the resulting executable returns 42. See language restrictions and verification cases.
release boundary
The packages contain the dbyte CLI, native compiler dbytec, assembler dbtasm and a verified DByte-written frontend sidecar. Kernel Lab and DByteOS components are experimental and are not a finished full operating system.
Windows/Linux software gates passed. Physical BIOSTAR qualification for 13.5.0 has not been performed; the 13.2.0 hardware record is historical and separate. Read the version 13.5 release evidence.
new grammar and old code
The mandatory 13.3 lexer and 13.4 source emitter remain separate from the new 13.5 bounded for/range and local pure function grammar. 13.4.1 is the intervening maintenance release.