197g / 197g/static-alloc

Evaluate: A struct version of allocator

Abierto
#67 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
62
Forks
11
Merge medio
3 h 45 min
PR fusionados (30 d)
5

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
backend
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.