Code Monkey home page Code Monkey logo

dusk-hamt's People

Contributors

krl avatar miloszm avatar ureeves avatar vlopes11 avatar zer0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dusk-hamt's Issues

no-std library

The map is intended to be used in contract environments.

For this reason, the library should be no-std

Release 0.4.0

The last version, 0.3.2, had to be yanked since it included a breaking change but the semver wasn't respecting that.

So need to re-publish the same code, but as 0.4.0.

Don't use default features of microkelvin

Describe what you want implemented
The cargo manifest should not pull in the default features of microkelvin

Describe "Why" this is needed
When compiling for webassembly, we need to not pull in std-only dependencies.

Describe alternatives you've considered
N/A

Simplified default type

The annotation is an internal requirement of Microkelvin and should not reflect the API as a requirement. In dusk example, we have both dusk-kelvin-map and dusk-poseidon tree that provides default implementations without generic annotation.

The maps should also provide a simplified K -> V data structure instead of relying in annotation implementations as a requirement.

Proposed solution

  • rename Hamt to KelvinHamt
  • create a type alias Hamt<K, V> = KelvinHamt<K, V, ()>

Port HAMT to the new Microkelvin version

Describe what you want implemented
After the introduction of RKYV in Microkelvin, the most important data-structures need to be migrated as well.

Describe "Why" this is needed
The old version of Microkelvin is incompatible with the new one and therefore dusk-hamt should be ported to the new version.

Describe alternatives you've considered
N/A

Additional context
This entails a simple dependency update of the library. This should be low risk

Document with examples

Some basic documentation should be added explaining the tradeoffs, internals and add some examples to the usage

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.