corfli
Contents

Start

Language

Project

Status

Corfli 0.1.1 is the first working version. It handles small programs well; a lot is still to come.

Works now

Every change is tested against a set of programs on Linux. Windows support is new and still being tested.

Speed

The code generator is simple for now: every value goes through memory. Compared with C built by gcc -O2:

programCorfliC
recursive fib(35)0.109 s0.022 s
a loop of 300 million steps1.32 s0.38 s

Closing that gap is phase 3.

Next

  1. Phase 2: double and float, structs, enums, lists and maps, values that may be missing (?T) or fail (!T), string methods, program arguments, corfli test, and corfli lsp for errors and types in the editor.
  2. Phase 3: an optimizer and register allocation, aiming for the speed of C.
  3. Phase 4: SIMD types, unsafe blocks and inline assembly.
  4. Phase 5: a formatter, debug info, calling C libraries and threads.