hashmap
immutable-js
Our great sponsors
hashmap | immutable-js | |
---|---|---|
8 | 38 | |
1,624 | 32,687 | |
- | 0.1% | |
5.3 | 6.2 | |
about 1 month ago | 21 days ago | |
Go | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hashmap
-
Go 1.20 Released
Glad to see this make it into the core.
I've been using this library for ages now...
https://github.com/cornelk/hashmap
Always entertains me to see developers write all the lock/unlock code when they could just use that.
- Ask HN: Was it worth it for Go to add generics
- Gojq: Pure Go Implementation of Jq
-
HaxMap, a concurrent hashmap faster and more memory-efficient than golang's sync.Map
Assuming it is issue 54 and its age, I am now unsure about the usability.
Pre-allocating would not fix https://github.com/cornelk/hashmap/issues/47 as the bug is in the linked list. This is not grow related but an issue with concurrent Add/Delete on the list.
-
A Go implementation of the concurrency control algorithm in paper <Left-Right -A Concurrency Control Technique with Wait-Free Population Oblivious Reads>
Would be interesting to compare with https://github.com/cornelk/hashmap
immutable-js
-
Yet another introduction to Functional Programming
immutable for JavaScript.
-
Imutability, react and typescrip: how to do it the clean way?
Check out Object.freeze. There's also Immutable.js for working with immutable data.
-
How To Scale Your React Applications
Use immutability to manage state updates When updating state in your React application, it's important to ensure that you are not mutating the original state object. Instead, you should create a new copy of the state object with the updated values. Immutability makes it easier to manage state updates and ensures that the updates are performed in a predictable and safe manner. Libraries like Immutable.js provide a set of functions that simplify working with immutable data in React applications.
-
Functional immutable game state
Enter Immutable.js, a library for creating and updating immutable state in JavaScript. With usual mutable JavaScript objects you might write something like:
The Immutable.js README has a much more complete description of immutability and why you might want to use the library. Also worth mentioning that Immer is an alternative which is a bit easier to get started with.
-
"console.log" Sometimes Print Wrong Data
Examples: immutable-js Immer
-
Immutable Collections should be Your Default
I can't speak to C# and Java, but the suggestion in this post: ImmutableJS already uses Persistent data structures. (It's the second sentence of their introduction)
-
immutable-js VS riux - a user suggested alternative
2 projects | 12 Aug 2022
-
Twitter Clone Part 3: Adding Tweet Reactions and Showing Notifications
feed.feedManager.state.activities is an immutable Map (created with Immutabe.js), so you get the activity object using getIn and toJS methods.
-
How do I handle objects with shared references in React?
You could create explicitly immutable references and state by using a tool like Immer.js or Immutable.js and do something like your example using their API.
What are some alternatives?
Immer - Create the next immutable state by mutating the current one
mori - ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript
ramda - :ram: Practical functional Javascript
lodash - A modern JavaScript utility library delivering modularity, performance, & extras.
RxJS
immutability-helper - mutate a copy of data without changing the original source
fp-ts - Functional programming in TypeScript
buckets - A complete, fully tested and documented data structure library written in pure JavaScript.
hashmap - HashMap JavaScript class for Node.js and the browser. The keys can be anything and won't be stringified
JSON-Schema Faker - JSON-Schema + fake data generators
Mock.js - A simulation data generator
underscore-contrib - The brass buckles on Underscore's utility belt