Open source programming language

Experimental

Build useful software with Ziran.

Write clear .zi programs, check them before they run, and choose C, C++, Go, Rust, or Python output, or a portable bundle.

Latest release: v0.2.0. Build from source today. See current support.

Your code. Real results.Edit it. Try it.
Ziran / source.zi
text_demo.zi A library, one import away.
#import "text"

Answer :: () -> s32 {
    if StartsWithFoldASCII("Ziran", "zi") {
        return 1;
    }
    return 0;
}
Example output1
Runs in your browser · portable subsetSource & commands
  1. Write.zi source
  2. CheckOne checker
  3. BuildNative or portable

One source.
Your choice of output.

See coverage

Why Ziran

From source to software.

Ziran keeps the language and toolchain together so you can start small and inspect each step.

01 / Write

Write readable code

Give data a shape with records and enums. Connect procedures, generics, arrays, and borrowed slices with explicit imports.

Explore the language
02 / Check

Check before building

Catch unsupported forms and prove #law obligations at build time. Get a counterexample when a law fails.

Explore the tools
03 / Build

Choose an output

Generate readable native output or package the portable subset as a .zib bundle. Inspect each step along the way.

Check target coverage

What you can build

Small changes. Visible results.

Change a value, try a different prefix, or choose an output. Open the example in the editor to explore further.

01 / LanguageRecords and procedures

Change the fields and see their total.

See example
02 / LibraryText processing

Try a prefix with ASCII case folding.

See example
03 / ToolchainNative output

Choose a target to see its build command.

See commands

Your path

Go from zero to 42.

Clone the repository, build the tools with a C compiler and make, then check and run your first bundle.

Follow the quick start →
  1. InstallBuild the current toolchain from source.
  2. WriteSave a small .zi module.
  3. RunCheck, bundle, and see the result.

Project status

Working core.
Experimental edges.

Ziran is under active development. Native and portable targets cover tested subsets; language coverage and backend parity are still growing. The status page distinguishes what works today from planned work.

Read the current status →

Support Ziran

Help keep it growing.

Ziran is independent, open-source work. If it is useful to you, a contribution funds development, maintenance, and research.

Monero
Bitcoin

Support Ziran

Monero