197g / 197g/static-alloc

Evaluate: A struct version of allocator

未关闭
#67 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
62
派生
11
平均合并
3 小时 45 分钟
30 天内合并 PR
5

描述

https://internals.rust-lang.org/t/why-bring-your-own-allocator-apis-are-not-more-popular-in-rust/14494/3?u=heroickatora

It seemed interesting to me because this has the distinct advantage of not necessitating a type parameter, which was also a 'revelation' when dealing with forward compatible ways to design markers for a type being transmutable from bytes (compare [my blog post on the topic](https://www.hardmo.de/article/2021-03-14-zst-proof-types.md#zsts-as-marker-trait-replacements)). This comes at the cost of extra layout size of all containers containing such an allocator.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Read the linked Rust internals forum post and the blog post about ZST marker traits. Examine the current allocator API in the static-alloc crate to understand the type parameter design. Look for container definitions to assess layout implications. The goal is to propose a struct-based allocator design that avoids type parameters but increases size.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
backend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。