-
I wish I was able to provide more details but I'm unable to replicate this issue outside of the gitlab-runner environment-- so maybe it has to do with an environment variable gitlab introduces? Hopefu…
-
The readme says:
> Thunderdome is a gladitorial generational arena inspired by [generational-arena](https://crates.io/crates/generational-arena), [slotmap](https://crates.io/crates/slotmap), and [s…
-
Sharing some thoughts / notes on a possible code smell in our compiler architecture.
Our compiler stores type information internally using the `Type` enum data structure. Throughout the compiler, w…
-
Right now `slotmap` only offers a zero-cost abstraction for what are essentially safe `Copy`able weak pointers as an interface. This gives control (but also the burden) of lifetimes back to the user, …
orlp updated
8 months ago
-
Is there any reason to use the `generational-arena` over the `slotmap` crate?
AFAICT the latter existed first and is a superset, featuring a compact hop-representation for faster iteration in the p…
-
Would it be reasonable to add an API that allows this?
```rust
fn update_players(world: &mut World, players: &mut SlotMap) {
let mut entries = players.entries();
while let Some(ent…
-
In the case of a complex changing graph, a tracing-based GC may be useful. If I want to do mark-and-sweep GC to a slot map, I can use another container to store all the keys that the slotmap contains,…
-
NodeIds use slotmaps to hold references. Slotmaps return the same sequence of IDs for a given KeyType.
For example this runs with no panics
```rust
use slotmap::SlotMap;
fn main() {
let …
-
Iterators very explicitly say, that the visit key-value pairs "in arbitrary order".
Is this "arbitrary order" consistent between a `SlotMap `and its dependent `SecondaryMap`s, so they can be joined …
-
Is this possible? Or is there an easy way to extend slotmap or write a new type of slotmap that supports this?
```rs
let mut thing = slotmap::SlotMap::new();
let a = thing.insert("hello");
let b…