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:
- Linux x86_64 tarball
(
wfl-latest-linux-x86_64.tar.gz) - Windows x86_64 MSI
(
wfl-latest-windows-x86_64.msi) - SHA256SUMS checksum list
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:
1sha256sum wfl-latest-linux-x86_64.tar.gz2grep 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:
1git clone https://gitlab.wfl.fyi/wfl/wfl.git2cd wfl3cargo build --release4./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.
1// hello.wfl2store name as "World"3display "Hello, " with name with "!"
Type it yourself
Runwfl 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.
1wfl hello.wfl2Hello, 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:
1// A web server, in plain English2listen on port 8080 as web_server3display "Running at http://127.0.0.1:8080"45wait for request comes in on web_server as req6check if path is equal to "/":7 respond to req with "Hello from WFL!"8otherwise:9 respond to req with "Not found" and status 40410end check
Where to next
Read the foundations
The 19 guiding principles and the No-Unlearning Invariant explain why WFL reads the way it does.
Explore the standard library
181+ built-in functions for text, lists, math, files, time, and crypto — all in the same plain-English grammar.
Join the community
WFL is on GitLab under Apache 2.0. Issues, questions, and contributions are all welcome.