Skip to content

Birch Standard Library

Provides the basic functionality needed by most Birch programs, such as standard math, linear algebra, probability distributions, and I/O.


Birch is open source software.

It is licensed under the Apache License, Version 2.0 (the "License"); you may not use it except in compliance with the License. You may obtain a copy of the License at


To build and install, use:

birch build
birch install

To test, use:

birch test

Documentation for the standard library is readily accessible at

Developer notes

The standard library includes parsers for several file formats that are contained in *.y files. The lemon parser generator is used to build C sources for these. These C sources are included in the repository so that users of the standard library need not build them themselves. For developers, however, after modifications to any *.y files, run manually to rebuild the C sources.

Version history


  • Pre-release.