This repository defines the Zane programming language: the meaning of every construct, the set of legal programs, and how memory, effects and packages work. Next to the specification sit the design stories, which record how and why each part came to be.
The specification is a reference, not a tutorial. To learn the language first, start at https://zane-lang.org/docs.
This repository is also a prior art publication. The techniques described in these documents were conceived and developed by the author and are dedicated to the public domain under CC0 1.0 Universal. Anyone may use these ideas freely, for any purpose, without restriction or attribution. No patent claims are made by the author.
spec/README.md lists every specification document by topic, with a reading order; stories/README.md does the same for the design stories. Both are also published, with search, at https://zane-lang.org/spec and https://zane-lang.org/stories.
spec/ the specification itself: what the language does
stories/ design stories: how each part of the spec came to be
contributing/ style guides for writing spec and stories documents
memorybench/ a C harness that models the memory design
langbench/ compiled Zane programs timed against the same programs in other languages
site/ the page that publishes both benchmarks
The benchmarks' pinned results are published at https://zane-lang.github.io/spec/. memorybench/ measures a C model of the memory design (spec/memory.md); langbench/ measures what a released compiler builds.
Read the guide for the kind of document you are editing first:
contributing/writing-spec-docs.md: normative spec documents inspec/.contributing/writing-stories-docs.md: stories instories/.contributing/naming-terms.md: how the coined terms inglossary.mdare chosen.contributing/markdown-formatting.md: the one Markdown rule CI checks, and how to run the check.