comptime eval

This commit is contained in:
2026-07-02 21:31:53 +02:00
parent b94687c30a
commit e00a4e929a
8 changed files with 500 additions and 36 deletions
+2 -1
View File
@@ -54,6 +54,7 @@ roadmap and milestone history.
- demand-monomorphized Brolang and C-ABI functions
- integer comptime value parameters such as `make_array func($N usize) [N]u8`, specialized by value and omitted from the runtime ABI
- explicit comptime type parameters such as `max func($T type, a, b T) T`, specialized by type and omitted from the runtime ABI
- forced comptime expressions such as `$sum(1, 2)` and comptime value blocks such as `${ yield 4 }` for integer constant contexts
- bodyful `c_func` definitions and bodyless `c_func` declarations with exact external symbol names
- concrete-only C signatures, C variadic declarations/calls, and C default argument promotions
- Apple Silicon C ABI lowering for scalars, pointers, fixed-signature plain records/unions, small aggregates, homogeneous float aggregates, and indirect aggregate returns
@@ -81,7 +82,7 @@ roadmap and milestone history.
## PLANNED / DEFERRED
- comptime-evaluable functions
- broader Zig-style comptime execution
- tuples and native Brolang variadic functions
- exporting Brolang functions to C and broader target-specific C ABI lowering
- non-plain C record layouts such as bitfields, packed records, flexible arrays, qualified fields, and C variadic record arguments