Giter Club home page Giter Club logo

lexical_uuid.erl's Introduction

lexical_uuid.erl

UUIDs that are byte-ordered lamport clocks (timestamp, worker_id). Much simpler than type-1 UUID’s crappy, weirdo layout.

I've also got a rubby implementation here: http://github.com/jamesgolick/lexical\_uuid

Usage

1> application:start(lexical_uuid).
ok
2> lexical_uuid:get().
<<0,0,12,20,236,86,12,151,66,162,70,139,128,79,14,154>>
3> lexical_uuid:get_string().
"00000c14-ec61-2531-42a2-468b804f0e9a"
4> lexical_uuid:get_binary_string().
<<"00000c14-ec69-a267-42a2-468b804f0e9a">>

Credits

Copyright

Copyright (c) 2010 James Golick, BitLove Inc except fnv1a.erl. See LICENSE for details.

lexical_uuid.erl's People

Contributors

jamesgolick 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.