Giter Club home page Giter Club logo

Comments (6)

swannodette avatar swannodette commented on June 24, 2024

Hopefully ClojureScript developments will make it more viable! I'd like for people to be able to surgically extract only the data structures they want.

from mori.

swannodette avatar swannodette commented on June 24, 2024

I've updated the project.clj. I don't do much Node so I'm sure what modifications need to be made to package.json patch welcome.

from mori.

michaelsbradleyjr avatar michaelsbradleyjr commented on June 24, 2024

Thanks. Regarding package.json and some related mods, I'm putting together a pull request on my fork of mori. I'll probably get it to you today or tomorrow, along with some explanatory comments.

I'm excited about pulling mori in as a dependency of an experimental promises-backed monads library I'm building for NodeJS. Immutable collections are really ideal when threading state information and values through a monadic "do" utility, and for use with the State monad generally. I'm also planning to build some monads for several of mori's persistent collections, very similar to the approach protocol-monads for Clojure takes with respect to clojure.lang.PersistentVector, clojure.lang.PersistentHashSet, and so on.

from mori.

swannodette avatar swannodette commented on June 24, 2024

Cool thanks.

from mori.

michaelsbradleyjr avatar michaelsbradleyjr commented on June 24, 2024

This may belong in a separate issue, but I'll go ahead and mention it here...

When adapting your examples into a basic test suite (see the pull request reference above), I found that the "non-destructive updates" example didn't work as expected:

var v1 = mori.vector(1,2,3);
var v2 = mori.conj(v1, 4);
v1.toString(); // => '[1 2 3]'
v2.toString(); // => '[1 2 3 4]'

That's what you have in the README. But in fact, v1.toString() prints '[object Object]' in the console, and v2.toString() prints the same.

I changed my test accordingly, but wasn't sure yet if it's a bug. I can investigate, but wanted to go ahead and make you aware.

from mori.

mlanza avatar mlanza commented on June 24, 2024

Mori is the best of breed for persistent data structures in pure JavaScript. I've looked and found no other libraries as comprehensive and complete as Mori, so from my perspective it looks pretty viable.

What's more important to me is that the author thinks so, so that this library is maintained well into the future.

from mori.

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.