flang the compiler proves your program cannot hang 0.9.0 GitHub Try in the browserTry it Русский

What is left before 1.0

This page answers one question: what flang still lacks for release 1.0. The current release is 0.9.0. What has already shipped is on the Releases page.

Release 1.0 ships when seven conditions hold. Each condition has a command and a number that show whether it holds. There are no dates.

Seven conditions

1. The compiler builds from its own sources, and the builds match

The flang compiler is written in flang. You build it from the sources and get exactly the same file, down to the last byte. Then the published compiler can be trusted as much as its sources.

2. A compiler fix reaches you quickly

After any change the compiler rebuilds itself. While that is slow, fixes ship less often.

3. The word "proved" can be trusted

When flang check says "proved", you rely on the proof checking inside the compiler. The condition requires a proof that it accepts no false statement.

4. No known type-checking bugs

A program that passed flang check must not break its declared types. Every type-checking bug found is written into a list. Each has a test that notices its return.

5. Error codes and the proof record format do not change unnoticed

Your scripts and CI may parse the FLANG_* codes and proof records. The condition requires that they do not change without notice.

6. Someone else's module is imported with one line

A module is named by its address in the import line: использует «Логика» из "https://…/logic.flang". The first flang check downloads the module and writes its text into flang.lock. Later builds need no network and give the same result.

8. The generated C code does what is proved about the source

A proof is about the flang source. The command flang emit --target c creates C code from it. The condition requires checking every function of that code against the formal description of the language in Lean.

There is no condition number 7: it was removed, and the other numbers stay as they were.

Release plan

This is a plan, and it may change.

ReleaseMeaningWhat goes in
0.8.0 (released)gives no wrong answerthe known wrong answers of the checks are fixed; flang check names every unproved statement; automatic proofs are checked in CI
0.9.0ready to hand to peopledocumentation, playground, formatter, compatibility rules; the release passes every check
1.0.0-rccandidateconditions 3 and 8 meet their written thresholds; release archives are signed; the syntax is frozen
1.0.0releaseonly fixes from feedback on the candidate

What we decided not to do

Details

The commands, thresholds and state of each condition are collected on the page For language developers.