Giter VIP home page Giter VIP logo

Comments (5)

brunocassol avatar brunocassol commented on July 21, 2024

Also see this as it seems to improve on the above link I provided:
https://github.com/shadowhand/uuid/blob/3.1/master/classes/kohana/uuid.php

from uuid.

broofa avatar broofa commented on July 21, 2024

Sorry for the delay in responding to this. It kind of fell off my radar :p. So, some initial thoughts after reading thru the spec...

First, both v3 and v5 pertain to UUIDs generated from names/namespaces, right? The only difference is the hash algorithm used - v3 uses MD5 while v5 uses SHA1?

I guess my main concern here is code bloat. I'm actually already a bit uncomfortable with how large uuid.js is since I generally believe people only care about one type of UUID (in the context of a given project.) Currently if all you care about are v4 ids - which I suspect is the majority of use cases for this library - all the code for doing v1 uuids (the majority of uuid.js, btw) is just wasted bytes. v3/v5 support would just compound this problem.

Thus, before v3/v5 code gets added, I'd like to figure out how to package these such that people only have to use the code relevant to the particular version they care about. Which I don't have an immediate answer for. I'm open to suggestions though... :)

from uuid.

nicknovitski avatar nicknovitski commented on July 21, 2024

How about making separate packages for each version, with names in the format node-uuid-vN?

from uuid.

broofa avatar broofa commented on July 21, 2024

@nicknovitski - yup, that's probably the right direction to go with this.

from uuid.

broofa avatar broofa commented on July 21, 2024

FYI, #188

from uuid.

Related Issues (20)

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.