Git Product home page Git Product logo

psyche's Introduction

psyche

Fast Ethereum Virtual Machine implementation in Rust

Project goals

  • Research, implement and optimize interpretation of EVM bytecode in stable Rust.
    • Implement a register-based VM.
  • Explore around using special CPU instructions to speed up most opcodes.
    • Implement a NEON path for aarch64.
  • Support a generic target for best portability (64-bit and 32-bit CPUs).
  • Optimize for the worst-case (do not optimize average-case at the expense of worst-case).
  • Support the EVMC low-level ABI and integrate in OpenEthereum client.

Build

Depending what you want to do you can either use:

  • cargo build
  • cargo build --release
  • ./build_debug.sh for an AVX2 build in debug
  • ./build_release.sh for an AVX2 build in release
  • ./build_avx2.sh for inspecting assembly code for AVX2 (see target/release/deps/psyche.s)
  • ./build_ssse3.sh for inspecting assembly code for SSSE3
  • ./build_generic.sh for inspecting generic assembly code

Note that a build on macOS enables by default SSSE3 as those instructions are always present on all Intel-based Macs.

If you want to inspect assembly code you will also need to uncomment the line with #![feature(asm)].

Debug

If you have LLDB installed on your machine you can add this line to your .lldbinit file:

command script import evmd.py

asciicast

License

LICENSE

psyche's People

Contributors

elmattic avatar

Watchers

James Cloos avatar

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.