Compile-Time Dependent Types
ibobev
79 points
28 comments
October 26, 2026
Related Discussions
Found 5 related stories in 41.4ms across 3,874 title embeddings via pgvector HNSW
- High Stakes Are Strongly Typed supo · 18 pts · November 19, 2026 · 49% similar
- Context-Generic Programming v0.8.0 – Pluggable trait implementations for Rust maybevoid · 26 pts · November 18, 2026 · 46% similar
- Union Types and Option Types (2025) g0xA52A2A · 61 pts · November 02, 2026 · 44% similar
- An incremental approach to JIT construction andsoitis · 49 pts · October 24, 2026 · 41% similar
- Evergreen: A Provably Safe Systems Language jordan_bonecut · 104 pts · November 04, 2026 · 41% similar
Discussion Highlights (3 comments)
superxpro12
I wonder how well LTO optimizes for these sorts of things, vs doing all of the legwork to compile-time resolve polymorphic functions and objects.
nextaccountic
> Compile-Time Dependent Types > It seems inevitable that compile-time dependent types will come to systems programming. C++ has templates and constexpr. Rust has const generics. Zig has comptime. Even C has _Generic. However, these features tend to be highly restricted, lack a proper type system, or both. Those language features are not examples of dependent types, though... > That is, Syl is dependently typed at compile time and simply typed at runtime. > This is the core idea of Staged Compilation with Two-Level Type Theory https://andraskovacs.github.io/pdfs/2ltt.pdf though it’s not presented as a modal type system. But dependent types (and static types in general) don't exist at runtime! But I guess you mean that Syl implement dependent types them with no overhead, like no dictionary passing. So you can have full type erasure. Is that accurate? (will read the paper)
carterschonwald
very cool! ive a long running back burner project that overlaps in the same design and influence space, but takes it in a very different direction