Garbage Collection with LLVM

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • mps

    The Memory Pool System (by Ravenbrook)

    I am trying to implement garbage collection for my language because I want memory management for arrays/lists and strings. I am looking through LLVM's garbage collection page but the documentation isn't great. Are there any other resources that offer more concrete steps to implement garbage collection? Would it be wise to circumvent LLVM all together for garbage collection and only use something like the Memory Pool System? Thanks!

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • mark-sweep

    A simple mark-sweep garbage collector in C

    Might not be that hard: https://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/

  • mmtk-core

    Memory Management ToolKit

    IME the MPS is hard to set up correctly, and I've heard in Clasp they got in performance trouble, as per-thread allocation buffers were too small and they couldn't make the buffers larger. But indeed being conservative on the stack is a fine choice; someone mentioned Boehm being easy to use, and the MMTk is a newer option which allows for bump-allocation and being precise on the heap (like MPS), but at the moment you have to provide your own stack scanning code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • I have written a JVM in Rust

    5 projects | news.ycombinator.com | 21 Jul 2023
  • Mmtk: Memory Management Toolkit

    1 project | /r/hypeurls | 14 Dec 2022
  • Mmtk: Memory Management Toolkit

    2 projects | news.ycombinator.com | 14 Dec 2022
  • Memory Management Toolkit – multi-runtime platform for language implementers

    1 project | news.ycombinator.com | 30 Jun 2022
  • Memory Management Toolkit – multi-runtime platform for language implementers

    1 project | /r/ProgrammingLanguages | 28 Jun 2022

Did you konow that C is
the 7th most popular programming language
based on number of metions?