Giter VIP home page Giter VIP logo

Comments (4)

grjte avatar grjte commented on June 9, 2024 1

You’ve definitely spent more time considering this than I have, so I’ll need to look at it more to get a better feel for your list. What I should have said is that I would prefer to prioritize doing as many u256 as possible before doing u128.

from miden-vm.

grjte avatar grjte commented on June 9, 2024

I would rather skip u128 and aim for all u256 operations.

from miden-vm.

bobbinth avatar bobbinth commented on June 9, 2024

Agree on skipping u128. Regarding u256, supporting everything would be quite difficult. Here is my initial list with thoughts:

  • add - [done]
  • sub - [done]
  • mul - [done], can probably be optimized.
  • div - once mul is working, shouldn't be too difficult.
  • sdiv - skip for now?
  • smod- skip for now?
  • mod - skip for now?
  • addmod - skip for now?
  • mulmod - skip for now?
  • exp - skip for now?
  • signextend - skip for now?
  • lt - [kind of done], there is an implementation, but it can be improved.
  • gt - similar to lt.
  • slt- skip for now?
  • sgt - skip for now?
  • eq - [done]
  • iszero - [done]
  • and - [done]
  • or - [done]
  • xor - [done]
  • not- easy, we should do it.
  • shl - not sure how to do this yet, might require changes to the instruction set, but would be good to include it even now.
  • shr- same as shl.
  • sar - skip for now?

from miden-vm.

bobbinth avatar bobbinth commented on June 9, 2024

For v0.1 release (which will accompany v0.2 release of the VM), we will include the following in the standard library:

  • math::u64
  • crypto::hashes::blake3
  • crypto::hashes::sha256

I'm closing this issue and will open another one for v0.2 stdlib content.

from miden-vm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.