0xMiden/compiler

Write a guide "How to write small and fast Miden contracts in Rust"

Aberta

#1.060 aberto em 6 de abr. de 2026

 (5 comentários) (0 reação) (0 responsável)Rust (70 forks)github user discovery
documentationgood first issuehelp wanted

Métricas do repositório

Stars
 (110 estrelas)
Métricas de merge de PR
 (Mesclagem média 4d 7h) (51 fundiu PRs em 30d)

Description

@mooori mentioned that this topic came up in discussions.

I'm thinking:

  1. Avoid memory allocation.
  2. Avoid unaligned memory access (avoid small ints like i8 and i16).
  3. Avoid Vec and probably other high-level container types. Use arrays.

Felt arithmetic should have near-zero overhead but we want to discourage it (see #999) so I guess we should not promote it here either.

@bitwalker Thoughts?

/cc @bobbinth @Keinberger

Guia do colaborador