t27.aiРусский

Seven backends, and t27b

You will learn

One spec, many target languages, and a native compiler with no LLVM.

One t27 spec can become Zig, C, Rust, JavaScript, TypeScript or Verilog; Verilog comes two ways, straight from the spec and through the HIR, which makes seven backends. The player shows the Rust t27c writes for hello_world. t27b is a second compiler: native AArch64 machine code, no LLVM, a JIT for tests and Mach-O object files. It is not finished, and we say how far it is: in run 26c447ad8 it passed 307 of the 449 specs that the reference compiler passes with tests, 68.4%.

Try it

Switch the player to JavaScript under Also try, generate the module, and run it.

Open the interactive lesson →

hello_world.t27 to Rust, in a terminal inside the post
hello_world.t27 to Rust, in a terminal inside the post ↗

Open the lesson's spec in the player: specs/tutorial/08_modules_and_arrays.t27

All lessons