0xMiden/compiler

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

开放

#1,060 创建于 2026年4月6日

 (5 条评论) (0 个反应) (0 位负责人)Rust (70 个派生)github user discovery
documentationgood first issuehelp wanted

仓库指标

星标
 (110 个星标)
PR 合并指标
 (平均合并 4天 7小时) (30 天内合并 51 个 PR)

描述

@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

贡献者指南