t27.aiРусский

Hello, t27

You will learn

What a t27 spec looks like, and what the compiler does with it in your browser.

A t27 program is a spec: a module with typed constants, functions and tests. Prose lines start with a semicolon at the start of a line. The player below runs the real t27 compiler, built to WebAssembly, inside your browser: it reads hello_world.t27, runs its tests and writes code for seven backends. Nothing is installed and nothing is sent anywhere. Open the tutorial spec under the widget and read it next to the output.

Try it

Run the tests in the player, then switch the backend and find the same function in two languages.

Open the interactive lesson →

hello_world.t27, compiled inside the post
hello_world.t27, compiled inside the post ↗

Open the lesson's spec in the player: specs/tutorial/02_functions.t27

All lessons