77 releases (36 stable)

new 2.9.2 Dec 11, 2024
2.9.1 Nov 29, 2024
2.9.0-dev.0 Oct 20, 2024
2.7.0-rc.3 Jul 16, 2024
0.1.0 Jan 3, 2023

#578 in Magic Beans

Download history 6540/week @ 2024-08-27 9653/week @ 2024-09-03 7941/week @ 2024-09-10 14634/week @ 2024-09-17 8018/week @ 2024-09-24 6863/week @ 2024-10-01 8609/week @ 2024-10-08 7377/week @ 2024-10-15 5845/week @ 2024-10-22 8740/week @ 2024-10-29 8333/week @ 2024-11-05 7786/week @ 2024-11-12 7943/week @ 2024-11-19 10050/week @ 2024-11-26 19493/week @ 2024-12-03 18991/week @ 2024-12-10

57,208 downloads per month
Used in 54 crates (21 directly)

Custom license

640KB
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:

  1. There are no "panics" / "runtime errors". Every function is guaranteed to return.
  2. There are no infinite loops. Moreover, every program "counts" its own steps, and returns when the limit is reached.
  3. Builtin library functions are always used correctly.

Dependencies

~12–20MB
~257K SLoC