Comments (6)
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.
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.
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.
Cool thanks.
from mori.
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.
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)
- Mori.js should not be minified HOT 5
- Calling m.toClj on an object with key "uc" breaks HOT 3
- How does Mori deal with functors, types, and interfaces in JS? HOT 9
- How do you get the index of a given string in a sequence of strings? HOT 3
- Documentation for transduce is missing
- Collections should implement toJSON
- React propTypes HOT 2
- doc typo: reduce
- doc typos: take
- doc typo: takeWhile
- doc typo: iterate
- doc typo: repeat
- doc typo: repeatedly
- set: what determines uniqueness?
- sortedSet: sort order
- A typo in documentation
- Essential vector methods missing? HOT 1
- Unix like Build Failing on fresh repository. HOT 1
- toClj throws exception for js object with property "j" having a numeric value HOT 1
- Is mori.js dead ? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mori.