Pure Rust implementation of mimalloc

Offen
#1,167 2 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Tech-Stack
c, rust

Rechercherichtung

Beginne damit, die Codebasis von mimalloc und den Kontext des vorgeschlagenen Rust-Ports im Issue zu lesen. Der Payload nennt keine Dateien oder Tests; ein konkretes öffentliches Repository oder ein Draft PR mit CI für die Äquivalenz der C-Tests würde den Implementierungsumfang und die Kriterien für den Abschluss festlegen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Hello mimalloc team and community,

First of all, thank you for creating and maintaining such a robust and well-designed allocator. It's an incredibly valuable piece of technology.
We’ve developed an LLM-powered C-to-Rust transpiler that goes far beyond mechanical translation (e.g., C2Rust).

We’ve already run our end-to-end pipeline on the full mimalloc codebase and are currently in active testing.

Early Metrics vs. C2Rust (on mimalloc core):
Tool RP decl RP deref RP arithmetic Unsafe Line
Our tool 44 41 38 51
c2rust 478 1274 477 9903

RP = Raw Pointer

Key advantages of our tool output:

  • Minimal unsafe: Only in well-encapsulated, reviewed modules (e.g., intrusive lists)

We’d love your feedback:
  1. Are you open to reviewing a preview of the generated mimalloc port?
    (We can share a public repo or draft PR with CI running C test equivalence.)

  2. Initial thoughts on LLM-assisted transpilation for allocator code?

  3. Would a PR be welcome at this stage?
    Even as an experimental, parallel implementation (e.g., mimalloc-rs), not to replace C, but to explore the design space.

Looking forward to your thoughts, happy to hop on a call or share early artifacts.

Thanks again for the thoughtful discussion and for building such a solid foundation in mimalloc

Thanks
Saman

Vorherrschende Sprache
C
Sterne
13.6k
Forks
1.2k
Ø Merge
18 Std. 12 Min.
Gemergte PRs (30 T.)
20

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/mimalloc

Alle Issues in microsoft/mimalloc

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.