Haze is a statically typed, compiled programming language built around DbC. It was born out of a frustration with existing DbC solutions such as Dafny, and semi-solutions such as those offered by D and the recent C++26 proposal. Contracts are written by the programmer into function signatures and type headers, and are evaluated at compile-time by the Haze compiler.

It uses a custom fork of QBE as its compiler backend, namely UQBE. UQBE aims to cover more targets such as Windows/arm64 and apply optimizations on top of the existing QBE optimizations, while maintaining lightness and ease of use relative to LLVM. UQBE can also be used as a library where QBE cannot.

Memory management is made the compilers problem rather than the programmers, which allows for greater focus on the correctness of a program rather than memory or intialization strangeness.

Reference:

See Writing Idiomatic Haze Code for the contract and style conventions used throughout the guide.