Comments (2)
Oh man
I really don't want to parameterize Trace
like Trace<V: GcVisitor>
.
I've played around with having a separate set of DynTrace
and DynGcVisitor
taits (kind of like erased-serde) but its hard to write blanket impls over regular Trace
/GcVisitor
traits because they expect statically visible type info.
I'm starting to think maybe I should go closer to the approach you suggested and modify Trace
and GcVisitor
to be object safe directly.
I really want to keep support for NEEDS_TRACE
, but that is hard to do since associated constants aren't supported on trait objects đĻ There is no way to add a special where Self: Sized
bound. Maybe I can move it to a separate trait and then specialize?
Kind of just throwing out random suggestions here. This project is still a little experimental đ đ
This is related to #16 because both arrays and trait objects are ?Sized
.
from zerogc.
The new Pointee type and the nightly ptr_metadata
API may significantly change this. (See rust-lang/rust#81513)
I'm hesitant to refactor the API design to depend so heavily on a nightly feature, however that may be the only way I can reasonably implement this feature.
In practice, however, zerogc
is already limited to nightly because the simple
collector requires nightly (although this is mostly for convenience at this point).
from zerogc.
Related Issues (20)
- Simple: "small object arenas" never shrink
- Simple: Lazy Sweeping Optimization HOT 3
- Thread Safety HOT 2
- Object Handles HOT 2
- Simple: Forgetting to drop FrozenContext will cause use after free HOT 1
- Simple: Thread local caches to avoid atomic overhead of `Chunk` in small object arenas HOT 3
- [Ask for help] Is it possible to use with JIT? HOT 6
- Object Handles should be Sync
- Implement a Generational Garbage Collector
- Support arrays of GC-allocated objects
- Support ignoring lifetimes in #[derive(Trace)]
- Implement a nop GC (like Java Epsilon)
- Read barriers HOT 1
- Is it safe to panic when zerogc is used? HOT 2
- Fail to compile such an enum type
- #![no_std] support
- `impl Copy for GcVec`
- Cleanup documentation
- Allow mixing `Gc` pointers from different `CollectorId`s
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 zerogc.