GithubHelp home page GithubHelp logo

cagnosolutions / ads Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 1.09 MB

This repository, "ads", is an ambiguous acronym standing for either "algorithms and data structures" or "advanced data structures" that contains data structures, algorithms, and helpers for the go programming language that are not contained within the standard library.

Go 97.81% Shell 0.11% JavaScript 2.08%

ads's Introduction

An ambiguous acronym standing for either 'algorithms and data structures' or 'advanced data structures'

It contains data structures, algorithms, and helpers for the go programming language. The items in this package are things that I have come across and needed to use at some time or another that are not contained within the standard library (as of go 1.5.) Most if not all of them have been used in some type of production environment. Most of them should not be considered thread-safe, they will note if they are.

It currently contains the following data structures/algorithms:

  • 'ads/bpt' is a lexigraphically ordered b+tree using []byte for both the internal keys as well as the leaf node values.

  • 'ads/mio' is a fixed-size (4KB) key/value block-style storge system in which a key/value pair is stored on a single block. Keys have been limited to a maximum length of 255 bytes; both keys and values are implemented as a []byte. It utilizes memory mapping directly to a backing file for quick reads and writes. It also attempts to re-use deleted blocks and automatically grows the backing file exponentially as it fills.

  • 'ads/ohm' is a hashtable implementation that preserves order lexigraphically. It requires you to supply a comparator function (func(i, j) byte) as well as your custom key and value types.

  • 'ads/shm' is a thread-safe hashtable that enforces mutual exclusion through sharding and locking of the buckets. The sharding level can be configured in order keep the hashtable quick and also space efficient under different levels of concurrency or paralellism.

  • 'ads/xdb' is a document based (nosql) database engine that can be run as a simple embedded solution, or alternativly as a fully stand-alone database server utilizing the driver. It utilizes a basic binary protocol for both transmiting data over the wire as well as for storing the documents. The keys have been limited to a maximum length of 255 bytes.

ads's People

Contributors

scottcagno avatar xiphoid24 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar Caleb Cagno avatar  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.