W# 0.1.1

Documentation

Install W#, learn what it does differently, and look things up.

W# is young, and so is this documentation. What follows is written against version 0.1.1 of the compiler and 0.1.1 of sharpie, and every claim in it is one the test suite makes too.

If you are new here

Start with Install, which takes one line, then Getting started for the shape of a program and the three commands the compiler has. After that the tour is eight short programs, each showing one thing W# does differently from the language you already use. It is worth reading in order; later pages assume the earlier ones.

If you are looking something up

The language reference is the precise version of the tour: syntax, the type system, how an overload is selected, what an error set means, and the compiler’s own command line. The standard library covers what you can import, from std/str up to std/tls.

If you want to know how it works

The internals pages are about the implementation rather than the language: how the compiler is laid out, how dispatch compiles down to two instructions, and how the collector reaches microsecond pauses. None of it is needed to write W#, and all of it explains why the language is shaped the way it is.

Limitations is the honest list of what does not work yet, each entry with the reason it was left. Status is what has been built so far.

The site itself is open source, and a correction is a pull request.