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

貢獻者指南