Coder Social home page Coder Social logo

erlbz2's Introduction

erlbz2

erlbz2 is a linked-in driver which supports the low-level libbzip2 compression library.

Requirements

  • Erlang R12B1 or greater (17.3 to actually use dirty NIF scheduling)
  • libbzip2 (tested with 1.0.5)

Source

erlbz2's canonical Git repo is available on Github at:

http://github.com/smarkets/erlbz2

Quickstart

# Clone the repo
git clone https://github.com/smarkets/erlbz2.git

# Fetch deps and build it
# *NOTE: proper may fail to build at first, so run make until it
# succeeds. I believe this is due to an oddity in rebar where
# warnings are treated as errors.
$ make

# Run tests to verify
$ make check

Compression

1> erlbz2:compress(<<"foo">>).
<<66,90,104,57,49,65,89,38,83,89,73,254,196,165,0,0,0,1,0,
  1,0,160,0,33,0,130,44,93,201,...>>

Decompression

2> erlbz2:decompress(v(1)).
<<"foo">>

Copyright

Copyright (c) 2011 Smarkets Limited. See LICENSE for details.

Based on original code which is Copyright Ericsson AB 2003-2010. All Rights Reserved.

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.