The Clef Programming Language - A Ship of Theseus Story
summary
Clef evolves from last year’s Fidelity Framework by combining F# and FStar with MLIR and a nanopass compiler to target CPU, GPU, FPGA and NPUs; demos show dynamic C bindings via Farscape, the same kernel compiled for CPU and GPU (roughly 900 calculations/sec on GPU), and FPGA lowering with synthesis scripts. Type system features include dimensional types and an allocation strategy that avoids GC; the compiler runs SMT-backed proofs against the program semantic graph and even verifies ELF memory maps. Many backend passes and self-hosting remain works in progress.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:14A Ship of Theseus Story: From Firefly to Clef
- 5:49Demo: Calling into C Libraries
- 8:03Dimensional Types and Units of Measure
- 11:29Allocation Strategy and Delimited Continuations
- 13:45Actors, Mailbox Processors, and Design-Time Proofs
- 15:55Binding C Libraries to Real Hardware
- 20:35Nanopass Layers and Hardware Back Ends
- 33:20Demo: The Same Code on CPU and GPU
- 41:40Importing Libraries with Farscape
- 51:54Interop and SMT Proofs in MLIR
- 57:35The Clef Atlas and What's Next
