197g / 197g/static-alloc

Evaluate: A struct version of allocator

Ouverte
#67 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
62
Forks
11
Merge moyen
3 h 45 min
PR mergées (30 j)
5

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
backend
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.