Giter Site home page Giter Site logo

persistent-hamt's Introduction

NAME

Persistent::HAMT - MOARVM based persistent hashes and stacks

SYNOPSIS

At this stage this is only a scaffolding.

use Persistent::HAMT;
my @a is repr('HAMTArray);
my %a is repr('HAMTHash);

DESCRIPTION

This is the user facing future documentation

Persistent::HAMT provides 2 representations, one for stacks, one for hashes. They exploit persistent properties of HAMTs to share storage for different data structures evolved from the same one.

They can be used with existing language support, but for more functionnal style, specific language support will be needed.

my @a is repr('HAMTArray);

various operation that mutate @a

my @b repr('HAMTArray) = @a;

various operation that mutate @b

There are stacks so array operations which are not stack like (inserts, shifts) will fail.

Same thing for hashes but the repr is different.

my %a is repr('HAMTHash);

Start HAMT for learning the properties of peristent tries. This lib is just an adaptation of mkirchner/hamt to be used by MoarVM reprs.

Scaffolded using App::Mi6

AUTHORS

COPYRIGHT AND LICENSE

Copyright 2024 Stéphane Payrard

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

persistent-hamt's People

Contributors

cognominal avatar

Watchers

 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.