3 ms·
>Since we want to support those languages as first-class citizens, we can't require GC support as a base concept I feel like you're overthinking it. Can't you
by steven_is_false 7y ago
>Since we want to support those languages as first-class citizens, we can't require GC support as a base concept
I feel like you're overthinking it. Can't you just have a table that holds GCable objects and only hand out indexes to C and co?
- tschneidereit 7y agoThat is how we support references in the Rust toolchain right now, via wasm-bindgen, and it's an important part of making unforgable references work for languages that rely on linear memory. It doesn't help with making capabilities more fine-grained, though: we have to treat all code that has access to that table as having the same level of trust.