Giter Site home page Giter Site logo

Comments (5)

eytan avatar eytan commented on June 2, 2024

Interesting... Since we are already running experiments with the old hash function, I'd like to see what we can do to make the existing method work for JS and Lua. I don't know much about Lua, but in JS, shouldn't it be simple enough to just use the 'long' npm module? Are you planning on porting PlanOut to JavaScript or Lua?

from planout.

eytan avatar eytan commented on June 2, 2024

Also, + @akalicki , who might have ported some of PlanOut to JS already... :)

from planout.

rcs avatar rcs commented on June 2, 2024

Yeah -- I'm specifically looking at in-browser client side applications, which are sadly limited to no node modules, and where it would be great to minimize dependencies as strictly as possible.

from planout.

eytan avatar eytan commented on June 2, 2024

Not sure what the problem with using npm in a client-side apps is -- the only (public) javascript app I wrote, the PlanOut editor, uses of npm to build the dependencies (see https://github.com/facebook/planout/tree/master/planout-editor). Also, long is only one javascript file that is 8k when minified, https://github.com/dcodeIO/Long.js, so it seems reasonable to use it even if you are not using npm to compile your package. Also, of you do end up porting PlanOut to JS, I'd be happy to provide feedback and review intermediate versions.

from planout.

eytan avatar eytan commented on June 2, 2024

I'm closing out this task because it's very straightforward to implement the hashing procedure in JS using the 'long' module (in conjunction with the 'sha1' module). IMO, the most straightforward way to port PlanOut to JS is to to use long, sha1, and an ES6 transpiler, running on npm. Feel free to open up another task if you decide to run with the port and could use some feedback.

from planout.

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.