73 releases (32 stable)
2.9.0-dev.0 | Oct 20, 2024 |
---|---|
2.8.2 | Sep 8, 2024 |
2.7.0-rc.3 | Jul 16, 2024 |
2.6.3 | Mar 12, 2024 |
0.1.0 | Jan 3, 2023 |
#4 in #sierra
32,866 downloads per month
Used in 51 crates
(20 directly)
645KB
14K
SLoC
Sierra is an intermediate representation between high level Cairo and compilation targets, such as CASM. Sierra code is guaranteed to be "safe"* by construction. Sierra has a primitive, yet rich typing system to express all high level code while guaranteeing safety and allowing for efficient compilation down to the target.
Safety - this means a few things:
- There are no "panics" / "runtime errors". Every function is guaranteed to return.
- There are no infinite loops. Moreover, every program "counts" its own steps, and returns when the limit is reached.
- Builtin library functions are always used correctly.
Dependencies
~12–20MB
~256K SLoC