Getting started

Write your first WFL program

WFL mirrors how people think — natural-language syntax, almost no special characters, and errors that actually tell you what to do. A first language you never have to unlearn.

WFL is an open-source language built in Rust. Grab a release build, or build it from source. Then you have one command — wfl — that runs a program, lints it, or drops you into a REPL.

Latest downloads

Release binaries are published at https://download.wfl.fyi/releases/ — keep the trailing slash; the path without it is not served. Direct links:

Verify a download before you install it. SHA256SUMS lists the current release files by their versioned names; the rolling latest downloads are the same bytes, so compare your file's SHA-256 against the matching linux-x86_64 or .msi line. On Linux:

terminal
1sha256sum wfl-latest-linux-x86_64.tar.gz
2grep linux-x86_64 SHA256SUMS

If the hashes differ, do not install the file. Use a checksum tool on Windows (for example CertUtil -hashfile wfl-latest-windows-x86_64.msi SHA256) and compare it to the .msi line the same way.

Build from source

You'll need Git and a Rust toolchain — Rust 1.94 or later, including Cargo. That minimum comes from the build-from-source guide and the crate's rust-version (a dependency requires 1.94). Clone the WFL repository and build a release binary:

terminal
1git clone https://gitlab.wfl.fyi/wfl/wfl.git
2cd wfl
3cargo build --release
4./target/release/wfl --version

The compiler is written to target/release/wfl on Linux and macOS, or target\release\wfl.exe on Windows. Once that binary is on your PATH, check it with wfl --version.

Your first program

Create a file called hello.wfl. There is no boilerplate, no main function, and no semicolons — you write what you mean.

hello.wfl
1// hello.wfl
2store name as "World"
3display "Hello, " with name with "!"

Type it yourself

Run wfl with no arguments to open the REPL and try each line live.

Run it

Point the CLI at your file. That's the whole build step.

terminal
1wfl hello.wfl
2Hello, World!

A web server, in plain English

No frameworks required — HTTP servers, routing, and responses are built in. Here is a complete server that answers on port 8080:

server.wfl
1// A web server, in plain English
2listen on port 8080 as web_server
3display "Running at http://127.0.0.1:8080"
4
5wait for request comes in on web_server as req
6check if path is equal to "/":
7 respond to req with "Hello from WFL!"
8otherwise:
9 respond to req with "Not found" and status 404
10end check

Where to next

1

Read the foundations

The 19 guiding principles and the No-Unlearning Invariant explain why WFL reads the way it does.

2

Explore the standard library

181+ built-in functions for text, lists, math, files, time, and crypto — all in the same plain-English grammar.

3

Join the community

WFL is on GitLab under Apache 2.0. Issues, questions, and contributions are all welcome.

Back to the overview