Hacker GitHub

← All repos

pebal/sgcl

View on GitHub ↗ ★ 243 C++

SGCL is a C++20 application platform with a concurrent, pause-free garbage collector: pointers, containers, lock-free structures, Go-style coroutines and channels.

28 mentions on Hacker News by 3 people: 5 stories, 23 comments · first 2022-05-27 · latest 2026-09-15

Mentions per year 28 mentions · busiest year 2024 (11)
20082026
  1. …think that has to mean. It doesn't. I've been building one as a plain header-only library (SGCL, https://github.com/pebal/sgcl - my project): the heap is traced precisely through per-type pointer maps the collector builds at runtime by…
  2. I've spent the last few years on a library-only collector for C++ (SGCL, https://github.com/pebal/sgcl ), also non-moving, so a few data points on the "can it compete" question. Disclosure up front: my project, and measured so far only on…
  3. Here you have a GC engine that is completely pauseless: https://github.com/pebal/sgcl It is available as a C++ library, so you can easily compare its performance to the reference counting.
  4. Optional, Concurrent, Pause-Free GC for C++: https://github.com/pebal/sgcl
  5. > Does your C++ have a garbage collector? No? You can have GC in C++, completely pauseless GC ( https://github.com/pebal/sgcl ). The only one in the world, even Java doesn't have anything like it. The GC support in the C++ standard was…
  6. There's also more recent implementations such as https://github.com/chc4/samsara (quite similar to https://github.com/pebal/sgcl , which is for C++. Both implement a concurrent tracing algorithm which allows for reduced latency compared to…
  7. …traced GC for systems programming, you might like https://github.com/chc4/samsara (for Rust) or https://github.com/pebal/sgcl (for C++) both implementing a concurrent tracing algorithm which is a bit more involved than what's directly…
    comment by zozbot234 · 2024-06-26 · in Tracing garbage collection for arenas
  8. …into, implementing the same concurrent GC algorithm for Rust. A C++ implementation is available at https://github.com/pebal/sgcl .
  9. …The SGCL repository contains the source code for this benchmark that uses the tracked pointers: https://github.com/pebal/sgcl/blob/main/examples/treap/treap... Only D language is close to the result, the rest of the GC languages are…
  10. …automated cleanup and precise control over object lifetime. For a practical example, consider SGCL: https://github.com/pebal/sgcl
  11. …high performance concurrent implementation much like https://github.com/chc4/samsara (for Rust) or https://github.com/pebal/sgcl (for C++).
  12. You can have completely concurrent GC, without pausing threads. https://github.com/pebal/sgcl
  13. You can have completely concurrent GC, without pausing threads. https://github.com/pebal/sgcl
  14. You can look at the SGCL garbage collector for C++: https://github.com/pebal/sgcl . It works in a separate thread, is locks-free and never stops the world.
  15. There is only one like that, SGCL for C++ https://github.com/pebal/sgcl
    comment by pebal · 2023-12-04 · in D Programming Language
  16. …term GC. However, an attempt was made to implement a similar solution. Take a look at tracked_ptr: https://github.com/pebal/sgcl
    comment by pebal · 2023-08-20 · in The missing C++ smart pointer
  17. Look at this real-time garbage collector for C++: https://github.com/pebal/sgcl
  18. …of the standard library in the past. You can currently have optional garbage collection in C++: https://github.com/pebal/sgcl
    comment by pebal · 2023-03-17 · in Retiring a favourite C++ joke
  19. SGCL is a real-time garbage collector for C++ without any pauses. https://github.com/pebal/sgcl
    comment by pebal · 2023-03-05 · in Boehm-Demers-Weiser Garbage Collector
  20. You can look at this one: https://github.com/pebal/sgcl
  21. There are pauseless real-time GCs: https://github.com/pebal/sgcl
  22. …The GC detects this tag and marks the object as alive. Here is a working implementation for C++: https://github.com/pebal/sgcl
    comment by pebal · 2023-01-03 · in The year of C++ successor languages
  23. Here is a working implementation: https://github.com/pebal/sgcl