Skip to content

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

@greenhat

Description

@greenhat

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions