# Gauging Interest for an Allocator Trait Working Group

**URL:** <https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868>\
**Category:** libs\
**Created:** [April 22, 2019, 11:50pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868 "2019-04-22T23:50:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexcrichton](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/alexcrichton/32/4501_2.png) [@alexcrichton](https://internals.rust-lang.org/u/alexcrichton)\
**Post date:** [April 22, 2019, 11:50pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/1 "2019-04-22T23:50:31Z")

</div>

At a recent triage meeting for the libs team @SimonSapin brought up an excellent point about how the allocator traits in the standard library (covered by [#42774](https://github.com/rust-lang/rust/issues/42774)) would be a great candidate for a working group. From the libs team itself there aren’t any current volunteers to lead (or [facilitate](http://smallcultfollowing.com/babysteps/blog/2019/04/15/more-than-coders/)), but we’re curious if others are interested in doing so!

Are you interested in being a part of a working group dedicated to paving a path for a standard set of allocator traits to be used in collections? Are you interested in leading such a subgroup? This would be the place to start! We aren’t ready to commit to the existence of a working group actually coming about, but the libs team was interested in gauging interest in the community for such a working group if it existed.

---

<div class="post-metadata">

**Author:** ![glandium](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@glandium](https://internals.rust-lang.org/u/glandium)\
**Post date:** [April 23, 2019, 4:10am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/2 "2019-04-23T04:10:44Z")

</div>

A working group on the subject would be very welcome, and I would be interested in participating (but I wouldn’t have the bandwidth to lead).

---

<div class="post-metadata">

**Author:** ![Ericson2314](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ericson2314/32/246_2.png) [@Ericson2314](https://internals.rust-lang.org/u/Ericson2314)\
**Post date:** [April 23, 2019, 5:34am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/3 "2019-04-23T05:34:11Z")

</div>

I am interested. Not too much time either, but definitely willing to rebase my old PRs and add more collections to them once the toehold of `Box<T, A>` lands.

---

<div class="post-metadata">

**Author:** ![JohnTitor](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/johntitor/32/10407_2.png) [@JohnTitor](https://internals.rust-lang.org/u/JohnTitor)\
**Post date:** [April 23, 2019, 6:49am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/4 "2019-04-23T06:49:42Z")

</div>

I’m interested in this working group and willing to help if I can.

---

<div class="post-metadata">

**Author:** ![crlf0710](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/crlf0710/32/1987_2.png) [@crlf0710](https://internals.rust-lang.org/u/crlf0710)\
**Post date:** [April 23, 2019, 7:32am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/5 "2019-04-23T07:32:39Z")

</div>

A little off-topic, but i wonder is there a link to the libs team triage meeting minutes? (Something like [https://github.com/rust-lang/compiler-team/tree/master/minutes](https://github.com/rust-lang/compiler-team/tree/master/minutes) but for libs team) I’m really interested to read the discussions.

---

<div class="post-metadata">

**Author:** ![gnzlbg](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/gnzlbg/32/3858_2.png) [@gnzlbg](https://internals.rust-lang.org/u/gnzlbg)\
**Post date:** [April 23, 2019, 10:13am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/6 "2019-04-23T10:13:31Z")

</div>

I’m interested, and I might have the bandwidth to lead, but I prefer if somebody else would do that. cc @sfackler @Amanieu

---

<div class="post-metadata">

**Author:** ![SimonSapin](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/simonsapin/32/3158_2.png) [@SimonSapin](https://internals.rust-lang.org/u/SimonSapin)\
**Post date:** [April 23, 2019, 12:21pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/7 "2019-04-23T12:21:24Z")

</div>

I’d also be interested to contribute.

---

<div class="post-metadata">

**Author:** ![fitzgen](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/fitzgen/32/3625_2.png) [@fitzgen](https://internals.rust-lang.org/u/fitzgen)\
**Post date:** [April 23, 2019, 4:00pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/8 "2019-04-23T16:00:36Z")

</div>

I’d be interested 👍

---

<div class="post-metadata">

**Author:** ![petertodd](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/petertodd/32/5439_2.png) [@petertodd](https://internals.rust-lang.org/u/petertodd)\
**Post date:** [April 24, 2019, 2:09am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/9 "2019-04-24T02:09:17Z")

</div>

Sounds interesting! I’ve been doing some experimentation myself on this subject.

---

<div class="post-metadata">

**Author:** ![TimDiekmann](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/timdiekmann/32/4669_2.png) [@TimDiekmann](https://internals.rust-lang.org/u/TimDiekmann)\
**Post date:** [April 24, 2019, 2:14am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/10 "2019-04-24T02:14:32Z")

</div>

I’m also interested. I previously did a lot with the current allocator api and I’d like to contribute. However I don’t think I have the experience to lead the group but I’d really like to be part of it!

---

<div class="post-metadata">

**Author:** ![Jon-Davis](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/jon-davis/32/5453_2.png) [@Jon-Davis](https://internals.rust-lang.org/u/Jon-Davis)\
**Post date:** [April 24, 2019, 11:02pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/11 "2019-04-24T23:02:14Z")

</div>

I would be interested in this working group.

---

<div class="post-metadata">

**Author:** ![blitzerr](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/blitzerr/32/4647_2.png) [@blitzerr](https://internals.rust-lang.org/u/blitzerr)\
**Post date:** [April 26, 2019, 8:07pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/12 "2019-04-26T20:07:25Z")

</div>

I would be very interested in this, mostly to learn the implementation of a high performance allocator

---

<div class="post-metadata">

**Author:** ![SimonSapin](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/simonsapin/32/3158_2.png) [@SimonSapin](https://internals.rust-lang.org/u/SimonSapin)\
**Post date:** [April 27, 2019, 5:55am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/13 "2019-04-27T05:55:40Z")

</div>

Participation from anyone is most welcome, but fair warning: this WG is unlikely to discuss many implementation details of allocators. Its focus on the trait(s) and other APIs to use them, and making collections such as `Vec` generic over the allocator type.

---

<div class="post-metadata">

**Author:** ![TimDiekmann](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/timdiekmann/32/4669_2.png) [@TimDiekmann](https://internals.rust-lang.org/u/TimDiekmann)\
**Post date:** [April 27, 2019, 10:08am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/14 "2019-04-27T10:08:52Z")

</div>

> [@SimonSapin](#):
>
> Its focus on the trait(s) and other APIs to use them, and making collections such as `Vec` generic over the allocator type.

This is exactly what I need in my Project and thus I reimplemented some structures to support an Allocator (`Vec`, `HashMap`, `Arc` so far). Additionally I experimented around with different traits to support Allocators like `DefaultIn` and `FromIteratorIn` (and related things like `Iterator::collect_in`).

I'd love to share those experiences with the WG and add them (if desired) to the Rust project.

---

<div class="post-metadata">

**Author:** ![kamalmarhubi](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/kamalmarhubi/32/1385_2.png) [@kamalmarhubi](https://internals.rust-lang.org/u/kamalmarhubi)\
**Post date:** [April 27, 2019, 12:31pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/15 "2019-04-27T12:31:39Z")

</div>

I’m quite interested in seeing these traits fleshed out and stabilised, but I don’t think I’ll be able to commit too much time. Certainly not remotely enough to lead. If there’s room on the hypothetical WG for someone with those caveats, count me in. 🙂

---

<div class="post-metadata">

**Author:** ![ErichDonGubler](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/erichdongubler/32/8639_2.png) [@ErichDonGubler](https://internals.rust-lang.org/u/ErichDonGubler)\
**Post date:** [April 30, 2019, 2:10am UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/16 "2019-04-30T02:10:23Z")

</div>

I would love to be a facilitator! 🙂

---

<div class="post-metadata">

**Author:** ![alexcrichton](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/alexcrichton/32/4501_2.png) [@alexcrichton](https://internals.rust-lang.org/u/alexcrichton)\
**Post date:** [April 30, 2019, 3:20pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/17 "2019-04-30T15:20:04Z")

</div>

@ErichDonGubler that’s awesome! FWIW the libs team doesn’t have a ton of opinions about how this WG would work and operate, so if you’d like to facilitate then it’d largely be up to you to how you’d like to run it. It definitely sounds like there’s tons of interest for participation here, so I suspect you wouldn’t have a lack of people there!

Would you be up for taking the WG from here?

---

<div class="post-metadata">

**Author:** ![ErichDonGubler](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/erichdongubler/32/8639_2.png) [@ErichDonGubler](https://internals.rust-lang.org/u/ErichDonGubler)\
**Post date:** [April 30, 2019, 10:12pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/18 "2019-04-30T22:12:18Z")

</div>

> Would you be up for taking the WG from here?

As in, am I immediately available to moderate discussions? Yes! I don't know where to go for those, but I'm more than happy to get my feet wet now.

EDIT: Looks like [Tracking issue for custom allocators in standard collections · Issue #42774 · rust-lang/rust · GitHub](https://github.com/rust-lang/rust/issues/42774), as you posted, might be where to begin.

---

<div class="post-metadata">

**Author:** ![ErichDonGubler](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/erichdongubler/32/8639_2.png) [@ErichDonGubler](https://internals.rust-lang.org/u/ErichDonGubler)\
**Post date:** [April 30, 2019, 10:16pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/19 "2019-04-30T22:16:57Z")

</div>

I think your link to introduce facilitations might be off – not sure what Niko’s post has specifically to do with facilitation, though it _does_ have to do with governance in general. Maybe you meant [Manish’s blog post section](https://manishearth.github.io/blog/2019/02/04/rust-governance-scaling-empathy/#facilitators) introducing the idea?

---

<div class="post-metadata">

**Author:** ![alexcrichton](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/alexcrichton/32/4501_2.png) [@alexcrichton](https://internals.rust-lang.org/u/alexcrichton)\
**Post date:** [May 1, 2019, 4:29pm UTC](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868/20 "2019-05-01T16:29:45Z")

</div>

Do others interested in this topic have a suggestion about where to hold discussions? @SimonSapin I believe recommended on IRC that a new GitHub repository might be a good place to start, and if y’all would like I can create one and let y’all have at it!

[Next page](https://internals.rust-lang.org/t/gauging-interest-for-an-allocator-trait-working-group/9868.md?page=2)
