# Syl brings compile-time dependent types to systems programming

> Hacker News story 50246538 · language: en · submitted 2026-10-26
> Web version: https://zeli.app/story/50246538
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 75 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 26
[original](<https://thenumb.at/Syl-Intro/>) · [HN discussion](<https://news.ycombinator.com/item?id=50246538>)

## Summary

C++ has templates, Rust has const generics, Zig has comptime — but all are restricted or lack a real type system. Syl is a new language that encodes compile-time computation in a modal type system inspired by two-level type theory and OxCaml. Values carry modes for staticity and erasure, letting the compiler monomorphize static arguments while keeping runtime code simply typed. The trade-off: typechecking isn't decidable, so Syl uses fuel limits instead of a totality checker.

## Key quote

> That is, Syl is dependently typed at compile time and simply typed at runtime.

## HN discussion (26 comments)

### [nextaccountic](<https://news.ycombinator.com/item?id=50306496>)

> \> 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](<https://news.ycombinator.com/item?id=50307793>)

> 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

### [superxpro12](<https://news.ycombinator.com/item?id=50305738>)

> 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.

---

## Cite

- Page: https://zeli.app/story/50246538
- Date: 2026-10-26
- Source: thenumb.at (https://thenumb.at/Syl-Intro/)
- Hacker News: https://news.ycombinator.com/item?id=50246538

## Other languages

- zh: https://zeli.app/zh/story/50246538 · markdown: https://zeli.app/zh/story/50246538.md
- ja: https://zeli.app/ja/story/50246538 · markdown: https://zeli.app/ja/story/50246538.md
- ko: https://zeli.app/ko/story/50246538 · markdown: https://zeli.app/ko/story/50246538.md
- de: https://zeli.app/de/story/50246538 · markdown: https://zeli.app/de/story/50246538.md
- es: https://zeli.app/es/story/50246538 · markdown: https://zeli.app/es/story/50246538.md
- ru: https://zeli.app/ru/story/50246538 · markdown: https://zeli.app/ru/story/50246538.md
