Git Product home page Git Product logo

aluvm-spec's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aluvm-spec's Issues

RFC-3: Change data and libs segment requirements

In order to allow better AluVM support & operations on low-memory hardware devices the following changes are proposed:

  1. The data segment maximum length should be decreased to 2^16 (the same as code segment). If program needs more data, it should use special "data libraries".
  2. The maximum number of used libraries per single library must be decreased to 256.
  3. A new limit of "total libraries" is introduced and this amount should not exceed 1024.

This will allow to limit the size of a single library to just 136 kB (139520 bytes) and provide a restriction on total size of any program (some library + all of its tree descendant dependencies) at 136 MB, with the ability of having up to 64 MB of data.

RFC-5: Reduce the number of string registers

Reduce the number of string registers down to 32 (from current 256); maintain ISA byte dimensions by using mod 32 (or mod 16 if an operation uses two string register indexes) to determine specific string register.

This will reduce memory requirements for on-chip registers from current > 16MB down to ~ 2MB

RFC-2: Support libraries

VM must be able to operate multiple strings of bytecode. Each string will be identified by tagged SHA256 hash of its data. Calls between libraries will be possible with special extcall opcode, providing library hash and entry point offset.

RFC-4: Make float registers and float ISA an extension

Support for float registers and all float-involved operations should be defined as a non-required extensions for AluVM implementations named "FLOAT". Since ~90% of tasks do not require float numbers this will allow easier implementation on the low-end hardware.

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.