Ross ROSS = Recommend OSS · open-source software intelligence for agents

orangeduck/tgc

A Tiny Garbage Collector for C observed · 2026-08-28

github.com/orangeduck/tgc · C · NOASSERTION (other) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases no_license

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3788
  • days_rel: n/a
  • days_push: 1164
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1100 stars · 69 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

tgc is a tiny (~500 line) conservative, thread-local mark-and-sweep garbage collector for C, provided as a single header. It automatically frees memory allocated via tgc_alloc and friends once it becomes unreachable, with support for destructors and manual collection.

Use cases

  • add garbage collection to a C program
  • avoid memory leaks in C without manual free
  • learn how a mark and sweep garbage collector works
  • manage allocations in an interpreter or scripting engine written in C
  • replace malloc with a GC-backed allocator in small C projects

When to choose

  • you want automatic memory management in C with minimal integration effort
  • you need a small, readable GC you can embed and study
  • your allocations stay on one thread and use tgc_alloc consistently

When to avoid

  • you need a multi-threaded or precise (non-conservative) collector
  • pointers come from malloc'd memory, static data, or interior offsets
  • you require guaranteed deterministic freeing or real-time latency
  • you need a battle-tested GC for large production systems

Facets

library · maturity maintenance

developer-tools developer-tools programming-languages c cpp cross-platform garbage-collector mark-and-sweep conservative-gc memory-safety single-header memory-management garbage-collection

1 source

Member repositories

RepositoryRoleHealth v2
orangeduck/tgcmain32

For agents

markdown · JSON · MCP: product_card(name="orangeduck/tgc")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem