Comments (2)
Hi @carado. Yes, supporting servo_arc seems like a good idea.
The strategy hamt is using to abstract from the pointer type works fine for its specific case, but becomes really unergonomic on other use cases (in particular when you want to use wrap different types on the shared pointer). Because of this I wrote archery to solve that, and I'm currently porting rpds to it.
One big limitation or archery is that it doesn't (easily) allow for users to create their own shared pointer types. I think this should be solvable, and I plan to explore that in the next version of archery.
from rpds.
Hi ! In the interest of performance, it would also be nice to support servo_arc as an optional feature.
In the unlikely case you don't know about it, the hamt crate has a nice way of being generic over type-of-ownership, in a way that makes it easily extendable to custom ownership types such as servo_arc::Arc
, or anything a user would implement; it only requires HamtRef: Clone + Deref<Target = Hamt<K, V, HamtRef>> + From<Hamt<K, V, HamtRef>>
(see https://docs.rs/hamt/0.2.0/hamt/enum.Hamt.html).
from rpds.
Related Issues (20)
- Debug shows internal data in all data structures and iterators
- Avoiding stackoverflow when dropping large List HOT 3
- Add feature to provide Trace and Finalize impls for https://github.com/Manishearth/rust-gc
- HAMP vs CHAMP
- Implement .range_index() for RedBlackTreeMap/RedBlackTreeSet HOT 1
- Memory Usage for Debugging HOT 4
- Is this stable for handling large scale data (> 10^8) HOT 1
- Finger Trees HOT 1
- faster slicing for vectors? HOT 3
- `RedBlackTreeSet`'s docs mention non-existent `get` operation HOT 2
- Consider re-exporting archery items
- Consider providing a .pop_with_value() helper on Stack and List
- Support custom allocator HOT 1
- Serializing multiple instances efficiently HOT 1
- extract variants of remove on HashTrieMap and RedBlackTreeMap
- Add a "feature" to remove _mut methods HOT 4
- Opening doc. HOT 1
- Non-empty containers HOT 1
- sparse_array_usize test failures on i686 HOT 2
- FYI: Python bindings / Minor README question HOT 2
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 rpds.