news
17
Compile-Time Dependent Types
2026-10-30A reader discussion on compile-time dependent types notes that mainstream systems-language features—C++ templates/constexpr, Rust const generics, Zig comptime, and C _Generic—are often restricted or lack a proper type system and are not true dependent types. It highlights Syl as an example of compile-time dependent typing with runtime simply typed code and type erasure, linked to staged compilation and two-level type theory, while questioning how well LTO and compiler optimization handle the resulting polymorphic code.
Comments
0Discuss on Hacker NewsOnly full members can comment
Log in to express your opinion.
No comments yet.